OHM Scenerios Language File for Notepad++

OrbitHangar

Addon Comments
Joined
Apr 9, 2008
Messages
3,832
Reaction score
13
Points
0

Author: edsupagood

This is a custom language syntax file to Notepad++ for Orbiter Scenerio files (.scn).
This makes creating and editing scenerio files much easier as well and increasing the readiability. Also helps to identify errors because of miss-spelled key words. 

Please read the Installation Instructions file to help with the installation.

Update - Updated to include support for more important addons like (XR-Fleet, AMSO, DG-IV, UCGO, UMMU and ShuttleFleet). Thanks to Stinger for help.

Please enjoy.

DOWNLOAD
 

garyw

O-F Administrator
Administrator
Moderator
Addon Developer
Tutorial Publisher
Joined
May 14, 2008
Messages
10,485
Reaction score
209
Points
138
Location
Kent
Website
blog.gdwnet.com
nice idea - I like this - thank you!
 

Loru

Retired Staff Member
Retired Staff
Addon Developer
Donator
Joined
Sep 30, 2008
Messages
3,731
Reaction score
6
Points
36
Location
Warsaw
Indeed nice idea :D
 

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
2,068
Reaction score
514
Points
113
Nice idea,

here's (attached) one for another Editor PSPad.
To be placed in PSPads "Syntax" subfolder.

Maybe not so nice as yours, but it's a seed, that might be grown by others ;)

Anybody feel free to include it in any future 'Highlighter-Pack'.

/Kuddel
 

Attachments

  • Orbiter Scenario PSPad Highlighter.zip
    791 bytes · Views: 6

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,296
Reaction score
3,270
Points
203
Location
Toulouse
Very good. Its so easy to miss a "END" in complex scenarios, and after that you waste precious time searching which addon is causing a crash... :thumbup:
 

Aeadar

Lurker Representitive
Donator
Joined
Apr 30, 2009
Messages
456
Reaction score
3
Points
18
This looks very nice! It's sure to reduce the 'eye-squinting' while reading scenario files.

Thank you.

:cheers:
 

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
Brilliant! I've been idly wishing for this for a while. Thanks muches. :)

Edit: Made a few adjustments to default text colour to make it useable on darker themes, like Black Board. Light-on-dark is so much easier on the eyes than dark-on-light. :2cents:

Edit 2: Also added a "comment line" style starting with the ";" symbol.
 
Last edited:

edsupagood

Addon Developer
Addon Developer
Joined
Oct 26, 2010
Messages
135
Reaction score
0
Points
16
I've made this for myself and thought it would be nice to share with the community. Feel free to adjust and modify how you see fit, because I know one style doesn't suit all. I'm glad you guys are liking it. :cheers:
 

Izack

Non sequitur
Addon Developer
Joined
Feb 4, 2010
Messages
6,665
Reaction score
13
Points
113
Location
The Wilderness, N.B.
I've made this for myself and thought it would be nice to share with the community. Feel free to adjust and modify how you see fit, because I know one style doesn't suit all. I'm glad you guys are liking it. :cheers:
I am liking it! The half minute to install it and fiddle with the formatting is well worth saving the chore of thinking up all the keywords and their places, loading two scenarios and then realising there were fifty more to add to the lists, discounting mispellings. :)
 

Stinger

Orbinaut since 2003
Joined
Sep 25, 2008
Messages
15
Reaction score
0
Points
1
Location
Graz
Great idea! :thumbup:

I just played around a bit with the XML-File and included more keywords so that it also works with some important addons (XR-Fleet, AMSO, DG-IV, UCGO, UMMU and ShuttleFleet).

Here is the code from the modified Orbiter-SCN.xml:
Code:
<NotepadPlus>
    <UserLang name="Orbiter-SCN" ext="scn">
        <Settings>
            <Global caseIgnored="no" />
            <TreatAsSymbol comment="no" commentLine="no" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+">BEGIN_DESC BEGIN_ENVIRONMENT BEGIN_FOCUS BEGIN_CAMERA BEGIN_HUD BEGIN_MFD BEGIN_PANEL BEGIN_SHIPS BEGIN_VC BEGIN_PRESET BEGIN_ExtMFD EjectMFD BaseAprMFD SlingMFD LaunchMFD TeiMFD CorMFD MapMFD</Keywords>
            <Keywords name="Folder-">END_DESC END_ENVIRONMENT END_FOCUS END_CAMERA END_HUD END_MFD END_PANEL END_SHIPS END_VC END_PRESET END</Keywords>
            <Keywords name="Operators">!</Keywords>
            <Keywords name="Comment"></Keywords>
            <Keywords name="Words1"></Keywords>
            <Keywords name="Words2">Ship System Date TARGET MODE POS TRACKMODE FOV TYPE PROJ FRAME ALT REF STATUS HEADING AFCMODE PRPLEVEL RPOS RVEL AROT VROT IDS NAVFREQ XPDR ATTACHED BASE FUEL RCSMODE ELEMENTS GROUNDLOCATION NOSECONE GEAR AIRLOCK SKIN PODANGLE DOCKSTATE PAYLOAD MASS DOCKINFO STATE SECONDARY_HUD ADCTRL_MODE LAST_ACTIVE_SECONDARY_HUD TAKEOFF_LANDING_CALLOUTS APU_FUEL_QTY LOX_QTY CABIN_O2_LEVEL CREW_STATE INTERNAL_SYSTEMS_FAILURE COGSHIFT_MODES MWS_ACTIVE COOLANT_TEMP DMG_0 DMG_1 DMG_2 DMG_3 DMG_4 DMG_5 DMG_6 DMG_7 DMG_8 DMG_9 DMG_10 DMG_11 DMG_12 DMG_13 DMG_14 DMG_15 DMG_16 DMG_17 DMG_18 DMG_19 DMG_20 DMG_21 DMG_22 DMG_23 DMG_24 DMG_25 DMG_26 DMG_27 DMG_28 DMG_29 DMG_30 DMG_31 DMG_32 DMG_33 IS_CRASHED MET_STARTING_MJD INTERVAL1_ELAPSED_TIME INTERVAL2_ELAPSED_TIME MET_RUNNING INTERVAL1_RUNNING INTERVAL2_RUNNING ACTIVE_MDM TEMP_SCALE CUSTOM_AUTOPILOT_MODE AIRSPEED_HOLD_ENGAGED SCRAM0DIR SCRAM1DIR HOVER_BALANCE MAIN0DIR MAIN1DIR GIMBAL_BUTTON_STATES ATTITUDE_HOLD_DATA DESCENT_HOLD_DATA AIRSPEED_HOLD_DATA OVERRIDE_INTERLOCKS TERTIARY_HUD_ON CREW_DISPLAY_INDEX RCOVER IAIRLOCK CHAMBER AIRBRAKE RADIATOR HATCH SCRAM_DOORS HOVER_DOORS BAY_DOORS APU_STATUS EXTCOOLING_STATUS TRIM LIGHTS XRUMMU_CREW_DATA_VALID UMMUCREW PAYLOAD_SCREENS_DATA ARM_DOORS XR1UMMU_CREW_DATA_VALID DOCKINGPORT LADDER ELEVATOR RCS_DOCKING_MODE ACTIVE_EVA_PORT EnableFullScreenMode LANDINGSITE ABORTSTATUS MJDLOI MJDLDG MJDSPL SPLLON SPLLAT MISSIONTIME PWR BEACON DLMS SPCEVA SPCDTH GOTK1 GOTK2 OPENSM SUBSAT MAGANT EVTT Scenario Reference Target Center Data MassLimit CMode Config ExtMode Periapis Source ActiveProg DataA DataB DVProg AdvConf Guidance CF1_DataA CF1_DataB CF1_SecTgt mfdShare mfdProgram CROSS WCROSS LMPDTH LMCRBK RECUP CMBUR THLEVEL GSTATUS RSTATUS RSPEED DSTATUS WSTATUS DVSPD RECCNT PASBRK LANDED ABORTED ATCON DataA1 DataB1 DataB2 DataB3 BTARGET C1DEAD C2DEAD APPW AZST APPROG LMAP1 LMAP2 LMAP3 LMAP4 EVENTTIME CRWGON OTARGET TRACK SPDMODE LAUNCHTOWER AZIMUTCOR LSTCMD LSTSIM SMKSTA THRUST CRANAN ARMS1A ARMS2A HOLDSA CAPSA GENSMO GROUNDDIRECTION MFDOpMode Program EscapeVector EscapeWindow TeiEscape TeiWindow FlyByEscape FlyByTime MeshSkin CargoPayload AllDoorsState But1Cockpit But2Cockpit LifeBut1State LevelBatt Emergency_power VoltageStartBus VoltageGen1 VoltageGen2 VoltageGenBus O2tankALevel N2tankALevel O2tankBLevel N2tankBLevel CabinO2Level CabinCO2Level CabinTempLevel CabinPressure CabinMoistLevel CabinDustLevel CabinO2Setting CabinTempSetting CabinPressSetting O2ConsumptionSetting FuelConsumptionSetting MainenginePower AntennaTarget NoOneOnBoard NoPilotOnBoard FailGearFailure FailGearCollapse FailLeftMainEngine FailRightMainEngine FailHoverEngine FailRcs FailSurfaceControl FailComputer FailComputerBlueScreen FailAutopilot FailExtRadiator FailAirbrake FailNoseCone FailCanopy FailAntenna FailLeftTurbo FailRightTurbo FailCargoDoor SpacesuitTimer TransEffect SKINNAME DISPLAYLANDINGPAD MAINAIRLOCK PADLIGHT1MODE PADLIGHT1STATE O2_RESERVE SAVEVAR00 SAVEVAR01 SAVEVAR02 UCGO CargoUnpacked AIInFonction AIInFunction CurrentWpt EngineStarted O2Level O2MaxLevel CardiacBeat Age HudColor Chute PressureDeath MeshName crewweight IsRessource RessourceMass PSNGR MESH Z_OFFSET CONFIG PLDWEIGHT Fairing_attached AAP CONFIGURATION OV- ORIGINAL RMSARM CARGODOOR KUBAND POSTLAND SSMES ADTA PETD SETD ARMTILT PRADIATOR SRADIATOR PAYLOAD_MASS SAT_OFS_X SAT_OFS_Y SAT_OFS_Z OMS ASSIST CALLOUT TGT_HEADING ILOAD SITE RUNWAY HAC MET PAYLOAD_MASS1 PAYLOAD_MASS2 PAYLOAD_MASS3 KEEL_CAM PL1_OFS PL1_DIR PL1_ROT PL2_OFS PL2_DIR PL2_ROT PL3_OFS PL3_DIR PL3_ROT PL4_OFS PL4_DIR PL4_ROT PL5_OFS PL5_DIR PL5_ROT PL6_OFS PL6_DIR PL6_ROT ODS ARM_STATUS ARM_SH_P ARM_SH_Y ARM_EL_P ARM_WR_P ARM_WR_Y ARM_WR_R RENDER ANT FOLD ENGINE_FAIL NGEAR ENG TAILCONE CARGO_STATIC_MESH CARGO_STATIC_OFS LGEAR RGEAR P1 P2 P3 P4 P5 P6 NAV LISTLEN</Keywords>
            <Keywords name="Words3">Extern GlobalFrame TargetRelative Cockpit Surface Sol MJD Landed Orbiting Left Right</Keywords>
            <Keywords name="Words4">Earth Moon Sun Mercury Venus Mars Phobos Deimos Jupiter Io Europa Ganymede Callisto Saturn Mimas Enceladus Tethys Dione Rhea Titan Hyperion Iapetus Uranus Miranda Ariel Umbriel Titanica Oberon Neptune Triton Proteus Nereid</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="3" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="23BA2F" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="A40000" bgColor="FFFFFF" fontName="" fontStyle="3" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
all Credits: edsupagood

:cheers:

@ edsupagood: Hope it's ok that I post it right here. -Tried to reach you via PM before...
 
Last edited:

edsupagood

Addon Developer
Addon Developer
Joined
Oct 26, 2010
Messages
135
Reaction score
0
Points
16
Hope it's ok that I post it right here. -Tried to reach you via PM before...

Thank's! I already added your modifications to the file and uploaded the updated version to OH. For some reason I thought that I replied to your PM but I guess not :facepalm:
 

Stinger

Orbinaut since 2003
Joined
Sep 25, 2008
Messages
15
Reaction score
0
Points
1
Location
Graz
Thank's! I already added your modifications to the file and uploaded the updated version to OH. For some reason I thought that I replied to your PM but I guess not :facepalm:

Great! Thank you! :speakcool:
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
3,135
Reaction score
409
Points
123
Location
Rome
Website
www.tuttovola.org
Better and better!

FYI, the steps 6 and 7 in the instructions text file ("Save as..." after xml import) are not needed.
 

edsupagood

Addon Developer
Addon Developer
Joined
Oct 26, 2010
Messages
135
Reaction score
0
Points
16
FYI, the steps 6 and 7 in the instructions text file ("Save as..." after xml import) are not needed.

They are not needed if you only have one custom language. The imported file will be kept as temporary. If you were to import another custom language, it would overwrite the current one. That's why saving is a good idea if you'd like to keep the language. Also you will be able to select it from the Language menu right before the User-Defined item.
 

paddy2

Addon Developer
Addon Developer
Joined
Jul 21, 2012
Messages
384
Reaction score
1
Points
18
Location
Kent, UK
The readme is out of date for the Notepad++ 6.2. While it still works the import is done via the "Language" heading. Easy to follow still and had my scenerio open and shown in all its glory within a minute.

Sure its going to prove most useful
Best regards
 
Top