LUA - the file system and NS2
bhaz
Join Date: 2009-11-11 Member: 69353Members
<div class="IPBDescription">Reading / writing to the disk</div>What I'm wondering here, is if the LUA implementation used in NS2 will be powerful enough to read and write, to / from files on the server. If so, this could open up a huge amount of possibilities for both modders and server admins, ideas that were only possible in NS1 through the use of metamod.dll and its never ending confusion, and even then it couldn't interact directly with the game.
Just a short list of possibilities:
<ul><li>Live stats tracking, viewable both in-game and out</li><li>New persistent game-modes, that save even when a player leaves the server</li><li>Integration with external apps, IRC etc.</li><li>Huge use in competitive gaming (game results, ladders, tournaments, administration)</li></ul>
Thoughts? Confirmation? More ideas even?
Just a short list of possibilities:
<ul><li>Live stats tracking, viewable both in-game and out</li><li>New persistent game-modes, that save even when a player leaves the server</li><li>Integration with external apps, IRC etc.</li><li>Huge use in competitive gaming (game results, ladders, tournaments, administration)</li></ul>
Thoughts? Confirmation? More ideas even?
Comments
but ye, if lua is as powerful as they make it out to be, pretty much any game could be created (ns2 is totally in LUA, only the engine is in c++ as far as I can tell from Max's blog post) depending how much they allow mods to change core game mechanics pretty much the sky is the limit.
In NS1 our ENSL plugin doesn't need need disk writing at all. We've different people running the plugin on their servers, and for them, and it would be pointless to store anything locally on their servers.
What you would want is a socket to be used for making connections through the network. You wouldn't want Lua to directly access a servers read/write, you'd want Lua to ask the server for a file, or ask the server to write specific data to its disk drives. Whether they have a socket implementation available for mods to use is unknown but it is a good probability that they would, otherwise many popular types of plugins would be impossible to create otherwise as well as their existing Lua code which uses such functionality.