Difference between revisions of "Day of Infamy:Creating Levels"

From New World Interactive Wiki
Jump to: navigation, search
m (New info about a displacement bug in hammer)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
[[Category:Day of Infamy]]
 
= Setting up Hammer for Day of Infamy =
 
= Setting up Hammer for Day of Infamy =
 
''For information about Hammer for Insurgency, refer to [http://wiki.newworldinteractive.com/Insurgency:Creating_Levels Creating Levels for Insurgency]''
 
''For information about Hammer for Insurgency, refer to [http://wiki.newworldinteractive.com/Insurgency:Creating_Levels Creating Levels for Insurgency]''
  
In order to access the DOI content in Hammer, you will need to copy the .VPKs from the DOI workshop folder.
+
The standalone version of Day of Infamy ships with Hammer pre-installed, along with a collection of SDK maps.
You can locate your DOI workshop folder in '''"steamapps/workshop/content/222880/601757902"'''
+
  
You need to copy all the VPKs files from this folder to your '''"steamapps\common\insurgency2\insurgency\custom"'''
+
Simply start hammer by running: ''$steamlibrary\steamapps\common\dayofinfamy\bin\hammer.exe''
  
Once all the files are copied, simply restart {{hammer}} [https://developer.valvesoftware.com/wiki/Category:Hammer Hammer.exe]
+
Each map requires a "map.txt" file in order to inform Day of Infamy which game modes, factions, and weapons are supported.
 +
There is no proper documentation for the "map.txt" files, but the SDK content provides some examples.
  
In order to use the DOI theatre in your level by default, add <code>"theaterFile" "doi"</code> to your map.txt.
+
''For information about Map Scripts, refer to [http://wiki.newworldinteractive.com/Insurgency:Creating_Levels#Map_Scripts Map Scripts for Insurgency] ''
  
 +
= Supported Environments =
  
''For information about Map Scripts, refer to [http://wiki.newworldinteractive.com/Insurgency:Creating_Levels#Map_Scripts Map Scripts for Insurgency] ''
+
Currently the only supported factions in the game are the American, Commonwealth, and German armies. New World Interactive has no plans to officially add any more factions to Day of Infamy, but additional factions can be added by modding.
  
 +
If you wish to create maps that take place in other theaters, this is fine, but your map may not be included until the character and weapon content gets created to support your map.
  
 +
= Day of Infamy Level Setup =
  
= Supported Environments =
+
There is a known bug in Hammer which prevents you from launching the game after compling your map (F9). This can be worked around by clicking '''Expert...''' after hitting F9, unchecking and rechecking the '''$game_exe''' checkbox, and clicking "Go!".
  
Currently the only supported factions in the game are the American and German armies. In the future, there may be countless different factions supported and thus different potential settings. For now, it would make the most sense to create a map that supports the American vs. German army factions if you wish for your map to get included in the current version of the mod.  
+
After compiling a map, the bsp file should get copied to ''dayofinfamy\doi\maps\map_name.bsp''
  
If you wish to create maps that take place in other theaters, this is fine, but your map may not be included until the character and weapon content gets created to support your map.
+
* [[Day_of_Infamy:Spawnzones & Blockzones|Spawnzones & Blockzones]]
 +
* [[Day_of_Infamy:Capture Zones & Weapon Caches|Capture Zones & Weapon Caches]]
 +
* [[Day_of_Infamy:Basic Gamemodes Layout|Basic Gamemodes Layout]]
 +
* [[Day_of_Infamy:Destructible & Interactive props|Destructible & Interactive props]]
 +
 
 +
A map script is also required to setup the game mode and factions.
 +
 
 +
* [[Day_of_Infamy:Map Scripts|Map Scripts]]
 +
 
 +
Be sure to uncheck "Batch displacements rendering" option under :
 +
 
 +
* Tools -> Option -> General -> Insurgency
 +
 
 +
== Minimum Requirements ==
 +
 
 +
* ins_viewpoint - Background camera view of map for faction and loadout screens.
 +
* light_environment - Global lighting for map. Everything will be black otherwise.
 +
* env_cubemap - Place preferably in the center of the map. Used for generating reflections?
 +
* "map.txt" - [[Day_of_Infamy:Map_Scripts|Map script]] defining factions, spawns, game mode, and control points. Should reside in the same directory as the ''map.bsp'' file with the name ''map.txt'' (Ex: sdk_invasion.bsp, sdk_invasion.txt). If a map is started without this file, only the default factions will be selected, you won't be able to choose a kit, and you won't spawn on the map. It can also cause the map to fail to load, causing Day of Infamy to crash to desktop completely.
 +
* ins_spawnpoint - Should exist within an ''ins_spawnzone''. Location of where users will start in the map. Set ''Team Number (int)'' to ''Security'' or ''Insurgents'', and select ''World Model'' from ''models\characters\#faction#\player_#faction#_##.mdl''
 +
* ins_spawnzone - One for each faction. Draw a brush using the ''tools/tools_trigger_spawnzone'' texture, and then select it and hit ''Ctrl+t''. Change the class to ''ins_spawnzone''. Set ''Team Number (int)'' entity property to Security or Insurgence, and associate with respective block zone under ''Block Zone''. Determines the spawn area.
 +
* ins_blockzone - One for each faction. Blocks the other team from entering the spawn zone.

Latest revision as of 13:22, 25 December 2017

Setting up Hammer for Day of Infamy

For information about Hammer for Insurgency, refer to Creating Levels for Insurgency

The standalone version of Day of Infamy ships with Hammer pre-installed, along with a collection of SDK maps.

Simply start hammer by running: $steamlibrary\steamapps\common\dayofinfamy\bin\hammer.exe

Each map requires a "map.txt" file in order to inform Day of Infamy which game modes, factions, and weapons are supported. There is no proper documentation for the "map.txt" files, but the SDK content provides some examples.

For information about Map Scripts, refer to Map Scripts for Insurgency

Supported Environments

Currently the only supported factions in the game are the American, Commonwealth, and German armies. New World Interactive has no plans to officially add any more factions to Day of Infamy, but additional factions can be added by modding.

If you wish to create maps that take place in other theaters, this is fine, but your map may not be included until the character and weapon content gets created to support your map.

Day of Infamy Level Setup

There is a known bug in Hammer which prevents you from launching the game after compling your map (F9). This can be worked around by clicking Expert... after hitting F9, unchecking and rechecking the $game_exe checkbox, and clicking "Go!".

After compiling a map, the bsp file should get copied to dayofinfamy\doi\maps\map_name.bsp

A map script is also required to setup the game mode and factions.

Be sure to uncheck "Batch displacements rendering" option under :

  • Tools -> Option -> General -> Insurgency

Minimum Requirements

  • ins_viewpoint - Background camera view of map for faction and loadout screens.
  • light_environment - Global lighting for map. Everything will be black otherwise.
  • env_cubemap - Place preferably in the center of the map. Used for generating reflections?
  • "map.txt" - Map script defining factions, spawns, game mode, and control points. Should reside in the same directory as the map.bsp file with the name map.txt (Ex: sdk_invasion.bsp, sdk_invasion.txt). If a map is started without this file, only the default factions will be selected, you won't be able to choose a kit, and you won't spawn on the map. It can also cause the map to fail to load, causing Day of Infamy to crash to desktop completely.
  • ins_spawnpoint - Should exist within an ins_spawnzone. Location of where users will start in the map. Set Team Number (int) to Security or Insurgents, and select World Model from models\characters\#faction#\player_#faction#_##.mdl
  • ins_spawnzone - One for each faction. Draw a brush using the tools/tools_trigger_spawnzone texture, and then select it and hit Ctrl+t. Change the class to ins_spawnzone. Set Team Number (int) entity property to Security or Insurgence, and associate with respective block zone under Block Zone. Determines the spawn area.
  • ins_blockzone - One for each faction. Blocks the other team from entering the spawn zone.