View previous topic :: View next topic |
Author |
Message |
tedomedo Advanced Cheater Reputation: 0
Joined: 27 Jul 2008 Posts: 53
|
Posted: Fri Mar 31, 2017 3:51 am Post subject: Change or disable game length for russian game General |
|
|
Hi.
I play strategy game General. You can download it here: http://akasoft.genliga.ru/index_e.php - no installation required, just unzip and run general.exe.
When i start a new game, it lasts up to 120 game-years. It i don't win or lose before, then "game too long" text is displayed and the game is over.
https://www.dropbox.com/s/c1sw7222h5y71bo/119.gen?dl=0
This is link to saved game in game-year 119.
I'm asking for help to change or disable game length.
|
|
Back to top |
|
|
Cake-san Grandmaster Cheater Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Sat Apr 01, 2017 2:59 am Post subject: |
|
|
Code: |
[ENABLE]
assert("general.exe"+11FC72,75 2C)
"general.exe"+11FC72:
db EB 2C
[DISABLE]
"general.exe"+11FC72:
db 75 2C
{
// ORIGINAL CODE - INJECTION POINT: "general.exe"+11FC72
"general.exe"+11FC67: C6 45 FF 01 - mov byte ptr [ebp-01],01
"general.exe"+11FC6B: 80 3D E0 13 56 00 78 - cmp byte ptr [general.exe+1613E0],78
// ---------- INJECTING HERE ----------
"general.exe"+11FC72: 75 2C - jne general.exe+11FCA0
// ---------- DONE INJECTING ----------
"general.exe"+11FC74: 80 7D FF 00 - cmp byte ptr [ebp-01],00
"general.exe"+11FC78: 75 26 - jne general.exe+11FCA0
"general.exe"+11FC7A: 8D 45 D0 - lea eax,[ebp-30]
}
|
_________________
... |
|
Back to top |
|
|
tedomedo Advanced Cheater Reputation: 0
Joined: 27 Jul 2008 Posts: 53
|
Posted: Sat Apr 01, 2017 5:08 am Post subject: |
|
|
Thanks. Well, i don't know anything about codes. What should i do?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Sat Apr 01, 2017 5:43 am Post subject: |
|
|
0x78 is 120
this code checks if the turn is 120, and if so, execute the code at "general.exe"+11FC74 which causes the game to end
what you can do is just run the auto assembler code cake-san has given and it won't do that.
Alternatively from looking at the code, if you find the year counter(1 byte value) and change it to 121, it won't ever trigger as well
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
tedomedo Advanced Cheater Reputation: 0
Joined: 27 Jul 2008 Posts: 53
|
Posted: Sat Apr 01, 2017 6:22 am Post subject: |
|
|
Please, give more detailed manual for auto assembler, i know nothing about it.
I found address general.exe+11FC74 in memory viewer. Opcode in it is "cmp byte ptr [ebp-01],00". Now what?
|
|
Back to top |
|
|
Cake-san Grandmaster Cheater Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Mon Apr 03, 2017 10:51 pm Post subject: |
|
|
tedomedo wrote: | Please, give more detailed manual for auto assembler, i know nothing about it.
|
Ctrl+Alt+A on CE to open up Auto assemble window -> copy and paste the script that I had given into that window -> Execute or you can File -> Assign to current table...
Just like what @Dark Byte had mentioned, there are many options/ways to archived that same effect/goal...
_________________
... |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25295 Location: The netherlands
|
Posted: Tue Apr 04, 2017 2:23 am Post subject: |
|
|
out of curiosity though, what happens on year 128 ? (seeing it's a 1 byte value it could turn negative)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
tedomedo Advanced Cheater Reputation: 0
Joined: 27 Jul 2008 Posts: 53
|
Posted: Thu Apr 06, 2017 3:28 pm Post subject: |
|
|
I just entered and executed the code but the game gives "RichEdit line insertion error" message and then countries stop attacking.
Also sometimes changing 1bit value 119 to 121 doesn't work. Game stops and i get windows message that game is ended.
|
|
Back to top |
|
|
|