Jump to content

DCS: World Scripting Engine


Recommended Posts

Hello all

 

DCS: World has new powerful tool for experienced mission designers - the Scripting Engine. The system provides control overt game objects behavior during the mission by using lua scripts. All you need is to be a programmer. Experience in programming lua is welcomed, but lua is a simple language and it will not take a lot of time to learn it.

 

Scripting Engine can be used to perform the same actions the Trigger System and AI Tasking System developed for: group activation, text message, sound playing, AI task changing e.t.c. The Engine also provides access to game objects properties. Mission designers can add very complex logic into their missions because using of programming language instead GUI means no limitation on complexity.

 

The engine is documented on Eagle Dynamics wiki.

 

Many thanks to Speed - the enthusiast who has done great job in testing and design. Druid_ proposed multiple useful features now available in the Engine.

 

Of course Scripting System is far from being completed. I have wishlist of features ordered by their priority and they will being added in next releases.

Link to comment
Share on other sites

  • Replies 148
  • Created
  • Last Reply

Top Posters In This Topic

Brilliant, been waiting for this for ages!

 

would love to see some sample complete scripts included in the documentation, would really help the learning process.

 

Thanks ED, Speed & Druid!


Edited by MadTommy

i5-3570K @ 4.5 Ghz, Asus P8Z77-V, 8 GB DDR3, 1.5GB GTX 480 (EVGA, superclocked), SSD, 2 x 1680x1050, x-fi extreme music.



TM Warthog, Saitek combat pro pedals, TrackIR 4

Link to comment
Share on other sites

Святой congrats on a very useful and powerful addition to the DCS environment. Excellent work as always.

i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q

Link to comment
Share on other sites

...

 

would love to see some sample complete scripts included in the documentation, would really help the learning process.

 

Thanks ED, Speed & Druid!

They are on their way. In fact, Speed & Grimes have been hard at work compiling a database of useful functions/scripts for mission builders. I shall leave them to announce more on this topic.


Edited by Druid_

i7-7700K : 16Gb DDR4 2800 Mhz : Asus Mobo : 2TB HDD : Intel 520 SSD 240gb : RTX 2080ti: Win10 64pro : Dx10 : TrackiR4 : TM Warthog : ASUS ROG SWIFT PG348Q

Link to comment
Share on other sites

Fine :thumbup:

 

Finally will we be able to use (in ME-Triggers/Actions) the PLAY ARGUMENT command also ? (on assigned objects: as buildings, air/rotorcrafts, vehicles, ships ? )

 

...and would be nice to add more starting options like:

wsBirthPlace_Air,

wsBirthPlace_RunWay,

wsBirthPlace_Park,

wsBirthPlace_Heliport_Hot,

wsBirthPlace_Heliport_Cold,

 

Would be great more (instead of wsBirthPlace_Park)

 

wsBirthPlace_Park_Hot ---> will B great for A-10C - shortening startup time - i mean no startup time ;)

and

wsBirthPlace_Park_Cold


Edited by HungaroJET

Atop the midnight tarmac,

a metal beast awaits.

To be flown below the radar,

to bring the enemy his fate.

 

HAVE A BANDIT DAY !

 

[sIGPIC][/sIGPIC]

"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." - R. Buckminster Fuller (1895 - 1983), American Architect, Author, Designer, Inventor, and Futurist

Link to comment
Share on other sites

I have no idea how this all works but... this sounds awesome.....

 

LOL bit like me.. my 1st thought was excellent, then i very briefly checked the documentation and went err HTF do i make this work! ;)

 

:book:

i5-3570K @ 4.5 Ghz, Asus P8Z77-V, 8 GB DDR3, 1.5GB GTX 480 (EVGA, superclocked), SSD, 2 x 1680x1050, x-fi extreme music.



TM Warthog, Saitek combat pro pedals, TrackIR 4

Link to comment
Share on other sites

I miss the new stuff Escort & Follow and what is about the resource management and Warehouse!

 

"Land", "Follow" and "Escort" task were developed for groups, not for separate aircrafts. In comparison other tasks can be assigned both aircrafts and groups. We will adopt them to the aircrafts and include into the document.

 

Warehouses cannot be accessed by scripts now.

Link to comment
Share on other sites

Excellent, I just wish I had more missions created with it. I look forward to seeing what all people create with it!

 

Speed and I created a script library we will be releasing shortly. It will automatically create table databases of zones, Initial Points, groups, units, and other combinations of groups by name, ID, etc. It comes in very handy. Additionally there is a "point in polygon" function that allows players to make zones in any shape they want and it will work as "unit in zone" trigger condition.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Additionally there is a "point in polygon" function that allows players to make zones in any shape they want and it will work as "unit in zone" trigger condition.

Does this mean its possible to make triggers simulating radar detection line-of-sight in relation to the terrain around a radar site?

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Link to comment
Share on other sites

Excellent, I just wish I had more missions created with it. I look forward to seeing what all people create with it!

 

Speed and I created a script library we will be releasing shortly. It will automatically create table databases of zones, Initial Points, groups, units, and other combinations of groups by name, ID, etc. It comes in very handy. Additionally there is a "point in polygon" function that allows players to make zones in any shape they want and it will work as "unit in zone" trigger condition.

 

Thanks gents, your efforts are much appreciated. :thumbup:

i5-3570K @ 4.5 Ghz, Asus P8Z77-V, 8 GB DDR3, 1.5GB GTX 480 (EVGA, superclocked), SSD, 2 x 1680x1050, x-fi extreme music.



TM Warthog, Saitek combat pro pedals, TrackIR 4

Link to comment
Share on other sites

Does this mean its possible to make triggers simulating radar detection line-of-sight in relation to the terrain around a radar site?

 

Yeah there is a line of sight function.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

Hello all

 

DCS: World has new powerful tool for experienced mission designers - the Scripting Engine. The system provides control overt game objects behavior during the mission by using lua scripts. All you need is to be a programmer. Experience in programming lua is welcomed, but lua is a simple language and it will not take a lot of time to learn it.

 

Scripting Engine can be used to perform the same actions the Trigger System and AI Tasking System developed for: group activation, text message, sound playing, AI task changing e.t.c. The Engine also provides access to game objects properties. Mission designers can add very complex logic into their missions because using of programming language instead GUI means no limitation on complexity.

 

The engine is documented on Eagle Dynamics wiki.

 

Many thanks to Speed - the enthusiast who has done great job in testing and design. Druid_ proposed multiple useful features now available in the Engine.

 

Of course Scripting System is far from being completed. I have wishlist of features ordered by their priority and they will being added in next releases.

 

 

this is realy awesome stuff

Link to comment
Share on other sites

a question, the script system, although this in the initiation only focuses on enhancing mission or a mission to create from scratch? focuses only on missions little details or talking about bigger things like animations of entry, during the mission, or the end? or is something much more extensive aspirations?

Link to comment
Share on other sites

It allows for more enhanced capabilities of what can happen within a mission. The scope of it really depends on what the mission builder wants to use the it for. It is possible to use it for very simple, mundane tasks, however it excels at complex logic and capabilities. For example a user could create an Integrated Air Defense Network between multiple groups and testing Line of Sight between the different radars and taking all sorts of other factors into account.

 

One of the most powerful and simple features of the SSE (Simulator Scripting Engine, as a few of us call it) is that you can use the text output in a highly customized format. Here is a screenshot from a test "Air Races" style mission I was making which kept track of aircraft laptimes. Btw, the laptimes are almost always the same because I had an AI aircraft flying the circuit :D

 

Screen_120701_200958.jpg

  • Like 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

Link to comment
Share on other sites

  • Recently Browsing   0 members

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