View previous topic :: View next topic |
Author |
Message |
Milan
Joined: 09 Oct 2006 Posts: 5
|
Posted: Tue Oct 10, 2006 0:03 Post subject: Somewone writing a plugin for TCP-communication? |
|
|
Using NWNX4 we will be able to write information to a database and read them back. Thats fine, if all the logic of your persistent world is coded in NWN script.
If you would like to use some other serverside component to handle relevant aspects of your gameworld (quests and their progression, events that should happen in the world...) this database could still be used to send information between the NWN2-process and your other component, if both are reading/writing into the database. Of cause this is not the best situation
So it would be very nice, if the NWN2-process could communicate per TCP-IP to a configurated machine/port where the other component listens and answers. Sending/receiving simple strings would be sufficient. A TCP-IP connection should be opened and only closed/reopened on failure. There should be a short timeout for connecting to the port / for sending.
Is anybody out there, who would like to have such a plugin too and who is able to code this in C?
I'm not really good in C and it would be nice to have some expert help here |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
|
Back to top |
|
|
Milan
Joined: 09 Oct 2006 Posts: 5
|
Posted: Tue Oct 10, 2006 22:03 Post subject: |
|
|
Thanks for your link, Papillon. I took the MNX-Plugin witch is downloadable from MNXJ too. Well, the C++ source doesn't seem too complicated. Perhaps I would be able to take this and put it into this new plugin structure for NWNX4... will look at this and a C++ development platform for win the next days.
Often there are many ways to implement IP connections, some are robust some other not. If anyone looks at the source in this MNX-Plugin and don't think this is well done and robust, please give me a hint
I hope it won't be too complicated to "switch" UDP to TCP |
|
Back to top |
|
|
|