HELP! Game keeps going blank when changing scenes

1 sentence description of the problem:
When you hatch an egg in Tapping Torcher, it makes the page go blank
Steps to reproduce the problem every time:

  1. Get to 500 taps in my game
  2. Hatch an egg in the shop (Aquatic Crate)

I expected this to happen:
Function Properly
But instead this happened:
The screen went blank/white
Screenshots/video:
https://files.catbox.moe/16vkqo.MOV


Your username: Pumpki

Device type, iOS version & Hopscotch version:
image

@Gynn

7 Likes

Could you share a link? There might be a little thing in your code that’s causing the project to crash. Maybe an infinite recursion loop?

5 Likes

@Crosbyman64

6 Likes

This works for me on my iPad. Of course, I’m using a beta version, so maybe the problem will be fixed in version 3.56.0

You could try changing the local variables in the save input block to object variables and see if that resolves the issue…

3 Likes

Not working :frowning:

2 Likes

Ok, then you might have to wait until the next update, which may take over a month to be released to the public.

4 Likes

It happens later than usual after removing Locals.

3 Likes

Fixed after reinstalling :))

2 Likes

Not fixed :((

The issue restarted :frowning:

2 Likes

@Gynn

The Aquatic Egg is disabled due to this bug. If you lost taps due to this, tag me in the YCTAHH.

4 Likes

@t1_hopscotch can you help?

1 Like

We usually just investigate bugs whenever we can get around to it, depending on severity, and if we can reproduce it first. I can’t guarantee when we will take a look though.

The project can go to a white screen for several reasons — sometimes depending on memory usage (or if there is a Javascript error in the webplayer)

If you can get another version of the project with the extra code removed — and has just the code that leads up to the point of the project going blank — that would help with investigating faster. (This is what I would try and do too if I was investigating myself.) At the moment otherwise, I will have to wait until we can get more time to fix ongoing bugs, to investigate.

4 Likes

@t1_hopscotch

4 Likes

Thanks for posting it, it is a lot more reduced. I wasn’t able to get it to turn white for me on my devices at the moment.

I can’t look at it in depth right now, but can come back to it another time if we do bug fixes. Though I can see it’s interrupting your project, and I can understand it’s pretty frustrating.

The next step to try would be:

  • Keep removing blocks of code until it stops turning blank.
    • maybe try removing all the Save Input blocks from Purchase and see if it stops turning blank. Then we will know that it might be something to do with the Save Input blocks.
5 Likes

Okay :+1:
I’ve disabled the crate for now :slight_smile:
I’ll try what you suggested

Thanks!

3 Likes

Oh! The bug isn’t created by the crate, when I go to “SH - Shop” it does it after 5 seconds of doing nothing.

3 Likes

Oh that’s helpful to know — I wonder if it might be to do with changing scenes. We did a player update for the TestFlight beta testing, but all recent projects will have the new player.

In your first scene, can you change the “When game starts > Change Scene to SH - Shop” to “When device is tapped > Change Scene to SH Shop”?

Then tap the device and we can see if it always turns blank, a few seconds after changing scenes.

4 Likes

It just went white straight away?
@t1_hopscotch

3 Likes

This happened to me when I had advanced mode. The scene block and scenes are super buggy. When I used them certain this became unable to be tapped. I just learned not to use scenes.

3 Likes

Projects are white by default when there’s no code to change the color of anything. See if the tap rule works. If not, then your project did crash.

3 Likes