Vessel template wizard

From OrbiterWiki
Revision as of 12:13, 7 June 2010 by 95.120.210.86 (talk)
Jump to navigation Jump to search

This page describes Vessel template wizard

Description

The goal of this wizard is to makes creating new vessel project easier. It automatizes configuration setting, adds template code for vessel and sample scenario to test it.

If you have an idea how to make vessel template wizard better or you have have a problem using it, contact Xantcha at Orbiter-Forum.

Installing

To install wizard, download it here (vc expresss 2005 version) or here (vc express 2008) then extract content of zip into your visual studio directory.

Usage

  • Start new project. In opened dialog you should see "Orbiter Addon" project type with "New Orbiter Vessel" template. Choose it, name your project, choose directory for it and click OK to launch template wizard.

orbitertemplate new project.jpg


  • After that you will see new dialog, set necessary settings and click finish.

orbitertemplate wizard gui.jpg

Wizard setting details

  • Vessel Class: Class name for your vessel.
  • Author: Your name. Will be used only in file description.
  • Platform SDK path: Path to platform SDK. Change if you have non-default path to it. This option is saved, so you don't need to type it here every time.
  • Orbiter path: Path to orbiter installation. This option is saved, so you don't need to type it here every time.
  • Add calbacks for: options in that group add cllback methods to vessel class. (Check OrbiterAPI reference manual for more information)
    • Prestep: adds clbkPreStep method
    • Postsep: adds clbkPostStep method
    • BufferedKey: adds clbkConsumeBufferedKey method
    • DirectKey: adds clbkConsumeDirectKey method
    • Save/Load State: adds clbkLoadStateEx and clbkSaveStateEx methods
    • HUD: adds clbkDrawHUD method
  • AddSample code for: options in that group add sample code in clbkClassCaps method
    • Engine: Main, retro and hover engine definitons. (from ShuttlePB code)
    • Engine particles: Exhaust particles for engines. (from ShuttlePB code)
    • RCS: thruster definitions for Reaction control system. (modified ShuttlePB code)
  • Use ShuttlePB code: ignore "Add sample code settings" and use ShuttlePB's sample code
  • Create scenario and vessel config: vessel configuration file and scenario to test it

Path customization

Clicking on customize path... will call this dialog orbitertemplate folder selection.jpg

Orbiter path or PlatformSDK paths are used for derieving this directories. If directories you want to use differ from standard layout (z.b. your orbitersdk library is not in orbiter\orbitersdk directory) you may want to change them manully. In that case don't change orbiter path and orbitersdk path since doing this will automatically reset relevant directories.