Jump to content

1 post in this topic

Recommended Posts

Updated (edited)

Hey it's me again!

I will directly get to the point: HOW TO MODIFY THOSE DAMN DOUBLES ?

 

EXAMPLE

Spoiler

image.png

 

So, the way you would modify this is pretty simple, GetUpgradeCost -> i want the cost to be 0, but i don't know how to modify doubles yet..

And you're on the right tutorial to get the answer and the method as well! -- Sharing knowledge is always good --

 

First get a floating point converter! Why? Because doubles are double floats!

Link: https://gregstoll.com/~gregstoll/floattohex/

 

Spoiler

image.png

How can i convert this value, to an ARM instruction ?

Well, here is the magic, for simple float ARM instruction would be: MOV R0, #0x0000 BX LR

Then how to find it for a double value ?

Well, here is another magic: 1000 in float ARM instruction is: MOVT R0, #0x447A

And so what is the double value for 0 ?

It's pretty simple: ARM instruction is: MOVT R1, 0x0000 BX LR 

HEX: 00 10 40 E3 1E FF 2F E1

For every doubles it will be MOVT R1, 0x???? BX LR

Use the floating point converter to get the right HEX and just put it after MOVT R1.

 

And now you have your upgrades cost 0, or 1, it depends how the game works, magic ? YES

I hope you enjoyed this tutorial!

 

See ya,

L808

 

 

 

Updated by L808
  • Like 1
  • Winner 1

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 would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines