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 
 
Calling script externaly

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
Valgav



Joined: 28 Aug 2010
Posts: 53

PostPosted: Fri Mar 25, 2016 14:37    Post subject: Calling script externaly Reply with quote

Is there any working way to execute nwscript using external call? nwnx_cool has bridge but it's more proof of concept than code for use on production.

I understand that we need some main loop hook and script like nwnx_executor which would probably be just loop while(true) but my skills are not enough to implement something like that.
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Fri Mar 25, 2016 20:24    Post subject: Reply with quote

https://github.com/Baaleos/NWNDotNet

This is an example C# mainloop hook.

nwnx_dotnet can use this, but its only windows.
Back to top
View user's profile Send private message
Valgav



Joined: 28 Aug 2010
Posts: 53

PostPosted: Thu Apr 07, 2016 1:51    Post subject: Reply with quote

I'm not even sure how to run this Wink

My use is simply to notify server that it has something to do e.g.
- load resources
- kick players and restart server
- update drop table
- etc.

Of course i could have table with queue of tasks and run select on every heartbeat but it sounds like bad idea to do something like that.

So my idea is to predifine tasks as methods and force them to load with parameters.

So server wouldn't have to check for tasks by itself.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support 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