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 


Table is malfunctioning on new computer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
En Passant
How do I cheat?
Reputation: 0

Joined: 13 Jan 2021
Posts: 2

PostPosted: Wed Jan 13, 2021 9:48 pm    Post subject: Table is malfunctioning on new computer Reply with quote

I'm not sure if this is a problem with the cheat table or the engine itself, but the creator of the table is of no help so I'm asking here.

I got a new computer recently, and I copied all of my files for CheatEngine 6.6 over from the old computer so I don't have to set everything up again (Also, there's no executable download for 6.6 on the site since it's not the most current version). The reason for that is the table I use was built for 6.4. If I use 7.2, the table compresses somehow, cutting off a lot of values and making it unusable.

I use CheatEngine for the Steam port of Sonic Adventure 2, which is notoriously bad, having launch issues that depend on what graphics card you're using, among other problems. It's possible that this problem is because of something dumb like that, too.

What happens is that when I load into a stage, I'm given error 43s ("Error:sa2lua/common.lua:43: attempt to perform arithmetic on a nil value (local 'address')"). On the old computer, it will give me a usually small amount (sometimes it's large) and then work past it to finish loading what it needs to load. On the new computer, it keeps throwing the errors constantly and never works. The old computer also sometimes gets an error 89 ("Error:sa2lua/objchain.lua:89: attempt to perform arithmetic on a nil value (global 'objaddr')") when CheatEngine attaches to the game, but it doesn't do anything.

Any ideas on what's going wrong?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 88

Joined: 06 Jul 2014
Posts: 2838

PostPosted: Wed Jan 13, 2021 10:52 pm    Post subject: Reply with quote

43 & 89 are line numbers IIRC. I'd look at sa2lua/common.lua & sa2lua/objchain.lua and figure out why they're generating errors.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
En Passant
How do I cheat?
Reputation: 0

Joined: 13 Jan 2021
Posts: 2

PostPosted: Thu Jan 14, 2021 1:11 pm    Post subject: Reply with quote

Ah. It has clearly been a while since I debugged anything, and I've never done it with CheatEngine or lua before.

The error in common.lua is in a function called LoadBinaryFile, and is happening within the for loop that I think writes the game file to into the table. The one in objchain.lua is the start of a function called NextObject(), where it uses a global variable.

I still don't know why that would have anything to do with my computer choice.

Also, is there a way to mention someone here? Upon further inspection, I found out that a) I was wrong about the actual author of the script, and b) the real author is on this forum (albeit, doesn't appear to be at all recently...)
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