Probably that the NPC-Server section of the forum should have two sections, one for the GameMonkey one, and the other for the CSharp one.
The reason why we do not do this is because of many things:
- The only NPC-server that isn’t totally revamped each time someone touches the code, is the game monkey one.
- There has been other NPC-servers before these two aswell
- None of them are finished.
- None of them are officially “the one” as we haven’t decided which is the official. but it probably is the gamemonkey one as that’s the one in the svn.
- It’s too early to tell
Don’t forget the third subforum for your LLVM NPC-Server, though.
Also the downsider cynicism appreciation subforum
[QUOTE=gllt;61897]Also the downsider cynicism appreciation subforum[/QUOTE]
That sounds like a Social Group ಠ_ಠ
To be honest, I am tempted to start hacking the heck out of the GameMonkey NPC-Server. I want to make one general Graal Reborn NPC-Server and provide a plugin interface that people can use to bind whatever scripting language they want to the NPC-Server.
[QUOTE=Nalin;61913]To be honest, I am tempted to start hacking the heck out of the GameMonkey NPC-Server. I want to make one general Graal Reborn NPC-Server and provide a plugin interface that people can use to bind whatever scripting language they want to the NPC-Server.[/QUOTE]
If you do it I will give you 1 and a half internets, redeemable at any… well I don’t know where you can spend em, but they’re awesome.
Remote procedure call?
Eh… a bit like having the server expose primitives functions through some kind of remote procedure call? Like CORBA or … Reading http://en.wikipedia.org/wiki/Remote_procedure_call… eh, JSON-RPC? Then the NPC-Server can be in any languages. Eh, this looks like bright.
As long no one calls directly the GServer to cheat.
To clarify, I suggest exposing by Remote Procedure Call, the functions that are registered as call-back inside the GameMonkey NPC-Server. Maybe that is exactly what you was thinking.
I was thinking of a simple .dll that registers a scripting language with the NPC-Server. The NPC-Server would then pass along the script to the .dll for it to compile. And it would provide functions that would allow the .dll to interact with it. This way you could have multiple languages added to a single NPC-Server. //#SCRIPT:GAMEMONKEY
[QUOTE=Nalin;61928]I was thinking of a simple .dll that registers a scripting language with the NPC-Server. The NPC-Server would then pass along the script to the .dll for it to compile. And it would provide functions that would allow the .dll to interact with it. This way you could have multiple languages added to a single NPC-Server. //#SCRIPT:GAMEMONKEY[/QUOTE]
no we have to do the stupid shit instead.
[QUOTE=Downsider;61930]no we have to do the stupid shit instead.[/QUOTE]
WE’RE PROGRAMMING IN MONO?!?!
[QUOTE=Nalin;61928]I was thinking of a simple .dll that registers a scripting language with the NPC-Server. The NPC-Server would then pass along the script to the .dll for it to compile. And it would provide functions that would allow the .dll to interact with it. This way you could have multiple languages added to a single NPC-Server. //#SCRIPT:GAMEMONKEY[/QUOTE]
I totally agree with the idea to use a .dll.
But registering a scripting language seems weird to me.
I was expecting one NPC-Server by programming language.
Each NPC-Server knowing a programming language (does interpret and/or compile the script), and calling the exported .dll functions from the common part. I would expect the common part to be the GServer. These functions, mostly being properties reading and writing, of characters, NPC, and flags.
So, we would have the choice for server-part of the script for the programming language, but the client-side one would have to be in GS1 until we have our own client… I guess.
But then again, maybe that what’s you had in mind.
We should move the following inside the NPC-Server part of the forum I guess.
[QUOTE=Zartox;61932]
I totally agree with the idea to use a .dll.
But registering a scripting language seems weird to me.
I was expecting one NPC-Server by programming language.
Each NPC-Server knowing a programming language (does interpret and/or compile the script), and calling the exported .dll functions from the common part. I would expect the common part to be the GServer.
[/quote]
Having multiple NPC-Servers is not a good idea. The NPC-Server knows details on every single person. It performs collision checking for signs and links for players and NPCs. There should only be one NPC-Server connected to the server at any one time.
[QUOTE=Zartox;61932]
So, we would have the choice for server-part of the script for the programming language, but the client-side one would have to be in GS1 until we have our own client… I guess.
But then again, maybe that what’s you had in mind
[/QUOTE]
Yes, that is the plan. Clientside is GS1 and serverside is whatever language the NPC-Server knows.