View previous topic :: View next topic |
Author |
Message |
maxpawkas
Joined: 15 Aug 2012 Posts: 1
|
Posted: Wed Aug 15, 2012 20:08 Post subject: Communication between the OS and NWNX |
|
|
It's my first post - I had no need to write here earlier - so hello everyone!
I'd like to ask about any possibility to communicate with nwnx from the OS level.
What I wanna do, is to create an external application to perform nwnx actions, like at least shutting the server down, but also kicking players, sending server messages and so on.
I know I could simply kill nwn-sever app, so that nwnx would create a new one, but i doesn't do the trick for obvious reasons.
Also - setting a h-beat script and looking for a binary variable of a particular state in database seems tricky, but I don't like the idea.
It would be also lovely if I was able to externaly fire nwn scripts inside the module.
Is there any way to do it? Can I do stuff inside the module from the outside (basicly, from the OS level)?
We're running nwnx on Windows Server 2008 R2.
Thanks in advance |
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Mon Oct 28, 2013 17:42 Post subject: |
|
|
Yes, you can do that, but you'd have to write all that yourself: there is no API available for remote/async calls. Create a new thread to process incoming messages and put them into a shared queue, then hook the main loop and check (in a thread-safe way) for new messages in the queue and process that. _________________ In Soviet Russia, NWN plays you! |
|
Back to top |
|
|
|
|
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
|