Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Change or disable game length for russian game General

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
tedomedo
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2008
Posts: 53

PostPosted: Fri Mar 31, 2017 3:51 am    Post subject: Change or disable game length for russian game General Reply with quote

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
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Sat Apr 01, 2017 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
tedomedo
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2008
Posts: 53

PostPosted: Sat Apr 01, 2017 5:08 am    Post subject: Reply with quote

Thanks. Well, i don't know anything about codes. What should i do?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Sat Apr 01, 2017 5:43 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
tedomedo
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2008
Posts: 53

PostPosted: Sat Apr 01, 2017 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Mon Apr 03, 2017 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25295
Location: The netherlands

PostPosted: Tue Apr 04, 2017 2:23 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
tedomedo
Advanced Cheater
Reputation: 0

Joined: 27 Jul 2008
Posts: 53

PostPosted: Thu Apr 06, 2017 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites