View previous topic :: View next topic |
Author |
Message |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1520
|
Posted: Sun Sep 29, 2019 5:21 am Post subject: Related to Trainer and Lua Script |
|
|
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.
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.
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25794 Location: The netherlands
|
Posted: Sun Sep 29, 2019 6:29 am Post subject: |
|
|
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 |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1520
|
Posted: Sun Sep 29, 2019 7:16 am Post subject: |
|
|
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
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25794 Location: The netherlands
|
Posted: Sun Sep 29, 2019 9:20 am Post subject: |
|
|
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 |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1520
|
Posted: Sun Sep 29, 2019 10:36 am Post subject: |
|
|
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.
_________________
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Sep 29, 2019 11:52 am Post subject: |
|
|
- 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 |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1520
|
Posted: Sun Sep 29, 2019 5:31 pm Post subject: |
|
|
@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?
_________________
Last edited by AylinCE on Sun Sep 29, 2019 5:40 pm; edited 1 time in total |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25794 Location: The netherlands
|
Posted: Sun Sep 29, 2019 5:38 pm Post subject: |
|
|
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 |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1520
|
Posted: Sun Sep 29, 2019 5:59 pm Post subject: |
|
|
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.
_________________
|
|
Back to top |
|
 |
|