Page 1 of 1

reading .map files

Posted: Mon Apr 18, 2005 6:52 pm
by soten355
okay, first off, when reading from a map file, how do you find a line of text in c++ that matches a char variable you've already initilized.(like a warthog's thingy)

Posted: Wed Apr 20, 2005 3:00 pm
by kyboren
A single char or a character array?

For a single char, strchar(), for arrays, strstr().

You'll need to read in the file chunk by chunk into a buffer and use those.

Posted: Fri Apr 22, 2005 9:16 pm
by kaptainkommie
Regular Expressions are fun fun fun too!

Posted: Sat Apr 23, 2005 11:31 am
by DarkBrute
Actually, a .map file is a C++ inline file. It means that the section gets pasted into the Halo application. Bungie probably encrypted the map file further so that there is barely any native C++ code inside. Most of it is scripting. Plus, machine code auto changes any variables into var1 and var2 and etc. In other words if you crack the .map file parsing algorithm, then you can build an application to log funcion calls... then you literally have the halo map source code.

Posted: Sat Apr 23, 2005 12:26 pm
by SunnySharma
A Halo map is a compilation of tags (.string, .bitmap, .scenerio, etc) using Halo's Scripting Language, that's really it.

Posted: Tue Apr 26, 2005 2:30 pm
by kyboren
IIRC the Halo Scripting Language is similar to LISP and is parsed at run-time.