Documenting SuperMelee teams file format.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3111 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2009-02-16 02:33:55 +00:00
parent 598f1d41f9
commit 4abc0588c6
+54
View File
@@ -0,0 +1,54 @@
This file describes the binary file format for SuperMelee teams.
The saving and loading is handled in sc2code/loadmele.c.
This file format will be replaced by a human-readable format in the future.
A SuperMelee team consists of the following data:
struct TEAM_IMAGE {
0 - 13 uint8_t ShipList[MELEE_FLEET_SIZE];
/* Originally 6*2 ships, now 7*2 */
14 - 68 char TeamName[MAX_TEAM_CHARS + 1 + 24];
/* \0-terminated
};
The file uqm.cfg contains:
0 - 0 Player Control for player 1 (bottom player)
One of:
1 - Human controlled
6 - Computer controlled
8 - Network controlled (added later)
or'ed with one of:
16 - Standard computer control rating
32 - Good computer control rating
64 - Awesome computer control rating
1 - 69 TEAM_IMAGE for player 1, as described above
70 - 139 Bytes 0-69 repeated for player 2 (top player)
The entries in ShipList are:
0 - Androsynth Guardian
1 - Arilou Skiff
2 - Chenjesu Broodhome
3 - Chmmr Avatar
4 - Druuge Mauler
5 - Human Earthling
6 - Ilwrath Avenger
7 - Kohr-Ah Marauder
8 - Melnorme Trader
9 - Mmrnmhrm X-Form
10 - Mycon Podship
11 - Orz Nemesis
12 - Pkunk Fury
13 - Shofixti Scout
14 - Slylandro Probe
15 - Spathi Eluder
16 - Supox Blade
17 - Syreen Penetrator
18 - Thraddash Torch
19 - Umgah Drone
20 - Ur-Quan Dreadnought
21 - Utwig Jugger
22 - VUX Intruder
23 - Yehat Terminator
24 - Zoq Fot Pik Stinger
255 - Unused slot