Difference between revisions of "SDK Installation (FSX)"

From FSDeveloper Wiki
Jump to: navigation, search
(Versions)
(Documentation)
Line 130: Line 130:
  
 
== Documentation ==
 
== Documentation ==
'''RTM''', '''SP1''', & '''SP1a''' documentation is supplied in '''html''' format, with each folder containing the relevant html file(s).
+
'''RTM''', '''SP1''' and '''SP1a''' documentation is supplied in '''html''' format, with each folder containing the relevant html file(s).
  
'''SP2''' documentation is supplied in '''chm''' format, as a single compiled html file, '''fsxsdk.chm'''.<br>
+
'''SP2''' documentation is supplied in '''chm''' format, as a single compiled html file, '''fsxsdk.chm'''. Located by default in '''C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK'''
located by default in '''C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK'''
 
  
If your SDK is still in HTML format,
+
If your SDK is still in HTML format, rather than the Windows Help File format, (CHM), then you've installed SDK SP1a, and not SDK SP2.
<br>
 
rather than the Windows Help File format, (CHM),
 
<br>
 
then you've installed SDK SP1a, and not SDK SP2.
 
  
 
== Configuration ==
 
== Configuration ==

Revision as of 04:39, 8 January 2010

How to install the SDK for FSX/FSXA.

The Software Development Kit (SDK) is a set of development tools which allow you to develop, create or modify content for the simulation.
The majority of the tools are command-line based, but some are accessible via the in-game Tools menu, (not the GUI).

  • Print out this page, and work from that.
  • Read through thoroughly before commencing installation.
  • Ensure you've followed ALL instructions before you request assistance.


Prerequisites

Availability

  • The SDK is available in the FSX Deluxe package only, (not on FSX Standard).
  • Purchasers of FSX Standard can obtain the SDK by purchasing and installing FSX Acceleration.


  • FSX Deluxe users must as a minimum have the RTM FSX SDK installed before attempting to upgrade to the SDK Service Packs.
  • FSX must not be running whilst installing the SDK.
  • After editing either fsx.CFG or dll.xml, FSX must be restarted, (they're only read on FSX launch).

.NET 2.0

Several tools require Microsoft .NET Framework Version 2.0 to be installed first.
Download from: Microsoft Downloads - .NET Framework Version 2.0

After installing .NET 2.0, (and rebooting if required), ensure you then run Windows Update to obtain subsequent patches.
Then reinstall/repair the SDK.

Please note: .NET 3.0 is supplemental to .NET 3.0, it is not a replacement version!

Installation

RTM FSX Users

To install the SDK for FSX RTM:

  1. FSX must not be running.
  2. Browse the FSX Deluxe Edition disk 1
  3. Open the SDK sub-folder
  4. Double-click the setup.exe
  5. Tell it where to install


Default installation location is C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK

FSX SP1 users

To install the SDK for FSX SP1:

  1. Download FSX SDK SP1A
  2. First install the RTM SDK (see instructions above)
  3. Install the FSX SDK SP1A that you downloaded

FSX SP1 users

If you have FSX Acceleration Pack do not install SP2, see instructions below for the Acceleration Pack.

To install the SDK for FSX SP2:

  1. Download FSX SDK SP2
  2. First install the RTM SDK and SDK SP1A (see instructions above)
  3. Install the FSX SDK SP2 that you downloaded

FSX Acceleration Pack Users

To install the SDK for FSX Acceleration Pack:

  1. Insert your Acceleration Pack DVD
  2. Open the folder called SDK
  3. First install the RTM SDK and SDK SP1A (see instructions above, SDK SP1A is included on the disk for you ease)
  4. Install sdk.msi from your disk to install the SDK for the Acceleration Pack

All Users

Do not copy SDK-DLLs into your FSX modules folder, (it's totally unnescessary).

Versions

For both Flight Simulator X and the FSX SDK service packs have been released. It is REQUIRED that you install the version of the SP of SDK that matches the SP you have installed for Flight Simulator X.

Find your installed FSX version in the FSX column, read the matching SDK column/row details.

FSX ID# SDK Availability Installer Location
RTM 10.0.60905 RTM Retail sdk.msi FSX RTM disk 1, SDK sub-folder
SP1 Discontinued N/A Standalone
SP1 10.0.61355
(Russian: 10.0.61357)
SP1A Download (166Mb) * fsx_sdk_sp1a.exe Standalone
SP2 10.0.61472 SP2 Download (211Mb) * sdk.msi Standalone
Acceleration 10.0.61637 SP2/XPack Retail sdk.msi FSX Acceleration disk, SDK sub-folder

* May also be available on magazine cover discs.

Documentation

RTM, SP1 and SP1a documentation is supplied in html format, with each folder containing the relevant html file(s).

SP2 documentation is supplied in chm format, as a single compiled html file, fsxsdk.chm. Located by default in C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK

If your SDK is still in HTML format, rather than the Windows Help File format, (CHM), then you've installed SDK SP1a, and not SDK SP2.

Configuration

If you had installed both FSX & SDK to their default locations,
as a quick indicator that the SDK is correctly installed,
the OPT should now be available from the FSX Tools menu.

If you had installed either FSX or the SDK to a non-default location,
you should run configsdk.exe located in the SDK root folder.

N.B.
Running configsdk.exe will only correct the registry paths.
It will not update/correct the user's dll.xml file, (see FSX in-game Tools menu below).

FSX in-game Tools menu

The Tools menu is accessed from within a flight, (not the main GUI).

The only SDK tools available in-game, are the Object placement tool, 3 traffic tools, and the effects tool.

All other tools are run/started from outside the sim GUI.
Look in the root of where you'd installed the SDK, or
Start -> All Programs -> Microsoft Games -> Microsoft Flight Simulator X SDK -> Flight Simulator X SDK

If having correctly followed all the above instructions, and the Tools menu is still not displaying, there are 3 aspects you need to investigate -

  • Addons
  • dll.xml
  • fsx.CFG

All changes must be made with FSX shut down.

Addons

Incorrect addon versions may prevent the Tools menu from loading entirely.


   You MUST install

   ALL the appropriate Addon updates

   to match your SDK Service Pack version.    

Ensure you are using the latest version of any addons, (e.g. FSUIPC).
Important particularly when you upgrade FSX to a newer service pack.

If the Tools menu still doesn't load -

  • Remove all addon entries.
  • Ensure the MS SDK tools load.
  • One by one, re-apply your addons, checking each time to confirm the Tools menu is still present.

dll.xml

If the FSX Tools menu option is still not displaying, you may need to edit dll.xml manually, to -

  • include the full paths for the SDK entries.
  • set disabled to false
  • remove all addon entries.

Any changes will not be reflected till next time you start FSX.

Location


   There are several example/backup dll.xml files    

   located in the -   

   - SDK subfolders, (4 example dll.xml)

   - FSX root folder, (default dll.xml backup copy).   

   IGNORE THOSE - They are irrelevant.
   


There is only one relevant dll.xml
dll.xml file is located in your %APPDATA% folder
that's the same location as your fsx.cfg, at -

OS dll.xml location
XP C:\Documents and Settings\USERNAME\Application Data\Microsoft\FSX\
Vista C:\Users\USERNAME\AppData\Roaming\Microsoft\FSX\
Win7 C:\Users\USERNAME\AppData\Roaming\Microsoft\FSX\


Editing

You must use a text editor, e.g. Notepad, or an XML editor.

You must not use Word or Wordpad as they will corrupt the file.

Paths

The defined paths must be correct.

Remark: If you had copies of the SDK-DLLs installed in your FSX modules folder you will have to copy the new versions manually after installation of the SDK SP2.

Default Installation Location

A relative path e.g.
..\Microsoft Flight Simulator X SDK\SDK\Mission Creation Kit\object_placement.dll

is relative to the FSX default location -
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X

Non-Default Installation Location

If either FSX or the SDK is installed to a non-standard location
then use a full path (aka absolute path). e.g.
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Mission Creation Kit\Object_Placement.dll

If you'd installed the SDK to your F: drive, then the full path would be -
F:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Mission Creation Kit\Object_Placement.dll

Disabled

Each of the 3 SDK tools need to be set as follows.

	<Disabled>False</Disabled>
	<ManualLoad>False</ManualLoad>

fsx.CFG

DRAFT SECTION


Trusted

On initial install of the SDK, then subsequent first FSX run, you are prompted whether to trust/allow each of the 3 SDK in-game tools to run.

Did you ever say no ?


Please open your fsx.cfg in a text editor.

Look for the [Trusted] section find the 3 tools entries, these may appear multiple times, (one for each SDK version).

These are the entries for mine.

C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Mission Creation Kit\Object_Placement.dll.LONGSTRING=1
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffictoolbox.dll.LONGSTRING=1
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Special Effects SDK\visualfxtool.dll.LONGSTRING=1

Where LONGSTRING is a 'meaningless' alphanumeric string.
The final value should be =1

Is it ?
If not, change it to =1

Fire up FSX.
Do the tools now display ?

Vista users

If that doesn't work,
it may possible be that part of your fsx.CFG is corrupted,
(contains an inappropriate character).

Try renaming your fsx.cfg
to fsx_TODAYSDATE.cfg

Fire up FSX,
it'll rebuild the fsx.CFG
and prompt for the required permissions.



The 1's not sticking.

It's because Vista treats all .cfg files as being system files.

It opens a copy, and then saves your edited/changed file to somewhere else, (personal folders).

Next time you open fsx.CFG, Vista is giving you the original.



   Go back and read it again !    
   

Still having problems ?

You can post a request for assistance to the FSDeveloper forums
but before doing so
we need some basic information about your system.


Please download Martin Gossman's ADE-Checker

Run ADE-Checker
and it will generate an output about your PC configuration
allowing us to identify which/if any components are installed/missing.

Please save the report and post it to this forum. (Link to be added)

Related

Internal

External

Placeholder text