Jump to content

Recommended Posts

Posted

Hi,

 

Still WIP, but this script already works.

This script checks if there are human players in their slots, if it doesn't recognize them as active, it will spawn AI flights with random skill instead. If the player jumps into a slot with an active AI flight, it will give the command to the AI flight to RTB.

 

How to use it -

1. Load the edited MIST as initiator script or before the AutoAI script loads.

2. Load the AutoAI script.

 

What it does -

1. Checks the alive units vs the mission editor units.

2. if less alive units then mission editor units, spawn missing units.

3. if more alive units then mission editor units, RTB the extra alive AI units.

 

Notice that this needs the edited MIST in order to work, the edits in the MIST are -

1. dynAdd function, it recognizes client units and changes the skill to random, should be used only with mist.cloneGroup.

2. Fixed return table for any function that uses the dynAdd function.

 

This script is mostly in order to get balancing in online servers, as sometimes missions are not balanced due to the amount of players in each coalition, the end goal of this script is to result this issue which will allow mission makers some freedom in the plane sets.

 

Attachments -

AutoAI_MIST.lua - the automatic AI flights script.

mistv3_6_42_edited.lua - edited MIST 3.6.42.

AutoAI_Test.miz - little mission for POC.

 

As I said in the first line, this is still WIP, I'll update here as it gets along.

If anyone has any thoughts on making this better, please by all means :)

 

Xcom

AutoAI_Test.miz

mistv3_6_42_edited.lua

AutoAI_MIST.lua

  • Like 1
Posted

That's a very handy script xcom. As you say balance is really hard to achieve sometimes with a mix of AI and humans and this will really help. Thank you, I will have to d/l it and give it a shot when I get time.

Posted

So it seems that it's limited to aircraft already flying. I had a play around with joining parked client slots and found that if you switched, even after bringing it into the game world and leaving it, aircraft on the ground didnt know what to do. It would be really nice to have those client slots spawn in on the ground and take over the flight as per their waypoints. Would this be achievable somehow?

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted

I could break it but i'm not completely sure how. All I did was to ensure all the group names, pilot names and radio callsigns were individually set and it began to behave fine.

 

I have a gift for breaking things, I should have been a software tester.

 

However...HOLY CR4P!!! This script just made quiet servers a thing of the past. For me this is game changing, I've spent the last 20 minutes watching a full on war knowing at any stage I can jump in to any slot.

 

It's completely amazing, thank you so much. I'll put up something in a few hours, i'm just tweaking it now. Should keep me entertained until DCS 2.0

 

btw, i need to spread some rep :(

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted

3 thoughts for expansion if you ever felt like it

1. A variable for the respawn timer to allow a custom time until the slot is filled again

2. A variable for skill level so it can be defined rather than randomised by MIST

3. Ground garbage collection (though I need to test to see if this issue was only part of my own issues)

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

Posted

Glad to hear it works well, there are definitely some issues to workout, if you find any, please describe them clearly and I'll see what I can do about it.

 

About the expansions -

1. I can make a variable, right now it's just at line 52, change the number at the end of the line.

2. That would be a change in MIST it would mean adding a variable to a MIST function, something I would not want to be doing unless Grimes get's into the picture and adds support for this in some way.

3. What do you mean by ground garbage? AI planes that don't despawn?

Posted

Yes, i tried with 8 P51D, 8 Bf109, no player, just observer. After a while, all P51 were on taxiway, engine on, just waiting. Most of Bf109 were on parking, engine off.

People fly planes, pilots fly helicopters

Posted

As an aside, I've had a terrible time with unrelated parking spot issues. Ive got a bug, that this script helps highlight, where sometimes a client slot cannot be spawned into and you end up with just the F10 map screen. This script spams you with respawning messages when that happens. I still dont know the cure, it's not 100% reproducible. Once you have it one a slot, it follows the slot around.

 

But anyway, this is really a super step forward and makes a simple but huge difference.

___________________________________________________________________________

SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *

  • 4 months later...
  • Recently Browsing   0 members

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