Jump to content

DCS Lua Scripts and Multiplayer


c0ff

Recommended Posts

  • ED Team

Dear server owners,

 

I would like to present to you multiplayer scripts from the upcoming DCS Black Shark game.

 

Files list:

 

server.lua - server-side event handlers

client.lua - client-side handlers

events.lua - game event handlers (both client and server)

readme.txt - brief description of lua API, available in the scripts.

 

Note: all event handlers are named as : on_xxx, where xxx is an event name.

 

Please, ask your questions here.

 

Script files: http://forums.eagle.ru/attachment.php?attachmentid=19412&d=1221830577


Edited by c0ff

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

excellent! thank you sir :thumbup: will scripting be hard in Black Shark? I've done some scripting in Armed Assault and it was a little confusing. but it was different than this.


Edited by graywo1fg

4w24cLi.png?4

Voice of Jester AI

Death From Above =DFA= Squadron Discord - https://discord.gg/deathfromabove

http://www.twitch.tv/graywo1f

https://www.youtube.com/user/Lonewo1fg

Link to comment
Share on other sites

Jolly Good News - One step closer!

 

Ya'all know what this means then, right..............

 

 

jobi20080317i.jpg

 

 

:D

Novice or Veteran looking for an alternative MP career?

Click me to commence your Journey of Pillage and Plunder!

[sIGPIC][/sIGPIC]

'....And when I get to Heaven, to St Peter I will tell....

One more Soldier reporting Sir, I've served my time in Hell......'

Link to comment
Share on other sites

  • ED Team
Can't figure out how these scripts to use. anybody can give it a note something?

 

You cannot use these scripts directly.

 

They will be loaded into BlackShark and provide scripted callbacks for the most of network-related events. So if one wants to change default behaviour of the network subsystem (server-side mostly), he has to change these scripts.

 

I posted these scripts, so anyone interested can learn the capabilities of this system from provided files.

They are meant to be self-explanatory. If they are not, please, ask your questions here :)

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

  • 1 month later...
Guest nefelim

upcoming TS3 will be lua enabled through its SDK (already released). In the final product will you include lua triggers for LOS and distance between two players to check if radio com is feasible to do transmision? or furthermore triggers on what channels is being used and so on? example trigger can be ('player 1', xmit, freq=UHFxyz) so each recieving player can calculate if they are listening to that freq, if they have LOS and and and... and if all are true then reproduce the voip stream.

 

On the other hand, do you have plans to yourselves include TS3 as a voip solution in a future product or patch?

Link to comment
Share on other sites

  • ED Team
On the other hand, do you have plans to yourselves include TS3 as a voip solution in a future product or patch?

 

We are evaluating the possibility of integrating Mumble/Murmur http://mumble.sourceforge.net/Main_Page into DCS.

Thank you for the information, we'll take it into account.

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

I don't see why SF would make it impossible to use GPL software. As long as the source (of mumble in this case) is made available. AFAIK GPL is not broken by having copyprotection on the implementation of the software...

MSI 870A-G54, AMD Phenom II X2 555 @Phenom II X4 B55 BE, 3.2 GHz quad-core, Asus EAH4870 DK/HTDI/512MD5, OCZ Gold Edition DDR3 1333MHz 4GB Kit Low-Voltage. Budget = Cheap = Good :D

Link to comment
Share on other sites

I'm not an expert regarding GPL, but as far as I understand it you can use the GPL licensed software even for commercial purposes, you just have to ship the source of the original and, if you modify it, of the modification. I guess ED would program some kind of interface so that DCS can communicate with Mumble, so there would be no need to integrate it with DCS, or they modify Mumble to their needs but keep it as a separate application.

Link to comment
Share on other sites

  • ED Team

Mumble/Murmur was relicensed under BSD 3-clause license long ago. Proof link - http://mumble.svn.sourceforge.net/viewvc/mumble/trunk/LICENSE?revision=1015&view=markup.

 

Anyway, we are trying to be as open as possible and will release all the changes (if any) despite the fact that BSD-license does not force us to do it.

 

EDIT: if you are interested which open source libraries we do use, all of them and their licensing terms will be listed in a Doc/3RD-PARTIES.txt file of the DCS install.


Edited by c0ff

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

  • ED Team
I'm not an expert regarding GPL, but as far as I understand it you can use the GPL licensed software even for commercial purposes, you just have to ship the source of the original and, if you modify it, of the modification.

This is the terms of LGPL (ex-Library, now Lesser GPL). And yes, we do use some LGPL libraries (without modifications).

 

GPL will force you to ship the sources of the entire application which uses GPL-licensed source codes.

That's why GPL is no-go for closed-source applications.


Edited by c0ff

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

We are evaluating the possibility of integrating Mumble/Murmur http://mumble.sourceforge.net/Main_Page into DCS.

Thank you for the information, we'll take it into account.

 

That's nice to hear that. Because i thought how to connect radio in BS with Team Speak. It could be possible with TeamSpeak SDK, but export.lua seems to be not exporting radio selected frequency and pressed buttons.

 

On the other hand, i have read the key configuration and i don't see any free key press combination. On bigger missions we use lot of channels in TeamSpeak.

LockOn SVK Squad bomber.

 

"Flight sim is not about to know everything about aircraft, but to know which button must be pressed in crucial time." - dead virtual pilot

Link to comment
Share on other sites

  • 1 month later...
excellent! thank you sir :thumbup: will scripting be hard in Black Shark? I've done some scripting in Armed Assault and it was a little confusing. but it was different than this.

 

OT:

 

Ofp/Arma scripting is very easy and logical compared to this thing i see on these.

 

BadSoldier SetDamage 1

 

Logical and so :p

Fighting for peace is like screwing for virginity.

Link to comment
Share on other sites

  • 5 weeks later...

. . . and there are some scripts that make AI smack you in the face, then come apologise and make coffee for you. I suggest you visiting ArmA scripting forums a little ;)

 

Anyways, I hope we'll hear about Mumble integration soon. There are a lot of possibilites with talented programmers at both ED and Mumble developers :)

Link to comment
Share on other sites

  • 5 weeks later...

Hi c0ff,

 

Is it possible to get at the information contained in the debrief.log from the events.lua file:

 

ie

{t=48121.638, type='hit', targetID=16804104, target="Pilot #13", target_country=0,},

{t=48121.638, type='hit', targetID=16804104, target="Pilot #13", target_country=0,},

{t=48121.638, type='hit', targetID=16804104, target="Pilot #13", target_country=0,},

{t=48121.638, type='dead', initiatorID=16804104, initiator="Pilot #13", initiator_country=0,},

{t=48121.638, type='crash', initiatorID=16804104, initiator="Pilot #13", initiator_country=0,},

{t=48122.308, type='crash', initiatorID=16792579, initiator="Pilot #15", initiator_country=0,},

 

I can't see any global functions for getting shots,hits,etc.

Link to comment
Share on other sites

how do i ip ban know teamkillers / basecamping teamkillers, i know how to kick em but all they do is change their name and rejoin. what these pricks need is a ban that will be effective for at least a whole week?

 

how do i do it, in what file do i add their ip's for them not to be able to join (at least make it a little harder...i know about dynamic ips)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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