Jump to content

7 posts in this topic

Recommended Posts

Posted

How to compare random number with a random branch instructions jump?

For example now i got:

 

mov r2,#0x1e

sub BL_xxxxxxxx (untity3d RandomRange function)

cmp r0,#0x14

BHI   #0xc
mov   r1,#2

 

This will be very easy to compare random number between 20 and 30, but how can i compare if there's a in game option? (e.g. there's a option can set in-game sound effect volume 5-10, i want compare this with 30)

I tried many way but no luck: game crash, always max number/minimum number even dont work.. any help about this?

Posted (edited)
8 minutes ago, fa4ada11 said:

Try To Change The Branch With The InGame Option Branch If You Can Find It But you shall know basic modding for it.

Dont really understand you said there.. and the in-game option Branch is very easy to find with Branchfinder and IDA.

Also like i said.. i want a "random number compare", that's not what i want..

Updated by paintokill
Posted
2 hours ago, paintokill said:

Dont really understand you said there.. and the in-game option Branch is very easy to find with Branchfinder and IDA.

Also like i said.. i want a "random number compare", that's not what i want..

You are not understanding it dude.

Posted
10 minutes ago, fa4ada11 said:

You are not understanding it dude.

Well like i said: BL sub_xxx to the in-game option is really easy, but I that's not what i need. My request is like this:

The first number is regular(like 30, 20 etc)

The second number is in-game sound effect volume setting (5-10, 1-10 etc)

The function(untity random_range function) will random generate a number between 2 number.

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