MonkeySAN Posted March 13 Posted March 13 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. 1
vzzz Posted March 16 Posted March 16 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
vzzz Posted March 17 Posted March 17 (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 March 17 by vzzz
vzzz Posted March 18 Posted March 18 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)
CmP Posted March 18 Posted March 18 @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 1
vzzz Posted March 19 Posted March 19 (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 March 19 by vzzz
hitmez Posted March 19 Posted March 19 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 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. - 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??
MonkeySAN Posted March 19 Posted March 19 (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 March 19 by MonkeySAN 2
hitmez Posted March 19 Posted March 19 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
MonkeySAN Posted March 19 Posted March 19 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. 1
hitmez Posted Thursday at 09:00 PM Posted Thursday at 09:00 PM 18 hours ago, MonkeySAN said: https://streamable.com/n7ttml Thanks @MonkeySAN.I have a question tho a lot of items are set of 3 or 1 how do I select item I want to change value of ?
hitmez Posted Thursday at 09:18 PM Posted Thursday at 09:18 PM 18 hours ago, MonkeySAN said: https://streamable.com/n7ttml Never mind. I saw the ids in a older post and they match 75 for sturdy board. Thank you @MonkeySAN
MonkeySAN Posted Thursday at 11:47 PM Posted Thursday at 11:47 PM (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 Thursday at 11:49 PM by MonkeySAN 1
vzzz Posted Friday at 06:17 AM Posted Friday at 06:17 AM (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 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. - 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? Edited Friday at 06:20 AM by vzzz
MonkeySAN Posted Friday at 01:10 PM Posted Friday at 01:10 PM (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. 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 : 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 Friday at 02:41 PM by MonkeySAN 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now