Anfangsgeld

Von Fragen zum Editor über die Landschaftsgestaltung und das Einfügen komplexer Mechanismen, RPCs oder Ähnlichem bis zur kompletten Projektplanung ist hier alles willkommen, was mit der Veränderung von Ja 2 und UB zu tun hat...

Moderator: Flashy

Antworten
Tobeas
Alpha-Squad
Beiträge: 1873
Registriert: 11 Feb 2002, 11:10
Kontaktdaten:

Anfangsgeld

Beitrag von Tobeas » 21 Aug 2002, 16:18

Folgendes hab ich bei LOTB gefunden. Als ich es mal ausprobiert habe, hats nich geklappt :cry:

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...
Ich hab mich am 11.02.2002 um 11:28 hier im Forum angemeldet und habe am 17.10.2002 um 20:22 meinen 1000.Post geschrieben!!!

Darkhunter
Elite-Söldner
Beiträge: 4314
Registriert: 22 Jul 2001, 10:13
Kontaktdaten:

Beitrag von Darkhunter » 21 Aug 2002, 16:33

Möglicherweise US=/=Deutsch?! Also, dass es nur mit der US funzt? :confused:
:scream: Niveau :scream:
Spendet für die I.z.R.d.Vq.!

Nitrat
Schrecken der Tyrannen
Beiträge: 19301
Registriert: 24 Jul 2000, 11:00

Beitrag von Nitrat » 21 Aug 2002, 16:48

Hmm bei mir funzt es:
Entweder auf HEX oder DEZIMAL muss es im "HEX" EDITOR umgeändert werden !!

Scheint mir das das (0x0000AE6C) die dezimalstelle ist wo das geld gelistet wird.

aber ehrlich, gleich am anfang noch mehr knete zu haben ist doch sche**** :azzangel:

MFG....

Darkhunter
Elite-Söldner
Beiträge: 4314
Registriert: 22 Jul 2001, 10:13
Kontaktdaten:

Beitrag von Darkhunter » 21 Aug 2002, 17:04

Wie wär´s mit weniger? ;) :rolleyes:

@Tobeas
Du tust das nicht zufällig im Auftrag von Angel? :dozey: ;)
:scream: Niveau :scream:
Spendet für die I.z.R.d.Vq.!

Nitrat
Schrecken der Tyrannen
Beiträge: 19301
Registriert: 24 Jul 2000, 11:00

Beitrag von Nitrat » 21 Aug 2002, 17:14

achso vergessen zu erwähnen: wird wohl eher für die US version sein !!
Für die deutsche wüsst ich nicht das es da an den gleichen stellen liegt.
(und btw. ich hab sowieso nicht viel mit UB am hut: Alle angaben ohne Gewähr)

bei mir funzen die JA2 sätze zu verändern, aber UB kann ich nicht bestätigen !!

MFG.....

Hanibal
Bravo-Squad
Beiträge: 1012
Registriert: 26 Nov 2001, 18:58

Beitrag von Hanibal » 21 Aug 2002, 19:49

Mal ne Frage:

Würde das beim normalen JA 2 genau so ablaufen?!
"Alles ist in bester Ordnung, so lange genug Bier im Kühlschrank da ist"
Homer Jay Simpson

Tobeas
Alpha-Squad
Beiträge: 1873
Registriert: 11 Feb 2002, 11:10
Kontaktdaten:

Beitrag von Tobeas » 21 Aug 2002, 22:14

@Nitrat
Ich hab die US-Version, aber irgendwie funtzt es nich

@Darki
NEIN

@Hanibal

Keine Ahnung.
Ich hab mich am 11.02.2002 um 11:28 hier im Forum angemeldet und habe am 17.10.2002 um 20:22 meinen 1000.Post geschrieben!!!

Gunny
Evil Mod
Beiträge: 3028
Registriert: 01 Jul 2001, 17:08

Beitrag von Gunny » 22 Aug 2002, 19:22

die Offsets für die deutscher Version 1.02 und 1.05 hab ich noch irgendwo zu Hause,
sobald ich mal wieer da bin, werd ich die mal hier reinsetzen
Ten thousand gobs lay down their swabs to fight one sick marine -
Ten thousand more stood up and swore,
'Twas the damndest fight they'd ever seen

Zivi-Animateur im RdGE

RIP Möhre

Loser
Bravo-Squad
Beiträge: 652
Registriert: 11 Jul 2001, 13:58

Beitrag von Loser » 24 Aug 2002, 15:57

@Gunny: Erlaubnis erteil ich dir!

Impaler
Alpha-Squad
Beiträge: 1124
Registriert: 25 Jan 2002, 20:33

Beitrag von Impaler » 25 Aug 2002, 19:50

Problem:
Der Typ will ja KEINE AIMs, weil die teuer sind, nech?
ABER: In UB gibt es ja noch die Händler, THEORETISCH kann man denen so viel verkaufen, dass man sich die AIMs wieder leisten kann. Auch wenn er den Preis exorbitant hoch setzt, geht dat irgendwann.
Falls man versucht, die Waffenpreise herunterzusetzen, dann wäre der EINKAUF etwas zu einfach...

Was tun?

Gunny
Evil Mod
Beiträge: 3028
Registriert: 01 Jul 2001, 17:08

Beitrag von Gunny » 08 Sep 2002, 15:33

hier also die Offsets für V1.02 und V1.05

V1.02
Experte 0019DD5A
Erfahren 0019DD61
Anfänger 0019DD68

V1.05
Experte 00192871
Erfahren 00192878
Anfänger 0019287F

die Verfahrensweise ist diesselbe wie bei UB, viel Spaß

Gunny und Loser
Ten thousand gobs lay down their swabs to fight one sick marine -
Ten thousand more stood up and swore,
'Twas the damndest fight they'd ever seen

Zivi-Animateur im RdGE

RIP Möhre

Tobeas
Alpha-Squad
Beiträge: 1873
Registriert: 11 Feb 2002, 11:10
Kontaktdaten:

Beitrag von Tobeas » 08 Sep 2002, 16:32

Vielen Dank Gunny.
Ich muss mich gleich mal dransetzten, und es ausprobieren
Ich hab mich am 11.02.2002 um 11:28 hier im Forum angemeldet und habe am 17.10.2002 um 20:22 meinen 1000.Post geschrieben!!!

Nitrat
Schrecken der Tyrannen
Beiträge: 19301
Registriert: 24 Jul 2000, 11:00

Beitrag von Nitrat » 08 Sep 2002, 17:23

sind die offsets in hex oder dezimal stellen ??


manche können die stellen einfach nicht finden :azzangel:
MFG....

Gunny
Evil Mod
Beiträge: 3028
Registriert: 01 Jul 2001, 17:08

Beitrag von Gunny » 08 Sep 2002, 20:29

Hexa, hexa,
Ten thousand gobs lay down their swabs to fight one sick marine -
Ten thousand more stood up and swore,
'Twas the damndest fight they'd ever seen

Zivi-Animateur im RdGE

RIP Möhre

Antworten