LordofFlames posted on Aug 05, 2016 12:41:40 PM - Report post
Im hacking this game to relearn all the stuffs ive forgotten over the years, and when I'm writing the offset injection, something pops up that makes me scratch my head.
What am I even supposed to write here? I am injecting a change of planetary requisition to 9999. I tried typing it as it is (just to try it) and it obviously didnt work. :P A little help? And what the heck is that return command I'm getting?
My failed line: mov dword [eax+ecx*4],(int)9999
Signed, Rusty old n00b LordofFlames. 🤔
Swedish Nutcase with cheatoholic problems
STAFF
0x90 posted on Aug 05, 2016 12:58:36 PM - Report post
Your line seems to be correct. What exactly is your issue? Do you get an error message while trying to inject the script?
ELITE
LordofFlames posted on Aug 05, 2016 1:15:06 PM - Report post
I'm getting "Script injection failed. Please check the author's description of this script if provided".
When I inject the script without saving it, it works as intended. Even brings it back up to 9999 when I spend it. But every time i save the script and try to activate it, that error message pops up.
Swedish Nutcase with cheatoholic problems
STAFF
0x90 posted on Aug 05, 2016 1:17:16 PM - Report post
Can you please save it and then save the table and attach it to your next forum post so I can have a look at it? Or send it to [email protected]
//edit: also what CoSMOS version are you using?
[Edited by 0x90, 8/5/2016 1:17:33 PM]
ELITE
LordofFlames posted on Aug 05, 2016 1:32:28 PM - Report post
Alright I'm even more confused now. Now it works. Both with and without the extra alloc line. One is written with the alloc line, putting it to 5000. One is without, putting it to 9999. Both work, tried after just restarting the game and CoSMOS. I am using 1.1.9.0. Sorry for wasting your time 0x90, I must've entered a typo in the code the first times or something, faulty bracket or lack of linebreak. 🤔 But it's doing its job at least, getting me to re-learn code. I'll not be so quick to jump on the forum next time, I'll let a few hours of banging my head against it go by first. 🙂 It's obviously working lol.
EDIT: Well been doing this all day, and finally got planetary req, battle req and power to work together without crashing. I get new respect for coding due to this...... and now know how easy this game gets cranky. Been an eventful day, but I think i got the solid basics of debugging and injection down now.