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 


[HELP]How Lua Script Button Function get this GUI At Name
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
acgofficial
Cheater
Reputation: 0

Joined: 14 Aug 2018
Posts: 36

PostPosted: Sun Aug 19, 2018 7:16 pm    Post subject: Reply with quote

Corroder wrote:
Quote:
CheatEngine [Ctrl+Alt+S]Save "exe" Build File.exe
I don't know why didn't start it after not reaction.
But,I see Window the background Process "File.exe" presence of.
File.exe the GUI not Show...

And...At this time,I Save CheatEngine the project,In addition, CheatEngine always throws an exception "Division by zero"



I am not found problem when save ct file as stand alone exe file. Using CTRL + ALT + S, then save as exe file. I am use CE Version 6.8.1
However, to save a CT Table as an exe file, check and considering some points :

1. Did you really need save your CT Table as an exe file ?
2. Did your codes / script are errors free ?
3. Did you created GUI form and it's components correctly ?
4. etc

Division by zero mean something or variables such as string, number, boelan, etc divide by zero ( 0 or nil ). This is math statement. Everything divide by zero will give resulr as infinity or error.

In case CE error message 'divide by zero' caused by many aspects, such as :

1. execute cheat table made use higher CE version using CE old version
2. Run lua script before editing CE Form
3. Scripts / Codes contain error(s)
4. etc

Try to solve :
go to start->programs->cheat engine 5.4->Reset settings
and then re-start CE

in lua script as example to descript divide by zero will give error, a function to detect zero div :

Code:
function div(a,b)
  quot = a/b
  if quot == 1/0 then error() end
  return quot
end

-- test
a = 10
b = 2
c = div(a,b)
print(c)    ---- result is : 5.0

a = 10
b = 0
c = div(a,b)
print(c)    ---- result is : error message 'undefined lua error'


Anyhow, why you aren't post your script here to show what are you trying to do and then let members on this forum to solve the problem ?.

Cheers

Shocked But, I don't know who is an error, throw an exception who also did not give any hint of the code number of rows went wrong.
So that I can't judge what to fix this Script the Code Bug.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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