Командная строка/Ru

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
(New page: {{Other_languages |en=Command line |fr=Ligne de commande |ru=Командная строка |language_page=ru }} '''Командная строка''' - это управляющая си...)
 
m
Line 1: Line 1:
 +
{{Перевод/Ru|Command line|1}}
 
{{Other_languages
 
{{Other_languages
 
|en=Command line
 
|en=Command line

Revision as of 09:03, 10 April 2012

Translation.png

Эта статья переводится с английского языка на русский: Command line.

Процент: 1%
  

Пожалуйста, помогите улучшить перевод.

  • Используйте руководство по стилю для правильного изложения перевода.
  • Помните, что необходимо удалить данный шаблон, когда статья будет полностью переведена.


Командная строка - это управляющая системная команда, которая используется для запуска игры. В нее может быть включены параметры регулирующие каким образом нужно запускать игру. Все версии OpenTTD поддерживают опции командной строки.

Contents

Command prompt options

Use openttd [parameter(s)].

Parameter Description
-h Lists OpenTTD command options.
-v <driver> Sets OpenTTD video driver. Depending on your build, valid drivers may include:

null for no video (crash)
sdl for SDL video
win32 for Windows video

-s <driver> Sets OpenTTD sound driver. Depending on your build, valid drivers may include

null for no sound
sdl for SDL sound
win32 for Windows sound

-m <driver> Sets OpenTTD music driver. Depending on your build, valid drivers may include

null for no music
dmusic for DirectMusic
win32 for Windows MIDI
extmidi for external MIDI
bemidi for BeOS MIDI

-r <xres>x<yres> Sets OpenTTD resolution.
-t <year> Sets the starting date.
-d <level>
-d ai=<level>
-d driver=<level>
-d grf=<level>
-d misc=<level>
-d net=<level>
-d spritecache=<level>
Sets debug level. Use any number between 0 and 9, where 9 is most sensitive.
for AI debuging info only
for driver debugging info (sound, music, graphics)
for newgrf debugging info only
for miscellaneous debugging info
for network debugging info only
for spritecache debugging info only
-e Starts the scenario editor.
-g [game] If no game is specified, starts a new game immediately. If a game is specified, loads that game immediately. Note: -g can load both savegames and scenarios.
-G <seed> Sets the random seed.
-n [ip:port#player] Start network game.
-D Start dedicated server.
-f Fork into the background (dedicated only).
-c <file> Use a different config file instead of openttd.cfg

Help for Windows users

There are two ways to add command line parameters:

The shortcut method

  • Make a shortcut to openttd.exe
  • Right click the shortcut and select properties. The first box should say something like this: C:\Games\openttd.exe
  • Put double quotes around the text: "C:\Games\openttd.exe"
  • Add parameters afterwards, outside the quotes: "C:\Games\openttd.exe" -m
  • To add modifiers, insert them one space after the parameter: "C:\Games\openttd.exe" -n 127.12.13.1
  • Separate multiple parameters with spaces: "C:\Games\Openttd.exe" -m -s null
  • When you are done, run the game using the shortcut.

The DOS method

This requires basic DOS knowledge. If you don't have that, use the shortcut method.

  • Start the MS-DOS prompt.
  • Go to the openttd.exe location.
  • Do the same as above, only without the quotes.
Personal tools