Proper Implementation of a load screen (SOLVED)

Hey Everyone!

I’ve been working on my game for a while and have finally decided to implement a load screen that shares tips for the game. Currently I have a system that works like this:

  • A component messages to the load handler script in the main collection
  • A gui is spawned with the load screen and a random tip
  • Current area is unloaded
  • New area is loaded in
  • A message is sent to the gui saying the loading is done, enabling a button
  • When the button is clicked, the new area is enabled and init-ed
  • GUI screen is taken away and the player spawns in and game continues

This approach seems to work fine. It takes a few seconds a most to work.

However, when I bundle the game (Release windows 32 and 64) and try to play it. The game seems to break and is just stuck at the loading screen infinitely. I’ve left the game for up to ten minutes and it is still stuck at the loading screen.

I’ve tried switching the game from “async_load” to “load” as well as delay the load call by a second by using a timer (thinking that maybe it was loading in before the gui spawned). Nothing that I am doing is seeming to work.

Any suggestions will be appreciated!

Okay, I figured out my problem, when I created a debug version, I got an error in the command prompt window saying “ERROR:RESOURCE: The max number of resources (1024) has been passed, tweak “resource.max_resources” in the config file”. So it turns out I just had to much going on in the collection file.

1 Like