Normandy 2.0 WW2 Sandbox (WIP)

Very WIP, still heavily Allies-focused at the moment.

Requires: Normandy 2.0, WW2 Assets, Eightball’s Civilian Assets Pack (Nautical)

A-Normandy-Sandbox-MOD.miz (229.6 KB)



Features

  • Client slots for P-47, P-51, Spitfire, Mosquito, Fw190 A-8, Fw109 K-4

  • Static practice targets at the Ashely Range

  • Limited AAA coverage

  • Ground attack scenarios around Carentan, St. Lo, and Falais for both Allies and Axis. No talk-ons, no marks, you’ve gotta find the action. Triggered any time an aicraft enters a trigger zone around the town. Towns marked by fire/smoke for easier navigation.

  • Turkey shooting Axis flights escaping from, arriving at, or departing for ground attack from Carpiquet and Vrigny. Triggered by Allied aircraft entering trigger zone around those airfields.

  • Axis CAP flights over Carpiquet, Falaise, and Vrigny, triggered via F10 menu.

  • Anti-shipping (Eightball’s assets pack) just north of Cherbourg. Sometimes unarmed merchant ships, sometimes escorted by an E-boat, sometimes E-boats on recon, or maybe even a U-boat here and there.

  • 8 trains for you to find and shoot up.
    Touques-Burnay, Burnay-Touques
    Caen-Argentan, Argentan-Caen
    Rouen-Amiens
    Paris-Eune
    Havre-Rouen
    Cabourg-Caen

Surface AI are generally set to “return fire” so they don’t shred you on the first pass. Random spawns are not infinite; you will run out of targets eventually.

Still wondering what to set up for Axis, and wether to put in triggered missions with AI like my Channel sandbox. Would be nice to get an ELI5 on scripting infinite random spawns so we don’t run out after four or five triggers.

11 Likes

MOOSE provides functionality for all of that. Basically you can put a few late activated template groups somewhere at that edge of the map and then create a zone to to spawn them in once you enter it or even place radars and then spawn in groups as player aircraft are detected. The documentation is pretty solid and there’s also demo missions for most MOOSE modules like the a2a dispatcher.
https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/index.html

2 Likes

I’ve messed with airboss but the documentation always leaves me with more questions than answers, being a list of code with vague explanations of what they do and no examples showing the syntax/values/units of measure needed to get them to work (e.g. What goes in the parentheses? Are the numbers imperial or metric? Do I use unit name or group name? Etc.) I’ll dig through there and see if I can find a demo mission with simple ground unit spawning to reverse-engineer.

1 Like

Always group names unless stated otherwise. There should be demo missions linked in the documentation.

For example here’s the demo missions for the simple A2A dispatcher:

The A2A GCI module let’s you configure much more but I guess for a simple training scenario it shouldn’t be necessary.

1 Like

Note: the following is using single player mode but most/all should still apply to my knowledge

It’s not terribly difficult to “roll your own” for this singular purpose, basically I would extract the group table from a miz; place it in a separate lua file; on some trigger spawn it by passing the coalition and country and the table defines the group properties, etc. and do it as many times as you want.

AddGroup/addStaticObject are the two functions in the API.

I get a bit more granular to allow for some variety with the type of unit (this requires a specific loadout scheme = a bit more complicated).

I script my own trigger zones so you’d need to acquire the position of, for example all blue side players (I only have to worry about one unit, the player).

However given the first part only: you should be able to have a repeat trigger on the zone and decide (in the above lua file) if/when you want to spawn the new one; call your fxn from the trigger via :

Do Script
SpawnMyThing(arguments)

The arguments can be all kinds of things, or empty depending on any conditions you might want. Most of the things you might want as arguments u can get via the scripting engine API however.

The benefits of my own trigger is, for example, I can call them at a rate of my choosing and not every second (think that’s how the repeat trigger works). U could even call this function (or any other) at a higher rate too but u have watch out here cus you can introduce unwanted delays, depending on what u are doing.

In the end you know how it works (cus you wrote it); You get just the functionality you want without having to load a whole system for that one thing.

NOTE: I’ve skipped the lua syntax details here and the mechanics of loading of the script and extracting the desired table/values.

AND…

[1] with some minor voodoo you can edit this in a text editor and only have to hit “fly” to test changes - OTW you have to unload/save/reload/save again the mission for every freakin change. a PITA

if you look at any of the early DEPLOYED miz files you have you’ll see a trigger that only fires if I set a “debug” trigger, which then uses loadFile(path to your script)-that’s what allows u to edit “on the fly [nearly]. Requires you to ‘unsafe’ your install but for a release version you skip that part and load the final (script) version the normal way.

I only call 1 file but that one then loads all the others.I don’t include that file (or I don’t anymore) as this is ignored for the release version (the end user doesn’t need it; is for my use only while testing). In my case (minus the radio handling) I’d never be able to do as much with page after page of triggers; the entire system only need a few triggers to get the ball rolling. Is for me much easier to organize in separate text files than a huge collection of triggers .

  • this “load every other lua file” file has a few branches cuz I do a bunch of other things there on my end

[2] you can attach a debugger to it too to examine things. It’s hit or miss sometimes but it does help greatly when things get complicated

[3] yeah, nobody [when I was teaching myself all this, to include how lua works] tells you this stuff in any one place (the scripting wiki being the one very helpful exception) had to dig for it. But….only have to do it once :smile:

1 Like