SC4D Homepage
BSC File Exchange
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 

News:

All SC4D members can freely PM any Staff member regarding issuing Karma Points to a deserving member on their behalf.


Author Topic: SC4 Dat Packer  (Read 135281 times)

0 Members and 1 Guest are viewing this topic.

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #760 on: May 26, 2011, 08:42:37 PM »
Can the DatPacker successfully pack a folder with 2.35GB of data?

I'm trying to DatPack my BSC folder and it keeps telling me that it doesn't have enough memory to continue.

It has 4,359 files and 827 folders.

Analyzes the files, packs BSC.dat (it needs to go up to BSC005.dat, I've seen it myself), then hangs on that error.

It's really driving me nuts.

Code: [Select]
Traceback (most recent call last):
  File "datPackerApp.pyo", line 2701, in OnStart
  File "datPackerApp.pyo", line 2358, in RecurseAllFilesFull
  File "datPackerApp.pyo", line 2450, in BuildIt
  File "datPackerApp.pyo", line 2268, in WriteADat
WindowsError: [Errno 8] Not enough storage is available to process this command

Before you ask how much RAM I have, it's 4GB. Windows Task Manager is telling me that I have 50% of it free. My hard disk has 136GB free, so I really don't know what the heck is going on.

Also, Win Task Mgr is reporting that the DatPacker is using ~690MB of RAM when it hangs.

Somebody tell me there is a fix.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #760 on: May 26, 2011, 08:42:37 PM »

Re: SC4 Dat Packer

Offline Lowkee33

Re: SC4 Dat Packer
« Reply #761 on: May 27, 2011, 07:45:02 AM »
Well, there is a limit to the file size that SimCity can read, so your 2.4 gigs wouldn't be pakced as one file anyway.

Best to just datpack small sections at a time. 

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #761 on: May 27, 2011, 07:45:02 AM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #762 on: May 27, 2011, 09:17:52 AM »
The DatPacker would split the files automatically. Thing is, when it finished packing the first file, it would hang.

I've found a workaround, of sorts. That is to split the folder into 2 (or more if needed) and DatPack the smaller folders.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #762 on: May 27, 2011, 09:17:52 AM »

Re: SC4 Dat Packer

Online z

  • *
  • *
  • *
  • *
  • Posts: 3774
  • Country: us
  • Reputation: 24
  • Gender: Male
  • RTMT Team Leader
    • RTMT World Headquarters
  • CL: Detailman!
Re: SC4 Dat Packer
« Reply #763 on: May 27, 2011, 12:54:14 PM »
I've found a workaround, of sorts. That is to split the folder into 2 (or more if needed) and DatPack the smaller folders.

My Plugins folder is over 4GB, and so I have to do the same thing.  It seems to be required when you have huge folders.

However, I've had DatPacker split files successfully into at least three parts before hanging.  Do you have the latest version of the DatPacker?

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #763 on: May 27, 2011, 12:54:14 PM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #764 on: May 27, 2011, 11:06:14 PM »
Yes, I grabbed the latest version off the LEX. This is my first time using it in the many years I've been playing SC4.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #764 on: May 27, 2011, 11:06:14 PM »

Re: SC4 Dat Packer

Offline Rady

  • *
  • Posts: 562
  • Country: at
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #765 on: May 29, 2011, 02:27:06 AM »
Hello

I run into a small problem: due to performance matters, I had to move my "My Documents" folder form drive C: to drive D:. However, the SC4 Deluxe installation remained on drive C,  as did the plugins folder. So basically I kept the old directory structure "C:\...\My Documents\SimCity4\Plugins" just for the SC4 plugins despite the official "My DOcuments" folder now resides on "D:\My Documents". Initially I inteded to move the plugins as well, but that caused problems with the SC4 DIC (Donwload & Installation Catalogue) I'm using.

Now when I start up the DatPacker, it per default looks into what Windows says to be the "My DOcuments" folder, which in my case is located on D-drive. That way, DatPacker get's the wrong information about what to pack. See screenie below.

Official "My DOcuments" folder as set up in Windows



"Old" location which is still used for SC4



That's how DatPacker recognizes the content of the D:\..\Plugins folder (the "wrong" one):



So, is there a possiblility to change the DatPackers folder presets?
If it's a good idea, go ahead and do it. It's much easier to apologize than it is to get permission.

Visit my BAT thread: Slow BAT steady - Rady's first BAT attemtps

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #765 on: May 29, 2011, 02:27:06 AM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #766 on: May 29, 2011, 10:21:53 AM »
There is!


If you navigate to the install folder of the DatPacker, there should be a config.ini file there. Use NotePad (or other text editing software) to change the plugins folder path.


Make sure you save it as an INI file though.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #766 on: May 29, 2011, 10:21:53 AM »

Re: SC4 Dat Packer

Offline Rady

  • *
  • Posts: 562
  • Country: at
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #767 on: May 29, 2011, 10:33:24 AM »
 ()sad()

Thanks, done that. I have the following in my config.ini file:

[Settings]
folder = C:\\Dokumente und Einstellungen\\Peter\\Eigene Dateien\\SimCity 4\\Plugins\\Plugins_Compressed


Now in addition, to make sure DatPacker won't use the wrong directory, I added a "!_" to the SimCity4 and SC4Stuff folder in my "official" "My Documents" folder.

However, when starting the DatPacker, I receive the error message "It seems there is no subfolder in your plugins directory located at D:\...\"

So, DatPacker still seems to look in the wrong place. I also searched the registry but didn't find anything that would point to the D-drive ...

 %confuso

Or is it that I'm completely wrong as far as the plugins location is concerned .. where are the SC4 plugins folder (SimCity 4, SC4 Stuff) expected to be? Do they have to be on the same drive like the game installation (C: in my case), or do they have to be in the "My Documents" folder as recognized by Windows (D: in my case)?
« Last Edit: May 29, 2011, 10:38:27 AM by Rady »
If it's a good idea, go ahead and do it. It's much easier to apologize than it is to get permission.

Visit my BAT thread: Slow BAT steady - Rady's first BAT attemtps

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #767 on: May 29, 2011, 10:33:24 AM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #768 on: May 29, 2011, 11:13:19 AM »
You might need to look up the simple versions of the folders then.


I'm going to assume you know how to navigate through the Command Prompt.


If you use dir /x, it will bring up shortened folder paths. IE: Documents is Docume~1 for me.


Try pulling up the shortened folder names for the entire path.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #768 on: May 29, 2011, 11:13:19 AM »

Re: SC4 Dat Packer

Online z

  • *
  • *
  • *
  • *
  • Posts: 3774
  • Country: us
  • Reputation: 24
  • Gender: Male
  • RTMT Team Leader
    • RTMT World Headquarters
  • CL: Detailman!
Re: SC4 Dat Packer
« Reply #769 on: May 29, 2011, 02:07:17 PM »
Or you could just take the easy way out and mount your SimCity 4 folder in the correct place on your D: drive.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #769 on: May 29, 2011, 02:07:17 PM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #770 on: May 29, 2011, 05:53:53 PM »
Or you could just take the easy way out and mount your SimCity 4 folder in the correct place on your D: drive.


Yeah, but if everyone took the easy way, there would be no engineers/inventors/tinkerers.


And, that's coming from Mr. z himself. :o

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #770 on: May 29, 2011, 05:53:53 PM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #771 on: June 08, 2011, 10:16:33 AM »
Is there a syntax to ignore a certain file?

Like I want to remove all of the *.ini files but leave the desktop.ini files (Thank you MS for doing this crap).

I have a Cleanitol file with *.ini but I do not want to get rid of the desktop.ini files.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #771 on: June 08, 2011, 10:16:33 AM »

Re: SC4 Dat Packer

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: SC4 Dat Packer
« Reply #772 on: June 08, 2011, 12:14:18 PM »
why do you wish to keep the desktop.ini's?
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #772 on: June 08, 2011, 12:14:18 PM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #773 on: June 08, 2011, 01:00:56 PM »
I was having some installers crap out because for some reason the plugins folder was set to read only.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #773 on: June 08, 2011, 01:00:56 PM »

Re: SC4 Dat Packer

Offline JoeST

  • *
  • ****
  • *
  • Posts: 2574
  • Country: gb
  • Reputation: 9
  • Gender: Male
  • fbstj
    • me
  • CL: Not your average...
Re: SC4 Dat Packer
« Reply #774 on: June 08, 2011, 03:25:06 PM »
that's probably remedied by making the parent folder's permissions nicer (as in %MYDOCS%/Simcity4/ should have the desktop.ini, the subdirs should be fine)

Else, you could try 'deleting' the plugins folder and using said installers to actually create the directory.
"The only thing thats impossible is the BAT, because I cant do it"
- David (dedgren)


Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #774 on: June 08, 2011, 03:25:06 PM »

Re: SC4 Dat Packer

Offline Lowkee33

Re: SC4 Dat Packer
« Reply #775 on: June 08, 2011, 03:45:15 PM »
I would do a windows search for ".ini" on the plugin folder.  Non-desktop.ini files could be deleted pretty quick, and the cleanital could have *.ini removed from its remove list.

I was having some installers crap out because for some reason the plugins folder was set to read only.

Or does this mean that you have corrected that problem?

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #775 on: June 08, 2011, 03:45:15 PM »

Re: SC4 Dat Packer

Offline legoman786

  • *
  • Posts: 92
  • Reputation: 0
  • Gender: Male
Re: SC4 Dat Packer
« Reply #776 on: June 08, 2011, 05:33:46 PM »
@Joe:

I researched and tried for about 2 weeks straight. It's a nifty 'feature' that MS had made bulletproof when you're on a HomeGroup network.

@Lowkee:

Yes, my resolution was to have Windows make the desktop.ini's in all folders of the plugins directory, including the root folder. :\


EDIT: More reading Change file/folder attributes?
« Last Edit: June 08, 2011, 05:35:27 PM by legoman786 »

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #776 on: June 08, 2011, 05:33:46 PM »

Re: SC4 Dat Packer

Offline eagle1

  • *
  • Posts: 1
  • Reputation: 0
  • Your slogan here
Re: SC4 Dat Packer
« Reply #777 on: September 10, 2011, 08:11:53 AM »
I am really new at all of this even though I have had the game since it came out. However, I have problems. I followed everything you said here and everything went great untill I tried to get into a city, even a new one.. Game just locks up and kicks me out.. I am trying to run the Damn Menu, will or does that effect it ?.,

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #777 on: September 10, 2011, 08:11:53 AM »

Re: SC4 Dat Packer

Offline joker09

  • *
  • Posts: 7
  • Reputation: 0
Re: SC4 Dat Packer
« Reply #778 on: January 27, 2012, 05:44:21 PM »
Is it possible unpack this created dats (plugins compressed) folder?
I update some lots/bats and I wish delete some old bats, check what I have and why some icons on my menus are duplicate or do not showing.

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #778 on: January 27, 2012, 05:44:21 PM »

Re: SC4 Dat Packer

Offline Gringamuyloca

  • *
  • *
  • Posts: 235
  • Country: ca
  • Reputation: 3
  • Gender: Female
  • Chronic Lurker
Re: SC4 Dat Packer
« Reply #779 on: January 27, 2012, 08:42:49 PM »
@ joker09

I only know Ilives Reader to 'open' a .dat file. (you must be registered separately on the LEX to see the download button)

This program requires patience to learn and a great deal of research / knowledge to use well, but there are many fine tutorials and helpful people to help you accomplish your 'task'.  :thumbsup:

Better yet, if you made a back up of your plugin folder before you 'Dat' packed, use that  back up folder to make your updates/ deletes, back it up again and then dat pack. (Don't forget to back things up before you change them! Some things are time consuming to redo.  $%Grinno$% )

Please post back if you need more information.  :thumbsup:


 

Tamara

Sim City 4 Devotion Forums

Re: SC4 Dat Packer
« Reply #779 on: January 27, 2012, 08:42:49 PM »

 


If you experience visual glitches in our site, we strongly suggest you to use Firefox to browse the forums. Also a 1024*768 or higher resolution is highly recommended to view this site