I'm stumped...
I decided to recreate an old event-based slot machine I worked on a couple of years ago as a one-week project. The challenge is to recreate the functionally without the aid of scripts; scripts are low priority and can only be used for aesthetic or user-friendly purposes. So I finish designing and implementing the foundation of the system, which seems to work as intended until you 'spin the reels' about 20 or so times. At this point the game crashes:

I did find out where it's happening, but I don't know what exactly is causing it...


I've included a download to the non-encrypted file since complete screenshots of all of the events involved would be unreasonable. The project has two scripts installed, one of which is a backtrace that I added after I found this issue (seen working in console screenshot above). The other is a tiny bit of code I wrote to display gold as dollars.
I don't need to mention this to any programmers who may be reading, but I'll bring it up anyway.
I'm guessing Game_Interpreter:119 is probably referring to command_119
#--------------------------------------------------------------------------
# * Label
#--------------------------------------------------------------------------
def command_118
end
#--------------------------------------------------------------------------
# * Jump to Label
#--------------------------------------------------------------------------
def command_119
label_name = @params[0]
@list.size.times do |i|
if @list.code == 118 && @list.parameters[0] == label_name
@index = i
return
end
end
end
Or line 119
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
@fiber.resume if @fiber
end
I'm not sure which it is honestly...
To recreate this crash, simply play for about 20 to 22 rounds. It should crash as soon as you bid any amount of credits.
I'd really appropriate any feedback as to what the problem might be. Thanks for reading.
How To Play
Download
View attachment ESlots_Remaster.exe
I decided to recreate an old event-based slot machine I worked on a couple of years ago as a one-week project. The challenge is to recreate the functionally without the aid of scripts; scripts are low priority and can only be used for aesthetic or user-friendly purposes. So I finish designing and implementing the foundation of the system, which seems to work as intended until you 'spin the reels' about 20 or so times. At this point the game crashes:

I did find out where it's happening, but I don't know what exactly is causing it...


I've included a download to the non-encrypted file since complete screenshots of all of the events involved would be unreasonable. The project has two scripts installed, one of which is a backtrace that I added after I found this issue (seen working in console screenshot above). The other is a tiny bit of code I wrote to display gold as dollars.
I don't need to mention this to any programmers who may be reading, but I'll bring it up anyway.
I'm guessing Game_Interpreter:119 is probably referring to command_119
#--------------------------------------------------------------------------
# * Label
#--------------------------------------------------------------------------
def command_118
end
#--------------------------------------------------------------------------
# * Jump to Label
#--------------------------------------------------------------------------
def command_119
label_name = @params[0]
@list.size.times do |i|
if @list.code == 118 && @list.parameters[0] == label_name
@index = i
return
end
end
end
Or line 119
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
@fiber.resume if @fiber
end
I'm not sure which it is honestly...
To recreate this crash, simply play for about 20 to 22 rounds. It should crash as soon as you bid any amount of credits.
I'd really appropriate any feedback as to what the problem might be. Thanks for reading.
How To Play
Once you begin a new game. Grab the money out of the chest just below the player.

From there, activate the switch just above the player. You'll get a display like so:

You need to play about 20 rounds of the game, so go ahead and insert all or most of the money into the machine.
Credits will increase and money will decrease each time you select an option.

Press Esc when you're done adding money to get to the main menu.

From there, select 'Play Slots' which will take you to bidding menu.

Select any of the betting options and the game will begin.

After you've made your bet and won or lost credits you will return the betting menu.

Continue to this about 20 times to get the crash. Press Esc to return the main menu.
From the main menu, press Esc again to exit the game. Selecting 'Cashout' from the
main menu will convert credits back into money and return it to the player.



From there, activate the switch just above the player. You'll get a display like so:

You need to play about 20 rounds of the game, so go ahead and insert all or most of the money into the machine.
Credits will increase and money will decrease each time you select an option.

Press Esc when you're done adding money to get to the main menu.

From there, select 'Play Slots' which will take you to bidding menu.

Select any of the betting options and the game will begin.

After you've made your bet and won or lost credits you will return the betting menu.

Continue to this about 20 times to get the crash. Press Esc to return the main menu.
From the main menu, press Esc again to exit the game. Selecting 'Cashout' from the
main menu will convert credits back into money and return it to the player.


Download
View attachment ESlots_Remaster.exe


