What is it?
[/color]The Open Halo Parser is what I use to power all of my Halo-based applications. It is a set of classes and methods for parsing Halo maps very quickly and easily, allowing you to get your application up and running in very little time.
This release is the first public version. It has been trimmed down and refined from previews demos (see dev forum for demos, if you've permission).
How Does it Work?
[/color]Simply add the OHP folder to your REALBasic project, and you can start using it. You can use commands to start such as:
Code: Select all
//For this demo, f will be a folder item that has been pointed to a map file.
Dim new_map As New halo_map
new_map.load(f)
The info of a loaded map can be used very easily. Like, displaying the scnr's name:
Code: Select all
//new_map is a halo_map that has been loaded
MsgBox new_map.tags(0).name //tag number 0 will always be the scnr, because it is the first tag in the map.
Code: Select all
//new_map is a halo_map that has been loaded
MsgBox new_map.tags(new_map.tag_count - 1).name //tags() array is zero-based
All of the basic map information can be gained from these methods. It is the very basic things all map editors have in common: map parsing. These methods are very light and fast, best there is in my opinion.
This source is free to be used in anyway the downloader likes. All I ask is for credit if it is used within an application.