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 


Why does Spec Ops: The Line crash?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
deadendthrills
How do I cheat?
Reputation: 0

Joined: 14 Feb 2016
Posts: 4

PostPosted: Sun Feb 14, 2016 5:16 am    Post subject: Why does Spec Ops: The Line crash? Reply with quote

I've been using Cheat Engine on Spec Ops: The Line to control things like character position and camera. Problem is that the game keeps crashing, even though the scripts themselves work correctly. Even if you run a script that just jumps to a code cave and back, the game will:

a) crash upon trying to load a level or often cutscenes
b) crash after a certain amount of time

I've tried using stealthedit but it made no difference. I tried using stealthedit to find integrity checks but nothing came up. I'm also not nearly good enough to know precisely what I'm looking for.

Any ideas what I should do next?

Spec Ops: The Line does have multiplayer but it's a tacked-on affair no one plays any more. I'm surprised the servers are still up. It's essentially a singleplayer game, which is what I'm trying to modify.
Back to top
View user's profile Send private message
Negima
I post too much
Reputation: 5

Joined: 22 May 2007
Posts: 2221

PostPosted: Sun Feb 14, 2016 8:04 am    Post subject: Reply with quote

try creating an alternative code
Back to top
View user's profile Send private message Visit poster's website
deadendthrills
How do I cheat?
Reputation: 0

Joined: 14 Feb 2016
Posts: 4

PostPosted: Sun Feb 14, 2016 9:09 am    Post subject: Reply with quote

I've tried multiple opcodes and multiple methods and scripts. Same issue arises.

EDIT: Did a bit more digging. Turns out it's only the scripts which use cmp to filter out values which cause the crashes. Take those filters out and the game runs normally. Doesn't really help, unfortunately, as I haven't found a way to inject new values without filtering.

EDIT: Thought I'd make this a bit more useful with some images. One shows the code I'm interested in, and the other is the quick test script. Taking the cmp function out lets the game run as normal, but leave it in and the game will crash after a few minutes, or the moment you try to load a level.



ops2.jpg
 Description:
 Filesize:  202.7 KB
 Viewed:  14938 Time(s)

ops2.jpg



ops1.jpg
 Description:
 Filesize:  201.01 KB
 Viewed:  14938 Time(s)

ops1.jpg


Back to top
View user's profile Send private message
Matze500
Expert Cheater
Reputation: 8

Joined: 25 Jan 2012
Posts: 241
Location: Germany

PostPosted: Tue Feb 16, 2016 4:01 am    Post subject: Reply with quote

As far as I know the game has an anti-cheat. That may cause the crashes.

Greets Matze

_________________
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: Tue Feb 16, 2016 6:17 am    Post subject: Reply with quote

shouldn't it be like this ? Confused
Code:

newmem:
mov eax,[esi+ecx*4-08]
mov [edi+ecx*4-08],eax
cmp [edi-60],(float)72
jne originalcode
mov [cam],edi

originalcode:
jmp exit

I'm sorry if I'm wrong = I

_________________
...
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Feb 16, 2016 6:23 am    Post subject: Reply with quote

The problem is you are inside memcpy function. It is used for many things. It copies memory region.

Check CPU stack for return pointer to get position of caller.

You will see a few push commands and a call to memcpy.

first push is size, second source pointer and third destination pointer.

_________________
Back to top
View user's profile Send private message MSN Messenger
deadendthrills
How do I cheat?
Reputation: 0

Joined: 14 Feb 2016
Posts: 4

PostPosted: Tue Feb 16, 2016 2:12 pm    Post subject: Reply with quote

You'll have to forgive my ignorance here. How do I find the return pointer in the CPU stack?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Tue Feb 16, 2016 4:04 pm    Post subject: Reply with quote

How did you find that injection point? You added address to the list and made "find out what ....". Right?

Highlight opcode, click more information, then click "S" button to see the stack. Fourth line should be the return address.

_________________
Back to top
View user's profile Send private message MSN Messenger
deadendthrills
How do I cheat?
Reputation: 0

Joined: 14 Feb 2016
Posts: 4

PostPosted: Thu Feb 18, 2016 4:43 pm    Post subject: Reply with quote

Okay, I did that and found the three push instructions. Where do I go from here?
Back to top
View user's profile Send private message
finnegan waking up
How do I cheat?
Reputation: 13

Joined: 05 Aug 2014
Posts: 0

PostPosted: Wed Feb 24, 2016 5:08 pm    Post subject: Reply with quote

i think you can patch the exe for the anticheat to get off.
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