Victory anim doesn't play

DatKofGuy

Active member
Im having a weird issue.
So I added the victory anim to my character, however whenever I play a level that has a boss, after the boss is defeated, the the anim doesn't play, and the level doesn't end. and then even more weird is I can't quit the level to go back to the menu. I have to hard close openbor.

I searched the forum and one person had a similar issue, but it was never resolved.

Anyone know what it could be? The log doesn't give any errors.
 
To be honest, victory animation is kinda bugged. It wasn't added by the main dev team, so it has a weird behaviour.
What I do is: I use an entity which forces all the players to go into a fake fictory animation (at 4:19)
 
Steven1985 reported similar issue before and he solved it by changing OpenBoR version. Though in his case, the buggy version is OpenBoR v4.0 Build 7530 (commit hash: 9695908), Compile Date: Jan 1 2024. I don't know which version he's using to solve it but I use OpenBoR v3.0 Build 6392, Compile Date: Mar 29 2021.
 
@DatKofGuy, @Bloodbane,

@O Ilusionista is correct, you are really much better off doing this with a simple script. The Victory animation works in a really silly way - it's actually a Pain, and the player is attacked with a Victory type damage on level complete. As I explained in the thread about Midnight Bliss, that is a nonsensical and unstable method because there are dozens of possible game conditions that could override it.

It's also one of the many reasons that developer is no longer part of the team.

I left the feature in for backward compatibility, but don't advise its use.

DC
 
Steven1985 reported similar issue before and he solved it by changing OpenBoR version. Though in his case, the buggy version is OpenBoR v4.0 Build 7530 (commit hash: 9695908), Compile Date: Jan 1 2024. I don't know which version he's using to solve it but I use OpenBoR v3.0 Build 6392, Compile Date: Mar 29 2021.
I am using the latest version, I moved from using v3.0 to v4.0 once I started back up with the project.

@DatKofGuy, @Bloodbane,

@O Ilusionista is correct, you are really much better off doing this with a simple script. The Victory animation works in a really silly way - it's actually a Pain, and the player is attacked with a Victory type damage on level complete. As I explained in the thread about Midnight Bliss, that is a nonsensical and unstable method because there are dozens of possible game conditions that could override it.

It's also one of the many reasons that developer is no longer part of the team.

I left the feature in for backward compatibility, but don't advise its use.

DC
Funny enough I saw exactly that when I was looking through the code of another mod, the author had a empty boss spawn that had high aggression to go after the player, and then it would attack the player to trigger the win pose pain anim, and then kill itself since it had a short lifespan.
I was planning to do the same before looking up that there was a victory anim, but as mentioned doesn't work.

So I will have to put it on the back burner for now, since with my current situation, I wont have the time to properly learn scripting completely.
 
The issue with victory for me was that sometimes it triggered mid attack , mid air, or mid bind , and it looked wrong (cause win anim had no bind) so... how did you guys solved all that ? I had to disable everything, bring character down applying down velocity but it still was not perfect cause some air attacks had player too high and victory triggered midair.
 
Well, you could disable player control and wait couple seconds before forcing "victory" animation to active players.

It's exactly what I do :)

+1, and wait for idle state, so you know you won't be interfering with another animation.
  1. Boss defeated?
  2. No enemies remaining?
  3. Disable player controls.
  4. Wait for idle state / animation - As a sanity clause to prevent soft locks, I have a time limit here. If player hasn't reached idle after a given time frame, I'll assume they got stuck somehow and just let the level end.
  5. Play victory animation.

DC
 
Back
Top Bottom