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 


Data table extraction and use
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sun Apr 09, 2017 5:30 pm    Post subject: Reply with quote

Dark Byte wrote:
what ce version do you use ?
Do you have code with createNativeThread running in your ce in the background ?

do you use special characters in your descriptions ?

6.3
Not to my knowledge
Other than ?, --, >,=,# nothing that I would call special.
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Apr 09, 2017 5:37 pm    Post subject: Reply with quote

I don't even have a download for 6.3 anymore

and yeah, it's quite possible that it may have a bug.
perhaps I named it 'description' instead of 'Description' (6.3 may not be case insensitive on the first char like the newer ones)
or just a typo (e.g I often type descrption/descrition by accident)

_________________
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
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sun Apr 09, 2017 8:12 pm    Post subject: Reply with quote

I downloaded 6.4 or 6.5 a year or so ago, maybe longer and opened up a few tables and none of my codes worked. So my reasoning was start from scratch learning the new way of coding or continue with 6.3 that worked. I chose the easier path.
Back to top
View user's profile Send private message Yahoo Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Apr 10, 2017 2:40 am    Post subject: Reply with quote

Yes, there was a bug with Description property.

https://github.com/cheat-engine/cheat-engine/commit/a0e18e68a95d9a26762a21bdcee012fdc1c2e9ed

Fixed two months later after release.


If you are still using 6.3, use method "whichRec.getDescription()" instead of property "whichRec.Description"

_________________
Back to top
View user's profile Send private message MSN Messenger
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Wed Apr 12, 2017 4:25 pm    Post subject: Reply with quote

Dark Byte wrote:
off-topic, but just to let other people know who stumble upon this topic
Code:

tonumber(memoryrecord_getValue(addresslist_getMemoryRecord(al,x)))

can be rewritten to
Code:

tonumber(al[x].Value)


Following this then would setting the value be
Code:
tonumber(al[x].Value) = some number
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Apr 12, 2017 11:36 pm    Post subject: Reply with quote

just al[x].Value=somenumber
_________________
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
bknight2602
Grandmaster Cheater
Reputation: 0

Joined: 08 Oct 2012
Posts: 577

PostPosted: Sat Apr 15, 2017 8:08 am    Post subject: Reply with quote

Carrying on with this train of thought.
Code:
al = getAddressList()
x=56
y=0
whichRec = al.MemoryRecord[x]
print(whichRec.Address)>>output is 24cd60f
whichForwardRec = tonumber(whichRec.Address) + y>>Error:attempt to perform arithmetic on a nil value. I guess no Mathematics on Properties
whichForwardRec = whichRec.Address
print(whichForwardRec)>> output is 24cd60f
print(tonumber(whichForardRec) + 1)>> Error:attempt to perform arithmetic on a nil value.

As you can see I first tried to add to a Property, I guess that can't be accomplished.
So I set a variable to the Property and then attempted addition on that variable, still can't perform that addition.
Why does the second addition fail?
How may I obtain "forward addresses" to be used with a writeBytes("forward address", somenumber)
Back to top
View user's profile Send private message Yahoo 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
Goto page Previous  1, 2
Page 2 of 2

 
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