Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Command line functions"

From TWC Wiki
Jump to navigationJump to search
m (Text replacement - "http://www.twcenter.net" to "https://www.twcenter.net")
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
RTW and BI have various helpful command line functions, some of which are listed below.  To add a command line function, right click your desktop shortcut, select properties, and after the last " type a space and the function you require.  More than one function can be added to the same line, just remember to put a space between each.  Finished result can look like:http://img402.imageshack.us/img402/8722/commandlinein8.jpg
+
RTW and BI have various helpful command line functions, some of which are listed below.  To add a command line function, right click your desktop shortcut, select properties, and after the last <big>'''"'''</big> in the target line type a space and the function you require.  More than one function can be added to the same line, just remember to put a space between each.  Finished result can look like:
 +
[[File:Commandline.png]]
  
 
===Possible Command Line Functions===
 
===Possible Command Line Functions===
Line 12: Line 13:
 
'''-nm''' disables the introductory videos giving quicker start.  Removes the need to hit Esc to stop videos when loading.  Sounds minor but when modding after the 100th restart you'll understand.
 
'''-nm''' disables the introductory videos giving quicker start.  Removes the need to hit Esc to stop videos when loading.  Sounds minor but when modding after the 100th restart you'll understand.
  
'''[[-sprite_script]]''' disables the game but makes sprites for you instead.  
+
'''[[Sprites|-sprite_script]]''' disables the game but makes sprites for you instead.  
Temporary link to info: http://forums.totalwar.org/vb/showthread.php?t=44180 (needs summarising here)
 
  
 
'''-movie_cam''' functions in replays of custom battles, gives you more control over viewing angle.  Useful for taking screen shots.  For more information see here:
 
'''-movie_cam''' functions in replays of custom battles, gives you more control over viewing angle.  Useful for taking screen shots.  For more information see here:
http://www.twcenter.net/forums/showthread.php?t=49260
+
https://www.twcenter.net/forums/showthread.php?t=49260
  
I'm sure there's more - please add any others to list above.
+
'''-ai''' launch game with that on shortcut and when you start campaign the AI takes control of all factions.  Useful for testing to see if you have any long range date related bugs and to view AI expansion in mods.  All battles are resolved on autocalc so expansion may not be the same as if playing game yourself.
  
 +
'''-strat:campaign_name ''' (campaign_name is the name of a subfolder within data\world\maps\campaign). This skips all the menus and immediately starts a new campaign that you specified. This can be useful for repetitive testing of the campaign. By default, the faction is romans_julii, as it is the first playable faction. To start with another faction, simply put every factions except this one as unplayable in the descr_strat.txt.
  
 +
''' -enable_editor ''' enables the Historical Battle Editor. To use the Editor, start the game, go to Options, then Battle Editor.
  
 +
''' -multirun ''' enables multiple instances of RTW to be run. Exe can be mixed, ie you can run RTW and BI and Alex at the same time. Can be used for running multiples ai test at the same time.
  
 +
'''-na ''' disables sounds.
  
 +
'''-noalexander ''' forces the Alexander exe to use the mod as the main campaign.
  
 +
''I'm sure there's more - please add any others to list above.''
  
  
[[Category:RTWModding]][[Category:Modding]]
+
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
[[Category:RTW Modding]]

Revision as of 12:19, 10 February 2020

RTW and BI have various helpful command line functions, some of which are listed below. To add a command line function, right click your desktop shortcut, select properties, and after the last " in the target line type a space and the function you require. More than one function can be added to the same line, just remember to put a space between each. Finished result can look like: Commandline.png

Possible Command Line Functions

-show_err every modders best friend, gives basic error messages for most problems. Anyone modifying game files or playing a mod should use it.

-mod:my_mod the user friendly way of releasing a mod. Also useful for home mods. Saves having to have multiple RTW/BI installs and allow multiple mods to run on the same installation. Temporary link to info: http://forums.totalwar.org/vb/showthread.php?t=44332 (needs summarising here)

-ne allows game to run in windowed mode. Leave a program or file open before you start the game and use alt-tab to return to that program or your desktop without quitting game. You can alt-tab out of game anyway but this allows game to keep running in the background. Useful if waiting out siege battles or using -ai (see below)

-nm disables the introductory videos giving quicker start. Removes the need to hit Esc to stop videos when loading. Sounds minor but when modding after the 100th restart you'll understand.

-sprite_script disables the game but makes sprites for you instead.

-movie_cam functions in replays of custom battles, gives you more control over viewing angle. Useful for taking screen shots. For more information see here: https://www.twcenter.net/forums/showthread.php?t=49260

-ai launch game with that on shortcut and when you start campaign the AI takes control of all factions. Useful for testing to see if you have any long range date related bugs and to view AI expansion in mods. All battles are resolved on autocalc so expansion may not be the same as if playing game yourself.

-strat:campaign_name (campaign_name is the name of a subfolder within data\world\maps\campaign). This skips all the menus and immediately starts a new campaign that you specified. This can be useful for repetitive testing of the campaign. By default, the faction is romans_julii, as it is the first playable faction. To start with another faction, simply put every factions except this one as unplayable in the descr_strat.txt.

-enable_editor enables the Historical Battle Editor. To use the Editor, start the game, go to Options, then Battle Editor.

-multirun enables multiple instances of RTW to be run. Exe can be mixed, ie you can run RTW and BI and Alex at the same time. Can be used for running multiples ai test at the same time.

-na disables sounds.

-noalexander forces the Alexander exe to use the mod as the main campaign.

I'm sure there's more - please add any others to list above.