View previous topic :: View next topic |
Author |
Message |
jsharp6404
Joined: 29 Jan 2008 Posts: 4
|
Posted: Tue Jan 29, 2008 22:57 Post subject: MNX plugin for NWNX4 |
|
|
I've been digging around for some information on the MNX plugin that had been developed for NWNX2. Does anyone have this plugin(or a similar one) working for NWNX4 or know of a way to use a TCP or UDP connection to communicate with a socket in order to be able to use java code. I did find some stuff including the mnxj plugin, but everything i've found seems to be for nwnx2.
Thanks |
|
Back to top |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Thu Jan 31, 2008 0:15 Post subject: |
|
|
I'm not going to do the research, but if you get me a method to call Java code from C++, I'll make the plugin for you. |
|
Back to top |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Thu Jan 31, 2008 1:23 Post subject: |
|
|
Alright, I think I found a way to call Java from C++, so if people REALLY want this, I guess I can do it. |
|
Back to top |
|
|
jsharp6404
Joined: 29 Jan 2008 Posts: 4
|
Posted: Thu Jan 31, 2008 16:10 Post subject: |
|
|
Thats awesome! I was actually considering writing one myself, but I am new to C++ so it is going kinda slow. How were you planning on doing this? I was looking at the old MNX plugin which basically uses a UDP connection to communicate with java. I also considered using the JNI package, but heard that it is very complicated to use. Anyways I will probably poke around and work on mine until I get it to work or I can find another solution that works. Let me know what you decide to do!
Thanks!!! |
|
Back to top |
|
|
GodBeastX
Joined: 09 Aug 2006 Posts: 65
|
Posted: Thu Jan 31, 2008 21:07 Post subject: |
|
|
JNI was what I found. I probably would make the C++ code just a wrapper to call defined methods in the Java. |
|
Back to top |
|
|
jsharp6404
Joined: 29 Jan 2008 Posts: 4
|
Posted: Thu Jan 31, 2008 23:22 Post subject: |
|
|
Well I'm about half way done with my plugin so I'll be able to let you know within a couple days whether or not I'm gonna have any luck with it. If you end up doing anything with JNI let me know and I'll check it out. |
|
Back to top |
|
|
jsharp6404
Joined: 29 Jan 2008 Posts: 4
|
Posted: Thu Feb 14, 2008 20:14 Post subject: Done! |
|
|
Just an update on my plugin progress...I finished the plugin and have it working successfully. It connects to a Java server with a UPD connection and sends/receives data in that manner. Its somewhat crude but it does what I need it to do. |
|
Back to top |
|
|
|