Lemurs Engine Mod - it can be done

Please post here for questions and discussion about scenario design and the game editor for WITP.

Moderators: wdolson, Don Bowen, mogami

Post Reply
User avatar
Reg
Posts: 2793
Joined: Fri May 26, 2000 8:00 am
Location: NSW, Australia

Lemurs Engine Mod - it can be done

Post by Reg »

The engine names are embedded in the WITP executable file in plain text. MAKE A COPY of your 'War in the Pacific.exe' executable file (call it something different) and make a new shortcut to it (for use with Lemur's scenario).

Use a hex editor to find the string 'Nissan' and replace it with 'AdvMit'. Then find the string 'Toyoda' and replace it with 'AdvNak'. Unfortunately these substitutions must be the same length or there will be NO guarantees that the program will still run properly. Save to the COPY of your 'War in the Pacific.exe' file.

Have fun.

XVI32 a good freeware hex editor. (http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm)

Image
Attachments
Lemurs_engine_mod.gif
Lemurs_engine_mod.gif (106.96 KiB) Viewed 333 times
Cheers,
Reg.

(One day I will learn to spell - or check before posting....)
Uh oh, Firefox has a spell checker!! What excuse can I use now!!!
User avatar
Lemurs!
Posts: 788
Joined: Tue Jun 01, 2004 7:27 pm

RE: Lemurs Engine Mod - it can be done

Post by Lemurs! »

That is cool as all get out man, what size is the exe file? Is it email-able?

Mike
Image
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

RE: Lemurs Engine Mod - it can be done

Post by Captain Cruft »

The EXE will be the same size as the normal one.

FYI all strings present in the EXE file can be edited in this manner. Numbers too, if you know exactly where they are.

What you can't change is the actual logic ...


User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

Historical cruft

Post by Captain Cruft »

As an aside, if you dump a list of all strings out of the WitP executable there are numerous amusing things to be found. It looks like a history of GG games over the ages ...

I used the `strings' command on Linux to do this but there must be a Windows equivalent.
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: Historical cruft

Post by Bodhi »

ORIGINAL: Captain Cruft

As an aside, if you dump a list of all strings out of the WitP executable there are numerous amusing things to be found. It looks like a history of GG games over the ages ...

I used the `strings' command on Linux to do this but there must be a Windows equivalent.

There's a strings.exe for Windows. http://www.sysinternals.com/ntw2k/sourc ... ml#strings

Maybe we could have a poll to find everyone's favourite string in the exe.

Here's one of mine:

"Fatal Error : Unable to load BTR map."

Talk about code re-use. [:D]
Bodhi
User avatar
Reg
Posts: 2793
Joined: Fri May 26, 2000 8:00 am
Location: NSW, Australia

RE: Lemurs Engine Mod - it can be done

Post by Reg »

Mike,

The executable file size is a touch under 2MB but you can make your own from the file on your game folder. This is quite simple to do (see attached screen shot below) but please MAKE A COPY and edit it rather than your original file (there is always a risk with hex editing).

Image
Attachments
WITP_hexedit.gif
WITP_hexedit.gif (30.53 KiB) Viewed 333 times
Cheers,
Reg.

(One day I will learn to spell - or check before posting....)
Uh oh, Firefox has a spell checker!! What excuse can I use now!!!
Post Reply

Return to “Scenario Design”