op2_sdk:projectsettings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
op2_sdk:projectsettings [2016/10/06 06:50] – [Copying Scenario DLL using a Post Build Event] vagabondop2_sdk:projectsettings [2016/10/12 21:32] – external edit 127.0.0.1
Line 24: Line 24:
  
 Visual Studio uses macros in pre and post build events to simplify commands. For example ''$(TargetName)'' represents the target filename minus its extension. A list of macros can be found here: [[https://msdn.microsoft.com/en-us/library/c02as0cs.aspx]]. Visual Studio uses macros in pre and post build events to simplify commands. For example ''$(TargetName)'' represents the target filename minus its extension. A list of macros can be found here: [[https://msdn.microsoft.com/en-us/library/c02as0cs.aspx]].
 +
 +A vanilla copy of the current Outpost 2 release is kept in the repository at ''Outpost2SVN\GameDownload\Outpost2\Trunk''. It is recommended to target this copy of Outpost 2 for testing. If placing the scenario on the SVN, the post build event's output path should be similar to ''..\..\..\..\GameDownload\Outpost2\trunk\''. This allows post build events to work on other computers where the repository is downloaded without changing the destination of post build event copies.
  
 **Example Post Build copy commands:**  **Example Post Build copy commands:** 
  
- * copy /Y "$(TargetPath)" "..\..\..\..\GameDownload\Outpost2\trunk\$(TargetFilename)" +  * copy /Y "$(TargetPath)" "..\..\..\..\GameDownload\Outpost2\trunk\$(TargetFilename)" 
- * copy /Y "$(ProjectDir)Ashes.map" "..\..\..\..\GameDownload\Outpost2\trunk\Ashes.map" +  * copy /Y "$(ProjectDir)Ashes.map" "..\..\..\..\GameDownload\Outpost2\trunk\Ashes.map" 
- * copy /Y "$(ProjectDir)multitekNoLavaWalls.txt" "..\..\..\..\GameDownload\Outpost2\trunk\multitekNoLavaWalls.txt"+  * copy /Y "$(ProjectDir)multitekNoLavaWalls.txt" "..\..\..\..\GameDownload\Outpost2\trunk\multitekNoLavaWalls.txt"
  
 **Setting Post Build Event Instructions** **Setting Post Build Event Instructions**
Line 39: Line 41:
   - Set the Command Line to perform a copy event.   - Set the Command Line to perform a copy event.
   - Repeat for each file you want copied to the new directory.   - Repeat for each file you want copied to the new directory.
- 
-If placing a project into the Outpost2SVN, copy your output files into the repository's Outpost 2 game folder using a relative path. This allows post build events to work on other computers where the repository is downloaded without changing the destination of post build event copies. 
- 
-  * See the Outpost 2 game on the repository at Outpost2SVN\GameDownload\Outpost2\Trunk.  
-  * For an output path example, use a path similar to ''..\..\..\..\GameDownload\Outpost2\trunk\''. 
  
 **Note:** //Before committing a new project to the repository, turn the post build events into remarks by prefixing them with the rem keyword. This prevents the post build events from executing unless the user downloading your source code explicitly wants them.// **Note:** //Before committing a new project to the repository, turn the post build events into remarks by prefixing them with the rem keyword. This prevents the post build events from executing unless the user downloading your source code explicitly wants them.//
Line 86: Line 83:
 {{ op2_sdk:projectsettings:breakpoint_hit_visual_studio_2015.png }} {{ op2_sdk:projectsettings:breakpoint_hit_visual_studio_2015.png }}
  
-**Note:** //The Visual Studio must have access to your scenario's PDB (Program Debug Database) file for debugging. The PDB file is rebuilt every time you recompile a scenario. Visual Studio will automatically find the PDB file in your project directories and copying the PDB to the Outpost 2 directory is not required.//+**Note:** //Visual Studio must have access to your scenario's PDB (Program Debug Database) file for debugging. The PDB file is rebuilt every time you recompile a scenario. Visual Studio will automatically find the PDB file in your project directories and copying the PDB to the Outpost 2 directory is not required.//
  
 ----  ---- 
  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\  - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\
  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\
- - //Go Back to [[http://wiki.outpostuniverse.org/doku.php?id=start|Wiki Home Page]]//+ - //Go Back to [[http://wiki.outpost2.net/doku.php?id=start|Wiki Home Page]]//
  
  • op2_sdk/projectsettings.txt
  • Last modified: 2016/11/03 17:40
  • by vagabond