|
此物名为 SC4DatPacker 2008, 出处:http://www.simcity.cn/thread-50280-1-1.html http://sc4devotion.com/forums/index.php?topic=204.0 http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=26原始网页:
求概要翻译:- SC4DatPacker is a small utility that will make a mega pack from your plugins subfolders.
- Various tests on SC4 have been conducted ( by BSC members and by me ) and the result is a big speed up between cities' loading times.
-
- Dependencies
- In order to run SC4DatPacker, you'll need the following dlls installed on your system.
- MSVCP71.DLL
- MFC71.DLL
- GDIPLUS.DLL
- or you'll get things like
- Traceback (most recent call last):
- File "datPacker.py", line 1, in ?
- File "datPackerApp.pyo", line 23, in ?
- File "win32ui.pyo", line 12, in ?
- File "win32ui.pyo", line 10, in __load
- ImportError: DLL load failed: Le module sp閏ifi� est introuvable.
- or
- Traceback (most recent call last):
- File "datPacker.py", line 2, in ?
- File "zipextimporter.pyo", line 82, in load_module
- File "datPackerApp.pyo", line 2, in ?
- File "zipextimporter.pyo", line 82, in load_module
- File "wx\__init__.pyo", line 45, in ?
- File "zipextimporter.pyo", line 82, in load_module
- File "wx\_core.pyo", line 4, in ?
- File "zipextimporter.pyo", line 98, in load_module
- ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd
-
- Revision history
- 2008 version
- based on v5
- very fast reading and writing as in Anniversary version
- sort the file in correct order to respect SC4 loading order
- add an 'optimize space' option
- add a 'force repack' option
- you can choose which folder you want to pack
- splitting of big megapack to max 392Mb, great if you have a 1Gb subfolder
- Anniversary version
- rebuild from scratch
- fast reading and writing
- unfortunatly buggy in some case
- Version 6
- Interface revisited
- Speed up reading the files
- Version 5
- Interface revisited
- Speed up reading the files
- Bug fix if compressed folder start with a u
- Version 4
- Writing order revisited
- Less ram option revisited
- Version 3
- Scan all files
- Process dialog extended to add a log window
- Less ram option
- Version 2
- Duplicate in same files fixing
- Version 1
- Initial version
- It will scan your plugins subfolders and create a mega pack per subfolder. All generated mega packs will be created under plugins\plugins_compressed by default.
- When hitting start, the application will scan all your subfolders and will display some info on the process.
- It will report any file problems ( at least the most I'm aware of ).
- Anything reported in the last box should be fix, as it may cause some little differences in your gameplay experience
- It will generate a mega pack for each subfolder in alphabetical order as SC4 does in order to have the same rules regarding overlapping/conflicting TGI.
- It will generate a mega pack for a subfolder only if the mega pack does not exist yet or if there is new data in the subfolder since the last packing or if you chech the force repack option
- It will generate a mega pack for a subfolder only if you selected that subfolder
- It may generate more than one mega pack for a subfolder if the estimated mega pack is bigger than 394Mb. The first mega pack will be labelled as the subfolder, the remaining ones will have a index counter attached
- If you check the Force repacking option, SC4DatPacker will recreate the mega pack even if nothing has been changed in the folder since last packing.
- If you check the optimize space option, SC4DatPacker will convert all Textual Examplar to Binary Examplar, and will try to compress as much as possible all non compressed entries.This will take a bit longer to create megapack, but worth the time.
- If you check the Include only useful TGI option, SC4DatPacker will only include what is needed for the game to work, anything that is used by the LotEditor or the Plugin Manager is removed. You will gain extra space on your HD.
- How to use it ?
- Once you have run the application and generate the mega pack, you will have the following a similar folder structure :
- Take all the subfolders except plugins_compressed out of your plugins folder and keep them well organized in another place. If you use Start Up Manager put these subfolders into Plugins Disabled. If you do not use Start Up Manager you can make a new sub folder in the SC4 folder called Plugins Disabled and move the files there.
- Note that the plugins at root folder are still there
- You can now run SC4 and notice the big difference when you switch between different cities
- If you want to install new plugins from STEX, then just replace all the subfolders in the plugins folder, rerun the application and repeat the operation.
- You can change the default output folder in the application by changing the destination directory by hitting the '...' button.
- Tips
- Do not move or compress the essentials files, They should stay on your root plugins
- It is wise to have multiple subfolders, whatever the structure is. If you only have one subfolder, SC4DatPacker will try to pack it, and it may result in such a big file that it can't be written or a freeze of the tool
- A subfolder bigger than 1Gb should be dispatch to help SC4Datpacker.Splitting folder of more than 392Mb is now handled by SC4DatPacker.
- If you intend to play with some compressed files and some uncompressed files, beware of the loading order of files in SC4.
- SC4 loading order
- Here is the latest informations found on which file are loaded first
- files in your Program files/Maxis/Simcity 4 ( simcity_1.dat to simcity_5.dat and the EP.dat sounds.dat etc.. )
- files in your Program files/Maxis/Simcity 4/plugins
- files in your My Documents/Simcity 4/plugins
- files are loaded in alphabetical order
- .dat files are loaded last in alphabetical order
- subfolders are processed in alphabetical order
- files are loaded first than subfolders are parsed
- In case of TGI conflict in 2 differents files, the latest loaded data will erase the old one
- In case of TGI conflict in 1 file, the lasted loaded data will be discard
- If you play the game with only the 'plugins_compressed' subfolder, this won't change what datas are loaded in SC4
- However if you play the game with the 'plugins_compressed' subfolder and other subfolders, it may change what datas are loaded by SC4
- Let says you have :
- subFolderA\*.dat
- subFolderB\*.dat
- subFolderC\*.dat
- the game will load them in that above order
- SC4DatPacker will create :
- plugins_compressed\subFolderA.dat
- plugins_compressed\subFolderB.dat
- plugins_compressed\subFolderC.dat
- and the game will load them in that above order, so you will have exactly the same datas loaded.
- But if for some reasons you decide to not use the plugins_compressed\subFolderB.dat, and use the normal subFolderB the game will load :
- plugins_compressed\subFolderA.dat
- plugins_compressed\subFolderC.dat
- subFolderB\*.dat
- As you see the datas are not read in the same order ( subFolderB is alphabeticaly after plugins_compressed )
- This can cause issues if some files in the subfolderC need to be read after subFolderB.
- This can cause issues in case of conflicting TGI in subfolderB and C
- A Word from SoulStealer
- For people having problems and crashes let me suggest reordering and cleaning your folders before you make the pack.
- 1. Look for and remove duplicates (I use a tool called HCCLITE http://www.heatsoft.com/has/HASindex.html).
- 2. Use BSC Cleanit to remove garbage files (like .sav, .htm, .txt, .jpg etc') this files shouldn't be in your plugins folder.
- 3. Install the props and textures mega packs and remove old files carefully (Use BSC Cleanit).
- 4. Look for files with 0 size they seem to cause errors (0 size shouldn't be, it's probably due to corruption in a zip file or a mistake done by the lot/bat maker - try to dl again or remove it all together).
- 5. Move all mods away (Terrain and tree mods, nam, support files, essentials, stuff in zzz folders, slope mod, basically anything that is not a lot or a bat) - For me I always have these files in my maxis/simcity/plugins folder and not in mydocuments/simcity/plugins - see further explanation below).
- 6. Move all the lots/bats you have into a subfolder in your plugin folder like ...\plugins\mainplugins).
- 7. Fire up the packer (kick back - for me it took about 10-12 minutes to pack 1.5 Gig).
- 8. Move the stuff you moved away back in and remove the unpacked mainplugins away (Don't delete it just keep it somewhere else as you will update it with new stuff) (Now your plugin folder should have only the plugins_compressed folder and the mod folders like the terrain mod, nam, zzz etc').
- 9. Start the game and witness with awe and respect what a miracle DATPacker is Smiley
- Step 5.5 (Optional)
- I move all texture, prop files I can find into my "program file/maxis/simcity/plugins/props_and textures/" folder as these get updated often and its easier to find duplicates and remove oldies when necessary. I also use different sets of plugin according to the city I'm making (like Urban city and Rural town) so each time I load a different set of BATs and lots but the props and textures are shared by them both so it's better to keep them in a central place e.g the "program files\maxis..." folders).
- So suggested folder structure should be like this:
- Program files\maxis\simcity\plugins
- Props and textures folder - You can pack this folder too to improve performance a bit
- Mods, terrain, trees, essentials etc' folders
- zzz folder
- My documents\simcity\plugins
- Main lots and bats folder - This is the folder we are packing
- Mods folders
- zzz folders
- If you want to organize even further, inside the main lots and bats folder you can reorganize everything into their category.
- This is basically how my Urban folder structure looks like:
- Residential
- - High rise
- - R$
- - Small Homes
- - Mansions
- Commercial
- - Suburbs
- - High rise
- - Mid rise
- Industrial
- - ID and IM
- - HT
- Recreational
- Civic
- Landmarks
- Network
- -Rail
- -Sea
- -Land
- -Air
- zzz
- All of this will take you about an hour to do, but believe me it's well worth the effort. When you have a problem like a missing prop/texture or a lost file or you want to update or remove something then in a matter of seconds you can locate what you need and fix it.
- .
复制代码
[ 本帖最后由 8765432 于 2011-2-5 18:57 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?入住
x
|