If you are using sxos then it's a whole lot easier to just use the cheat function. The cheats are not working for the current version so you will need to search for it manually.
(Search for a 32bit signed value, convert your current amount of money into hexadezimal and search for that. Go back into the game and spent or ear money, go back and search for that value converted into hexadezimal. Repeat until you have 4 remaining results and then change all of them. I usually just make it FF FF which is 65535 money)
Thanks very much for this.. I took this further, and realized that FF FF is 16 bits, so I did that and threw some blueberries in the box and slept. This gave me 65,685 gold, so I did a new search on "010095", and changed the corresponding values to FF FF FF, which gave me 16,777,215 gold.
One problem I ran into was what seems to be a limitation in the sxos editor, so I had to sell an item to get some amount more than 65535, because one of the pointers in the 4 results takes you to the start of the hex value, and you cant "go back one" to change to the other FF.
I'd love to convert this to a cheat code and contribute it back, but I still have to learn how to do that. I've found that the memory addresses change every time you start the game, so it isn't as simple as recording the address and offset. If I find time, I'll get through the cheat code hacking guide on tx.
Is it really a 32 bit signed int? I'm assuming we could sell an item again, and use 31 bits if its signed and 32 if its not, so FF FF FF FF, or FFFFFFFE, and have 4,294,967,295 or 2,147,483,647.
My son is paranoid that the other people in the game will find out we are cheating.