Using mapgen to make a mission gen

Inhales ... Ok, I'll make it clear for you as non programmer. I had such Idea a year ago when I was developing Oxygen, a framework for development of coop missions for FAF. But even now I see it as barely possible to be final product, and that's why:

  1. Map generations is ok, we have it and this is not a problem.
  2. Nav mesh developed by @Jip opens us lot's of opportunities for setting up routes for units, but some coding and checks required.
  3. Bases. This is gonna be a problem. To achieve aesthetics of all faction base setup we'd need very complicated generator that also involves terrain and water. "Use prebuilt ones!" Still required checking for valid terrain and water. And... after 10ish missions you are gonna be bored I swear you.
  4. Objectives. Protect citizens! Protect the convoy! Attack and destroy that base! Build smd before the launch! Hold before timer expires! What's the point? Are you gonna do all these steps before just for that? It is already kind of possible with mod by @Rama iirc. If you want more complex objectives then oh sorry, even starfield having millions of dollars is lacking side mission variety :Kappa:.
  5. Who is gonna do all of the steps?

In conclusion, too many effort for too little result.

“Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
— Steve Jobs.
My UI Mods

For instance: this is a single part of a mission. https://github.com/4z0t/MapsCoopDev/tree/GW/maps%2FGW.v0002 all of that code is a single part...

“Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
— Steve Jobs.
My UI Mods

If coding missions was easy, there’d be a mission vault. If that process isn’t easy enough to justify a vault already, how is the automation going to be trivial?

I don't see the benefit of ChatGPT in this scenario. At a basic level though you could get something rudimentary up by combining an AI mod with a custom mod and mapgen:

  • At the start of the game run some code to split the map into 3 parts (starting area, medium area, full map), and decide for each of these sections where the AI will be starting and where the players will be starting.
  • Remove the AI's ACU and give it a single engineer instead
  • Spawn in some random objective like 'capture target', 'destroy specified enemies', 'defend target', where you optionally spawn in some AI controlled PD around the target to be captured/destroyed
  • Expand the map once the objective is met and this time spawn in a base for the AI along with an initial attack force; if it's the full map then the AI could get its ACU.
  • Optionally periodically cheat in units or attack waves for the AI (e.g. transport drops)

However, even if someone did all this, the main challenge it would have would be providing a more interesting result vs what is already available through skirmish AI, AIX modifiers, survival maps, and survival wave mod, and/or handcrafted campaign missions. Meanwhile making it more interesting would require a lot more time and fine tuning.

@azath0th Your post is helpful. I basically rough-drafted this concept already using chatGPT. I think the biggest hurdle is easily #3, making a generator that spawns a normal-looking base for a generated map. I agree that this could sound simple, but is in fact very hard. #4 is almost as hard, so it's also quite challenging, but I suspect it would be less obviously wrong to the players if done a bit oddly.

@brutus5000 I was serious. What I was not doing, however, was suggesting that chatGPT could be told to "make a mission generator" and then the final product could be trusted to work. I imagine that a good coder could ask chatGPT to generate small pieces of script, perhaps one or a few small functions at a time, and then piece them inside of the larger puzzle. A weekend to generate a finished product is too little time, but a rough proof of concept could conceivably be done with good assistance. Or perhaps, as Azath0th said, the easier pieces could be built within a framework that makes it more clear what parts are much harder. At least a starting point.

@ftxcommando I don't think I used the word "trivial". lol

You literally said a prototype would take 2 days

@azath0th I have done a significant amount of scripting and mission building before. I made the "Survival Run" and "Survival Attack" missions, and I always got quite a bit into a "Seraphim Nuke Mission" which was a campaign mission played on the side of the Seraphim, and in which you start with a Yolona Oss. I never quite finished that one because the final phase involved too many units and it ran too slow on my computer to test XD.

Also, I worked on the UEF campaign missions a bit to make harder versions. Speed2 said my UEF mission 2 version was too hard and did not include my version with the coop update 😞

@FunkOff Good to know. But this doesnt lower the efforts needed for your idea. I'll be glad if you look into Oxygen and example mission I was working on.

“Be a yardstick of quality. Some people aren’t used to an environment where excellence is expected.”
— Steve Jobs.
My UI Mods