Well, it looks like I'm going to have to change it from being pointer-based to being code injection based. Maybe there's a static path in there that stays constant between OSs, but I can't find it. I'm still a neophyte in this area
The downside of code injection is that, thus far, I'm having a bit of a hard time finding a reliable way to differentiate between the player's dwarves and the AI's dwarves. I could certainly do it by colour, thus restricting the cheating to one colour of dwarves, but that seems... imperfect! I may rig up a trainer for the red dwarves just to have something done while I figure out a better way.
OK! So I've resorted to using code injection and AOB searching to find the spot for it. The upside is I think it'll work for all OSs, and will probably work even if they update the game.
The downside is the game uses progressive code loading of some sort, meaning that until a function has reason to be used, it isn't even loaded. Thus, in addition to being restricted to the Red Dwarves team (I'll look for some way to tell which ones are player 1's) certain options can only be activated after certain things have happened.
The Unlimited Life and Unlimited Movement options can only be toggled on once you've started a game and have gone through the tile placement thing and clicked on a dwarf at least once (I believe). The attack boost and always critical options can only be enabled once you've started at least one combat... but you can do it DURING your first combat to get the effects.
The turn freezing thing probably works as soon as you've started a game, though its possible it can only be activated on turn 2 or beyond.
On the bright side, once you've done these things you don't have to wait for them in future games during that session - the relevant code has been loaded and stays loaded between games during the same execution of the game.
Nice, will have to remember to do that. Thank you for the time, I'll be testing it out and seeing how it goes.
EDIT: Works fine on team red as stated, so far only had a problem with the unlimited movement one, probably cause I accidently double clicked so it refused to reload in the next turn. Yet to test that option again but will do so later.
thanks for the efforts on your trainer! working pretty well. only having trouble w/the 'movement' option(it keeps going into OFF mode). also every time i click back to game it goes straight back to 'movement' and seems to disable it. all the other options seem to work great tho!(except seems to work for AI team too like you mentioned)
[Edited by mikoto, 9/22/2011 1:13:46 PM]
--------------------------------------------------------------------------- no... it's NOT meant to work online in games(don't get yourself banned from the maker and waste your money) ;)
Also please DON'T ask me to email you a copy of a trainer. thanks!(your message will be ignored)
Heh, well.. look at the datestamps: the trainer was made over a year and a half ago, and the game has been updated a few times since. I'm shocked any of the functions continue to work, but am pleased to hear some of them do.