Anfangsgeld
Verfasst: 21 Aug 2002, 16:18
Folgendes hab ich bei LOTB gefunden. Als ich es mal ausprobiert habe, hats nich geklappt
Offsets for starting money in UB
Three 32-bit integers at the following offsets in JA2UB.exe:
UNPATCHED
Difficulty | Offset
---------------------------------------------
Novice ($40,000) | 00044677 [0x0000AE95]
Experienced ($35,000) | 00044652 [0x0000AE6C]
Expert ($30,000) | 00044627 [0x0000AE53]
PATCHED
Difficulty | Offset
---------------------------------------------
Novice ($40,000) | 00045157 [0x0000B065]
Experienced ($35,000) | 00045132 [0x0000B04C]
Expert ($30,000) | 00045107 [0x0000B033]
Von Trail
Haha, it's not a question again! Guess you're lucky. So let's get to busines..
I wanted to disable AIM somehow, but of course that would be quite difficult to find how. So I tried to find subtle ways to do my job. At first I tried to make all mercs unwilling to cooperate, and tried changing their reputation tolerance, but never worked. Then I tried raising their salary at about 20000 per day for everyone, but ain't realistic, and you could hire someone ever for one day. So I thought of reducing the amount of starting money. The problem was that nobody had ever found out how. Anyways, I loaded a music CD to my drive, and the outcome is this post here
NOTE: I wrote this thing with unexperienced hackers in mind, so I hope that it is clear for anyone wishing to change this stuff. If you still don't understand, drop me a line.
Tools needed
------------
A good HEX editor ( eg. HexWorkshop ) and Windows Calculator.
Here we go
----------
First, create a Back Up of your JA2UB.exe file. A mistake always happens, and sometimes it's unrecoverable. You don't want me to tell you how, do you
Then open it with the HexEditor of your choice. Then search for offset 00044677 [0x0000AE95] It should be 409C. Now check something: change the two last digits (so it's 9C40) and convert this to decimal. Hmmm... 40000. That reminds me of something. Do the same for offset 00044652 [0x0000AE6C]. Hey, 35000. Now what about offset 00044627 [0x0000AE53]... wow! 30000!.
So what you need to do is:
Search this offset according to game difficulty:
Difficulty | Offset
--------------------------
Novice | 00044677 [0x0000AE95]
Experienced | 00044652 [0x0000AE6C]
Expert | 00044627 [0x0000AE53]
Then decide the amount of starting money you want. Let's do an example with 3000 for novice, 4000 for experienced and 5000 for expert.
Convert the amout of money you decided for novice in hex using the Windows Calculator. 3000 should be 0BB8. Now change the last two digits' order (B80B). Then overwrite this value to the novice offset, in place of 9C40. Do the same for experienced and expert. 4000 makes 0FA0 in hex, so overwrite the experienced offset (should be B888) with A00F. After that replace the expert offset (should be 3075) with 8813 (makes 5000).
Last step: Run Unfinished Business and Start A New Game. Your changes should have taken effect! If a error occurs, try doing the same thing with the backed up executable. If you still can't do it, mail me and kick my butt...