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 


Related to Trainer and Lua Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Sun Sep 29, 2019 5:21 am    Post subject: Related to Trainer and Lua Script Reply with quote

Greetings again.

Something recently caught my attention!
"Division by zero!" Why am I seeing this?

I have a Trainer that I constantly update.
3,800 lines of Lua Script and 2.70 MB .CT.
It will be difficult to rewrite. Smile

The problem starts when I close "UDF1 Edit".
As a result of opening and closing the "UDF1 Edit" again:
"Division by zero!" I get a warning.

Is there something missing?
Thanks in advance for the info.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 29, 2019 6:29 am    Post subject: Reply with quote

How do you create UDF1m using createForm?
if so, then don't close it but hide it
else add UDF1.OnClose=nil so the autodestroy doesn't run in close

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Sun Sep 29, 2019 7:16 am    Post subject: Reply with quote

Sorry. I may have misrepresented it.
I was wrong to choose words.
I'm getting it again:
Form: CE >> Table >> Create Form >> UDF1, made with.
I mean, a normal CT. (Such as UDF1.CEButton1 or UDF1.CEMemo1)
My problem: Occurs when UDF1 closes the edit window.
When I want to open the UDF1 editing window again,
"Division by zero!" error and the "Edit" window does not open.
Maybe I'm loading a lot with 3,800 lines.
There is no warning about where the error is.
Only; "Division by zero!" there is.

--------------------------------------------------

When I tested the solutions, I followed this.
1) I open Trainer .CT,
2) Open the "Edit" window of UDF1.
3) I am changing the Key or Label to be changed.
4) Close the "Edit" window.
5) Click "Execute Script".
6) I am registering .CT.
7) Closing CT.

This solution works.
I can't edit UDF1 >> 2 times at a time.
Instead, each embodiment would apply the above seven items.

Because when I try to edit a second time;
"Division by zero!" error is coming.
Hopefully, I was able to explain now Sad

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 29, 2019 9:20 am    Post subject: Reply with quote

find the ce exe and check the build number
is it lower than 6007 redownload ce

_________________
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


Last edited by Dark Byte on Sun Sep 29, 2019 10:39 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Sun Sep 29, 2019 10:36 am    Post subject: Reply with quote

Dark Byte wrote:
find the cw exe and check the build number
is it lower than 6007 redownload ce


I'm sorry, I don't understand that.
I searched a file on the PC for "cw" and was not found.
In addition to the issues I had an annotation;

1) I opened the CT file.
2) Click on UDF1 >> Edit.
3) I have moved a button and Label.
4) I closed the edit window.
5) Clicked "Execute Script". .CT was working properly.
6) I saved .CT with different name with "Save As .."
7) I opened the .CT file I saved differently, it gave an error.

Error message:
"Failure loading the trainer. Reason: This is not a valid cheat table. (Division by zero)"

Original .CT open in front of me,
but the edit is not saved and gives an error.

It will be quite difficult to prepare a new Trainer. Sad

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Sep 29, 2019 11:52 am    Post subject: Reply with quote

- Open your CE folder where it's installed to.
- Find the CE exe's.
- Right-click them and choose 'Properties'.
- Click on Details info tab.

You should see the file versions here. Check the last 4 digits of the version and see if it is lower than 6007.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Sun Sep 29, 2019 5:31 pm    Post subject: Reply with quote

@atom0s, Thanks for detail.
Version last 4 digits: 5808

What does that mean?
I prepared the trainer with this CE.
I arranged and shared 8-10 times.
But now there is such a problem.

------------- EDIT:
Note:
In the last arrangement, I uploaded 43 images to CT.
This Trainer made a difference of 1,500 KB.
One more note:
The names of the pictures start with "10.png", "11.png".
When I uploaded it to .CT, the names were "_10.png", "_11.png".
I also provide these details.
Where does the error come from?

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past


Last edited by AylinCE on Sun Sep 29, 2019 5:40 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 29, 2019 5:38 pm    Post subject: Reply with quote

hm, that's not a new bug then

In the formdesigner save your form using "save LFM" which is a textreadable version of your form.
Perhaps it contains some clue as to why it divides by 0

Do you use anchors?

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1520

PostPosted: Sun Sep 29, 2019 5:59 pm    Post subject: Reply with quote

Now I've recorded it as "lfm".
But he made the same mistake again!
"Division by zero"

I think I need to edit again.
70 Buttons, 130 pictures, 3,800 lines of code, 5 different languages.
My only consolation; I can reach 3,800 lines of code.
I just need to do the form again. Smile

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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