Jump to content

Unity Script Templates by BadCase 1.0.0

   (2 reviews)

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.


 

 Share


User Feedback

Recommended Comments

Script berakhir:
Kesalahan skrip: luaj.o: /storage/emulated/0/Combined.Field.Method.Template.by.BadCase.lua:291
`        results[i].address = results[i].address + Offset`
attempt to perform arithmetic __add on a number value and a nil value (local 'Offset')
level = 1, const = 39, proto = 0, upval = 1, vars = 17, code = 220
ADD v16 v16 v1
 ; PC 158 CODE 0800440D OP 13 A 16 B 16 C 1 Bx 8193 sBx -122878
stack traceback:
    /storage/emulated/0/Combined.Field.Method.Template.by.BadCase.lua:291 in function 'fieldByOffset'
    /storage/emulated/0/Combined.Field.Method.Template.by.BadCase.lua:420 in function 'home'
    /storage/emulated/0/Combined.Field.Method.Template.by.BadCase.lua:444 in main chunk
    [Java]: in ?
    at luaj.LuaValue.f(src:989)
    at luaj.LuaValue.b(src:2243)
    at luaj.LuaValue.d(src:2121)
    at luaj.LuaLong.d(src:162)
    at luaj.LuaClosure.a(src:396)
    at luaj.LuaClosure.a(src:207)
    at luaj.LuaClosure.a_(src:195)
    at luaj.LuaClosure.a(src:544)
    at luaj.LuaClosure.l(src:160)
    at luaj.LuaClosure.a(src:533)
    at luaj.LuaClosure.l(src:160)
    at android.ext.Script.d(src:6056)
    at android.ext.Script$ScriptThread.run(src:5785)

Link to comment
Share on other sites

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.