The last official OpenBOR 3.0 version (v6391) has a well known bug in the continue timer. If all onscreen players are defeated and credit sharing is enabled, the timer instantly drops to 0, causing a game over before players may continue.
This bug is due to a very simple one line error in the engine code that was fixed in OpenBOR 4.0. In the meantime, you may insert this script function into 3.0 game modules as a patch.
This bug is due to a very simple one line error in the engine code that was fixed in OpenBOR 4.0. In the meantime, you may insert this script function into 3.0 game modules as a patch.
Installation
- Download the package, extract, and place the included
dc_bug_patch
folder indata/scripts
. #import
the function file into your update.c and execute it inmain()
. An example update.c is included to show you what this looks like.- You may adjust the continue countdown by passing an integer value (in seconds) to the function. See example below:
C:
#import "data/scripts/dc_bug_patch/continue_timer.c"
void oncreate()
{
}
void ondestroy()
{
}
void main()
{
/*
* Execute the bug patch function.
* The numeric value is allowed
* continue time in game seconds.
* Native engine default is 10.
*/
int continue_time = 15;
dc_continue_bug_patch(continue_time);
}