View previous topic :: View next topic |
Author |
Message |
Branimir Advanced Cheater
Reputation: 0
Joined: 12 May 2015 Posts: 59
|
Posted: Tue Jan 12, 2016 10:23 am Post subject: [SUGGESTION] An update to the Smart Edit Address(es) option |
|
|
I understand that what I am about to write might come as a surprise to some (If not all), but hear me out:
As you are all well aware, there are only 8 digits in a Hex address.
However... The PSP games on the PPSSPP emulator (Please use v1.0.1 r757 since that is the last one that works with CE) have 9 digits.
And, because of that... When using the Smart Edit Address(es) option, the address(es) get trimmed from 9 to 8 digits; rendering them useless.
Here's what I'm talking about:
Before
http :// i65.tinypic . com/10ds5j9.jpg
After
http :// i65.tinypic . com/2vsoh1l.jpg
Note* The 10 000 offset is the difference between mine and other people's addresses.
So... Like I stated above. People who have different addresses than mine need to change ALL of them for the cheat table to work as intended.
And, seeing as how my cheat table has A LOT of addresses in it, (Not just the very small part that I showed you) it is a daunting task to do by hand.
Which brings us to the main part of my message:
Please update the Smart Edit Address(es) option to accommodate the 9th digit.
Thank you for your time.
PS:
Sorry for bypassing the url restriction, but I needed to show you what I meant.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Tue Jan 12, 2016 11:32 am Post subject: |
|
|
Just use this to add those addresses to the table automatically for you. Change the header's address to change all others.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
Branimir Advanced Cheater
Reputation: 0
Joined: 12 May 2015 Posts: 59
|
Posted: Tue Jan 12, 2016 12:47 pm Post subject: |
|
|
ParkourPenguin wrote: | Just use this to add those addresses to the table automatically for you. Change the header's address to change all others. |
Same question as the other one.
(I really should learn LUA one of these days).
|
|
Back to top |
|
 |
amirov137 How do I cheat?
Reputation: 0
Joined: 12 Jan 2016 Posts: 3
|
Posted: Tue Jan 12, 2016 2:04 pm Post subject: |
|
|
Thank you man this is very helpful to me!
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25794 Location: The netherlands
|
Posted: Tue Jan 12, 2016 2:37 pm Post subject: |
|
|
use recalculate address(es) instead
_________________
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 |
|
 |
Branimir Advanced Cheater
Reputation: 0
Joined: 12 May 2015 Posts: 59
|
Posted: Tue Jan 12, 2016 3:48 pm Post subject: |
|
|
Dark Byte wrote: | use recalculate address(es) instead |
Facepalm
Umm... Forget I ever wrote that, okay?
Actually... I feel like deleting my thread altogether...
Btw... (Since i can't double-post yet) Do you happen to know why I get this problem from using ParkourPenguin's LUA script:
https :// gyazo.com/92072c7b39beded323a7827606eac416
It works great if I don't use the ABCDEF digits/letters.
However, if I do not... It's not exactly "precise".
(Sure, I could just delete the addresses I do not need, but still...)
I do not wish to sound "ungrateful"; it's just my opinion.
|
|
Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 12, 2016 3:54 pm Post subject: |
|
|
place that address between ''
'108AA8DE4'
or prefix it with 0x
0x108AA8DE4
from main.lua:
Code: | setAddress(string) : Sets the interpretable address string, and if offsets are provided make it a pointer |
I think ParkourPenguin has to update his modification.
_________________
Last edited by mgr.inz.Player on Tue Jan 12, 2016 4:11 pm; edited 1 time in total |
|
Back to top |
|
 |
Branimir Advanced Cheater
Reputation: 0
Joined: 12 May 2015 Posts: 59
|
Posted: Tue Jan 12, 2016 4:10 pm Post subject: |
|
|
mgr.inz.Player wrote: | place that address between ''
'108AA8DE4'
from main.lua:
Code: | setAddress(string) : Sets the interpretable address string, and if offsets are provided make it a pointer |
So, ParkourPenguin has to update his modification. |
I did what you said, now I'm getting this error:
Code: | Error:[string "function addMoreAddresses(baseAddress, step, ..."]:10: attempt to perform arithmetic on a string value (local 'baseAddress') |
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Tue Jan 12, 2016 4:10 pm Post subject: |
|
|
Oh yeah, I forgot CE uses a string to set the address of memory records but uses numbers for every other time you use an address in Lua. That makes it a bit more annoying, but here's a fix that checks the arguments you pass it:
Code: | function addMoreAddresses(baseAddress, step, endAddress)
if type(baseAddress) == "number" then
baseAddress = string.format("%X",baseAddress)
end
if type(step) == "string" then
step = tonumber(step,16)
end
if type(endAddress) == "number" then
endAddress = string.format("%X",endAddress)
end
local al = getAddressList()
local base = al.createMemoryRecord()
base.setAddress(baseAddress)
base.setDescription("Base Address")
base.Type = vtString
base.String.Size = 0
for i=0, (tonumber(endAddress,16)-tonumber(baseAddress,16))/step, 1 do
local rec = al.createMemoryRecord()
local str = string.format("+%X", i * step)
rec.setAddress(str)
rec.setDescription(str)
rec.appendToEntry(base)
end
end |
Just remember that if you don't put a number in quotes, then you'll have to put 0x in front of it so that Lua interprets that as a hexadecimal number.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
Branimir Advanced Cheater
Reputation: 0
Joined: 12 May 2015 Posts: 59
|
Posted: Tue Jan 12, 2016 4:25 pm Post subject: |
|
|
ParkourPenguin wrote: | Oh yeah, I forgot CE uses a string to set the address of memory records but uses numbers for every other time you use an address in Lua. That makes it a bit more annoying, but here's a fix that checks the arguments you pass it:
Code: | function addMoreAddresses(baseAddress, step, endAddress)
if type(baseAddress) == "number" then
baseAddress = string.format("%X",baseAddress)
end
if type(step) == "string" then
step = tonumber(step,16)
end
if type(endAddress) == "number" then
endAddress = string.format("%X",endAddress)
end
local al = getAddressList()
local base = al.createMemoryRecord()
base.setAddress(baseAddress)
base.setDescription("Base Address")
base.Type = vtString
base.String.Size = 0
for i=0, (tonumber(endAddress,16)-tonumber(baseAddress,16))/step, 1 do
local rec = al.createMemoryRecord()
local str = string.format("+%X", i * step)
rec.setAddress(str)
rec.setDescription(str)
rec.appendToEntry(base)
end
end |
Just remember that if you don't put a number in quotes, then you'll have to put 0x in front of it so that Lua interprets that as a hexadecimal number. |
I confirm. It works flawlessly now.
Many thanks to all who helped (and, endured my idiocy)!
Now... Should I... Or should I not, delete this thread...
|
|
Back to top |
|
 |
|