Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post Reply
vanderblade
Posts: 93
Joined: Mon Jan 07, 2019 5:20 am

Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by vanderblade » Fri Feb 07, 2020 6:11 pm

This is very specific to my current project, but it might help out others in the future.

I'm using the great Dale Coop's 2-player platformer module. I am in the finishing stages of game dev -- it's really great, y'all -- but I just encountered a bug after play-testing the entire game all morning.

My Win screen reset script no longer works. Neither Simplereset.asm or GameOverReset.asm scripts I'm using are working. It doesn't matter what button I assign it to.

What's weird is that my Game Over screen resets just fine.

Dale is essentially my co-developer -- he gets top credits in the game -- but I'll leave this open to anybody.
User avatar
dale_coop
Posts: 4715
Joined: Fri Feb 16, 2018 7:05 am
Location: France

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by dale_coop » Sat Feb 08, 2020 10:00 am

Hmmm... strange.
Could you share a screenshot of your "Input Editor" window (the assignments to buttons)?
-----
Sorry about my poor english
All I need: A Damn Fine Cup of Coffee
My games: PRESS START GAME / UNDERGROUND ADVENTURE / UNDERGROUND ADVENTURE (Arcade version - Byte-Off-2019)
vanderblade
Posts: 93
Joined: Mon Jan 07, 2019 5:20 am

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by vanderblade » Sun Feb 09, 2020 2:56 am

Is this what you mean?
Screenshot (97).png
Screenshot (97).png (223.59 KiB) Viewed 212 times
User avatar
jsherman
Posts: 314
Joined: Sun Apr 22, 2018 11:25 am
Location: Cleveland OH

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by jsherman » Sun Feb 09, 2020 2:08 pm

Silly questions out of the way...

Do your Simplereset.asm or GameOverReset.asm scripts actually have content or are they blank?
Are you truly in the final win game special screen, or are you in a regular screen pretending to be the win game?

If the above checks out, are you doing something to the gamestates variables to make the game not think its in its final screen? Like did you modify the Win script?
"Turtle Rescue" updates can be found here: viewtopic.php?f=13&t=112
For more in-depth updates, please follow GossipTurtle on Twitter! https://twitter.com/TurtleRescueNES
vanderblade
Posts: 93
Joined: Mon Jan 07, 2019 5:20 am

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by vanderblade » Sun Feb 09, 2020 5:21 pm

Forget about the GameOverReset.asm, since that only works on the special game over screen. Let's concentrate on SimpleReset. Yes, I'm on the Win screen. Below is the script. I suspect that something is messing with a variable, but I'll have to study recent changes I've made.

Code: Select all

	CPX player1_object
	BNE +
	JMP RESET
+
User avatar
jsherman
Posts: 314
Joined: Sun Apr 22, 2018 11:25 am
Location: Cleveland OH

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by jsherman » Sun Feb 09, 2020 6:52 pm

What if you got rid of everything except the JMP Reset?

The code is checking if you are player 1, and you may have destroyed that object as part of your win game script.
"Turtle Rescue" updates can be found here: viewtopic.php?f=13&t=112
For more in-depth updates, please follow GossipTurtle on Twitter! https://twitter.com/TurtleRescueNES
vanderblade
Posts: 93
Joined: Mon Jan 07, 2019 5:20 am

Re: Dale Coop 2-Player Platformer Module Win Screen Reset Issue

Post by vanderblade » Sun Feb 09, 2020 7:02 pm

That seems to have worked. What does the BNE + mean? Am I potentially messing anything up by doing that?
Post Reply