Solved Game Skipping to Game Over Screen After Losing One Life

Question that is answered or resolved.

maxman

Well-known member
Recently, I started to test a new mod with the recent version of the OpenBOR build 6391, with its compile date on April 8 2020. When I lose a last life, even though the default credit is 3 or 5, without pressing a start button to select character, it skips to the Game Over screen. How in the world does this happen to it? I already set credits to 5 in levels.txt, but it seems too quick to skip it.


EDIT: Am I using the wrong version?
 
Hi, you can add this script timetick.c, it can solve your problem
C:
void main()
{//Script to avoid engine "noshare" BUG that don't give enough time to press start button and continue the game if the all players are dead
 //This bug happens only if "noshare" command is not present in "levels.txt". If it is present with flag 1, this bug not happens and the engine give you 10 seconds

  if(openborvariant("count_players") > 0){ //THERE'S SOME PLAYERS ACTIVE
    setglobalvar("current_time", openborvariant("game_time")); //SAVE THE CURRENT TIME CONSTANTLY
  }
  else //THERE'S NO PLAYERS ACTIVE
  {
    changeopenborvariant("game_time", getglobalvar("current_time")); //FREEZE THE GAME TIMER USING THE PREVIOULSY SAVED TIME
 }
}
Script source @Kratus
 
@maxman its a known issue. @DCurrent made a patch for it and this is already fixed on the unrelased version
 
Back
Top Bottom