Jump to content
HFG_Hunger

Most performance-saving AAA-Position for COOP Missions

Recommended Posts

Salute Community, 

 

since my tiny flight enthusiasts community flys COOP missions for about half a year now, I've always struggeled to build a most performance saving AAA position. 

I used to use a bunch of complex triggers to check if enemy planes fly in or out of the AAAs area, but since I have to cover a specific frontline area with approx 25 AAA positions, performance is getting worse. 

My question now is, if you have an idea for a performance safing AAA pos, wich activates if I come close and deactivates when I leave their area WITHOUT complex triggers. 

 

Horridoh and thank you for your ideas, 

 

 

Hunger

Share this post


Link to post
Share on other sites

 

i made a video going over using standard triggers for what you describe.  Jim’s guide also covers the topic very well. You can use this sort of mechanic for more than just AAA.  This  method does not use complex triggers.  

 

Check the stickied video video thread of mine for more videos.  Also take a look at Jim’s guide.

Edited by [Pb]Vapor

Share this post


Link to post
Share on other sites

I think this logic has a number of problems that might not be obvious when testing with a single plane. Consider the scenario with two planes A and B where (1) A enters, then (2) B enters, then (3) A leaves.

This how the logic executes:

  • (1) Check zone "in" is triggered. Deactivates itself, activates the Check zone "out" and the artillery
  • (2) Nothing special happens. We now have two planes in the zone
  • (3) Check zone "out" is triggered, Artillery is deactivated, even though B is still in the zone

See

for an alternative solution, which I use on my server.

 

EDIT: never mind, my understanding of the check zone "further" option was wrong.

Edited by coconut

Share this post


Link to post
Share on other sites
6 hours ago, coconut said:

I think this logic has a number of problems that might not be obvious when testing with a single plane. Consider the scenario with two planes A and B where (1) A enters, then (2) B enters, then (3) A leaves.

This how the logic executes:

  • (1) Check zone "in" is triggered. Deactivates itself, activates the Check zone "out" and the artillery
  • (2) Nothing special happens. We now have two planes in the zone
  • (3) Check zone "out" is triggered, Artillery is deactivated, even though B is still in the zone

...

 

Coconut,

 

A few years back, while I was writing the manual, I tested a "further" check zone trigger in SP, with myself and an AI plane in the zone. I left the zone first, followed by the AI. The check zone did not fire until the AI plane left the zone (i.e., the zone fired once all objects it was set up to detect had left). I also tested the opposite scenario, where the AI left first followed by me, and I got the same result.

 

I haven't tested my scenario in MP yet so I wonder if it differs from the SP scenario I tested (assuming that the SP behaviour I observed is still happening)?

Edited by JimTM

Share this post


Link to post
Share on other sites
3 minutes ago, JimTM said:

the zone fired once all objects it was set up to detect

Do you mean using the filter, or explicit object links?

Share this post


Link to post
Share on other sites
4 minutes ago, coconut said:

Do you mean using the filter, or explicit object links?

 

I'm pretty sure I used the filter. I'll check my archive.

Edited by JimTM

Share this post


Link to post
Share on other sites

There was once a time when AIs and player-controlled planes were handled differently by the check zone triggers and complex triggers, in multiplayer IIRC. If you still have the mission it's worth to test now.

Share this post


Link to post
Share on other sites
18 minutes ago, coconut said:

There was once a time when AIs and player-controlled planes were handled differently by the check zone triggers and complex triggers, in multiplayer IIRC. If you still have the mission it's worth to test now.

 

I got the same response in SP as before: trigger fires once all planes have left the area.

JimTM-TestChkZoneTrig3-1.zip

Share this post


Link to post
Share on other sites

You are right, that surprised me. So the "further" checkbox does not mean "there is a plane further than xxx meters away", it means "no planes within xxx meters", or as you say "all planes further than xxx meters".

Share this post


Link to post
Share on other sites
2 hours ago, JimTM said:

 

I got the same response in SP as before: trigger fires once all planes have left the area.

JimTM-TestChkZoneTrig3-1.zip

 

I tested in MP (with myself only) and got the same results as SP except for the case where you spawn an AI plane. It appears that spawning an AI plane disables the check zone "further" functionality. If you reenter an empty zone (after the spawned AI leaves the zone) and then you exit the zone again, the trigger does not fire.

 

If you activate the AI plane instead of spawning it, the check zone works the same as in SP.

 

I haven't tested these scenarios with the check zone "closer" yet and I haven't tested with other players joining the mission.

 

Here is a zip with missions for the spawn and activate cases:

JimTM-TestChkZoneTrig3-4TwoMP.zip

 

Share this post


Link to post
Share on other sites

Thank you for testing guys! We've experienced no problems with it so far. 

Share this post


Link to post
Share on other sites
On 1/20/2019 at 1:57 AM, HFG_Hunger said:

Salute Community, 

 

since my tiny flight enthusiasts community flys COOP missions for about half a year now, I've always struggeled to build a most performance saving AAA position. 

I used to use a bunch of complex triggers to check if enemy planes fly in or out of the AAAs area, but since I have to cover a specific frontline area with approx 25 AAA positions, performance is getting worse. 

My question now is, if you have an idea for a performance safing AAA pos, wich activates if I come close and deactivates when I leave their area WITHOUT complex triggers. 

 

Horridoh and thank you for your ideas, 

 

 

Hunger

 

Just out of curiosity can you give me some ball park figures . For example, of your 25 AAA positions how many guns are in a "position" roughly? How many AI/human pilots and what types of planes during your mission? (more crew/gunners and multi-engine = far more demanding, ie he 111). What map? And finally what was your negative performance impact like and did this affect all players or not?

 

I've primarily worked on SP content and I have my own ball-park figures of how much is too much... I plan on making some CO-OP missions though and performance limitations might limit my designs slightly. 

 

thanks for any intel, I know I'm asking a lot but I can't just rally like 12 people to jump into a CO-OP mission for performance testing...

Share this post


Link to post
Share on other sites

My recent COOP setup, based on a "Free Hunt" mission:

 

For playercount: up to 10

Map: Moscow / Stalingrad

Red AI Planes over all (not activated): 50

Red AI Vehicles over all: 50

Red AI Artillery guns: 18

Red AI AAA guns: approx 65

 

Blue AI Planes over all (not activared): 10 (own flight) + 12 

Blue AI Vehicles over all: 10

Blue AI Artillery guns: 0

Blue AI AAA guns: approx 12

 

You see, to save performance, I heavily shortened blue AI activity. I had to simulate the danger of flying over the frontline cause of AAA, the danger of getting jumped by red fighters, red bombers crossing the frontline and red recon planes searching for blue troops. 

 

Every AAA Pos has 2-3 guns, one heavy, one medium and sometimes a small one. I set them up approx every 7-9km, but focused on villages, bridges, strongpoints und cities. Enemy Airfields have own AAA pos. 

 

To make the frontline activity as random as possible, every red and blue AI is deactivated at mission start. A 4/6 way-switch triggers then at least -> 1 enemy fighter squad, 1 enemy bomber squad, 2 enemy recon planes, 1 enemy vehicle convoy, 1 enemy train and 1 own fighter squad. 

 

All of the now triggered AI groups have at least 4 different waypoint options, triggered by another 4/6 way switch. That means, that even it triggers 5 times the same fighter squadron in 5 COOPs, they will propably have different waypoints and so, it creates a high random factor. 

 

Area Checkzones and Subtitles report enemy planes crossing the frontline, so the player gets drawn "in the right direction", but has to actively earch for the enemy planes.

 

Every AI is at least set to "high", to prevent the devensive circle. 

 

There is always one Enemy fighter Group (1,2 or three Planes) set to "Veteran", wich does NOT get reported and flys generally at about 3-5km height. They also have Waypoints reaching deeply into blue territory. 

That makes us always be in high alert, cause you could be jumped everytime. 

 

This is my basic setup for our "FREE HUNT" missions. 

I use that mission setup to build my COOP mission upon it. So that "Free Hunt" mission setup always runs in the background.

 

If the mission objective for a specific COOP is very AI heavy, I just deactivate parts of the "Free Hunt" setup. 

 

 

My older COOP setup, based on a "Free Hunt" mission, wich caused performance problems:

 

I used not to have random switches for the different waypoints, but had a lot of other squads with own wayponts, triggered by a random switch. 

Also, I had my whole AAA positions checking their areas with COMPLEX Triggers. 

 

Both caused partly heavy micro stuttering, lags and sometimes even sudden server crashes.

 

 

We can talk about it on TS if you want. 

  • Thanks 1

Share this post


Link to post
Share on other sites
7 minutes ago, HFG_Hunger said:

Area Checkzones and Subtitles report enemy planes crossing the frontline

Is it possible for players to fly these enemy planes? If not, you won't need checkzones for them. Instead, have a waypoint at the frontline trigger the subtitle.

  • Thanks 1

Share this post


Link to post
Share on other sites

No it's not, but it depends on my intention. If I want to have several, not specified planes to be reported, I use check zones. If I want to call out a specific Plane with its height for example "A squadron Sturmoviks just passed Kalach at Hanni 700, target approx Sekretov."

Share this post


Link to post
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

×