| View previous topic :: View next topic |
| Author |
Message |
kurama371 How do I cheat?
Reputation: 0
Joined: 02 Aug 2018 Posts: 4
|
Posted: Tue Jun 14, 2022 10:54 am Post subject: Code filter causing game to crash |
|
|
the game im working on is 32 bit so i have to load the address list from disassembler and fix the broken addresses myself as mentioned in 2 diff threads i found here about crashes (cant post links), tho how would i actually find the correct address in the list?
I saved the addresslist to a file and all the addresses are in mygame.exe however when i set the debug to break on exception and hit start, the memory viewer opens a location in a dll and not the game executable
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Tue Jun 14, 2022 9:33 pm Post subject: |
|
|
use the option to break on unexpected exceptions.
with some luck it'll show you an instruction with an invalid cc in it and then remove that from the list and restart the game and try again
_________________
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 |
|
 |
kurama371 How do I cheat?
Reputation: 0
Joined: 02 Aug 2018 Posts: 4
|
Posted: Wed Jun 15, 2022 5:13 am Post subject: |
|
|
| Dark Byte wrote: | use the option to break on unexpected exceptions.
with some luck it'll show you an instruction with an invalid cc in it and then remove that from the list and restart the game and try again |
Exactly that is the problem, when it breaks at unexpected exceptions, the disassembler opens an address that is not in the module i selected (being the game's .exe). eg. the saved list that was loaded from disassembler are all in mygame.exe, and the break on unhandled exception opens the disassembler somewhere in somedll.dll, which are not included in the list.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Wed Jun 15, 2022 5:41 am Post subject: |
|
|
check the stacktrace
_________________
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 |
|
 |
kurama371 How do I cheat?
Reputation: 0
Joined: 02 Aug 2018 Posts: 4
|
Posted: Wed Jun 15, 2022 8:47 am Post subject: |
|
|
| Dark Byte wrote: | | check the stacktrace |
looking through the stacktrace in a few cases brought me to addresses of the game's exe, though im stuck at a point where i went through all the addresses in the stacktrace and even got rid of all the function calls that are even remotely close to the one shown in the stacktrace, but it still gets an exception at the same place (memory viewer shows "C000001D EXCEPTION_ILLEGAL_INSTRUCTION) opcode being "lea eax,[edi*4+0000000]"
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Wed Jun 15, 2022 9:12 am Post subject: |
|
|
look anywhere in the game's .exe for a misplaced CC byte (likely near the last call, but it's of course possible it affected a jump destination which makes it a lot more difficult)
_________________
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 |
|
 |
kurama371 How do I cheat?
Reputation: 0
Joined: 02 Aug 2018 Posts: 4
|
Posted: Wed Jun 15, 2022 9:46 am Post subject: |
|
|
| Dark Byte wrote: | | look anywhere in the game's .exe for a misplaced CC byte (likely near the last call, but it's of course possible it affected a jump destination which makes it a lot more difficult) |
i did find CC bytes at the bottom of the stacktrace in a dll but not in the game exe being
call
int3 (CC)
push 30
the stacktrace at the top for example is a
mov [00000000],00000000
with a jump being the instruction before, how do i handle that
|
|
| Back to top |
|
 |
|