| View previous topic :: View next topic |
| Author |
Message |
13 I post too much
Reputation: 0
Joined: 24 Apr 2007 Posts: 4603
|
Posted: Fri Jul 08, 2011 1:31 pm Post subject: is multi-line commenting not working in the lua script? |
|
|
Are multi-line comments not working in the cheat table's lua script? I tried the code below and got an error saying..
"[string "[[ Multi..."]:3: unexpected symbol near '[[ Multi Line Comment ]]'"
| Code: | [[ Multi
Line
Comment ]] |
---------------------------
some more on lua variables:
| Code: | 1. mov eax,[$ptr_characterBase]
2. mov eax,[eax+$ptr_characterPid]
3. jmp $ptr_charatcterBase + 5 |
#1, #2, and #3 says that the instruction can't be compiled. I assume that it's because i'm trying to perform arithmetic on a string value. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Fri Jul 08, 2011 4:08 pm Post subject: |
|
|
multiline comments are done using:
--[[
com
ments
--]]
as for the lua variables read it as a substitute.
if the lua var 'bla' contains the string '00400000' then $bla will be replaced with 00400000
(make sure the string is using autoassembler formatting, so hexadecimal but no 0x ) _________________
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 |
|
 |
13 I post too much
Reputation: 0
Joined: 24 Apr 2007 Posts: 4603
|
Posted: Fri Jul 08, 2011 4:29 pm Post subject: |
|
|
| Yes, the variable was ptr_characterBase = "00400000". I tried 0x00400000 earlier to see if it'd work, but it didn't so i kept it within quotes. Thank you for clarifying multi-line comments though, it's a big help. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25899 Location: The netherlands
|
Posted: Fri Jul 08, 2011 4:41 pm Post subject: |
|
|
ok, looks like a bug. I'll check it out _________________
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 |
|
 |
|