Hi there, you will have to bear with me, I do not know C++ very well but I think I have a basic grasp of what is going on here.
My question is about the default DG LUA functions which seem to be present in the sample source code in the SDK. After looking at the help documentation about creating custom LUA commands for vessels I was looking around the SDK and saw a DGLua.cpp file.
I looked inside this and saw some familiar text. It seems that the big man has included a few commands for controlling some things on the DG. Things like opening doors, nosecone, speedbrake etc. From what I can gather, it seems these have been included but not mentioned in the documentation (possibly for future development).
My thinking is based on the fact that there seems to be the same (or similar) code that is in the help file for creating additional LUA commands.
The thing is I do not know what I need to type into the LUA window to make these functions work, it is not obvious to me from the code. I have tried various things that seem logical but nothing has worked so far.
At first I thought maybe this wasn't included in the compiled DG dll, but then I looked at the deltaglider.vcproj file (in notepad++) and it was mentioned in there. I am guessing that this means that when the thing is compiled in visual studio(?), the DGLua.cpp file will be included and the functionality will be there.
Please feel free to point at me and laugh if I have completely misunderstood the workings of dll's, C++ and visual studio. Also you may ridicule me if I have missed this somewhere obvious in the documentation!
If anyone can offer any guidance I would appreciate it. And I am slowly trying to learn C++, I think I can understand the basic logic of it but coming to terms with the syntax is another thing!
Thanks for reading this far!
flyer
My question is about the default DG LUA functions which seem to be present in the sample source code in the SDK. After looking at the help documentation about creating custom LUA commands for vessels I was looking around the SDK and saw a DGLua.cpp file.
I looked inside this and saw some familiar text. It seems that the big man has included a few commands for controlling some things on the DG. Things like opening doors, nosecone, speedbrake etc. From what I can gather, it seems these have been included but not mentioned in the documentation (possibly for future development).
My thinking is based on the fact that there seems to be the same (or similar) code that is in the help file for creating additional LUA commands.
The thing is I do not know what I need to type into the LUA window to make these functions work, it is not obvious to me from the code. I have tried various things that seem logical but nothing has worked so far.
At first I thought maybe this wasn't included in the compiled DG dll, but then I looked at the deltaglider.vcproj file (in notepad++) and it was mentioned in there. I am guessing that this means that when the thing is compiled in visual studio(?), the DGLua.cpp file will be included and the functionality will be there.
Please feel free to point at me and laugh if I have completely misunderstood the workings of dll's, C++ and visual studio. Also you may ridicule me if I have missed this somewhere obvious in the documentation!
If anyone can offer any guidance I would appreciate it. And I am slowly trying to learn C++, I think I can understand the basic logic of it but coming to terms with the syntax is another thing!
Thanks for reading this far!
flyer