Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Hanging script error

I've been having problems with testing my nearly completed project. From time to time, after clearing 3-4 maps of gameplay (and about 4-5 cutscene/menu maps), just before the next map is actually loaded I get a "script is hanging" error message and the game ends.

I'm completely lost as to where this comes from. So far I've been able to determine it has either something to do with the level starting event in the map where the error occurs, or it's script related.

However I've not messed with any of the original scripts. Just in case I have copied every single script from an original script database (from creating a new project in RMXP), and copied it into script database of my project.

What causes these hanging script errors, better yet, how can they be prevented?
I've searched the forum for a topic with the same error, but none of them actually draw a conclusion. And I posted it in the Non-script related RMXP support board, because I haven't done anything to the scripts.
 
They're caused when the script takes too long to do something... Like if you put for i in 0....139076495232903475 it'd probably hang >.> So, check to see if something is stuck in a loop somewhere and not updating anything.
 
and about 4-5 cutscene/menu maps
You might need to look over your cut scenes then. Sounds like you have a fat ass loop that's taking up a lot of game.exe processing power. Just check over any parallel processes and break any loops you have going.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top