Quick bms math

Doubts, help and support about QuickBMS and other game research tools
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Quick bms math

Post by chrrox »

How do I do math with a long long value
I am trying to do something like
Xmath 0xef000000 x 0x77 / 0xb
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: Quick bms math

Post by Shokoniraya »

chrrox wrote:How do I do math with a long long value
I am trying to do something like
Xmath 0xef000000 x 0x77 / 0xb


i dont think can support right now, but it can help a lot in a lot of times!
but you can normally do this

Code: Select all

xmath NUMBER "VALVEU1 + VALUVE2"
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Quick bms math

Post by chrrox »

Yeah the math function works just not with values over 0xffffffff
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Quick bms math

Post by aluigi »

you must use quickbms_4gb_files for enabling 64bit operations.
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Quick bms math

Post by chrrox »

Yeah I did it does not carry over the number after the 8th digit
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Quick bms math

Post by aluigi »

I don't know, here it works perfectly:

Code: Select all

math VAR1 = 0x11223344
math VAR2 = 0xffffffff00000000
xmath VAR "VAR1 + VAR2"
print "%VAR|X%"

Can you provide a better example?
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Quick bms math

Post by chrrox »

weird it seems to be working now I must have not been using the 4gb files one before.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Quick bms math

Post by aluigi »

Anyway if you post something wrong let me know as soon as possible since version 0.9.3 will be released next week.