PVI_Eagle Posted March 14, 2010 Share Posted March 14, 2010 I have created a new dedicated server for DCS/Black shark , with ServMan Server Management Mod v2. Please help me to setting pilot/squad stats , modding export.lua file. Thx PVI_Eagle www.pvi.it [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Acedy Posted March 15, 2010 Share Posted March 15, 2010 Hi, using Lua you can get a lot of player info/stats from the server.lua and events.lua files in the /Scripts/net/ folder. Take a look at the readme.txt in that folder, it explains the functions you can use to do so. This is probably easier than editing export.lua, because you always get the ID of a player who is responsible for a certain event. [sIGPIC][/sIGPIC] *** SERVMAN SERVER MANAGEMENT MOD V2 FOR DCS:BS V1.0.1 *** *** VERSION FOR FC2 *** Link to comment Share on other sites More sharing options...
PVI_Eagle Posted March 15, 2010 Author Share Posted March 15, 2010 Hi Acedy and thank you for your great kob! I'm not familiar with stats management and I don't know what i have to do. Readme inside scripts folder is not clear for me, is there a tutorial? Thx PVI_Eagle www.pvi.it [sIGPIC][/sIGPIC] Link to comment Share on other sites More sharing options...
Acedy Posted March 18, 2010 Share Posted March 18, 2010 (edited) Hi Eagle, afaik there is no tutorial on how to use the networking scripts, there are only tutorials for export.lua (see the Dev's journal and the wiki). Obviously, the prerequisite is that you know the basics of the Lua programming language, if you do not have that you need to start learning it first. After you mastered the basics you can edit the event handlers in those /net scripts to gather/store the required stats and, assuming that you want to display them on a website, send them to your webserver in regular intervals (e.g. after each mission), which needs to run a script (for example written in PHP) to process the data. This script will probably store the data in a file/database, which is read by another script that viewers of your stats page invoke. To send data via HTTP/POST you can use the LuaSocket (http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/) library. See the parts of the ServMan mod that downloads a masterbanlist from a remote webserver, it gives you an example of how to set up LuaSocket. HTH Acedy Edited March 18, 2010 by Acedy [sIGPIC][/sIGPIC] *** SERVMAN SERVER MANAGEMENT MOD V2 FOR DCS:BS V1.0.1 *** *** VERSION FOR FC2 *** Link to comment Share on other sites More sharing options...
104th_Crunch Posted March 18, 2010 Share Posted March 18, 2010 When Lock On 2 comes out it will use the same setup as Black Shark. There then should be a lot more people interested in setting up stats and people will be a lot more knowledgeable with information to share. Hopefully even shared stats like the one for Lock On. Here is a post were stats for Black Shark were discussed by Moa. Link to comment Share on other sites More sharing options...
Toast Posted April 2, 2010 Share Posted April 2, 2010 I sure hope so Crunch, that would be nice. Toast Aviate, Navigate, Communicate. and When All Else Fails, Aviate More :pilotfly: Link to comment Share on other sites More sharing options...
Recommended Posts