Faulty Objective Mode crashes server
Posted: Sun Dec 09, 2018 7:49 pm
Hi all,
I have been dealing with an annoying issue for a while now. I have made two custom game modes which run on the Objective game play mode from XPack2. These game modes run on mods which themselves depend on the main "raised_fist" mod to run. The first custom game mode is called "Infiltration". Basically one side has to retrieve a briefcase from a secure location protected by the Axis team, and bring it to the extraction point to score a point. The game mode works just fine, on a local game and on Internet. The game mode works on the map "rf_arabian_nights".
Then there is the faulty game mode, Prisoner Rescue. Basically what I have done in this game mode, which again runs on a modified version of Objective, is to replace normal objectives with soldiers (hostages), in this case, dummy soldiers called "BritishSoldier". There are 16 hostages that have to be "rescued" from execution from the Axis team. The Allied team accomplishes this by killing all of the Axis players before they kill off all the hostages. This game mode has caused me some issues online, although it works fine on a local game and doesn't crash. We were even able to play it online on a dedicated server, but hosting a server with the map via BFSM crashes the map everytime. The game mode works on a map called "rf_hellhouse".
The modified game mode runs from a mod which is dependent on the main "raised_fist" mod. That mod is called "rf_extended", and it's also how I set up the other Objective game mode (Infiltration).
I'm thinking some faulty v_arg1 statements are causing the crash here, although in both maps, the v_arg1 statements are setup identically in the ObjectiveMode.con files.
What else could be causing the crash? I'm thinking that perhaps the server can't handle more than a certain number of spawned objectives (my Prisoner Rescue mode has 16 objectives spawning as soldiers in the rf_hellhouse map). I'll be posting the code from the relevant files here shortly, if that can help anyone.
I have been dealing with an annoying issue for a while now. I have made two custom game modes which run on the Objective game play mode from XPack2. These game modes run on mods which themselves depend on the main "raised_fist" mod to run. The first custom game mode is called "Infiltration". Basically one side has to retrieve a briefcase from a secure location protected by the Axis team, and bring it to the extraction point to score a point. The game mode works just fine, on a local game and on Internet. The game mode works on the map "rf_arabian_nights".
Then there is the faulty game mode, Prisoner Rescue. Basically what I have done in this game mode, which again runs on a modified version of Objective, is to replace normal objectives with soldiers (hostages), in this case, dummy soldiers called "BritishSoldier". There are 16 hostages that have to be "rescued" from execution from the Axis team. The Allied team accomplishes this by killing all of the Axis players before they kill off all the hostages. This game mode has caused me some issues online, although it works fine on a local game and doesn't crash. We were even able to play it online on a dedicated server, but hosting a server with the map via BFSM crashes the map everytime. The game mode works on a map called "rf_hellhouse".
The modified game mode runs from a mod which is dependent on the main "raised_fist" mod. That mod is called "rf_extended", and it's also how I set up the other Objective game mode (Infiltration).
I'm thinking some faulty v_arg1 statements are causing the crash here, although in both maps, the v_arg1 statements are setup identically in the ObjectiveMode.con files.
What else could be causing the crash? I'm thinking that perhaps the server can't handle more than a certain number of spawned objectives (my Prisoner Rescue mode has 16 objectives spawning as soldiers in the rf_hellhouse map). I'll be posting the code from the relevant files here shortly, if that can help anyone.