Company of Heroes 3

Company of Heroes 3

(2) COOP - COMMANDERS
Shadowphreak  [developer] 25 Feb, 2024 @ 12:23pm
Debugging starting Playbills/Scripts
Sharing some details whats going on in the background in the beginning of the match, which seems to cause desync issues sometimes, so I have to break them up with Wait commands...

These include...

PB_START
- WAIT 2 SECONDS
- Launch Title/Instructions
- Launch PB_PLAYER_SETS
- Spawn Player 1 & 2
- Spawn Howies
- Adjust howies firing and reloading
- WAIT 5 SECONDS
- Spawn Enemy Morters
- Open FOW in map.
- Msg players FOW open.
- WAIT 30 SECONDS
- Panel msg take capture points.
- WAIT 30 SECONDS
- Panel msg destroy enemy.

PB_PLAYER_SETS
- WAIT 5 SECONDS
- Disable resources growing Player 1
- Disable resources growing Player 2
- Disable resources growing Player 3
- Set Population cap 200 Player 1
- Set Population cap 200 Player 2
- Set Population cap 10 Player 3 (This is ally HQ to defend, I dont want them doing much)

... After this there are 23 more Playbills with tons of conditions and actions. They are basically making it so if player stands on specific platform, infantry or tanks spawn from specific locations.

I find if you dont use WAIT commands throughout actions, it causes the map to crash in multiplayer with HUMANS, it will not crash if you test single player... strange.

Some playbills only work in single player, but when another human player is playing, it crashes. Example in this map is I had playbill commands that set player 1 and 2 resources to 0 (ammo/fuel/manpower). As soon as these actions fired, it crashed game into desync issue. So I removed them.
Last edited by Shadowphreak; 25 Feb, 2024 @ 12:26pm