[Ohrrpgce] Cutting down filesize by removing useless lumps?

Michael Kidder mkidder at gmail.com
Mon Jun 27 04:19:58 PDT 2005


I'm going to need some help and advice on reducing Sword of Jade's filesize.

Now, this might be somewhat of a special case, but here it goes.

I was digging around in an unlumped version of the RPG file, and
looking at the format documentation on the OHR-wiki. I found I could
at least delete the door file (DOX) and the now-obsolete door file
(DOR) with no problems. Game.exe appeared to run just fine (Sword of
Jade does not use any built in OHR doors, they are all scripted).

Consulting further, I found I could also delete the default
passability lump (since that's useless to a finalized RPG file)

Next thing I looked at was foemaps.. which take up 1.24MB of Sword of
Jade's total filesize. The thing is, SoJ doesn't use foemaps except
for one map as a workaround for NPC limits. Unfortunately I can't
delete them because it will come up with a "BAD COMMAND OR FILENAME"
error after you take a couple of steps (I assume the engine still acts
like it is calculating the chance of running into a battle, even if a
foemap doesn't exist?) on a map. So now I have 99 useless foemaps that
I have to live with and are taking up space. Same with doorlink files.

The file's unzipped size is 33.6MB. By deleting useless lumps and BAM
files I was able to get it down to around 31.5MB. This of course made
the ZIP go from 5MB to 3.8MB. Any KB I can get rid of, I want gone.

Any suggestions for ideas on reducing filesize or workarounds for
doing so? Possibly have game.exe safely ignore errors if it can't find
the foemap or similiar files, or is this going to require a custom
version of game.exe?

If somebody can tell me how to get a list of files and thier sizes in
a directory, I could give a list of such and help in figuring out the
worst offenders and the best places to save space.

Jade does not use vehicles either, by the way.



More information about the Ohrrpgce mailing list