Ini File

From VisionaireWiki
Revision as of 23:11, 25 March 2006 by Timo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Visionaire 2.x offers a very comfortable way to predefine the settings of the SmartSetup via an .ini-file; for it can be very annoying if you have to change the settings everytime. You can also pass over some values, which disable the SmartSetup at all and start a game immediately:

The .ini-file and the projector have to be in the same directory. If there does not exist any .ini-file the common SmartSetup will be activated again.

The filename of the ini-file has to be config.ini.

Parameters of the config.ini-file:

FULLSCREEN = {yes|no}
  • yes - starts the game in fullscreen
  • no - starts the game in a window
RENDERER = {d3d|ogl}
  • d3d - use DirectX 3D
  • ogl - use OpenGL
INTRO = {yes|no}
  • yes - Show the intro movie on start-up.
  • no - Don't show the intro movie.

If the game file does not have an intro movie, this parameter can be ignored.

$FILE = {game.ved}

This parameter allows you to pass over the file, which is to be loaded automatically when starting the projector using the parameters configured above.

If empty, the projector will call the SmartSetup, using the parameters of the ini-file as default settings.

The file ending is of no importance, as long as it is valid visionaire game/project file.

LANGUAGE = {deutsch|englisch...}

Choose in which language the game is to be started.

Type in the exact name of the language as configured in the editor. If you start a .ved file, you might ignore this parameter.

TEMPPATH = {path}

During playing a game from a VED/EXE file sometimes some files (e.g. Videofiles) need to be extracted; Normally the directory is used, where the EXE file or the game projector are situated. A subdirectory tmp will be created there and used. We could not use the standard windows temp directory, because we got in trouble with some files.

For special situations, e.g. games running from CD, you can give here your own path.

The parameters and their values are case sensitive, except the file name (if exits)!! The order of the parameters is unimportant and does not have any effect.

1st Example

FULLSCREEN = no
RENDERER = d3d
INTRO = no
FILE = 
LANGUAGE = 
TEMPPATH = c:/zak2tmp

Since no file name was entered, the SmartSetup will be called. The settings are set to windowed mode, Direct3D rendering and "no intro". The player has to select a game file as well as a language manually. Temporary files are saved in directory c:\zak2tmp; the directory will be created, if it is not existing already.

2nd Example

FULLSCREEN = yes
RENDERER = ogl
INTRO = yes
FILE = demo/demo.vis
LANGUAGE = english

When starting the projector, the game called "demo/demo.vis" is started automatically. The game language is English; the intro will be shown, OpenGL is used in full screen mode.