Jump to content

MIssion Scripting Tools (Mist)- enhancing mission scripting Lua


Recommended Posts

There is a typo. The zone name in the editor and in your LUA function do not match.

 

mist.flagFunc.mapobjs_dead_zones{ zones = {'Kurta bridge'}, flag = 51 }

Kurta Bridge

 

They need to match. :thumbup:

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

Thanks Grimes got that knocked out. It works now. I think the main problem is when I copied the main script over I must have missed a piece. Now If you can figure out why I get this intermitent pause every 5 seconds that drops my frmes from 47 to 8 that would be awesome :-). Do you notice that when you run it? Maybe I have too many units.

I was in Art of the Kill D#@ it!!!!

Link to comment
Share on other sites

Thanks Grimes got that knocked out. It works now. I think the main problem is when I copied the main script over I must have missed a piece. Now If you can figure out why I get this intermitent pause every 5 seconds that drops my frmes from 47 to 8 that would be awesome :-). Do you notice that when you run it? Maybe I have too many units.

 

I get that too. It's like clockwork. It's not scripting related.

 

I don't think you have too many units- #mist.DBs.unitsByNum shows 1238. That should be stable enough now.

 

I think it's probably some kind of bug with an AI algorithm, or an unoptimized AI algorithm. I'll look into it when I get a chance.

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.

Link to comment
Share on other sites

Yea I hope so I dont thinks its your stuff. I get it without mist.

 

There is a tiny bit of upkeep (the alive units DB/deadObjects DB), but Mist was stress-tested with 2000 units, and tuned so that the frame rate reduction was negligible even under these conditions.

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.

Link to comment
Share on other sites

  • ED Team

MIST is great,

 

I have little / no Lua experience but with the examples you guys have been providing I have started to pick it up.

 

Thanks

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, HP Reverb G2

Link to comment
Share on other sites

Please, can someone help me?

I'd like to set any defined flag number to be true (trigger action) when I've locked any vehicle with my Ka-50's Shkval (condition).

I read about MIST, but useless. Think, this don't be a problem, as player can lock target and send info via PRT data link. So, function about locking exist. But unfortunately, I'm not skilled with lua language; honestly I'm very ignorant.

Please, any tips and example?

Thanks for Your kindness.

 

antonio.

Link to comment
Share on other sites

The simulator scripting LUA environment cannot determine what players are doing and where their aircraft sensors (shkval) are looking. It *might* be possible with the export LUA environment, but I haven't really used that at all, so I can't really help you.

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

The simulator scripting LUA environment cannot determine what players are doing and where their aircraft sensors (shkval) are looking. It *might* be possible with the export LUA environment, but I haven't really used that at all, so I can't really help you.

Ok, thank you very much for courtesy and quick reply.

antonio.

Link to comment
Share on other sites

with mist.DBs.navPoints will it possible to give additional WPs to client aircrafts, in particular for FC3 aircrafts, during a running mission?

 

I think all of the navigation data for players is based on whatever is in the mission file. We can't push a new mission task onto player aircraft before they spawn because client aircraft don't exist UNTIL they spawn. And I doubt the players waypoints will update if we pushed a new mission task to them. I haven't actually run the test, but a positive result is unlikely. It is certainly a capability I would love to have and it is direly needed with FC aircraft.

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

Grime, please, I've investigated a little into mist.flagFunc.units_LOS function.

Can this function help me? Example, when my Ka-50 in LOS with a defined vehicle, within a defined radius?

I'm really ignorant with LUA script, but I'll try. Can You help me if I'll encounter troubles?

Thank you in advance.

antonio.

Link to comment
Share on other sites

mist.flagFunc.units_LOS already has a radius variable. So when you use the function you cna pass it a radius variable and it will require the unit to be within the radius (in meters) in order to be checked.

 

mist.flagFunc.units_LOS{

unitset1 = {'101'},

altoffset1 = 0,

unitset2 = {'AWACs'},

altoffset2 = 6.5,

flag = 101,

radius = 5000

}

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

hi guys, i don't understand lua too much, having never used slmod or this. Basically, could somebody help me get started with what to read or videos?

 

I really would like to add in single player missions the ability at any time to give L/L coordinates of an enemy, or maybe you can call for it after a certain point (say jtac spawn). So incase you dont enter it fast enough, or enter it wrong, later on you can always get the info again.

Link to comment
Share on other sites

mist.flagFunc.units_LOS already has a radius variable. So when you use the function you cna pass it a radius variable and it will require the unit to be within the radius (in meters) in order to be checked.

 

mist.flagFunc.units_LOS{

unitset1 = {'101'},

altoffset1 = 0,

unitset2 = {'AWACs'},

altoffset2 = 6.5,

flag = 101,

radius = 5000

}

Thanks a lot Grimes, and excuse me but I've seen your script only now.

antonio.

Link to comment
Share on other sites

hi guys, i don't understand lua too much, having never used slmod or this. Basically, could somebody help me get started with what to read or videos?

 

I really would like to add in single player missions the ability at any time to give L/L coordinates of an enemy, or maybe you can call for it after a certain point (say jtac spawn). So incase you dont enter it fast enough, or enter it wrong, later on you can always get the info again.

A decent place to learn LUA are the links in my post here: http://forums.eagle.ru/showpost.php?p=1622305&postcount=3

 

Also the simulator scripting wiki found here: http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine_(DCS:_World_1.2.1)

 

To answer your question: We currently do not have any coordinate display functions within Mist. Its one of those things on the "to do" list and it will be added sometime in the future. However

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine/DCS:_World_1.2.1/Part_1#coord

and

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine/DCS:_World_1.2.1/Part_1#Position

should shed some light on how coordinates in the simulator work.

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

  • 3 weeks later...
  • 5 weeks later...

Quick update: Speed and I are waiting for the 1.2.3 patch to release the next version of Mist.

 

The next version of Mist will have some speed and distance unit conversions along with coordinate display functions that have varying levels of accuracy. I am also working on some features for things fixed in the 1.2.3 patch. Specifically I want to take advantage of the new "mission tasks for ground units" feature that will be added with 1.2.3, and I am porting a text output script I had made to be more flexible.

 

 

Anyone feature requests?

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

Id like to have something that makes it easier to make AD units drive out of their hideout if enemy planes come near and after the target has been killed or has gone away they go back hiding. And when enemy plane comes back againg they will drive out again. Other nice thing would be simple way to make group retreat, ie. turn around and drive the assigned route back to where they came from.

DCS Finland: Suomalainen DCS yhteisö -- Finnish DCS community

--------------------------------------------------

SF Squadron

Link to comment
Share on other sites

Id like to have something that makes it easier to make AD units drive out of their hideout if enemy planes come near and after the target has been killed or has gone away they go back hiding. And when enemy plane comes back againg they will drive out again. Other nice thing would be simple way to make group retreat, ie. turn around and drive the assigned route back to where they came from.

 

It's already decided that a simple function to order a ground unit to a point will be included in the next version. Retreat will probably be in there... but retreat might have a certain difficulty I need the check about some time.

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.

Link to comment
Share on other sites

At the very least a real basic retreat could be ordered with the groupToPoint function. It wouldn't always follow their original path, but it'd work.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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