An array? I thought I only defined one thruster. I don't think I understand what you mean. I still have RCS thrusters too.Well, it doesn't need to be an array if there's only one of them, now does it?
An array? I thought I only defined one thruster. I don't think I understand what you mean. I still have RCS thrusters too.Well, it doesn't need to be an array if there's only one of them, now does it?
Remember when you said that the FILEHANDLE cfg is to override the code? I would like to reverse that. I came to the conclusion that everything is being ignored in the .dll. The only thing that really works is the cfg file. I can even send you the entire "package" and so you can see what I am talking about. It is strange because I worked hard on it to compile and all, but it is not actually being used. As far as I recalled, everything was fine until I started to dig deeper in the code. :compbash:See here, where you define th_main[1] - what you're defining there is an array of THRUSTER_HANDLEs with one member.
In truth, it should make no difference, provided you always refer to that thruster as th_main[0], but you're making unnecessary work for yourself there.
Ahem...you only define ONE main thruster, and it is the fourth one in the array (index 0 is first one in C++). You create a thruster group with 3 undefined thrusters, since only the fourth one is defined.
He does? Where? *missed that*
The code sequence in which he defined the thrusters and exhaust parameters.
I got that far, I just don't see an array with three empty members in that code.
I didn't so much as to copy it and just plop it down and expect it to work. I am understanding it day by day. I do make parts of it by scratch and the other parts which are more advanced are done with the help of open sourced code. Eventually I will get to the point where I no longer need it, but it is just the beginning for me. It does work and all, but me changing to the 2010 SDK is just not working out. I dunno. I don't find it that difficult anymore it is just I need to learn workarounds and keep trying. Really I am not lying because there is no need to and I do not understand why to. As always, it is hard for newcomers.Ahh, I see it now. It looks like you've copied a lot of code from various different places without really knowing what it does, MJR. I'd suggest a C++ tutorial.
If I for instance, code it in 2006 SDK, how hard would it be to make it compatible with 2010?Sample code isn't a terrible way to learn provided you know some basics already. It's pretty evident looking at this thread that this isn't the case for you. I'd strongly recommend learning a little more about C++, for instance about arrays and how to define them properly.
Oh, the reason I said that was because that appears to be the only one actually working for me. I am going to try it on my other computer after I finish this one in the 2006 and "upgrade" to 2010. For some reason it just doesn't want to respond.Not very. Most addons compiled against 2006's API are still compatible with 2010 anyway.
However, writing it in 2006's SDK won't make it any easier, and you'll just be making more work for yourself porting it later, plus limiting yourself and your addon to using older and in most cases less features. If you're going to learn the API, learn the current one.
fatal error C1083: Cannot open include file: 'Shavit.h': No such file or directory
Are the .cpp and .h files in the same directory as solution and project files? Is the Shavit.h included in the list of files of the project?Code:fatal error C1083: Cannot open include file: 'Shavit.h': No such file or directory