View previous topic :: View next topic |
Author |
Message |
Timex
Joined: 10 Jan 2007 Posts: 11
|
Posted: Wed Jan 17, 2007 21:26 Post subject: Java API for NWNX4? |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Jan 18, 2007 1:44 Post subject: |
|
|
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 |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Thu Jan 18, 2007 5:57 Post subject: |
|
|
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 |
|
|
Timex
Joined: 10 Jan 2007 Posts: 11
|
Posted: Thu Jan 18, 2007 17:51 Post subject: |
|
|
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 |
|
|
Timex
Joined: 10 Jan 2007 Posts: 11
|
Posted: Fri Jan 19, 2007 3:36 Post subject: |
|
|
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 |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Fri Jan 19, 2007 7:25 Post subject: |
|
|
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 |
|
|
|