What's new

[VB] Help using PackageIO.

B

Byte

Enthusiast
Messages
385
Reaction score
26
Help using PackageIO.

hello everyone, i need help with using packageio.

i want to find a value in a file from package io do i looked around and i found the barracks mod tool source code and tried to learn from it. well the reader function is what i need help on really cause this is what the reader is doing at the moment in the barracks mod tool for mw2:

Reader.Position = &HD810
xpTextBox.Text = Reader.ReadInt32

what i want to know is what does the "&HD810" do and where is the value from.

ive tried putting other values there liek hex offsets but i think im doing it wrong.

please could someone help me with this one.

Thanks.
 
S

SotG Caboose

Getting There
Messages
1,448
Reaction score
687
Re: Help using PackageIO.

That is the position in the file at which you are reading at, It's called an offset. &H means that you're representing a number in hexadecimal. &HD810 would be the same as 55312.
 
C

CraigChrist8239

VIP
VIP
Messages
2,644
Reaction score
3,922
Re: Help using PackageIO.

Or, instead of &H, you could use 0x. That number would be 0xD810.
 
S

ShadowZ

Enthusiast
Messages
1,390
Reaction score
203
Re: Help using PackageIO.

CraigChrist8239 said:
Or, instead of &H, you could use 0x. That number would be 0xD810.

He is using VB so 0x would not work for hex numbers.
 
B

Byte

Enthusiast
Messages
385
Reaction score
26
Re: Help using PackageIO.

SotG Caboose said:
That is the position in the file at which you are reading at, It's called an offset. &H means that you're representing a number in hexadecimal. &HD810 would be the same as 55312.

Ah, thanks for the assist. ile post back with my results. :wink:
 
Top Bottom