Jump to content

Recommended Posts

Posted
49 minutes ago, hitmez said:

i tried to make my own script can you check if its works?.well it didnt work.@monkeysan what did I do wrong?

take a look into my script and compare with yours.

then you will know why its not working.

Posted
On 2/15/2025 at 11:22 PM, Bogejula said:

sorry sir, I already read all previous page but dont found ur groupitems unlock script.. ? 

Hi @MonkeySAN. Can u reupload TEST_GroupItems 32bit.lua ? Thankyou

Posted (edited)

32bit @MonkeySAN

 

Script ended:

Script error: luaj.o: /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:52

` return gg.getTargetInfo().x64`

attempt to index ? (a nil value) with key 'x64'

level = 1, const = 3, proto = 0, upval = 1, vars = 2, code = 6

GETTABLE v0 v0 "x64"

 ; PC 3 CODE 00408007 OP 7 A 0 B 0 C 258 Bx 258 sBx -130813

stack traceback:

 /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:52 in local 'is64bit'

 /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:55 in main chunk

 [Java]: in ?

 at luaj.LuaValue.f(Unknown Source:2)

 at luaj.LuaValue.c(Unknown Source:35)

 at luaj.LuaValue.i(Unknown Source:47)

 at luaj.LuaValue.w(Unknown Source:0)

 at luaj.LuaClosure.a(Unknown Source:588)

 at luaj.LuaClosure.l(Unknown Source:7)

 at luaj.LuaClosure.a(Unknown Source:1818)

 at luaj.LuaClosure.l(Unknown Source:7)

 at android.ext.Script.d(Unknown Source:493)

 at android.ext.Script$ScriptThread.run(Unknown Source:24)

Edited by vzzz
Posted
On 3/17/2025 at 7:57 PM, MonkeySAN said:

try this :

TEST_GroupItems_V3.lua 5.2 kB · 3 downloads

- give me an update later

Script ended:

Script error: luaj.o: /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:53

` local is64 = info.x64 == true`

attempt to index ? (a nil value) with key 'x64' (local 'info')

level = 1, const = 12, proto = 0, upval = 1, vars = 9, code = 36

GETTABLE v1 v0 "x64"

 ; PC 3 CODE 00408047 OP 7 A 1 B 0 C 258 Bx 258 sBx -130813

stack traceback:

 /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:53 in local 'is64bit'

 /storage/emulated/0/Documents/TEST_GroupItems_V3.lua:67 in main chunk

 [Java]: in ?

 at luaj.LuaValue.f(Unknown Source:2)

 at luaj.LuaValue.c(Unknown Source:35)

 at luaj.LuaValue.i(Unknown Source:47)

 at luaj.LuaValue.w(Unknown Source:0)

 at luaj.LuaClosure.a(Unknown Source:588)

 at luaj.LuaClosure.a(Unknown Source:74)

 at luaj.LuaClosure.a_(Unknown Source:1)

 at luaj.LuaClosure.a(Unknown Source:1592)

 at luaj.LuaClosure.l(Unknown Source:7)

 at android.ext.Script.d(Unknown Source:493)

 at android.ext.Script$ScriptThread.run(Unknown Source:24)

Posted

@MonkeySAN modify the code to detect process bitness without relying on "getTargetInfo" (since it's not guaranteed to be available), for example like the following: 

local ranges = gg.getRangesList()
local highestAddress = ranges[#ranges]["end"]
local is64 = (highestAddress >> 32) ~= 0
Posted (edited)
8 hours ago, MonkeySAN said:

try this :

TEST_GroupItems_V3.1.lua 5.48 kB · 0 downloads

- with new and improved 64bit or 32bit detection.

- again i cannot test for 32bit

- if work, all credits goes to @CmP

- if not, then thats on me

Wow, it works in 32bit. Thankyou @MonkeySAN and @CmP

 

Sorry I don't understand, but does it also apply to TEST_Build_Amount.lua ?

If it's hard, forget it, I don't want to ask for more.

Edited by vzzz
Posted
1 hour ago, MonkeySAN said:

great.

for Bulid, i need 32bit game to look for the offsets as its different from 64bit.

maybe you can help me.

download this script (V3):

Field Offset Finder (#40r9kwnp)

run it and enter it as below

Screenshot_2025-03-19-22-02-34-40_9c29c5ced1cbbaf4012f4db13dfab3bd.thumb.jpg.a8fa730c067499edd4613ff26eb47956.jpg

dont forget to check - Try for 32 bit

- that will search all the amount of Build items you had

- refine to amount value(any item)you want to edit.

- preferable 5 or more(bigger the better,less results)

- if after refine results are too many, use increment edit to find the correct one, revert and delete the other

- if 10 or less results after refine, you can either use increment edit or edit one by one to find the correct one

- once found the correct value, goto address.

- then scroll the amount value all the way down just above bottom screen border to keep it visible.

IMG_20250319_222308.thumb.jpg.c3bf37d377bee790e294d7ca7057a8e8.jpg

- after that take a screen shot and post it here.

 

@MonkeySAN I was looking at kingdom adventures dump. I found this method for material shop  Namespace: data
public class MaterialShopData : BaseData // TypeDefIndex: 1308
{
    // Fields

 // RVA: 0xBEC93C Offset: 0xBEC93C VA: 0xBEC93C

 public bool get_IsBuyLimit() { }

I want to reset buy amount so I can buy infinity will method.If I run this method can I reset the material shop count??

 

Posted (edited)
29 minutes ago, hitmez said:

@MonkeySAN I was looking at kingdom adventures dump. I found this method for material shop  Namespace: data
public class MaterialShopData : BaseData // TypeDefIndex: 1308
{
    // Fields

 // RVA: 0xBEC93C Offset: 0xBEC93C VA: 0xBEC93C

 public bool get_IsBuyLimit() { }

I want to reset buy amount so I can buy infinity will method.If I run this method can I reset the material shop count??

 

i dont know.

i dont play the game that far...i think.

and you dont need to buy in Materials Shop.

you can just hack the Items, you already had.

the only thing is you need to have enough space in your storage building.

if your Storehouse(Items) had max capacity of 10

editing amount any item to 500 will not save it as it pass the max limit.

so you need to hack Storehouse max limit.

and to be honest, you dont want to do that as it can break the game the more you hack the items.

to a point where the game just freeze or crash whenever you open it.

even so it not freeze or crash, the game will be so lagging(1-2fps),it become so unplayable.

Edited by MonkeySAN
Posted
54 minutes ago, MonkeySAN said:

i dont know.

i dont play the game that far...i think.

and you dont need to buy in Materials Shop.

you can just hack the Items, you already had.

the only thing is you need to have enough space in your storage building.

if your Storehouse(Items) had max capacity of 10

editing amount any item to 500 will not save it as it pass the max limit.

so you need to hack Storehouse max limit.

and to be honest, you dont want to do that as it can break the game the more you hack the items.

to a point where the game just freeze or crash whenever you open it.

even so it not freeze or crash, the game will be so lagging(1-2fps),it become so unplayable.

If you edit the items they will just reset or become zero on reload most of the time zero.so if you reset the buy limit you can keep editing  and freezing.since it will take time collect that resource again

Posted
2 hours ago, hitmez said:

If you edit the items they will just reset or become zero on reload most of the time zero.so if you reset the buy limit you can keep editing  and freezing.since it will take time collect that resource again

Ahh...yes.

my mistake..im getting old and keep forgeting things.

editing the Items directly will only cause it to reset after restart.

even though your storehouse had much spaces.

you need to earn the item(found by resident) or in this case buy it from Materials Shop.

lets me get back to you, once i cleared the fog and get access to the Materials Shop.

Posted (edited)
2 hours ago, hitmez said:

Never mind. I saw the ids in a older post and they match 75 for sturdy board. Thank you @MonkeySAN

IDs are the same as from that older post.

to change item, change the ID.

after you had done, dont forget to change it back to original values and save the game.

it will stay the same after restart.

so that you can easily find that item again if needed.

in this case, Sturdy Board.

group search = 75;3;3;24;50::17

Edited by MonkeySAN
Posted (edited)
On 3/19/2025 at 8:56 PM, MonkeySAN said:

great.

for Bulid, i need 32bit game to look for the offsets as its different from 64bit.

maybe you can help me.

download this script (V3):

Field Offset Finder (#40r9kwnp)

run it and enter it as below

Screenshot_2025-03-19-22-02-34-40_9c29c5ced1cbbaf4012f4db13dfab3bd.thumb.jpg.a8fa730c067499edd4613ff26eb47956.jpg

dont forget to check - Try for 32 bit

- that will search all the amount of Build items you had

- refine to amount value(any item)you want to edit.

- preferable 5 or more(bigger the better,less results)

- if after refine results are too many, use increment edit to find the correct one, revert and delete the other

- if 10 or less results after refine, you can either use increment edit or edit one by one to find the correct one

- once found the correct value, goto address.

- then scroll the amount value all the way down just above bottom screen border to keep it visible.

IMG_20250319_222308.thumb.jpg.c3bf37d377bee790e294d7ca7057a8e8.jpg

- after that take a screen shot and post it here.

 

I used FacilityData 0x14 and found 160 result

"refine to amount value(any item)you want to edit." And found nothing. Why? I try value gate, wall Or whatever, it's still the same not finding anything.

 

But this I searched manually, by changing and then refind the values until I found 1. Is it the same?

Screenshot_20250320_012109.thumb.jpg.44a1f9b50bd0043150e3f3b19fc0741d.jpg

 

Edited by vzzz
Posted (edited)
8 hours ago, vzzz said:

I used FacilityData 0x14 and found 160 result

"refine to amount value(any item)you want to edit." And found nothing. Why? 

thats because offset 0x14 wasnt correct to begin with.

IMG_20250321_205711.thumb.png.c36facd3c63fb25c947350c32393d970.png

Build item = Gate

value 1 = Pointer

value 2 = Build ID

value 3 = Build Level

value 4 = Amount

now i want you tap hold value 1 until this popup appear :

IMG_20250321_210255.thumb.jpg.f81199cf988c791b0886f063b59f718a.jpg

i dont know if 32bit the same as 64bit.

but if there are 2 "Go to the Pointer", then choose the 2nd one with long address

- it will bring you to the next page

- screen shot that and post it here.

---------------------------------

btw..you can search the Gate more easily using this group search

= 28;0;1;99::13

Edited by MonkeySAN

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.