logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
MNX plugin for NWNX4

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
jsharp6404



Joined: 29 Jan 2008
Posts: 4

PostPosted: Tue Jan 29, 2008 22:57    Post subject: MNX plugin for NWNX4 Reply with quote

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
View user's profile Send private message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Thu Jan 31, 2008 0:15    Post subject: Reply with quote

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
View user's profile Send private message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Thu Jan 31, 2008 1:23    Post subject: Reply with quote

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
View user's profile Send private message
jsharp6404



Joined: 29 Jan 2008
Posts: 4

PostPosted: Thu Jan 31, 2008 16:10    Post subject: Reply with quote

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
View user's profile Send private message
GodBeastX



Joined: 09 Aug 2006
Posts: 65

PostPosted: Thu Jan 31, 2008 21:07    Post subject: Reply with quote

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
View user's profile Send private message
jsharp6404



Joined: 29 Jan 2008
Posts: 4

PostPosted: Thu Jan 31, 2008 23:22    Post subject: Reply with quote

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
View user's profile Send private message
jsharp6404



Joined: 29 Jan 2008
Posts: 4

PostPosted: Thu Feb 14, 2008 20:14    Post subject: Done! Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group