TinyCircuits Forum

TinyCircuits Products => Thumby => Topic started by: PanduhBeer on March 24, 2023, 01:13:07 PM

Title: Game Fast Executes and Emulates but won't play normally
Post by: PanduhBeer on March 24, 2023, 01:13:07 PM
I'm having a bit of trouble with an asteroids clone I'm working on.  My game works perfectly on the emulator, and it works perfectly when saved to the Thumby and Fast Executed, but if is chosen from the Thumby menu on the device like starting any other game, the Thumby immediatley restarts.  I just can't figure it out.  I've tried reformatting the Thumby, updating, unpackaging a brand new Thumby... everything I can think of.  Memory allocation looks okay after loading everything on game start, and I cant get it to throw any errors while its connected to my PC.  Any ideas?  Anyone else dealt with the same problem?
Title: Re: Game Fast Executes and Emulates but won't play normally
Post by: Jason on March 24, 2023, 01:32:21 PM
I'm having a bit of trouble with an asteroids clone I'm working on.  My game works perfectly on the emulator, and it works perfectly when saved to the Thumby and Fast Executed, but if is chosen from the Thumby menu on the device like starting any other game, the Thumby immediatley restarts.  I just can't figure it out.  I've tried reformatting the Thumby, updating, unpackaging a brand new Thumby... everything I can think of.  Memory allocation looks okay after loading everything on game start, and I cant get it to throw any errors while its connected to my PC.  Any ideas?  Anyone else dealt with the same problem?

Could you send or post the code? I can take a look and provide feedback.
Title: Re: Game Fast Executes and Emulates but won't play normally
Post by: Jason on March 27, 2023, 10:45:21 AM
Your game seems to work fine for me. I can save it to Thumby and run it from the main menu.

This probably means your game's main file is not in a folder with the same name. In the editor use File -> Set Path and make sure the path to your game is exactly: /Games/AsteroidsClone/AsteroidsClone.py
Title: Re: Game Fast Executes and Emulates but won't play normally
Post by: PanduhBeer on March 27, 2023, 02:00:32 PM
Thank you for your suggestion!  When I tried it, and failed, it occurred to me to try installing another game from the arcade.  That also failed to load on the hardware.  So I figured it might be some issue with the USB cable itself or the USB port.  Nope.  Then it dawned on me to hard reset the code editor and tried again.  No problem at all.  Everything is installing fine now.  I'm guessing there was some weird kind of corruption happening while transferring files to the hardware.  My only confusion now is in questioning why it wasn't causing any problems during fast execution of a game.  Anyways, thanks again for offering some advice!  I'd urge anyone else encountering such a problem to hard reset the editor after backing up their code and reinstalling the game if they can't figure out another solution.   ;D
Title: Re: Game Fast Executes and Emulates but won't play normally
Post by: Geditaidown on June 16, 2023, 12:53:26 AM
Thank you for your suggestion!  When I tried it, and failed, it occurred to me to try installing another game from the arcade.  That also failed to load on the hardware.  So I figured it might be some issue with the USB cable itself or the USB port.  Nope.  Then it dawned on me to hard reset the  tiny fishing (https://tiny-fishing.com) code editor and tried again.  No problem at all.  Everything is installing fine now.  I'm guessing there was some weird kind of corruption happening while transferring files to the hardware.  My only confusion now is in questioning why it wasn't causing any problems during fast execution of a game.  Anyways, thanks again for offering some advice!  I'd urge anyone else encountering such a problem to hard reset the editor after backing up their code and reinstalling the game if they can't figure out another solution.;D
Yes, I reset the editor after backing up their code and reinstalling the game and it works fine.