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 
 
Java API for NWNX4?

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



Joined: 10 Jan 2007
Posts: 11

PostPosted: Wed Jan 17, 2007 21:26    Post subject: Java API for NWNX4? Reply with quote

Hey folks,
I'm wondering if there is a Java API for NWNX4? I noticed at least two for NWNX2, but I assume that these will not work for NWNX4? I'm not really sure how compatiblity works between the two systems.

Mainly, I'm hoping to integrate NWN 2 with a Java application I've got. Any pointers on how I'd go about this would be greatly appreciated.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Jan 18, 2007 1:44    Post subject: Reply with quote

On the NWNX side, you have the equivalent of a C++ program. Since that can't call Java functions directly, you could setup a network communication channel (a socket) between a NWNX C++ plugin and your Java app. You could use a simple XML based protocol on top of that, depending on what you want to do.

Shadow Door for NWNX2 does it like this, for example.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Thu Jan 18, 2007 5:57    Post subject: Reply with quote

Could also use JNI, though I'd cringe to think of the resources used by running a JVM in the same process as the NWN2 server
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Timex



Joined: 10 Jan 2007
Posts: 11

PostPosted: Thu Jan 18, 2007 17:51    Post subject: Reply with quote

Ok.. I've worked with JNI quite a bit... enough to know that I don't really want to do that if I can avoid it.

Now, for NWNX2, I believe some folks had made a java API (using sockets, I believe, similar to what was described above).

My main question is whether or not anyone plans to make such a plugin for NWN2, or whether I'd have to reinvent the wheel myself.
Back to top
View user's profile Send private message
Timex



Joined: 10 Jan 2007
Posts: 11

PostPosted: Fri Jan 19, 2007 3:36    Post subject: Reply with quote

How about a network interface like the MNX plugin from NWNX2? That could be tweaked into a java API, as well as having lots of other uses. Any support for this kind of functionality in NWNX4 yet?

To be clear, Shadowdoor doesn't work with NWN2, does it? It looked like it was made for NWNX2... which I thought only worked with the original NWN?
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Fri Jan 19, 2007 7:25    Post subject: Reply with quote

There are no such plugins available yet; before starting on your own from scratch, I"d recommend talking to the owners of the projects you mentioned, to see if they have anything in progress.
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
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