Difference between revisions of "HPL3/SOMA/Developer Commands"

From Frictional Wiki
< HPL3‎ | SOMA
Jump to navigation Jump to search
m
Line 5: Line 5:
 
==Command Line Arguments==
 
==Command Line Arguments==
  
{{todo|Add example for each one of them}}
+
{{todo|Add example for each one of them and finish this list via https://wiki.frictionalgames.com/index.php/Hpl3:Game:commandline}}
  
=== '''-user''' ===
+
==='''-user'''===
 
This starts the mod with a different user name. This is useful for starting a mod with a different set of save files, as they are saved per-user.
 
This starts the mod with a different user name. This is useful for starting a mod with a different set of save files, as they are saved per-user.
 
<br>
 
<br>
 
Default value: <code>Default</code>.
 
Default value: <code>Default</code>.
  
=== '''-cfg''' ===
+
==='''-cfg'''===
 
This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
<br>
 
<br>
 
Default value: <code>config/main_init.cfg</code>.
 
Default value: <code>config/main_init.cfg</code>.
  
=== '''-map''' ===
+
==='''-map'''===
 
This starts the mod and opens a specific map specific map.
 
This starts the mod and opens a specific map specific map.
 
<br>
 
<br>
Line 23: Line 23:
  
  
=== '''-mapfolder''' ===
+
==='''-mapfolder'''===
 
This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
<br>
 
<br>
Line 29: Line 29:
  
  
=== '''-mappos''' ===
+
==='''-mappos'''===
 
This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
<br>
 
<br>
 
Default value: <code>config/main_init.cfg</code>.
 
Default value: <code>config/main_init.cfg</code>.
  
=== '''-workdir''' ===
+
==='''-workdir'''===
 
This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
 
<br>
 
<br>
 
Default value: <code>config/main_init.cfg</code>.
 
Default value: <code>config/main_init.cfg</code>.

Revision as of 23:09, 27 July 2020

When launching your mod via a Command Prompt (CMD .bat file), you can pass optional arguments which will affect the way the mod is loaded by the game. It can be useful for mods which require custom assets and scripts, or if you want to customize it further than that.

Command Line Arguments

To do: Add example for each one of them and finish this list via https://wiki.frictionalgames.com/index.php/Hpl3:Game:commandline

-user

This starts the mod with a different user name. This is useful for starting a mod with a different set of save files, as they are saved per-user.
Default value: Default.

-cfg

This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
Default value: config/main_init.cfg.

-map

This starts the mod and opens a specific map specific map.
Default value: Stated at StartMap in main_init.cfg.


-mapfolder

This changes the main config file that is used when starting the mod. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
Default value: config/main_init.cfg.


-mappos

This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
Default value: config/main_init.cfg.

-workdir

This changes the main config file that is used when starting the game. This is useful if the relative path of the config file inside your mod folder is different and you want to point to your file.
Default value: config/main_init.cfg.