Difference between revisions of "Necessary map declarations"
From Mod Wiki
(Batch update) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{first etqwmap toc}} | {{first etqwmap toc}} | ||
− | Here is a list of materials for assets created later on. Simply copy the text from the | + | == Materials == |
+ | |||
+ | Here is a list of materials for assets created later on. Simply copy the text from the boxs below and save to {{filename|materials/yourmapname.mtr}} Don't forget to find/replace 'etqwmap' with yourmapname. | ||
+ | |||
+ | This is needed for some codey reason: | ||
#include <materials/commandmaps.include> | #include <materials/commandmaps.include> | ||
− | + | These are the megatexture materials. They are only one line of text as they use a template elsewhere: | |
− | + | ||
− | |||
− | |||
material megatextures/etqwmap { useTemplate megatextures/default_ambient_spec< "etqwmap" > } | material megatextures/etqwmap { useTemplate megatextures/default_ambient_spec< "etqwmap" > } | ||
material megatextures/etqwmap_noshadows { useTemplate megatextures/default_ambient_spec_noshadows< "etqwmap" > } | material megatextures/etqwmap_noshadows { useTemplate megatextures/default_ambient_spec_noshadows< "etqwmap" > } | ||
− | + | These are the [[Creating a command map|command map materials]]. One for the regular command map, one for out of bounds: | |
− | + | ||
− | |||
− | |||
material commandmaps/etqwmap | material commandmaps/etqwmap | ||
{ | { | ||
Line 20: | Line 20: | ||
} | } | ||
− | |||
material commandmaps/etqwmap_oob | material commandmaps/etqwmap_oob | ||
{ | { | ||
templates/game/maps/cmMap( "commandmaps/etqwmap_oob.tga" ) | templates/game/maps/cmMap( "commandmaps/etqwmap_oob.tga" ) | ||
} | } | ||
− | + | ||
+ | These are the territory materials (the greyscale territory lines which the game makes red/green): | ||
+ | |||
material commandmaps/etqwmap_territory_01 { | material commandmaps/etqwmap_territory_01 { | ||
templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter01.tga ) ) | templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter01.tga ) ) | ||
Line 46: | Line 47: | ||
} | } | ||
+ | The level shot (loading screen image) material: | ||
+ | |||
material levelshots/etqwmap { | material levelshots/etqwmap { | ||
sort gui | sort gui | ||
Line 54: | Line 57: | ||
} | } | ||
} | } | ||
+ | |||
+ | The material for the small thumbnail of your map: | ||
material levelshots/thumbs/etqwmap { | material levelshots/thumbs/etqwmap { | ||
Line 63: | Line 68: | ||
} | } | ||
} | } | ||
+ | |||
+ | == Definitions == | ||
Here are the map definitions needed for a functioning map. Save these to def/yourmapname.def | Here are the map definitions needed for a functioning map. Save these to def/yourmapname.def |
Latest revision as of 14:30, 11 December 2007
Materials
Here is a list of materials for assets created later on. Simply copy the text from the boxs below and save to materials/yourmapname.mtr Don't forget to find/replace 'etqwmap' with yourmapname.
This is needed for some codey reason:
#include <materials/commandmaps.include>
These are the megatexture materials. They are only one line of text as they use a template elsewhere:
material megatextures/etqwmap { useTemplate megatextures/default_ambient_spec< "etqwmap" > } material megatextures/etqwmap_noshadows { useTemplate megatextures/default_ambient_spec_noshadows< "etqwmap" > }
These are the command map materials. One for the regular command map, one for out of bounds:
material commandmaps/etqwmap { templates/game/maps/cmMap( "commandmaps/etqwmap.tga" ) } material commandmaps/etqwmap_oob { templates/game/maps/cmMap( "commandmaps/etqwmap_oob.tga" ) }
These are the territory materials (the greyscale territory lines which the game makes red/green):
material commandmaps/etqwmap_territory_01 { templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter01.tga ) ) } material commandmaps/etqwmap_territory_02 { templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter02.tga ) ) } material commandmaps/etqwmap_territory_03 { templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter03.tga ) ) } material commandmaps/etqwmap_territory_04 { templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter04.tga ) ) } material commandmaps/etqwmap_territory_05 { templates/game/maps/cmIcon( makealpha( commandmaps/etqwmap/etqwmap_ter05.tga ) ) }
The level shot (loading screen image) material:
material levelshots/etqwmap { sort gui { blend blend vertexColor map nopicmip clamp "levelshots/etqwmap" } }
The material for the small thumbnail of your map:
material levelshots/thumbs/etqwmap { sort gui { blend blend vertexColor map nopicmip clamp "levelshots/thumbs/etqwmap" } }
Definitions
Here are the map definitions needed for a functioning map. Save these to def/yourmapname.def
#include "def/pathfinder.include" heightMap heightmaps/etqwmap { heightMap "heightmaps/etqwmap.tga" } deployMask masks/etqwmap/mcp { mask "masks/etqwmap/mcp.tga" } deployMask masks/etqwmap/default { mask "masks/etqwmap/default.tga" } deployMask masks/etqwmap/mcp_route { mask "masks/etqwmap/mcp_route.tga" } deployMask masks/etqwmap/playzone { mask "masks/etqwmap/playzone.tga" } stringMap pathfinder_etqwmap { _pathfinder_default( "etqwmap", 20 ) "playzone_0" "etqwmap_playzone_path_and_heightmap" "resolution_x_playzone_0" "1280" "resolution_y_playzone_0" "1280" "mg_resolution_x_playzone_0" "1280" "mg_resolution_y_playzone_0" "1280" }