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 


This command returns invalid Class Object CE 6.5.1

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Sat Aug 27, 2016 2:04 pm    Post subject: This command returns invalid Class Object CE 6.5.1 Reply with quote

I just simply want to unfreeze a value from a table so it can write and then freeze the value again so it sticks. This is what I'm using to do it:
Code:

    getAddressList().getMemoryRecord(3)
    memoryrecord_unfreeze(CheatEntry)
    getAddressList().getMemoryRecord(6)
    memoryrecord_unfreeze(CheatEntry)
    getAddressList().getMemoryRecord(7)
    memoryrecord_unfreeze(CheatEntry)
    getAddressList().getMemoryRecord(8)
    memoryrecord_unfreeze(CheatEntry)
    getAddressList().getMemoryRecord(9)
    memoryrecord_unfreeze(CheatEntry)
    writeBytes("SOME ADDRESS1",intspeciesByte1,intspeciesByte2)
    writeBytes("SOME ADDRESS2",intatk1Byte1,intatk1Byte2)
    writeBytes("SOME ADDRESS3",intatk2Byte1,intatk1Byte2)
    writeBytes("SOME ADDRESS4",intatk3Byte1,intatk1Byte2)
    writeBytes("SOME ADDRESS5",intatk4Byte1,intatk1Byte2)
    getAddressList().getMemoryRecord(3)
    memoryrecord_freeze(CheatEntry)
    getAddressList().getMemoryRecord(6)
    memoryrecord_freeze(CheatEntry)
    getAddressList().getMemoryRecord(7)
    memoryrecord_freeze(CheatEntry)
    getAddressList().getMemoryRecord(8)
    memoryrecord_freeze(CheatEntry)
    getAddressList().getMemoryRecord(9)
    memoryrecord_freeze(CheatEntry)


After the address unfreeze occurs, I get an invalid class object error followed by a stack overflow error. This worked in earlier versions of CE, so I think the command syntax possibly changed a bit... Thank you in advanced.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Aug 27, 2016 3:01 pm    Post subject: Reply with quote

CheatEntry looks null to me.
Back to top
View user's profile Send private message
Reclaimer Shawn
Advanced Cheater
Reputation: 0

Joined: 09 Jun 2015
Posts: 77

PostPosted: Sat Aug 27, 2016 3:39 pm    Post subject: Reply with quote

Zanzer wrote:
CheatEntry looks null to me.

Then, how exactly would I accomplish what I need? In my application, I want to freeze and unfreeze an address at will. In older versions of CE, you could include a cheat table, get its index, and freeze/unfeeze said index at will. How is that done in CE 6.5.1?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Aug 27, 2016 5:38 pm    Post subject: Reply with quote

Same way. Although you never needed to unfreeze the entry.
Code:
getAddressList().getMemoryRecord(3).Value = 0x9090

Anyway, as I stated earlier, CheatEntry never gets populated with your code.
Code:
CheatEntry = getAddressList().getMemoryRecord(3)
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 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