Editing MG/Command line options
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 27: | Line 27: | ||
|- | |- | ||
| style="font-size: 8pt;" |<tt>--headless-server-mode=x,x</tt> | | style="font-size: 8pt;" |<tt>--headless-server-mode=x,x</tt> | ||
− | | style="font-size: 8pt;" |Run as a | + | | style="font-size: 8pt;" |Run as a headless server where x is an optional comma delimited command list of one or more of <tt>exit</tt> (quits the application after a game has no more connected players) or <tt>vps</tt> (does NOT read commands from the local console - for some VPSs). |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--use-ports=x,y,z</tt> | | style="font-size: 8pt;" |<tt>--use-ports=x,y,z</tt> | ||
− | | style="font-size: 8pt;" |Force hosted games to listen internally on | + | | style="font-size: 8pt;" |Force hosted games to listen internally on port x, externally on port y, where x is the internal port # on the local machine to listen for connects and y is the external port # on the router/proxy to forward connection from to the internal port number. If enabled the FTP server port numbers will be set to x+1 to x+9. z is the game status port # on the local machine to listen for status requests |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--load-scenario=x</tt> | | style="font-size: 8pt;" |<tt>--load-scenario=x</tt> | ||
− | | style="font-size: 8pt;" |Auto-load a | + | | style="font-size: 8pt;" |Auto-load a scenario by scenario name. |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--load-mod=x</tt> | | style="font-size: 8pt;" |<tt>--load-mod=x</tt> | ||
− | | style="font-size: 8pt;" |Auto-load a | + | | style="font-size: 8pt;" |Auto-load a mod by mod pathname. |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--preview-map=x</tt> | | style="font-size: 8pt;" |<tt>--preview-map=x</tt> | ||
− | | style="font-size: 8pt;" |Auto-preview a | + | | style="font-size: 8pt;" |Auto-preview a map by map name. |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--version</tt> | | style="font-size: 8pt;" |<tt>--version</tt> | ||
Line 51: | Line 51: | ||
|- | |- | ||
| style="font-size: 8pt;" |<tt>--lua-info</tt> | | style="font-size: 8pt;" |<tt>--lua-info</tt> | ||
− | | style="font-size: 8pt;" |Displays your | + | | style="font-size: 8pt;" |Displays your Lua version information. |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--curl-info</tt> | | style="font-size: 8pt;" |<tt>--curl-info</tt> | ||
Line 57: | Line 57: | ||
|- | |- | ||
| style="font-size: 8pt;" |<tt>--validate-techtrees=a=purgeunused=purgeduplicates<br />=svndelete=hideduplicates</tt> | | style="font-size: 8pt;" |<tt>--validate-techtrees=a=purgeunused=purgeduplicates<br />=svndelete=hideduplicates</tt> | ||
− | | style="font-size: 8pt;" |Displays a report detailing any known problems related to your selected | + | | style="font-size: 8pt;" |Displays a report detailing any known problems related to your selected techtrees game data. |
*<tt>a</tt> is a comma-delimited list of techtrees to validate. | *<tt>a</tt> is a comma-delimited list of techtrees to validate. | ||
*<tt>purgeunuse</tt> is an optional parameter which tells the validation to delete extra files in the techtree that are not used. | *<tt>purgeunuse</tt> is an optional parameter which tells the validation to delete extra files in the techtree that are not used. | ||
Line 73: | Line 73: | ||
*<tt>hideduplicates</tt> is an optional parameter, which, if true, tells the validation to not show duplicate files in the techtree. This only applies when files are purged due to the above flags being set. | *<tt>hideduplicates</tt> is an optional parameter, which, if true, tells the validation to not show duplicate files in the techtree. This only applies when files are purged due to the above flags being set. | ||
Example: | Example: | ||
− | megaglest --validate- | + | megaglest --validate-factions=magic,tech |
|- | |- | ||
| style="font-size: 8pt;" |<tt>--validate-scenario=a=purgeunused</tt> | | style="font-size: 8pt;" |<tt>--validate-scenario=a=purgeunused</tt> | ||
Line 96: | Line 96: | ||
|- | |- | ||
| style="font-size: 8pt;" |<tt>--convert-models=a=b=keepsmallest</tt> | | style="font-size: 8pt;" |<tt>--convert-models=a=b=keepsmallest</tt> | ||
− | | style="font-size: 8pt;" |Convert a | + | | style="font-size: 8pt;" |Convert a model file or folder to the current G3D version format. |
− | *<tt>a</tt> is a filename or folder containing the | + | *<tt>a</tt> is a filename or folder containing the G3D model(s). |
*<tt>b</tt> is an optional supported texture format to convert the model's texture to (TGA, BMP, JPG, or PNG). | *<tt>b</tt> is an optional supported texture format to convert the model's texture to (TGA, BMP, JPG, or PNG). | ||
*<tt>keepsmallest</tt> is an optional flag indicating to keep original texture if its filesize is smaller than the converted format. | *<tt>keepsmallest</tt> is an optional flag indicating to keep original texture if its filesize is smaller than the converted format. | ||
Line 199: | Line 199: | ||
*[[MG/INI|MegaGlest's INI]] | *[[MG/INI|MegaGlest's INI]] | ||
*[[MG/Features|List of MegaGlest features]] | *[[MG/Features|List of MegaGlest features]] | ||
− | |||
− | |||
− |