memo33 / JDatPacker

Cross-Platform Dat-Packer for SimCity 4 Plugins
MIT License
12 stars 3 forks source link

Can't pack Simcity_1.dat and CAM #2

Closed aeantipov closed 2 weeks ago

aeantipov commented 2 weeks ago

Hi,

I'm following the manual for CAM installation, which requires me packing 2 files (see Mac Installation Instructions.txt from https://www.sc4evermore.com/index.php/downloads/download/26-gameplay-mods/52-colossus-addon-mod-version-2-1-0a-mac-by-invisichem) The files are:

I tried doing it both on windows and mac by installing jdk (scoop install openjdk and brew install java correspondingly) and running jdatpacker. In both cases I get output

PS ... JDatPacker-0.2.2> .\launch-JDatPacker-Windows.bat

[(100,)]

and no output file.

I can't seem to find the log.

aeantipov commented 2 weeks ago

I tried it actually on a bunch of different plugins - to the same result.

aeantipov commented 2 weeks ago

Never mind: the issue is the JDatPacker misses .dat files in the directory you point it too, it needs a second layer directory. After I made a subdir, it worked.

memo33 commented 2 weeks ago

Yeah, I've actually tripped over that quirk myself, after coming back to this a couple years later. The reason it behaves like that is to replicate the functionality of the original SC4DatPacker program. It would be difficult to preserve loading order if files from the top-level directory are packed as well.