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 


Stuck, Need help!

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

Joined: 07 Apr 2015
Posts: 38

PostPosted: Thu Apr 06, 2017 2:23 am    Post subject: Stuck, Need help! Reply with quote

I am trying to create a trainer for a game called Super Neo Pug. Currently i am following a tutorial on this forum. But i'm stuck.
My code
Code:
AboutText=[[Trainer for pug]]

form_show(UDF1)
getAutoAttachList().add("SuperNeoPug.exe")

function CloseClick()
  closeCE()
  return caFree
end

UDF1.OnClose = CloseClick

addresslist=getAddressList()
function CEButton1Click(sender)
showMessage("Trainer for Super Neo Pug")
end

function PugPointsClick(sender)
writeInteger("SuperNeoPug.exe+12ECBD0", getProperty(UDF1.PugPoints,"Text"))
end


The problem right now is that my trainer is not working, i think it is because i have offsets that i don't have in my code and i think that i'm doing something more wrong.

My offset: http://imgur.com/OGTajnt
What i have in my cheat table: http://imgur.com/AEUikU7

Tutorials i have been following:
http://forum.cheatengine.org/viewtopic.php?t=579440
https://www.youtube.com/watch?v=j-uSFCKwQ9I&t=892s

Could someone guide to the right path again?
Thank you!
Cool
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Thu Apr 06, 2017 8:53 am    Post subject: Reply with quote

Code:
function PugPointsClick(sender)
  writeInteger("[[[[[SuperNeoPug.exe+12ECBD0]+408]+668]+100]+18]+80", tonumber(UDF1.PugPoints.Text))
end

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
512MB
Cheater
Reputation: 0

Joined: 07 Apr 2015
Posts: 38

PostPosted: Fri Apr 07, 2017 11:08 am    Post subject: Reply with quote

ParkourPenguin wrote:
Code:
function PugPointsClick(sender)
  writeInteger("[[[[[SuperNeoPug.exe+12ECBD0]+408]+668]+100]+18]+80", tonumber(UDF1.PugPoints.Text))
end


Thank you but could you give me some more information? About the script?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Fri Apr 07, 2017 3:13 pm    Post subject: Reply with quote

  • writeInteger - a function that writes a 4-byte integral value to an address in the target.
  • "[[[[[SuperNeoPug.exe+12ECBD0]+..." - the address to write the data to.
  • tonumber - a function that converts an argument (i.e. a string) to a number.
  • UDF1 - the name of a form.
  • PugPoints - the name of an edit box.
  • Text - the Text property of an edit box.

CE's address handler can parse a string as an address. If the address is in the form of a pointer path, CE will follow the pointer path as it is defined in the string. Square brackets act as a dereference operator. For more information about how pointers work, see this forum and/or this topic.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
512MB
Cheater
Reputation: 0

Joined: 07 Apr 2015
Posts: 38

PostPosted: Sat Apr 08, 2017 12:29 am    Post subject: Reply with quote

ParkourPenguin wrote:
  • writeInteger - a function that writes a 4-byte integral value to an address in the target.
  • "[[[[[SuperNeoPug.exe+12ECBD0]+..." - the address to write the data to.
  • tonumber - a function that converts an argument (i.e. a string) to a number.
  • UDF1 - the name of a form.
  • PugPoints - the name of an edit box.
  • Text - the Text property of an edit box.

CE's address handler can parse a string as an address. If the address is in the form of a pointer path, CE will follow the pointer path as it is defined in the string. Square brackets act as a dereference operator. For more information about how pointers work, see this forum and/or this topic.


Thank you so much for your help!
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