| View previous topic :: View next topic |
| Author |
Message |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Fri Feb 10, 2017 3:56 pm Post subject: Crashing games using CE help |
|
|
There are SP games that crash whenever I use cheat engine or when I attach CE's debugger to make more advance cheats. For example, Borderlands 2(? can't remember which one) and many others. It's like it has DRM, which it should not have coz it's an SP game. So I wanna ask the experts here what steps I could take to prevent the game from crashing. I tried using different versions of CE or different debugger method to no avail. Mind you that simple cheats that don't require a debugger work.
Waiting for cheat makers to make the cheat sometimes takes too long or even being not made at all so I wanna learn how to do this on my own. A reference game that I'm playing right now that crashes is Disgaea 2. I made an exp multiplier using the knowledge I learned here( thanks again CE experts ) and it works but the game crashes randomly. Sometimes when I attach the debugger, during battle or after a battle. The crashes are so random that I don't know what's the cause. The game never crashes without the multiplier though so I'm pretty it's the multiplier that I made.
This is the format (not exact) that I made the exp multiplier with
sub edc,eax+4
imul edc,edc,7
add eax+4,edc
Last edited by akimikage on Fri Feb 10, 2017 4:12 pm; edited 1 time in total |
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Feb 10, 2017 4:09 pm Post subject: |
|
|
| VEH debugger. Page exceptions breakpoint method for really stubborn targets.
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Fri Feb 10, 2017 9:58 pm Post subject: |
|
|
The game still crashes with that debugging method. I think it's the multiplier I made rather than the debugging itself coz it crashes even after I already injected the code and edit how the address writes.
Edit : I've experimented a lot w/ Disgaea 2 and the crashes are so random and I came to conclusion that it's really the game that's the problem and not CE. The crashes occurs after battle or during and sometimes after 2 or 3 battles . Anyone got any advice on how to prevent crashes with games like these?
|
|
| Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Sat Feb 11, 2017 3:20 am Post subject: |
|
|
Have you tried only attaching the debugger and seeing if the game crashes?
You've done code injection, but are you sure the function is only being used for the exp multiplier ?
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Sat Feb 11, 2017 5:56 am Post subject: |
|
|
Yes, sometimes the game crashes right after I press yes to the prompt "attaching debugger. Continue?" although I get past that most of the times. The exp multiplier that I made is actually used by any character that earns exp by killing an enemy and not for a specific character. I'm not sure if it's being used other than that though. Is there a way to know that?
Exp is the only thing multiplied as far as I could tell
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sat Feb 11, 2017 6:03 am Post subject: |
|
|
Disgaea 2 doesnt have any anticheat/debug. Its the easiest game you will ever hack with structures all laid out nice.
Its you
_________________
|
|
| Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Sat Feb 11, 2017 6:13 am Post subject: |
|
|
| akimikage wrote: | I'm not sure if it's being used other than that though. Is there a way to know that?
Exp is the only thing multiplied as far as I could tell |
Put a breakpoint on an opcode of the function and see when it breaks (not just when u gain exp ? and even then, it doesn't prove that it just works with exp but if it breaks whenever and the variable read insn't exp, it proves the opposite).
Or find the opcode that reads the variable where the exp is stored, right click this opcode and 'find out what this opcode accesses" or something like this, which will show you all the variables this opcode is reading (if it only reads exp and if it only multiplies the variable that it read then yes, It works solely with exp).
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Sat Feb 11, 2017 6:28 am Post subject: |
|
|
| STN wrote: | Disgaea 2 doesnt have any anticheat/debug. Its the easiest game you will ever hack with structures all laid out nice.
Its you |
Yes, thank you for pointing out my inexperience. I'm not just talking about Disgaea 2 in particular though. There was/were SP games before that just targeting the process makes it crash.
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sat Feb 11, 2017 6:46 am Post subject: |
|
|
I thought this was about disgaea2.
You should be fine with vehdebug for most games. Make sure you're on latest version of CE as well.
If the game crashes after enabling script (even after sometime) maybe your script isn't right? I don't know how to help, i have made an xp multiplier for the same game and it works fine, maybe youre injecting in wrong place.
Post your script?
_________________
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Sat Feb 11, 2017 6:56 am Post subject: |
|
|
| ulysse31 wrote: |
Put a breakpoint on an opcode of the function and see when it breaks (not just when u gain exp ? and even then, it doesn't prove that it just works with exp but if it breaks whenever and the variable read insn't exp, it proves the opposite).
Or find the opcode that reads the variable where the exp is stored, right click this opcode and 'find out what this opcode accesses" or something like this, which will show you all the variables this opcode is reading (if it only reads exp and if it only multiplies the variable that it read then yes, It works solely with exp). |
Okay, tried things with your advice and here's the result :
(Without injecting a code)
Put a breakpoint and the game crashed after I killed an enemy and the list turned red which could mean it reached that point and broke it
Put a breakpoint after the battle and wondered the base and done things like buy stuff and other things and it still crashed but the list did not turn red
Used the "find out what this opcode accesses" and it crashed during battle
Made a multiplier for "Mana" which is a simple injection of add xxxx, xxxx+x code and it still crashed
The crashes occurred without me injecting a new code so that just made me more confused coz I thought it's the code that's causing the crash.
| STN wrote: | I thought this was about disgaea2.
You should be fine with vehdebug for most games. Make sure you're on latest version of CE as well.
If the game crashes after enabling script (even after sometime) maybe your script isn't right? I don't know how to help, i have made an xp multiplier for the same game and it works fine, maybe youre injecting in wrong place.
Post your script? |
No, I'm only using Disgaea 2 coz it's the latest game I've encountered with this problem. There were other games before. As for the codes, this is my code (It's not a script coz I don't know how to make one yet):
sub ecx,[eax]
imul ecx,ecx, N(any number)
add [eax],ecx
The weird thing about this code is if I put N=124, the game doesn't crash after 2 to 3 battles but if I put a lower number it often crashes during a battle or after that. Also like above, I made a multiplier for "mana" and it's a pretty simple "add xxx,xxx+x" and it still crashed. Can you post your script so I can test it if it will crash my game
|
|
| Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Sat Feb 11, 2017 7:22 am Post subject: |
|
|
Iam confused :
| Code: | | The game [u]never[/u] crashes without the multiplier though so I'm pretty it's the multiplier that I made |
But now you're saying that simply attaching debugger will crash it.
Have you tried each of the debugger CE provides ? (I suppose you haven't trie dbvm which would be normal), veh and windbg both crash your process over time simply by adding a breakpoint ?
What is your OS, and what is your processor ? Do you use hardware breakpoints ? Have you noticed a difference compared to using software BP?
Is it just the PS2 emulator that crashes when you attach or also standard programs running on your PC?
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Sat Feb 11, 2017 7:55 am Post subject: |
|
|
By that I mean running the game without any advance cheat like just editing the HP value. Yes, I've tried all of the debugging methods and the result is the same. I'm playing the PC version of Disgaea 2 and not the PS2 emu one and the game is the only that crashes.
I'm using Win 7 64 and i3 4160. What's software BP?
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 11, 2017 8:00 am Post subject: |
|
|
| As originally suggested, you sometimes have to change debugger method AND breakpoint method to avoid crashes.
|
|
| Back to top |
|
 |
akimikage Cheater
Reputation: 0
Joined: 04 Nov 2009 Posts: 38
|
Posted: Sat Feb 11, 2017 8:25 am Post subject: |
|
|
I don't think it's the debugging method or breakpoint coz I tried every combination possible and it still crashes.
I have an idea but I don't know how to execute it. Because sometimes the game doesn't crash immediately and I can still inject a code, I want a method that can repeat injecting that code in the same place but without attaching the debugger again.
First, I find the address then inject the code then exit the game. Re-run it but inject the code without attaching the debugger again and see if that will stop the crashing but I don't know how to 0_0
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 11, 2017 8:43 am Post subject: |
|
|
You can inject code undetected. One way is by using SE plugin.
Attaching debugger (e.g. to check what writes/accesses) can cause crashing, even without anti-cheat/anti-debugger mechanisms in place, and even with VEH/page exceptions.
Sometimes, targets just crash because of the injection location that you are trying to hook. You can attempt to mitigate crashes in these isolated cases by choosing a different injection point.
Other than that, since others have reported a different experience with the same target, I would start with that and try to determine why that is before trying to come up with any odd-ball workarounds.
|
|
| Back to top |
|
 |
|