Jump to content

1 Screenshot

About This File

These are a few templates to allow you to easily create scripts for Unity based games.

Fields.Class.Name.Offset.Template.by.BadCase

Add edits to the "fieldEdits" table in the following format

    [1] = {
        editName = "Free Clothes",
        emoji = "👖",
        edits = {
            {
                className = "ClothesOriData",
                armEdits = {0X18, 0X28},
                editTo = 0,
                editType = gg.TYPE_DWORD,
                editIfEqual = nil
            }, {
                className = "ClothesOriData",
                armEdits = {0X1C, 0X28},
                editTo = 0,
                editType = gg.TYPE_DWORD,
                editIfEqual = nil
            }}
    },

className: is the name of the Class the Field belongs to

armEdits: is a table in this format {arm7_field_offset,arm8_field_offset}

editTo: is the value to edit the Field instances to

editType: is the type of value to edit the Field instance as

editIfEqual: use if you only want to edit fields of a certain value and or get user input for this value can bet set to
nil: if editing all Field instance
integer: for editing all Field instances of a single value
integer range: in this format 0~100 for editing all Field instance with a value in that range
text: for providing instructions to the user in a prompt asking them to specify the value to be edited

Methods.Class.Method.Name.Template.by.BadCase

Add edits to the "methodEdits" table in the following format

    [1] = {
        editName = "Unlimited Ammo",
        emoji = "♾️",
        edits = {
            {
                className = "Player",
                methodName = "HasBulletsClip",
                armEdits = {{"~A MOV R0, #1", "~A BX LR"}, {"~A8 MOV W0, #1", "~A8 RET"}}
            }}
    },
    
className: is the name of the Class the Method belongs to

methodName: is the name of the Method to edit

armEdits: is a table in this format {(arm7_lib_edits},{arm8_lib_edits}} edits can be GG assembler opcodes (~A BX LR), hex (00000000h) or reverse hex (00000000r)

Combined.Field.Method.Template.by.BadCase

This is the above 2 templates combined, make sure you have the same items in both the "methodEdits" and "fieldEdits"

If a function only has one type of edits for example "fieldEdits" and no "methodEdits" then the "methodEdits" edit table for that function should be an empty table {}

Check the last function in the script for an example.


 


User Feedback

You may only provide a review once you have downloaded the file.


Proejder

   0 of 1 member found this review helpful 0 / 1 member

5 stars for me Works great without any issues. I modified it a bit to get the update offsets output

but I didn't quite understand the "mscorlib.dll" search. I removed it from the function to speed it up a bit. It still works great. What exactly is its function? Or is it tactical  one

Response from the author:

It just speeds up searches but is not required

zhangzheng320823

  

脚本错误: luaj.o: /storage/emulated/0/hjgk.lua:800

` gg.searchNumber(result[1].address, pointerType)`

attempt to index ? (a nil value) with key 'address' (field '1')

level = 1, const = 37, proto = 0, upval = 3, vars = 21, code = 176

GETTABLE v9 v9 "address"

 ; PC 79 CODE 04C78247 OP 7 A 9 B 9 C 286 Bx 4894 sBx -126177

stack traceback:

 

Strangely enough, if you download the version of the game from the Google Store, it will be fine, and if it is a hacked version, it will prompt this error! The name of the game is Grim Soul

×
×
  • 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.