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.

[Resolved]Game.exe has encountered a problem

Hello, wonderful guy who took the time to read my problem.

I've been making a battle system for about a month now, and I've fixed bugs all over, until this one came.

untitled-1.jpg


I've been trying lots of things to fix this, but the only luck i've got is I've seen what seems to be causing it:

Code:
  # * Show an animation at given coordinates, using a dummy sprite
  def show_rbs_anim_at(sx, sy, animation, zoom = 1.00, mirror = false)
    sprite = Sprite_AnimDummy.new(@viewport2)
    sprite.x = sx   #  IT IS THIS LINE
    sprite.y = sy + 16
    sprite.start_animation(animation, zoom, mirror)
    @sprite_anim_dummies << sprite
  end

Sprite_AnimDummy is a normal class that inherits from RGSS2's Sprite_Base. Now in my battlesystem, I have a flag, ORBS.enabled, which marks the presence of enemies. If I enter a map, at the start, where there is already an enemy, THE ERROR DOES NOT OCCUR AT ALL. But when I enter a map, at the start, without an enemy , then transfer to a map with an enemy, it occurs 100% of the time when I press my attack button (A - In keyboard).

I've been trying alot of things, and still no luck. I thought it was my PC, until I tried it in another one. If anyone can help me fix this, I'll thank you from the bottom of my heart. I'll be here to answer any questions about the script. Here's the script if you need it:
-Link Removed-
 
Resolved.

Thanks for those who read anyway.

BTW scripters:

RGSS2 , unlike RGSS1 , does not dispose sprites and other things inside a viewport when in that viewport is disposed. When you try to access these sprites, like change their x-position or something, without changing their viewports. well, It crashes without telling anything. That was the bug in here.
 
That's really interesting omegazion, you probably just saved my FFVI SDK.
I'll try to work with that tonight and see if it's the same problem I have.

Thanks a lot for the information ;)
-Dargor
 

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