Programming related discussions related to game research
h3x3r
Posts: 165 Joined: Wed Jun 01, 2016 5:53 pm
Post
by h3x3r » Sat Sep 29, 2018 4:19 pm
Hi guys, can someone help me out convert numbers to full int's? The source of values are int.
Thanks in advance!
Preview of format to convert:
Code: Select all
Offset = 79205788 Size = 50357 Offset = 79321972 Size = 30133 Offset = 83707660 Size = 29499 Offset = 83755428 Size = 14187 Offset = 94774324 Size = 5527 Offset = 94779860 Size = 17255 Offset = 94797124 Size = 4071
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Wed Oct 03, 2018 12:54 pm
Do you mean you have an input binary file containing sequences of little endian 32bit fields?
And what programming language are you using?
In quickbms it would be something like:
Code: Select all
for get OFFSET long get SIZE long next
h3x3r
Posts: 165 Joined: Wed Jun 01, 2016 5:53 pm
Post
by h3x3r » Sun Oct 07, 2018 11:13 am
Yes the source is binary form. I used 010 Hex editor to print those values. Problem is that output decimal number "can't" be converted back to binary form right? But i solved this problem by printing values as HEX and then import them as HEX.