Making a program, But i need a hex value

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
n3xg3n





Posts: 4
Joined: Thu Nov 03, 2005 1:40 pm

Making a program, But i need a hex value

Post by n3xg3n »

im makinf a program to automatically make the bipd a flying bipd but i need the flying bipd hex value if ne has it thnx
Hyperdash





Posts: 444
Joined: Fri Aug 12, 2005 9:37 am
Location: Can you feel that cold steel digging into your spine? That's me, B1TC|-|!!
Contact:

Post by Hyperdash »

Cool, sounds like a nice plug-in.
twolvesfan369





Posts: 16
Joined: Wed Jul 20, 2005 4:15 pm

Post by twolvesfan369 »

theres quite a few. 1st thing is open up the plug-in in notepad and take a note at the offset..then open up the map in dothalo . then click on bipd. gotot he hex editor built it, then goto that offset fm the plugin. Take a note of the party on top where it says "Offset on map" and there u go
[CL]9mm-Man




Wordewatician 500

Posts: 773
Joined: Tue May 04, 2004 7:14 am
Location: Uranus

Post by [CL]9mm-Man »

Not possible, it would lagg too much and you cant find hex value for it without alot of luck :P
Your image cannot exceed 400x200 or 50kb
kidz14





Posts: 2
Joined: Fri Jun 03, 2005 7:04 am

Post by kidz14 »

this is the way you have to go about doing that what you do is et a hex editor ex: Hex Workshop now that you have that you can make a original copy of the map know make a second with the fly bipd created now open the one map in the hex editor then go to compare and slect the second then see what has changed
xxANTMANxx





Posts: 108
Joined: Sat May 07, 2005 8:21 pm
Contact:

Post by xxANTMANxx »

OR EVEN EASIER

you can find out what type the value it is in this case its a float a.k.a single

then you just go to the correct tag offset then just do the tag offset + the offset that it says on the plugin and thast the value you want to edit

since im in a good mood ill give you a function to read the value and im sure you can figureout how to edit it by just editing the function a bit

Code: Select all

   Public Function GetFloatValue(ByVal Filepath As String, ByVal TagOffset as long, ByVal ValueOffset as long)

        Dim read As New System.IO.BinaryReader(New System.IO.FileStream(Filepath, IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.ReadWrite))
        read.BaseStream.Seek(TagOffset  + ValueOffset , System.IO.SeekOrigin.Begin)
        Dim value = read.ReadSingle
        Return value

    End Function
superaison





Posts: 175
Joined: Mon Jul 25, 2005 5:06 pm

Post by superaison »

Ha, AntMan knows all.
Inquisinator





Posts: 89
Joined: Sat Nov 26, 2005 8:00 pm

Post by Inquisinator »

xxANTMANxx wrote:OR EVEN EASIER

you can find out what type the value it is in this case its a float a.k.a single

then you just go to the correct tag offset then just do the tag offset + the offset that it says on the plugin and thast the value you want to edit

since im in a good mood ill give you a function to read the value and im sure you can figureout how to edit it by just editing the function a bit

Code: Select all

   Public Function GetFloatValue(ByVal Filepath As String, ByVal TagOffset as long, ByVal ValueOffset as long)

        Dim read As New System.IO.BinaryReader(New System.IO.FileStream(Filepath, IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.ReadWrite))
        read.BaseStream.Seek(TagOffset  + ValueOffset , System.IO.SeekOrigin.Begin)
        Dim value = read.ReadSingle
        Return value

    End Function
wrong its not a float, its a bitmask....
xxANTMANxx





Posts: 108
Joined: Sat May 07, 2005 8:21 pm
Contact:

Post by xxANTMANxx »

the values you need to edit to change your speed and all to even move are floats and the actual flying 2 and crap are bitmask
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

You will need your program to load the biped tags and load the dword of meta that contains the flying flag. It is in the form of a bitmask so you will need to create a function to go from hex->bin, put a 1 for the flying bit, then create another function that goes from bin->hex and overwrite the bitmask. You will need to do a little educated guessing as to what bit it is, you can look at the plugin but it will all depend on how the data is loaded in your app.
Post Reply