Map format

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Map format

Post by milo christiansen »

Just a random idea:

Code: Select all

Basic structure of a map:
dir - mapname
	image - map.png
	ini - meta.ini
	ini - droid.ini
	ini - struct.ini
	ini - feature.ini
	ini - label.ini
	ini - gateway.ini

map.png
	a png image describing the map terrain, one pixel per vertex (channel assignments are completely arbitrary)
	r	the base texture to apply to this vertex
	g	the decal to apply to this vertex (decals would apply to the tile that this vertex is the upper left corner of)
	b	reserved
	a	the height
	Cliff tiles could be specifyed by decal or via the blue channel
	May be better to use multiple grayscale images.

meta.ini
	simple meta data for the map, things like a description and the like
	a replacement for the .lev

droid.ini, struct.ini, feature.ini
	just like they are now

label.ini
	area and position labels? (how are they handled now?)

gateway.ini
	gateways (maybe should be in label.ini?)


Did I miss anything?


Pros:
	Easy to edit/write editors for, every programing language can load and manipulate images, and you could do simple editing in a image editor so long as you edited one channel at a time
	Easy to expand to larger maps at a later date
	Relatively easy to understand and document
	
Cons:
	Decal handling is a little odd, then again the way they are handled now is less than perfect
	Would need to make a converter/write exporter code for FlaME
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Map format

Post by NoQ »

User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: Map format

Post by milo christiansen »

Ah... Great minds think alike? :wink:
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
Merowingg
Regular
Regular
Posts: 2468
Joined: 15 Nov 2009, 13:05
Location: Poland

Re: Map format

Post by Merowingg »

Not good, I think I have just realised I am not a great mind ;)
“Beneath this mask there is more than flesh. Beneath this mask there is an idea, and ideas are bulletproof.” - V

"Mark my words boy, Mark them well, I have survived your predecessors and I will survive you." - Merovingian

Regards - Mero
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

Re: Map format

Post by Originway »

Merowingg wrote:Not good, I think I have just realised I am not a great mind ;)
shocker! :lol2:
is that map format set in stone?
This page is here to discuss and develop a new map format for Warzone 2100.
we are supposed to discuss that on the wiki? O_o
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: Map format

Post by milo christiansen »

IMHO: the wiki is more or less dead, Its full of way out of date info and doesn't seem to get updated much if at all

If you ask me we should just ditch it and start over with aubergine's wiki, Its got more/better stuff anyway.
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual