MIssion Scripting Tools (Mist)- enhancing mission scripting Lua - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 12-04-2012, 09:38 PM   #1
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,091
Reputation power: 81
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default MIssion Scripting Tools (Mist)- enhancing mission scripting Lua

Mission Scripting Tools Version 3.3
Expanded Lua Scripting Library for mission scripting by Speed and Grimes

What is it?
MIssion Scripting Tools (Mist) is a collection of Lua functions and databases that is intended to be a supplement to the standard Lua functions included in the simulator scripting engine. Mist functions and databases provide ready-made solutions to many common scripting tasks and challenges, enabling easier scripting and saving mission scripters time. The table mist.flagFuncs contains a set of Lua functions (that are similar to Slmod functions) that do not require detailed Lua knowledge to use. However, the majority of Mist does require knowledge of the Lua language, and, if you are going to utilize these components of Mist, it is necessary that you read the Simulator Scripting Engine guide on the official ED wiki.

Community Contributions
The purpose of Mist is to provide a set of scripts for the DCS community, by the DCS community. We are open to people contributing their own scripts into Mist, but we reserve the right to edit your script in any way we see fit before “officially” including it into Mist. Also, feel free to contribute ideas as for what scripts to develop next.

Usage Rights
Feel free to modify or redistribute Mist in any way you see fit (even including it in paid content is OK by us), AS LONG AS you don’t try claim that our work is your own.

How to use it?

Mist is not a mod of the game files. You include it into your missions simply by using the DO SCRIPT or DO SCRIPT FILE trigger actions to load Mist at or near mission start.

Mist Guide
A full .pdf guide for Mist is included in the attached Mist v3_3.rar file. Additionally, documentation is available online here.

Example DBs are also included.


Current feature overview
“Flag functions” – functions that can be used by persons with very little Lua knowledge. Functionally similar to many Slmod functions, these set a flag to true when they detect a certain game condition.
Spoiler:

mist.flagFunc.mapobjs_dead_zones
mist.flagFunc.mapobjs_dead_polygon
mist.flagFunc.units_in_zones
mist.flagFunc.units_in_moving_zones
mist.flagFunc.units_in_polygon
mist.flagFunc.units_LOS


“Scripting functions”- intended to be used within a larger Lua script. These require knowledge of the Lua language to use.
Spoiler:

General
mist.scheduleFunction
mist.removeFunction
mist.addEventHandler
mist.removeEventHandler
mist.getGroupPoints
mist.getUnitsInZones
mist.getUnitsInMovingZones
mist.pointInPolygon
mist.getDeadMapObjsInZones
mist.getDeadMapObjsInPolygonZone
mist.getUnitsLOS
mist.getNorthCorrection
mist.getHeading
mist.getPitch
mist.getRoll
mist.getYaw
mist.getAoA
mist.getClimbAngle
mist.getAttitude

Utilities
mist.utils.makeVec2
mist.utils.makeVec3
mist.utils.toDegree
mist.utils.toRadian
mist.utils.deepCopy
mist.utils.round
mist.utils.dostring
mist.utils.basicSerialize
mist.utils.serialize
mist.utils.serializeWithCycles
mist.utils.oneLineSerialize
mist.utils.tableShow

Debug
mist.debug.dump_G
mist.debug.writeData
mist.debug.dumpDBs

Vector Operations in Vec3
mist.vec.add
mist.vec.sub
mist.vec.scalar_mult
mist.vec.dp
mist.vec.cp
mist.vec.mag

Demos
mist.demos.printFlightData


Databases- databases built for easier mission scripting. (Example DBs included with Mist v3_3.rar file).
Spoiler:

STATIC DBs
Unit DBs
mist.DBs.units
mist.DBs.unitsByName
mist.DBs.unitsById
mist.DBs.unitsByCat
mist.DBs.unitsByNum

Group DBs
mist.DBs.groupsByName
mist.DBs.groupsById


Zone DBs
mist.DBs.zonesByName
mist.DBs.zonesByNum

Human-controllable unit DBs
mist.DBs.humansByName
mist.DBs.humansById

Misc. static DBs
mist.DBs.navPoints
mist.DBs.missionData

REAL-TIME DBs
mist.DBs.aliveUnits
mist.DBs.deadObjects

DOWNLOAD MIST 3.3 HERE
Attached Files
File Type: zip Mist v1_1.zip (324.4 KB, 2297 views)
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.

Last edited by Speed; 02-14-2014 at 01:28 AM.
Speed is offline   Reply With Quote
Old 12-04-2012, 09:38 PM   #2
Speed
Veteran
 
Speed's Avatar
 
Join Date: Nov 2008
Location: Auburn, AL
Posts: 4,091
Reputation power: 81
Speed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to beholdSpeed is a splendid one to behold
Default

Reserved
__________________
Intelligent discourse can only begin with the honest admission of your own fallibility.
Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/
Lua scripts and mods:
MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616
Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979
Now includes remote server administration tools for kicking, banning, loading missions, etc.
Speed is offline   Reply With Quote
Old 12-04-2012, 09:39 PM   #3
Grimes
ED Testers Team
 
Grimes's Avatar
 
Join Date: Jan 2006
Location: Black Mesa
Posts: 6,811
Reputation power: 145
Grimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud of
Default

V4+ must be used for DCS 1.5 or higher.

MIST on Github for latest release
Mist 4.1 Download and info Posthttp://forums.eagle.ru/showpost.php?...&postcount=910
Mist Online Documentation: http://wiki.hoggit.us/view/Mission_S..._Documentation
Some great references for LUA in general:
http://www.lua.org/pil/
http://lua-users.org/wiki/TutorialDirectory
http://lua-users.org/wiki/SampleCode

Also feel free to make suggestions for features you might want to see added.
__________________
You can only tie the world record for lowest flight.
Current Projects: Scripting Wiki, Something...
Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD for DCS 1.5/2.0, IADScript, Mission Editing Wiki!, Mission Building Forum

Last edited by Grimes; 01-11-2016 at 10:05 AM. Reason: 4.0 release
Grimes is offline   Reply With Quote
Old 12-04-2012, 11:18 PM   #4
Puddlemonkey
Member
 
Join Date: Oct 2011
Location: England
Posts: 181
Reputation power: 7
Puddlemonkey has a spectacular aura aboutPuddlemonkey has a spectacular aura aboutPuddlemonkey has a spectacular aura aboutPuddlemonkey has a spectacular aura about
Default

Thanks. This is the mut's nuts
Puddlemonkey is offline   Reply With Quote
Old 12-04-2012, 11:58 PM   #5
gunterlund21
Member
 
Join Date: Mar 2012
Location: Napa, Ca
Posts: 549
Reputation power: 8
gunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura about
Default

speed what is the difference between mist.flagfunc.units_in_moving_zone and the function in SLmod. Looks the same.
gunterlund21 is offline   Reply With Quote
Old 12-05-2012, 12:10 AM   #6
Grimes
ED Testers Team
 
Grimes's Avatar
 
Join Date: Jan 2006
Location: Black Mesa
Posts: 6,811
Reputation power: 145
Grimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud ofGrimes has much to be proud of
Default

They are basically the same. However the key difference is that Slmod functions require slmod to be installed. Mist is added to the mission file itself and therefore DOESN'T require the end user to install a mod in order for the function to work.
__________________
You can only tie the world record for lowest flight.
Current Projects: Scripting Wiki, Something...
Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD for DCS 1.5/2.0, IADScript, Mission Editing Wiki!, Mission Building Forum
Grimes is offline   Reply With Quote
Old 12-05-2012, 04:13 AM   #7
gunterlund21
Member
 
Join Date: Mar 2012
Location: Napa, Ca
Posts: 549
Reputation power: 8
gunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura aboutgunterlund21 has a spectacular aura about
Default

Quote:
Originally Posted by Grimes View Post
They are basically the same. However the key difference is that Slmod functions require slmod to be installed. Mist is added to the mission file itself and therefore DOESN'T require the end user to install a mod in order for the function to work.
Ahhh thats awesome. Now it makes the mission more modular and transportable and still get the benefits of slmod... Nice!!!!!! I also like the ability to create zones that arent just circular.
gunterlund21 is offline   Reply With Quote
Old 12-05-2012, 06:37 AM   #8
mwd2
Senior Member
 
mwd2's Avatar
 
Join Date: Aug 2010
Location: Germany
Posts: 2,253
Reputation power: 18
mwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nicemwd2 is just really nice
Default

New Toys but i haven`t manage the old ones....!
__________________
Waiting for:DCS: F/A-18C, DCS: SoH & DCS: Mi-24 Hind, ...
Intel i5-7600K @4.1GHz, 16GB DDR4 @2400MHz, GTX 1070 Gigabyte Gaming OC 8GB DDR5, WIN 10 64Bit Prof.
"Do you know the way to Chak Chak?."


GSPB Squadron "Serious Ugly"

Ghost0815

mwd2 is offline   Reply With Quote
Old 12-05-2012, 07:30 AM   #9
chromium
3rd Party Developer
 
Join Date: Dec 2008
Location: Milan
Posts: 2,781
Reputation power: 22
chromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nice
Default

Thanks guys
__________________

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
chromium is offline   Reply With Quote
Old 12-05-2012, 07:32 AM   #10
chromium
3rd Party Developer
 
Join Date: Dec 2008
Location: Milan
Posts: 2,781
Reputation power: 22
chromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nicechromium is just really nice
Default

PS: seems the attachment doesn't exist now
__________________

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.
chromium is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:46 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.