DCurrent / openbor

OpenBOR is the ultimate 2D side scrolling engine for beat em' ups, shooters, and more!
http://www.chronocrash.com
BSD 3-Clause "New" or "Revised" License
894 stars 119 forks source link

Cutscenes x skipselect (cannot load players) #291

Open dbaldan opened 6 months ago

dbaldan commented 6 months ago

Please complete the following template to help us investigate your issue. Developer time is very limited - incomplete issue reports may be ignored and deleted.

Note: Legacy builds are not supported. Any fixes will be applied to the latest engine builds.

Description

When you use a cutscene in levels.txt and are playing with 2 players at the same time, the crash does not happen. But if you are playing with just player 2, as soon as the level ends, OpenBOR returns an error that cannot find the player.

This is the initial setup - the error happens where the red line is (between the first and second levels) bug

Debugging

Reproduce

  1. edit your levels.txt and add a cutscene before the select screen
  2. play as the player 2 WITHOUT the player 1.
  3. once you beat the stage, the game crashes with the following error

Fatal: unable to spawn player from ' '

Expected behavior

I have to use skipselect to be able to use cutscenes before the select screen. And there is a way to bypass this bug, by including a fake scene and using skipselect: fixed

The fake.txt scene is just a black gif. but it solves the problem;

Screenshots

If applicable, add screenshots to help explain your problem.

Version

Please provide the SPECIFIC version the issue first appeared. This is very important, it is nearly impossible for us to pour through the entire code base to find singular issues without a starting point.

Additional context

Add any other context about the problem here.