|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Binks How do I cheat? Reputation: 0
Joined: 24 Apr 2012 Posts: 2
|
Posted: Tue Apr 24, 2012 9:20 pm Post subject: EditBox + Button WriteInt issue. |
|
|
I'm using the GetProperty feature to grab info from an edit box to write a value to an address and it's working great!... for the first two edit boxes. I know the addresses are right as I can edit them directly in Cheat Engine and see changes. The issue is the trainer isn't even setting the value on the address. I don't understand why. Here's the main chunk of code. I havn't set proper names yet because i'm just trying to debug why it isn't work. Cleaning it up comes later. =.=
Code: | strings_add(getAutoAttachList(), "blah.exe")
gBeepOnAction=false
form_show(CETrainer)
function AboutClick()
showMessage(gAboutText)
end
gAboutText=[[Weapon Hack: sets the progress of the vast majority of weapon challenges to max value,
meaning all you have to do is get a kill with each weapon to complete the challenge.
(No shotguns/secondaries, im lazy)
I may do more to this trainer later, I just realized no one updated theirs, so I made a quick one.
]]
function CEButton1Click(sender)
writeInteger("01DAC164", getProperty(CETrainer_CEEdit1,"Text"))
end
function CEButton2Click(sender)
writeBytes("01DADFC3", getProperty(CETrainer_CEEdit2,"Text"))
end
function CEButton3Click(sender)
writeBytes("01DAC16C", getProperty(CETrainer_CEEdit3,"Text"))
end
function CEButton4Click(sender)
writeBytes("01DAC194", getProperty(CETrainer_CEEdit4,"Text"))
end
function CEButton5Click(sender)
writeByes("01DAC19C", getProperty(CETrainer_CEEdit5,"Text"))
end
function CloseClick()
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end
function CEButton6Click(sender)
writeByes("01DAC170", getProperty(CETrainer_CEEdit6,"Text"))
end
function CEButton7Click(sender)
writeByes("01DAC1C8", getProperty(CETrainer_CEEdit7,"Text"))
end
function CEButton8Click(sender)
writeByes("01DAC1CC", getProperty(CETrainer_CEEdit8,"Text"))
end |
Issue is, only the first two actually write to the addresses! the rest do nothing. I've made sure that the buttons in the designer are set to the correct functions. Then I Pop back over to the LUA box, Ctrl + S. save as EXE or CTTrainer, and either way only the first two work. No errors pop up either. any ideas?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Tue Apr 24, 2012 9:55 pm Post subject: |
|
|
Add a print command to each click and see if they are actually called.
tip: don't bother creating a trainer until the .ct works (don't forget to click on execute and close the designer before testing)
_________________
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 |
|
|
Binks How do I cheat? Reputation: 0
Joined: 24 Apr 2012 Posts: 2
|
Posted: Tue Apr 24, 2012 10:27 pm Post subject: |
|
|
Interesting, the button isn't even getting called when I click on it, I should of thought to check that but I figured it would work with no issues. Is there a way to 100% make sure it will work when I click the button? Because right now all I can see is assigning the function to the button. Which I do! ...but alas it's not assigning it right?
I'm rather stumped here, everything should be working without a hitch. Is there another way to assign a function to a button click, that's not this rather buggy GUI editor?
Nevermind, I got it. For some reason it wasn't actually SAVING their functions, I had to do one at a time, and save after each one. Odd.
Thanks for pointing me to look at the buttons themselves!
|
|
Back to top |
|
|
|
|
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
|
|