Hexa offset for money

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Caius665
Posts: 43
Joined: Mon, 21. Jun 04, 18:13
x2

Hexa offset for money

Post by Caius665 »

I need to have more money because I restart the game three times because it bugs and I'm boring to win money for 10 days again and again to have 2 stations.

I have an hexadecimal editor but i don't find offset of money.

Can anybody help me :?: ?
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

for gods sake don't hex edit
activate the script editor, http://www.egosoft.com/x2/forum/viewtopic.php?t=17965

press, 's' then 'c' to get to ship's command console
new option 's' enters script editor
press return under script editor to look at list of scripts
select <new script>
press return on the 1st line
go to trade commands
first command is add money to player: <?>
highlight the <?> and press return
select number and type in 1000000
hit esc, it will ask you if you want to save the script, say yes.
find the script in the list, highlight it and press 'r' to run it.
hit return a few times
voila.
run it as many times as you want.
cheers
"Nature's first green is gold" . . . stay golden.
matthewfarmery
Posts: 4179
Joined: Fri, 9. Apr 04, 17:49
x3

Post by matthewfarmery »

And ruin the point of the game, and by the way DOES become easier when you have more factories
=
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

google can help you, providing you only have v1.0 of the game - later versions have encrypted files that can't be edited

otherwise, just enable the script editor and give yourself money that way
User avatar
Some Strange Man
Posts: 2997
Joined: Sat, 20. Mar 04, 20:50
x3

Post by Some Strange Man »

I have hex-edited money for myself. It is easier, faster and safer to script it in.

However, if you do insist on hex editing it in, then start the game you are going to edit, and write down the amount of credits you have. then convert that to hex.

Boot up your hex editor and search for that hex string in your savefile. It is possible that you get 10-20-30-40 instances of that string. Edit the first one. Load up the file, check your credits. Return the edited value to its previous value, Repeat until you find the right one.
User avatar
Caius665
Posts: 43
Joined: Mon, 21. Jun 04, 18:13
x2

Post by Caius665 »

So I'm going to try those script, I don't want to try all string ! :headbang:
But I don't need "Thereshallbewings" for activate script because it doesn't work.

I'have just to press "s" and "c" ?

(I'have 1.2 version)
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

you do need to do Thereshallbewings otherwise you can't do s,c,s to get into the script editor or run any other scripts - doesn't matter which version you have, you must do Thereshallbewings first
Slocket
Posts: 501
Joined: Thu, 27. Nov 03, 21:54
x2

Post by Slocket »

I use to know what that 'hex string' was to look for. Anyway X2Patcher09b would up to 1.2 edit savegames for Money, Rank, Trade, Combat, and Relations to Factions.

I do not know if it will work on 1.3. If it does not, it just needs the offset adjusted. Good God, it has been 6 months and still no final fix 1.4 patch? LOL

It is in a very old post here back around 12-2003??
Slocket
Posts: 501
Joined: Thu, 27. Nov 03, 21:54
x2

Post by Slocket »

I found it. The old X2patch09b only worked up to 1.2 to edit the savegame for money, rank, trade, combat, race relation ranking.

It was a nice tool to quickly change a game without script. I can see what it would take to change it again to work with v1.3.

Here is the offset for money and some stuff as was in v1.1 and 1.2:
---------------------------------------------------------------

Editor savegame fix. I see that the new offset string is no longer 'FF FF FE BA 00 00 07 D9 (in v1.0). It changed by one number 'BA is now B5'.

Thus now it must (for v1.1) look for string FF FF FE B5 00 00 07 D9:

+20 decimal = cash in hex
+65 = time
+90 = trade
+95 = combat rating.

-----------------------------------------------
google can help you, providing you only have v1.0 of the game - later versions have encrypted files that can't be edited

otherwise, just enable the script editor and give yourself money that way
Yep. you're right, the hex code string and money is encrypted now v1.3. IE 1000 credits is no longer plain search E8 03 . Until then, just use Scryptease.
Bezredahl
Posts: 136
Joined: Sun, 13. Jun 04, 01:14
x2

Post by Bezredahl »

Some Strange Man - you really need to update your choices of hex editing tools, or learn how to use them.

I don't hexedit this game, because I don't need to, but if I were going to, I would use my Hex Editor as follows.

Do a search for all instances in memory, while docked at a trade station. Save the list of instances. Switch back to game. Buy something. Search my list of instances for the new value. Bingo, there it is.

Doesn't work on all games, but it does on 90% of them. Gamewiz32 does a good job at this - also use winhex.

BTW - tested it on X2 and this method works great. need to change value in 2 places.

Just a friendly hint, in an attempt to make life easier. This is not intended as a flame.
You ask me who I am when I'm alone.
I am never alone, for Death is always with me.......
User avatar
Some Strange Man
Posts: 2997
Joined: Sat, 20. Mar 04, 20:50
x3

Post by Some Strange Man »

it is an old hex editor. It only works on saved files.


I use it so rarely theres no point updating.

Return to “X²: The Threat - Scripts and Modding”