Search results

  1. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Ah yes I do recall, despite in that thread you were the one who wrote that code for your IMS class! that was back in 2013 though;) Well I have my code compiling now, but it invokes a runtime error: This is what I have: unsigned int vesselCount = oapiGetVesselCount(); vector...
  2. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Thank you Blake that is helpful, I did no realise conversion to VESSEL2 would have been so simple!
  3. Mr Martian

    SDK Question Dynamically updating vessel vextures? is it possible?

    Hi All, I'm experimenting with a vessel class which updtaes some of its textures in realtime. I have this in clbkPreStep: SURFHANDLE surf[2]; surf[0] = oapiLoadTexture ("texture_1.dds", false); surf[1] = oapiLoadTexture ("texture_2.dds", false); if (light == ON) {...
  4. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Hi n72.5 thanks for the reply. At this point I am not sure if casting is the best way to go... it would proably be easier if I show what I am doing. I have followed jedidia's advice and used his suggested code. I had issues with dynamic_cast as for some reason iot seems to think Orbiter's...
  5. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Thank you jedidia! That makes alot of sense now I can see it like that! @dbeachy1 thank you too, you rmethod also makes sense to me. One thing I have found though, I cannot seem to use dynamic_cast, I get the error: " 'VESSEL' is not a polymorphic type " For both your method's though...
  6. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Hi Jedidia, Thank you for the detailed response! Everything you have explained makes sense to me, but I'm afraid my C++ skills are probably not up to scratch to be able to implement this. I may have to put this project on the backburner for now.... I've been going round in circles for the past...
  7. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Hi Jedidia, Thanks for the reply. Yes you are correct, and yes you are right that method was defining the class as a vessel in the static lib... bad move on my part. I am playing around with the idea of creating a UMmu-like addon. I want to be able to call on the class defined in the .lib...
  8. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Hi guys, Thanks for the replies, I have tried a mix-match of different constructors etc. in a nutshell I am basically trying to achieve this: OBJHANDLE obj = GetDockStatus(dh_main); VESSEL *v = oapiGetVesselInterface(obj); MYCLASS *mc; mc = &v; Basically a way that I can get...
  9. Mr Martian

    Advanced Question Help with Static Libraries (.lib) and classes

    Hi All, I have made a static library (.lib) which I am hoping to release later as a part of an SDK. the library defines a class type, which can be then be called by vessel classes. My issue is, I would like to be able to interface with the class in the same way as the example below...
  10. Mr Martian

    Project Orbiter MMU (oMMU) development thread

    I'm pretty late to the draw here, I take it there is no beta availiable yet to test. Has any further development been made? Is it clear what any setbacks are? If I can I am happy to assist... Hewever it looks to be abandoned:cry:
  11. Mr Martian

    UMmu 3.0 fix for Orbiter 2016 2022-03-28

    This is a very simple plugin which will allow you to walk your UMmus around on the surface of planets in Orbiter 2016. This is not a full compatibility patch by any means, and rather just a quick bandaid fix for those who are really keen to get their UMmus walking around. Check the readme for...
  12. Mr Martian

    C++ Question Advice for recording key events in a plugin

    Hi All, I am trying to develop a simple plugin which interacts with vessels in a simulation (for example refuel all vessels). This is not a dialog box but rather a plugin which when active will always run. However I cannot seem to be able to record key events. I can interact with Orbiter's...
  13. Mr Martian

    C++ Question Help Compiling a Vessel Class in Visual Studio 2022

    Hi All, Wondering if anyone can point me in the direction of some tutorials / advice. I am trying to create a vessel class using Visual Studio 2022. I have always used Visual Studio 2010 and am familiar with the project configuration settings. In VS 2022, I cannot seem to create the right...
  14. Mr Martian

    Question Orbiter 2010 or Orbiter 2016?

    Hi All, First of all, apologies if this is poasted in the wrong section. I was wondering, what seems to be the general consensus regarding Orbiter player's preferred version: Orbiter 2010, or Orbiter 2016? The main reason I ask this is mainly due to Dansteph's UMmu, and the loss of most...
  15. Mr Martian

    C++ Question Compile Error with OrbiterSound5.0?

    Hi All, Wondering if anyone else encountered this issue. I am using Visual C++ 2010, and cannot compile my project since adding the libraries for OrbiterSound5.0. I eng up with a string of errors I don't fully understand, I think relating to how Dansteph's libraries were compiled, or another...
  16. Mr Martian

    SDK Question Vessels of the Same Class Interacting?

    Hi Urwumpe, Thanks so much for clarifying! I always assumed that was probably the case, but somehow never payed much attention to it... probably not the smartest idea... As it turns out I was defining all my double values under my constants... outside of the class definition... pretty silly...
  17. Mr Martian

    SDK Question Vessels of the Same Class Interacting?

    Hi Urwumpe, Thanks for the quick reply, what I am trying to achieve is have the vessels not interact at all with each other (in the same way that multiple delta gliders do not) Is what you have explained the best way to achieve this? Sorry you'll have to forgive my general lack of experience...
  18. Mr Martian

    SDK Question Vessels of the Same Class Interacting?

    Hi All, Wondering if someone can help me with this. I feel it's a simple and obvious problem I've missed. I am currently developing a vessel class, however when I have two of the same class in one scenario, they "interact" with each other, as in the custom parameters I have defined will...
  19. Mr Martian

    API Question Advice for Applying Orientation to Spawned Vessel

    BrianJ that helps a lot that is exactly what I was trying to do! I can't thank you enough, this is something I could never get my head around!
  20. Mr Martian

    API Question Advice for Applying Orientation to Spawned Vessel

    Hi All, I am creating a vessel which will jettison a component. This is simple enough, however I would like the spawned vessel to be rotated 90 degrees relative to the parent vessel. This is something I have always struggled to achieve, my guess is that I am improperly converting between...
Back
Top