Code: Select all
BR.basestream.position = metaoffset + i
I know its choppy but look at the filetableoffset and where the BR is, the BR should be at the filetableoffset but its not!, how can I fix this?
Code: Select all
BR.basestream.position = metaoffset + i
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Didn't you read what Prey said? Yes you can set it to 0 but if the offset doesn't have a valid character it loops until it finds one...in this case at offset 25.grimdoomer wrote:because the BR is not where i tell it to go, i even set its position to 0 then set a breakpoint right after that. It wasent at 0 but at 25?????
That just seems screwy to me. Most readchar methods should just read the byte and interpret it as a character as best they can (defaulting to a certain encoding if it's outside the normal 128 range). But I guess if .net wants to be "smart" about it it can.Prey wrote:It's the .ReadChar() method - If at the current position there is not a valid character, the stream's position is incremented by one, and then the valid-char-check is done again.. and again...
I don't remember offhand if H2 tags use the same naming convention of tag classes but it could be you're reading what should be rendered asMSDN wrote:If the ReadChar method attempts to read a surrogate character in the stream an exception will be raised and the position in the stream will advance. The position is restored to the original location before ReadChar was called if the stream is seekable; however, if the stream is unseekable, the position will not be corrected. If surrogate characters can be expected in the stream, use the ReadChars method instead.
any way I have a bigger problem then that right now, My dependancys for halo 2 stoped working. Smae problem the BR keeps jumping.Patrickssj6 wrote:Didn't you read what Prey said? Yes you can set it to 0 but if the offset doesn't have a valid character it loops until it finds one...in this case at offset 25.grimdoomer wrote:because the BR is not where i tell it to go, i even set its position to 0 then set a breakpoint right after that. It wasent at 0 but at 25?????
Code: Select all
For i As Integer = 0 To MetaSize - 4 Step 4
BR.BaseStream.Position = MetaOffset + i
Dim temp As String = BR.ReadChars(4)
temp = StrReverse(temp)
Code: Select all
temp = strreverse(temp)
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.