Search results

  1. JMW

    General Question Copying changes from one .cpp to another

    Hi All, I have two .cpp files. One is for a 2016 Release addon, and another for Open Orbiter (diff. being one uses OrbiterSound 5.0, the other XRSound) I want to automatically copy any changes I make (apart from sound related of course) from one to the other (at least one way). Any help how I...
  2. JMW

    Compiling Addons for Open Orbiter

    Hi All, Coming at this late in the day....... Have tried to search answers to these but probably putting wrong key words.... Do addons for Open Orbiter have to be specifically compiled ? If so, I've seen several mentions of VS 2019 in connection with, does it have to be this version? And...
  3. JMW

    C++ Question Sketchpad colors

    Hi All, Can we draw text in Sketchpad in black ? I've tried searching and all I found was that if "black (0) is specified then SetTextColor is not called so text is printed in last specified color"..... But can we actually print in black ? Any help appreciated.
  4. JMW

    SDK Question Find Max Height of a Mesh

    Hi All, Is there a way to find the highest part of a mesh, and of a building in a .cfg file ? (eg: .y of scale ?) (Tall order eh ! - Excuse the pun) Needed to hone an approach autopilot. Many thanks.
  5. JMW

    Problem Surface tiles disappear with Zoom [D3D9Client only]

    Hi People. Problem: Tiles disappear when zoom in, only happens in D3D9Client. [Orbiter2016 Release rev 62, with D3D9ClientR4.11-forOrbiter2016(r1355)] Also, mismatch appears in D3D9 that isn't there in Stock Orbiter. Looks like lower resolution tiles loading ? Screenshots attached (hopefully in...
  6. JMW

    SDK Question Ctd when compiled in Debug but not in Release

    Hi There Everyone. Good to be back. Was stuck abroad for 10 months ! I'm perplexed, have searched but can't find a similar case. Code compiles with my usual warnings, but ctd after few seconds unless compiled with debug which runs fine. I know which code is causing it but can't find out why...
  7. JMW

    Resolved Bookmarks?

    Well hello Forum Guys. Being a forum noob at the best of times, I'm totally unaware of the doubtless many advantages of the recent migration. So this is gonna seem a thankless question (but I'm not). All my myriad browser Bookmarks to much needed info are now redundant. ? Is there any way to...
  8. JMW

    SDK Question Bogus statements?

    Hi Can anyone help as regards loads of seemingly bogus statements/warnings I'm getting. Everything compiles fine, but getting multiple "red-liners"......
  9. JMW

    CTD from SVN r65 on

    Hi Guys. Can anyone help with my latest dilemma please. Any installation from r65 onward crashes at Jupiter according to log. r65 and below are fine............ What am I missing ? **** Orbiter.log 000000.000: Build Aug 27 2017 [v.170827] 000000.000: Timer precision: 1e-007 sec 000000.000...
  10. JMW

    SDK Question Distance calc overrun ?

    Hi People. Quick question, probably not quick answer..... On a distance calculation I'm getting a value of "-1.#IND" intermittently. It's messing up an autopilot. Is it an overrun of some kind. If so, what do I need to do....? Code used: dis = sin((latitude)*RAD) * sin((tgtlat)*RAD) +...
  11. JMW

    PennyBlack

    Has anyone heard from this guy?
  12. JMW

    SDK Question Nested loop?

    Help please. Try as I may I haven't been able to display distances to bases in red if going further away, and in white if getting nearer. Sounds simple and no doubt is, but can't crack it ! Standard display code is: if(HUD2 == 1 && oapiGetHUDMode() == HUD_DOCKING &&oapiCockpitMode() ==...
  13. JMW

    SDK Question Distance - closer or further away

    Hi Can anyone help with a simple function to determine whether a vessel is getting closer or further away from a base........... (Must work even if out of range of base signal) Thankee.
  14. JMW

    SDK Question land.wav sound loops continually

    I'm getting the landing "chirp" (land.wav) sound looping continually until vessel stops at some bases. (Regular, at approx once per second regardless of vessel speed.) This is happening at Habana and Heathrow, but does not at Cape, Edwards and my config of Pictown. Only thing found to prevent...
  15. JMW

    SDK Question Thruster index

    I want to identify by handle, which thrusters are operating in a given situation. What is the thruster index constructed from ? Are they numbered in the order they're created initially ? The info in the scenario is for example THLEVEL 0:1.000000 1:1.000000 7:0.250666 8:0.311333 9:0.050286...
  16. JMW

    SDK Question Animation only works in one direction (polarization)

    Can anyone tell me why (since somewhere in Orbiter Beta) my wheel rotation animations only work if heading in a northerly direction? (heading 330 deg on cape runway 15/33) It stops from 90 deg either way......... Is there a fix ? if (iop > 1)iop=0; if (hspd > 0.4) { double...
  17. JMW

    OrbiterSound log empty

    Hi Guys. Suddenly, my OrbiterSound log is empty of data. All it contains is ******************************************************** OrbiterSound 4.0 (3D) Build Nov 20 2012 01:00 ******************************************************** Orbiter version: 160220 I've tried a reinstall. Any ideas?
  18. JMW

    Working with Matlab and tileedit

    Have installed Matlab runtimes as per readme for tileedit (in Program files by default). Tileedit runs, but what do I do now? I want to use the "rudimentary editing capability for elevation data" Martins mentioned to level out runways etc. I've tried loading a "surface" tile but nothing shows...
  19. JMW

    SDK Question Data from another module

    Hi All. How can one module in a scenario receive data generated in another module? (Want to place one module a given distance from another in flight).....
  20. JMW

    SDK Question Altitude Autopilot

    Hi all. Seems like a simple task, but I've gotta admit defeat. To code a simple altitude autopilot - similar to the one for DG in Scripts, but for C++ so can be incorporated in a .dll Trying to convert that script, I have this (don't laugh please) shgt is target height in feet. //-- Set up...
Top