![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
CategoriesToolbox
|
ViewsSDK - Tools - Command Line - Environment Variables (FSX/A)From FSDeveloper WikiA method to simplify working with the FSX/A SDK's command-line tools,
[edit] Overview[edit] Default MethodWhilst you can drag a prepared file onto a desktop-shortcut to an SDK tool
Using the command-line tools can be a little awkward,
[edit] Environment Variables MethodEnvironment variables - Global values or settings, (available across sessions).
Once applied, these environment variables will -
Each Environment variable comprises of a -
[edit] SDK's ToolsList of FSX/A SDK's tools that utilise the Command Prompt Window, (aka DOS box).
[edit] ImplementingApplicable to XP/Vista/Win7 operating systems -
[edit] FS2004 specific variablesTODO - Add FS9 specific details.
[edit] FSX/A specific variablesThese variable name/value pairs must be entered exactly as below,
The samples below are laid out as follows - variable name variable value
[edit] FSX paths - CoreSingle-source base path variables essential for use in all tool variables.
Two examples below are for default installations.
FSX_ROOT C:\Program Files\Microsoft Games\Microsoft Flight Simulator X\ FSXSDK_ROOT C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\ N.B. Trailing slash is essential.
[edit] Tool Paths - OptionalVariables for calling the individual tools. NB
[edit] BGLCompBGLCompX "%FSXSDK_ROOT%Environment Kit\BGL Compiler SDK\bglcomp.exe" Note the appended X suffix in the variable name,
[edit] ImageToolImageTool "%FSXSDK_ROOT%Environment Kit\Terrain SDK\ImageTool.exe" ImageTool will launch the GUI if no parameters are supplied.
[edit] ResampleResample "%FSXSDK_ROOT%Environment Kit\Terrain SDK\resample.exe"
[edit] Shp2VecShp2Vec "%FSXSDK_ROOT%Environment Kit\Terrain SDK\Shp2Vec.exe" Shp2Vec default method useage requires a path parameter.
Shp2Vec path string -flags As the environment variable method is working in the context of the local folder,
Shp2Vec . string -flags
[edit] SimpropcompilerSimpropcompiler "%FSXSDK_ROOT%Core Utilities Kit\SimProp\Simpropcompiler.exe" An extra for any frequent .SPB creators. SPC2SPB %Simpropcompiler% 2spb -symbols "%FSX_ROOT%propdefs\*.xml"
[edit] Useage[edit] OpeningIn explorer, (file manager) -
[edit] Windows 7
[edit] RunningAs you are calling a variable
[edit] TestingFor test purposes to prove its working,
%bglcompx% Pressing the return key, will now run bglcomp in the context of the local folder. As you've not supplied any parameters
[edit] NormalFor normal useage
[edit] Example 1%bglcompx% yourproject.xml The output .bgl or .rwd will be in the current folder. [edit] Example 2%spb2spc% yourproject.xml The output .spb will be in the current folder.
[edit] Related[edit] Internal
[edit] ExternalPlaceholder text |
|||||||||||||||||||||||||||||||||||||