SVN Revision 3399 - Game Server Scripts Super Powers
PostPosted: Sun Dec 07, 2014 1:54 pm
Upgrade to GameServerScript to Allow for Modular Behavior.
Revision 3394 to 3396
Main upgrades are around Compilation Assembly References that should now be automated for locally copied libraries.
This mean you can now drop-in any dependency DLL in Dawn of Light "lib" directory and they will be automatically referenced when building game server scripts.
This enable distribution of complete "Modules" through GSS, dependencies copied to "lib", sources copied to "scripts" and Runtime Compilation will enable all of this for you !
Another Feature to handle these new modules correctly is around ServerProperty, up to know they were only registering the Core Properties hard-coded in ServerProperty.Properties.
Script Manager will now trigger another lookup of all "ServerProperty" available in GameServerScript Assembly !
The Refresh Handler has been updated to reflect this behavior, thus /refresh command will now work for scripted properties too...
As an example Proof of Concept a new project "DOLNancyWeb" can be checked out, through : https://github.com/dol-leodagan/DOLNancyWeb
Simply "Download ZIP" and extract to your working Dawn of Light Directory, this will copy the necessary DLL and the according Scripts Sources to your server's "scripts" directory, next time you'll start your server you will be able to use a "Demo" Web Page embedded in DOL
New ServerProperties will be available in your database to setup this Embedded Server, no serverconfig.xml updates are needed !
Default access : http://localhost:10200/
Revision 3394 to 3396
Main upgrades are around Compilation Assembly References that should now be automated for locally copied libraries.
This mean you can now drop-in any dependency DLL in Dawn of Light "lib" directory and they will be automatically referenced when building game server scripts.
This enable distribution of complete "Modules" through GSS, dependencies copied to "lib", sources copied to "scripts" and Runtime Compilation will enable all of this for you !
Another Feature to handle these new modules correctly is around ServerProperty, up to know they were only registering the Core Properties hard-coded in ServerProperty.Properties.
Script Manager will now trigger another lookup of all "ServerProperty" available in GameServerScript Assembly !
The Refresh Handler has been updated to reflect this behavior, thus /refresh command will now work for scripted properties too...
As an example Proof of Concept a new project "DOLNancyWeb" can be checked out, through : https://github.com/dol-leodagan/DOLNancyWeb
Simply "Download ZIP" and extract to your working Dawn of Light Directory, this will copy the necessary DLL and the according Scripts Sources to your server's "scripts" directory, next time you'll start your server you will be able to use a "Demo" Web Page embedded in DOL
New ServerProperties will be available in your database to setup this Embedded Server, no serverconfig.xml updates are needed !
Default access : http://localhost:10200/