Well, a good idea may be a Perl or shell script that we supply with Nexuiz that analyzes a PK3 and tells you in machine readable format what's in it...
that is, the names of the mapcfg files, the map title, image and game modes supported.
Similar to:
- Code: Select all
$ lsmaps basement.pk3
basement.pk3:dm_basement:Basement:dm:maps/basement.jpg
basement.pk3:lms_basement:Basement:lms:maps/basement.jpg
That format would be well parsable by anything, even a shell script (using tools like cut or the "IFS=: read -r PK3 MAPCFG TITLE MODE IMAGE" loop)
Actually, I quite like the idea of adding something like that to Nexuiz... and if the script is readable enough, it can later be adapted to convert the existing mapcfg system to something new.
It MAY also output XML, but I am quite opposed to that as XML is to hard to parse using simple tools like shell scripts or Perl. XML output can of course be optional and more detailed, like, it could also include map descriptions.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again
You can vary the number of "MS", so you can clearly see it's MS which is causing it.