Solved Need help with modding a specific variable type

Status
Not open for further replies.

EpicCode

1/3 Games Approved
Original poster
Oct 30, 2018
39
7
83
39
Usa
Ok guys here's the deal. I need help on modding a short variable type. This game I'm modding is very particular. If you try to return a integer on a float variable, the game will simply ignore it. They just changed one of the methods from integer to a short on the newest update. Now returning a integer value such as 03 00 00 A0 E3 2F E1 doesn't work anymore. I have not seen any info on modifying short values, only float and integer.

Oh it's a ill2cpp.so game
If I can't figure this out I'll just try to branch on the timer tick.

So int would be MOV in a arm instruction
Float is MOVT
Short is ???????

Any help would be greatly appreciated ..! Thanks in advance
 
Last edited:

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,773
15,665
2,120
27
Skyrim
Simple remove a short instead a int buddy?

Take the maximum value which a short can hold which is 32767 and return it, for ushort it is 65535

So for ARM it would be:

Instruction:

MOV R0, #0x7FFF
BX LR

Hex:
FF 0F 07 E3 1E FF 2F E1
 

EpicCode

1/3 Games Approved
Original poster
Oct 30, 2018
39
7
83
39
Usa
As said above, this doesn't work. There has to be some other way it's done properly in instructions. That would return a int32. Need to return a int16.
 

EpicCode

1/3 Games Approved
Original poster
Oct 30, 2018
39
7
83
39
Usa
I would think that the hex code should be shorter in bytes?? If not that a totally different arm instruction other than MOV R0
 

DaRealPanDa

Co-Administrator
Staff member
Supporting-Team
Global Moderator
Social Media
Mar 12, 2018
6,773
15,665
2,120
27
Skyrim
As said above, this doesn't work. There has to be some other way it's done properly in instructions. That would return a int32. Need to return a int16.
I have many many many games with short values and that hex works everywhere lol

Which is the game you try?

A short is still a int, nothing more. Only an int with less maximum value.
 

EpicCode

1/3 Games Approved
Original poster
Oct 30, 2018
39
7
83
39
Usa
Btw I solved this guys. Stuff moved server side but got it working.
 
Status
Not open for further replies.