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 


CE 6.5 attempt to call a nil value (field 'mod')

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
samtrainers87
Newbie cheater
Reputation: 0

Joined: 11 Jan 2016
Posts: 11
Location: Germany

PostPosted: Mon Jan 11, 2016 8:37 am    Post subject: CE 6.5 attempt to call a nil value (field 'mod') Reply with quote

Hi,
I have encountered a error when i try to activate the hack

This is the exact error message:

Code:
Error:[string "function FormClose(sender)
..."]:16: attempt to call a nil value (field 'mod')


Can someone help me with this?

maybe need to change something in the lua script?



2016-01-11 15_49_00-Lua script_ Cheat Table.png
 Description:
 Filesize:  31.09 KB
 Viewed:  14258 Time(s)

2016-01-11 15_49_00-Lua script_ Cheat Table.png



ERROR.png
 Description:
 Filesize:  12.27 KB
 Viewed:  14276 Time(s)

ERROR.png


Back to top
View user's profile Send private message Yahoo Messenger
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Mon Jan 11, 2016 10:05 am    Post subject: Re: CE 6.5 attempt to call a nil value (field 'mod') Reply with quote

samtrainers87 wrote:
Hi,
I have encountered a error when i try to activate the hack

This is the exact error message:

Code:
Error:[string "function FormClose(sender)
..."]:16: attempt to call a nil value (field 'mod')


Can someone help me with this?

maybe need to change something in the lua script?


Use the modulo operator '%',there is no math.mod in Lua.

Code:
IN % B
Back to top
View user's profile Send private message
samtrainers87
Newbie cheater
Reputation: 0

Joined: 11 Jan 2016
Posts: 11
Location: Germany

PostPosted: Mon Jan 11, 2016 11:03 am    Post subject: CE 6.5 attempt to call a nil value (field 'mod') Reply with quote

hi,i tryed with modulo operator IN % B but im still getting the same error
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 468

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

PostPosted: Mon Jan 11, 2016 11:21 am    Post subject: Reply with quote

try math.fmod

or replace function dec_hex with:
Code:

function DEC_HEX(IN) return string.format("%X", IN) end


Quote:

i tryed with modulo operator IN % B but im still getting the same error

At least the line number should be different, else you didn't edit the correct spot

_________________
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
samtrainers87
Newbie cheater
Reputation: 0

Joined: 11 Jan 2016
Posts: 11
Location: Germany

PostPosted: Tue Jan 12, 2016 4:24 am    Post subject: Reply with quote

it works now!Thank you all
Back to top
View user's profile Send private message Yahoo Messenger
TheChosenNoob69
How do I cheat?
Reputation: 0

Joined: 05 Jul 2016
Posts: 2
Location: Canada

PostPosted: Tue Jul 05, 2016 4:02 am    Post subject: Please help me! :( I'm desperate. Reply with quote

I downloaded a file and it had the Cheat engine icon on it, When you open it you have "Attach a process" I attached the plugin-container.exe. Then when i enable any hack it comes up with a Lua script and says the exact message. Sad Please help me Dark I beg you.


help.png
 Description:
 Filesize:  42.1 KB
 Viewed:  12447 Time(s)

help.png


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