nibuen/SpaceAlertMissionGenerator

New frontiers support

Golem666 opened this issue · 13 comments

Would it be possible to add into the settings new frontiers tickbox to allow the mission generator to spawn two threats on the same time?

Hi @Golem666 sorry i don't have the expansion so would be hard for me to add and know it works, but i am open to PR's if someone else wants to do it.

My mission generator (which is used by this software) should support "New Frontier". I am unsure if it can spawn two threats at the same time - was this the case in New Frontier? I guess, one could tweak the maximum white noise spacing between threats a bit to get this effect.

Ah, yes, this has not been implemented, see https://github.com/mkalus/JSpaceAlertMissionGenerator (see readme wishlist "double action mission generation"). Good question, I have not worked on the project in years, so I am unsure how to implement it 😁

I will see what I can do 😄 I have to find my rules again - somewhere burried after my last move.

Ah, ok, I have dug out my game and also had a look at the scenario cards at https://czechgames.com/en/downloads/ - double threats only occur as internal and external threat, right? All right, that should be doable.

All right, rewrote the whole mission generation section - oh man, 10 year old code and this one was not really elegant 🙄

But I did it!

@nibuen: The option is enableDoubleThreats - this will generate one double threat for the mission.

To test, start the program using the following command line options: -p text --allow-double-threats -D -l 10 -u 2 -i 2 -I 4 --max-time-serious-external 8 --max-time-normal-internal 8

This will create "normal" hard missions. To have the really wild ones with threat level 12, set -l 12

Thanks @mkalus can you link the PR/delta from your repo so I can look at adding to app please.

I see it here actually mkalus/JSpaceAlertMissionGenerator#14 will fork it in for now, maybe someday will move to a common library =)

Sorry long delay on this one, i still feel like there might be some bad fitting cases and hope to get back to it when work calms down a bit.