OHM Spotlight Vessel

Oh, and yes, I still have the strange everyother CTD. Are you compiling with 2010 runtime libs ?
 
Oh, and yes, I still have the strange everyother CTD. Are you compiling with 2010 runtime libs ?
The module uses 2008 runtime library (MSVCR90.DLL - buld 9.0.21022.8).
 
In spotlight.cfg the default attachment point looks like this:
Code:
BEGIN_ATTACHMENT
P 0 -0.214  -0.042   0 -1 0  0 0 1  GS  
END_ATTACHMENT

Doesn't P(arent) mean that the craft it's attached to can't move under it's own steam?
I've successfully attached it to a UCGO car, but the car can't move. If I change the spotlight to Child and the car to Parent, I get a weird bug where the spotlight mesh is enlarged 10x in the X and Y planes. And sometimes the spotlight moves to pos 0°Lat/0°Lon.

Any ideas?
 
Usually I attach it via Universal Cargo Deck. No problems found, and tested on really old machine.
 
Usually I attach it via Universal Cargo Deck. No problems found, and tested on really old machine.

Works perfectly for me.

Attached are my UCD settings for adding one to the nose of a DGIV for docking.

BrianJ, thanks so much for making this simple yet extremely useful little addon. :thumbup: Looking forward to the color choice so I can make the inside of the Cortez's main hangar glow red.
 

Attachments

  • Docklight.png
    Docklight.png
    11.5 KB · Views: 42
Last edited:
BrianJ, thanks so much for making this simple yet extremely useful little addon. :thumbup: Looking forward to the color choice so I can make the inside of the Cortez's main hangar glow red.
:hesaid:
Next will be a request for an animated disco ball. :bananadance::banana:
 
Oh, and yes, I still have the strange everyother CTD.
Rather ironic, if it's only happening to you! I'd like to try and resolve this before adding anything else.

Are you compiling with 2010 runtime libs ?
I'm using VC++2008 Express compiler with the 100830 Orbiter SDK. Do you think that might be a problem? Here's a replacement spotlight.dll compiled using VC++2003 compiler, don't know if that helps at all!!......
http://myweb.tiscali.co.uk/briansutilitysite/spotlight_dll_110228.zip

And here's the C++ code for anyone who wants it and/or would like to have a go compiling it (there's not much of it ;-)...... http://myweb.tiscali.co.uk/briansutilitysite/spotlight_code.zip

Don, can you give me any more details about the problem?............
Which scenario are you using?
Do you restart from the same scenario or from "current state"?
Is there anything in the orbiter.log after the crash?
At what point does Orbiter crash?
Have you tried a scenario with ONLY the spotlight present?
Any other clues you can think of?

Cheers,
Brian

---------- Post added at 05:42 PM ---------- Previous post was at 05:34 PM ----------

In spotlight.cfg the default attachment point looks like this:
Code:
BEGIN_ATTACHMENT
P 0 -0.214  -0.042   0 -1 0  0 0 1  GS  
END_ATTACHMENT

Doesn't P(arent) mean that the craft it's attached to can't move under it's own steam?
I've successfully attached it to a UCGO car, but the car can't move. If I change the spotlight to Child and the car to Parent, I get a weird bug where the spotlight mesh is enlarged 10x in the X and Y planes. And sometimes the spotlight moves to pos 0°Lat/0°Lon.

Any ideas?
As far as I know, the "P" means "attaches to a Parent" (see Doc/OrbiterConfiguration.pdf)

Sorry, don't know the UCGO cars, but at a guess the UCGO car's attachment point has non-orthogonal vectors for it's dir and rot parameters. Maybe. Dunno. The "spotlight" should be the "child" when attaching to another vessel.

---------- Post added at 05:45 PM ---------- Previous post was at 05:42 PM ----------

Next will be a request for an animated disco ball. :bananadance::banana:
:lol: A prize to the first person to recreate Pink Floyd's entire stage show in Orbiter ;-)
 
I'm using your scenario, here is the log.

Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 3.74693e-010 sec
Found 0 joystick(s)
Devices enumerated: 3
Devices accepted: 3
==> RGB Emulation
==> Direct3D HAL
==> Direct3D T&L HAL
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfig.dll .......... [Build ******, API 060425]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module EnergyConfigurator.dll  [Build ******, API 060425]
Module OrbiterSound.dll ...... [Build ******, API 060425]
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiRegisterMFDMode
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
Module Rcontrol.dll .......... [Build 100830, API 100830]
Module ScnEditor.dll ......... [Build 100830, API 100830]
Module ExtMFD.dll ............ [Build 100830, API 100830]
Module CRT.dll ............... [Build 110130, API 100830]
Module CameraMFD.dll [API v.060425]
Module CamControl.dll ........ [Build ******, API 050206]
Module GPCMFD.dll ............ [Build ******, API 060425]
Module RemoteAnimMFD.dll ..... [Build ******, API 060425]

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 1018 x 736 x 32
Graphics: Hardware T&L capability: Yes
Graphics: Z-buffer depth: 32 bit
Graphics: Stencil buffer depth: 8 bit
Graphics: Active lights supported: 8
Loading 15382 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtmJ71G.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Hyperion.dll .......... [Build 100215, API 100212]
SATSAT Hyperion: Terms 595
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Module Triton.dll ............ [Build ******, API 060425]
Finished initialising world
Module spotlight.dll ......... [Build 110227, API 100830]
Module DeltaGlider.dll ....... [Build 100830, API 100830]
Module LuaInline.dll ......... [Build 100830, API 100830]
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
---------------------------------------------------------------
>>> WARNING: Obsolete API function used: oapiGetStationCount
At least one active module is accessing an obsolete interface function.
Addons which rely on obsolete functions may not be compatible with
future versions of Orbiter.
---------------------------------------------------------------
**** Closing simulation session

**** Creating simulation session
DirectDraw interface OK
Direct3D interface OK
Graphics: Viewport: Window 1018 x 736 x 32
Graphics: Hardware T&L capability: Yes
Graphics: Z-buffer depth: 32 bit
Graphics: Stencil buffer depth: 8 bit
Graphics: Active lights supported: 8
Loading 15382 records from star database
Module Sun.dll ............... [Build 100830, API 100830]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
Module Mercury.dll ........... [Build 100830, API 100830]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
Module Venus.dll ............. [Build 100830, API 100830]
Module VenusAtm2006.dll ...... [Build 100830, API 100830]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
Module Earth.dll ............. [Build 100830, API 100830]
Module EarthAtmJ71G.dll ...... [Build 100830, API 100830]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
Module Moon.dll .............. [Build 100830, API 100830]
ELP82: Precision 1e-005, Terms 116/829
Module Mars.dll .............. [Build 100830, API 100830]
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 100217, API 100215]
Module Jupiter.dll ........... [Build 100830, API 100830]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
Module Io.dll ................ [Build 100217, API 100215]
Module Europa.dll ............ [Build 100217, API 100215]
Module Ganymede.dll .......... [Build 100217, API 100215]
Module Callisto.dll .......... [Build 100217, API 100215]
Module Satsat.dll ............ [Build 100215, API 100212]
Module Saturn.dll ............ [Build 100830, API 100830]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
Module Mimas.dll ............. [Build 100215, API 100212]
SATSAT Mimas: Terms 113
Module Enceladus.dll ......... [Build 100215, API 100212]
SATSAT Enceladus: Terms 33
Module Tethys.dll ............ [Build 100215, API 100212]
SATSAT Tethys: Terms 101
Module Dione.dll ............. [Build 100215, API 100212]
SATSAT Dione: Terms 59
Module Rhea.dll .............. [Build 100215, API 100212]
SATSAT Rhea: Terms 68
Module Titan.dll ............. [Build 100215, API 100212]
SATSAT Titan: Terms 100
Module Hyperion.dll .......... [Build 100215, API 100212]
SATSAT Hyperion: Terms 595
Module Iapetus.dll ........... [Build 100215, API 100212]
SATSAT Iapetus: Terms 605
Module Uranus.dll ............ [Build 100830, API 100830]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 100830, API 100830]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
Module Triton.dll ............ [Build ******, API 060425]
Finished initialising world
Module spotlight.dll ......... [Build 110227, API 100830]
Module DeltaGlider.dll ....... [Build 100830, API 100830]
Finished initialising status
Finished initialising camera
Finished initialising panels
Finished setting up render state
 
thank you for making this model it is awesome.Keep up the good work.
 
I think I traced to the remoteAnimationMFD. I'll have to see if computerx can compile it to the new build. Sorry about the confusion.:facepalm:
 
thank you for making this model it is awesome.Keep up the good work.
Well, thanks. :tiphat: It's Donamy's idea - seems to be quite popular!

Don - I can't see anything in your orbiter.log relating to the spotlight .dll
Have you tried it on a clean Orbiter install?

EDIT: Whoops! just saw your post re RemoteAnimationMFD - see if that works :-)
 
Last edited:
I think you missed my last post, traced it to an older .dll

all is well now.
 
Cool :-)

One thought: Should the colour be set from the vessel (like range and cone angle) or from a .cfg entry?

Maybe the "beacon" (flare) size should be set from the .cfg as well? (it's automatic at the moment)

Any opinions?
 
Config file would be fine for color.
 
I vote for dialog box in Scn Editor - with config file and multiple instances of light you're limited to one color. I think... But I'm not sure
 
Yes. Solution for color only in config file would require multiple config files for separate classes of the spotlight vessels using different color. Sure, there can be a default color in the config file, but color should be loaded from / saved to scenario file, to prevent hundreds of vessel config filles. Scenario editor interface would be great.
 
New version v.110301 now on OH.

Colour now set from .cfg file (sorry guys, there's no direct way of changing the colour in-sim, I'd have to make a work around but I'd rather keep it simple. Keep your various spotlight .cfg's in a folder for tidiness ;-)

Dimmer function added.

Illumination attenuation tweaked for more brightness towards limit of range.


Still to do (maybe) - dialog box for easy attachment to another vessel.


Cheers,
Brian
 
Thankyou Brian !!!
 
:hesaid:
Next will be a request for an animated disco ball. :bananadance::banana:

LOL It's an ambiance/immersion thing, for me anyway. The hangar is illuminated red on the show. I plan to use BrianJ's spotlight vessel to decide if I want to include my own illumination in the hangar.
 
Last edited:
What I hope is the final version (v.110302) is now on OH, includes a "Easy Attach" dialogue-box for quick attachment to parent vessel in-sim.

Thankyou Brian !!!
My pleasure. Now going back to messing about with your HST mesh!

Cheers,
Brian
 
Back
Top