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 


Error compiling CE 6.1

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
Unbr0ken
Advanced Cheater
Reputation: 2

Joined: 10 Aug 2011
Posts: 67

PostPosted: Wed Dec 14, 2011 3:35 am    Post subject: Error compiling CE 6.1 Reply with quote

Hi there, i will post here the errors that will i get while i'm reading and testing the CE 6.2 Alpha source code, i hope you don't get angry/mad by this.

First error:

Quote:
"memscan.pas(656,21) Error: Element zero of an ansi\wide- or longstring can't be accessed, use (set)length instead"


Piece of code:

Code:
//setting the itemindex automatically creates the next entry
      case command[0] of //Error here
        '1': groupdata[gdi].vartype:=vtByte;
        '2': groupdata[gdi].vartype:=vtWord;
        '4': groupdata[gdi].vartype:=vtDWord;
        '8': groupdata[gdi].vartype:=vtQWord;
        'F': groupdata[gdi].vartype:=vtSingle;
        'D': groupdata[gdi].vartype:=vtDouble;
        'C':


I'm not a Delphi/Lazarus coder, so i don't know why this error happens and even i don't know how to fix it. I'm not interested on learn Lazarus or Delphi, i just want to see how works the CE source code to get tips for my own memory scanner. (Btw, thanks Dark Byte, the CE src is amazing... i have learned a lot of it)

I'm using the Lazarus: Daily snapshot, 0.9.31, FPC 2.5.1.

And i have the latest CE 6.2 source code. (I guess)

So... I would appreciate some help; tyvm.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Dec 14, 2011 8:00 am    Post subject: Reply with quote

svn also support checking out of a earlier date (like the 6.1 release)

anyhow, replace command[0] with command[1]

_________________
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
Unbr0ken
Advanced Cheater
Reputation: 2

Joined: 10 Aug 2011
Posts: 67

PostPosted: Wed Dec 14, 2011 12:05 pm    Post subject: Reply with quote

Ok thanks for the tip Very Happy...

And... it compiles as well with that fix.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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