ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed May 22, 2019 9:09 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Quick bms math
PostPosted: Tue Apr 09, 2019 11:02 am 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 227
How do I do math with a long long value
I am trying to do something like
Xmath 0xef000000 x 0x77 / 0xb


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 2:36 pm 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 229
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:
xmath NUMBER "VALVEU1 + VALUVE2"


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 6:25 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 227
Yeah the math function works just not with values over 0xffffffff


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 6:37 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
you must use quickbms_4gb_files for enabling 64bit operations.


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 7:35 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 227
Yeah I did it does not carry over the number after the 8th digit


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 8:06 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
I don't know, here it works perfectly:
Code:
math VAR1 = 0x11223344
math VAR2 = 0xffffffff00000000
xmath VAR "VAR1 + VAR2"
print "%VAR|X%"

Can you provide a better example?


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 8:23 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 227
weird it seems to be working now I must have not been using the 4gb files one before.


Top
   
 Post subject: Re: Quick bms math
PostPosted: Tue Apr 09, 2019 8:25 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
Anyway if you post something wrong let me know as soon as possible since version 0.9.3 will be released next week.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited