View Full Version : getParameter; which .DLL is it in?
FCIProject
07-22-2012, 01:59 PM
Hi
Would someone please tell me which .DLL, if any, getParameter is contained in?
I am trying to use the Java Native Interface (JNI) to access getParameter to allow me to try and write a new version of software for Hugso's full motion simulator, gSeat.
I have never done any Windows programming and this is the first time I have tried to use JNI. Hopefully if I can access getParameter, using JNI, I should be able to access the required telemetry.
I look forward to someones reply.
bolox
07-22-2012, 08:52 PM
Hi Gary
i believe it's in gameWorld.dll
http://forum.1cpublishing.eu/showthread.php?t=23959
as a coding noob i don't think you can directly access the parameters with java
see
http://forum.1cpublishing.eu/showthread.php?p=342338#post342338
my understanding is you have to write a c# script for the mission (sp only) to access the data and output it in suitable format (udp??)
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
seems to be the way most are using to write the code
FCIProject
07-22-2012, 09:40 PM
Hi Gary
i believe it's in gameWorld.dll
http://forum.1cpublishing.eu/showthread.php?t=23959
as a coding noob i don't think you can directly access the parameters with java
see
http://forum.1cpublishing.eu/showthread.php?p=342338#post342338
my understanding is you have to write a c# script for the mission (sp only) to access the data and output it in suitable format (udp??)
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
seems to be the way most are using to write the code
Hi Bolox
Good to see you are still out there :-) Thanks for your reply.
I will see if I can access gameWorld.dll using JNI. I've got a 300 page book on JNI to work through. If not I will have to look at using a Windows based language and compiler. Would I be able to use C++? I would rather learn a cross-platform language, like C++ than C#. Sorry to ask an obvious question like this, but my Windows programming skills are nil.
bolox
07-23-2012, 03:21 PM
i think you are going to have to learn some c# as this is what the scripts for missions are written in.
As i understand it (huge caveat here:grin: ) the only way to access the .dll is this way. In theory you should be able to use only a little scripting here to actually access the data and point it to an 'add in ' dll ?(which could be done in c++?) to do the grunt work of ordering the data into a format to output it to the G seat (making huge assumptions above my pay grade here)
Again in theory c# shouldn't be too much of a jump for you- java/c# both being object oriented languages- just the syntax being different (infact the little i know i actually used a java book to explain some of the concepts used in c#)
You really ought to make a topic in mission builder forum
http://forum.1cpublishing.eu/forumdisplay.php?f=203
where the experts (FG28_Kodiak in particular) are more likely to see it and point out correct/better ways of doing this stuff- i really get lost past VERY basic stuff.
FCIProject
07-23-2012, 09:32 PM
Bolox, you are right, C# is the way to go. If I learn this language I would have a Windows based language at my disposal. I've just started to fly and learn about CoD after getting a new machine that is capable of running this simulator.
Thanks for the heads up about posting in the Mission Builder forum. The sticky on script writing will be useful.
vBulletin® v3.8.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.