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 


I need HELP editing this script [FTL]

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

Joined: 13 Aug 2013
Posts: 44

PostPosted: Sun Sep 21, 2014 9:50 pm    Post subject: I need HELP editing this script [FTL] Reply with quote



I have a table to increase stats for crew in FTL, but I am unable to figure out how to get the states of each char to max out even faster like max out within 1 action?
I've been trying to figure out how to increase this but I haven't been able to fix it so far without the game crashing.
Can someone help me out here?
Code:
 AoBScan( crewstats, FF 00 8B 44 24 14  ) /* .text:004E681C               inc    dword ptr [eax]
                                            .text:004E681E               mov    eax, [esp+6Ch+var_58]*/

[ENABLE]
alloc(newmem, 256) //Allocate space for the code cave.
label(exit) //Create an address for the jump.

crewstats-6: //Create the hook.
jmp newmem //Jmp to the new mem.
nop //Space it out so the exit lands in the right place.
exit: //Set our exit label.

newmem:
add eax,[ecx+00000210] //Original Code
inc [eax] //Add 1
inc [eax] //Add 1
inc [eax] //Add 1
jmp exit //Return

[DISABLE]
dealloc(newmem)
dealloc(exit)

crewstats-6:
add eax,[ecx+00000210] //Original Code

_________________
MAO MAO MAO!


Last edited by Conker on Mon Sep 22, 2014 8:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Mon Sep 22, 2014 3:26 am    Post subject: Reply with quote

It does an aobscan and replaces the instruction 6 bytes in front of it with a jump to newmem where it increases eax with 3
_________________
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
Conker
Cheater
Reputation: 0

Joined: 13 Aug 2013
Posts: 44

PostPosted: Mon Sep 22, 2014 3:51 am    Post subject: Reply with quote

Dark Byte wrote:
It does an aobscan and replaces the instruction 6 bytes in front of it with a jump to newmem where it increases eax with 3


Eehhh....and what does that mean in layman's terms? and how would I increase the effect to max it out in 1 action?

I'm not that great with scripts so I'm not sure what to add to increase this stat without crashing the game. Could you point out what I need to edit to increase this value?

_________________
MAO MAO MAO!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed Sep 24, 2014 3:59 am    Post subject: Reply with quote

That is all i can say about it.
Try adding a few more inc [eax] lines

_________________
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
Conker
Cheater
Reputation: 0

Joined: 13 Aug 2013
Posts: 44

PostPosted: Wed Sep 24, 2014 7:29 pm    Post subject: Reply with quote

Dark Byte wrote:
That is all i can say about it.
Try adding a few more inc [eax] lines


Alright, I'll just try that.

Edit: It worked thank you, and here I was editing another part of the script that caused it to crash. Thanks again

_________________
MAO MAO MAO!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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