Loading halo2 maps in c#?

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




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Loading halo2 maps in c#?

Post by shade45 »

Hey could someone help me load a halo2 map into memory with c#?
User avatar
VoiDeD
Readers Club




Socialist

Posts: 1866
Joined: Thu Jan 15, 2004 4:46 pm
Location: Gurnee, IL
Contact:

Post by VoiDeD »

The easiest way would be to use a library called Halo2Map.dll, it comes with the ch2r source.. But if you want to do it the hard way, just use the System.IO.FileStream class, and you could also bind a System.IO.BinaryReader/BinaryWriter to the stream to assist you in editing it.
Post Reply