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...
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) {...
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...
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...
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...
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...
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...
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...
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:
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...
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...
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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.