#If your still interested in this setting

1 messages · Page 1 of 1 (latest)

frank delta
#

I set the server like that but still only spawns the normal amount of tasks

"missionHeader": { "m_iPlayerCount": 40, "m_eEditableGameFlags": 6, "m_eDefaultGameFlags": 6, "m_iMaxNumberOfTasks": 9, "m_sName": "Combat Ops - Everon (Nine Objectives)", "other": "values" }

Using "scenarioId": "{DFAC5FABD11F2390}Missions/26_CombatOpsEveron.conf",

Any clue?

soft kestrel
#

Works fine with the following. I changed yours up a bit since I do a max of 6 players: ```
"missionHeader": {
"m_sName": "Combat Ops - Everon (Nine Objectives)",
"m_iPlayerCount": 6,
"m_iMaxNumberOfTasks": 9
}

Not sure why people keep the `"other": "values"` in there. And you shouldn't need the `Flag` settings for Combat Ops. And I don't know why folks set `m_iPlayerCount` either since that gets set by `"maxPlayers"` further up in the config.
#

So the only thing you should need/use for Combat Ops would be: ```
"missionHeader": {
"m_sName": "Combat Ops - Everon (Nine Objectives)",
"m_iMaxNumberOfTasks": 9
}

frank delta
#

The problem was the load session save on the start.bat, if I turn that off, it will work, else it won't. Werid, but it was the only way I was able to make it work.

soft kestrel
#

Loadsessionsave will load the last save file, so whatever is in there will populate the server. I don't use it because my server is up 24/7 and hasn't had issues with crashes. If you don't need to load previous session info then I don't see the need for it.

frank delta
#

I use it because the server sometimes crashes and we want to keep progress, we only use the server at nights so it’s really a nice to have. I’ll see if I can make it work with loading the data, thanks for the help.

soft kestrel
#

You could combine a script to follow log file looking for the POSTGAME entry which occurs at the end of a match. Then have that script remove the save files before a new session is started.

frank delta
#

Do you know any good tutorial or documentation on how to make scripts for the server?

soft kestrel
#

Hosting software Linux/Windows? Portal software, or full access to a command line, like a Linux terminal?

frank delta
#

I don't think GTX offers access to the terminal, I guess it's very restrictive but I'll see.

manic crest
#

@soft kestrel I am hosting on Windows machines. What would you recommend for setting this up?

soft kestrel
# manic crest <@965680918549364776> I am hosting on Windows machines. What would you recommend...

Are you asking about a script to look for the POSTGAME state in the log files? I have no clue on Windows. The problem is, each way of hosting these games servers is different; different Host OS (Windows/Linux), different ways to control (Portal Software like AMP/Scripts like LGSM and the ones I use). Each would produce different ways of how the server performs actions. I use Linux, and have my servers setup in a very specific manner according to my needs which makes doing these types of "fixes" easier because I know exactly where files are downloaded to, logs created, saves created, etc. Sorry but I don't know enough about how all the other ways servers are hosted to be much help. I can give you a basic description of what should happen though to make it work in general: When a normal game session (Not a shutdown/crash) comes to an end, there is a log file entry that contains the word "POSTGAME" which signifies that the game state has changed and the session is over. So what some folks are using are scripts that follow/tail (read in real time) the current console log file for the entry that contains the "POSTGAME" line. When that entry is seen, the script removes the Latest Save file so that the server does not try to load it into a new session if using -loadsessionsave parameter. I used to use scripts like that to restart the server to reload my mission header stuff, but since I found out about the -autoshutdown param, I don't need to use external scripts since as soon as my server is shutdown after a session is over it is brought back up automatically by the systemd service manager. I should just start telling folks who want to self-host to use a VirtualBox, Debian Linux VM with bridged networking, and point them to my Github for more info. Sorry I couldn't be of more help.

manic crest
#

Thanks. I am currently looking into setting up a powershell watchdog script that will monitor for "SCR_BaseGameMode::OnGameStateChanged = POSTGAME", stop the server then restart it.