ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Oct 18, 2017 10:19 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Mar 16, 2017 10:34 am 

Joined: Sat Feb 06, 2016 6:06 pm
Posts: 8
Hi,
I am trying to recode a bms script in c# but I have no idea how to actually translate that to c# because there is no such thing in it. I know 8 bytes are read but then how is that to something usefull? Because If I simply read a int64 which is 8 bytes it reads some garbage offset.
Thanks in advance,
Traderain


Top
   
PostPosted: Thu Mar 16, 2017 11:44 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6874
Use quickbms_4gb_files.exe if you need to handle 64bit fields and/or for files bigger than 4gb.
quickbms.exe is limited to 32bit so 0x0000001122334455 will be read as 0x22334455.


Top
   
PostPosted: Thu Mar 16, 2017 1:05 pm 

Joined: Sat Feb 06, 2016 6:06 pm
Posts: 8
No, the unpacking works perfectly fine I am just trying to recode the script in c# so I can make an editor for the archive and since I have no idea how to read longlong properly I can't do so.


Top
   
PostPosted: Thu Mar 16, 2017 2:02 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 131
longlong is a 64 bit integer.
long -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 Signed 64-bit integer
ulong 0 to 18,446,744,073,709,551,615 Unsigned 64-bit integer


Top
   
PostPosted: Thu Mar 16, 2017 4:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6874
UInt64 / System.UInt64


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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