Jump to content

Recommended Posts

Posted

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]

Posted

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.

Posted

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]

Posted (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 by Acedy
Posted

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.

  • 2 weeks later...
Posted

I sure hope so Crunch, that would be nice.

Toast

 

Aviate, Navigate, Communicate. and When All Else Fails, Aviate More :pilotfly:

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...