r/gbstudio•
metans

Can't control my test game

Hi guys, *extremely* new to GB Studio.

​

Anyway, I already got an issue. I loaded up the program, created a new game using one of the pre-built example games, and went to test it - I can't get any response from the game when it says "Press Start" on the title screen. *Once* it seemed to register the key press (and then immediately stopped taking further presses), but any other time, there's no response. The little musical ditty in the background still loops, which I guess means the game hasn't locked up completely, I just can't seem to input controls.

​

I also tried starting with a completely blank game, and that *did* register inputs - I was able to move an arrow around the screen, but only for a few seconds and then it stopped.

​

In both cases, I did *nothing* to the game when the editor loaded, I went straight for the "Test" function.

​

I get this message when the game compiles, I don't know if this makes any difference:

​

> Local engine not found, using default engine

​

I can export a game as a ROM and it seems to play just fine in an emulator, but I don't really wanna have to do all that every time I want to test something out.

​

If it helps, I'm using the latest version for Windows 10. My computer isn't exactly top spec but I can't imagine that's going to affect much is it? Thanks in advance if anyone can point me in the right direction, I've tried googling but I can't seem to find anything about this specific problem.

Posted Mar 26, 2022, 11:55 AM UTC

28
Omno555•

Are you using the keyboard inputs or a controller?

1
metansOP•

Keyboard, I did try an xbox controller just in case but I don't think it supports cintrollers does it?

1
Omno555•

I've always used an Xbox controller with no issue. On keyboard were you pressing Enter? Or Space?

1
metansOP•

Enter I believe, whichever one was mapped to the start button.

The issue is weird because it took an input like, once, and then wouldn't let me move the cursor on the "New game/continue" box, or actually select either of those options.

I'll definitely have a look at the Xbox controller option then, I don't mind having to use that to test the stuff I make... I'm just perplexed as to why I can't seem to get any results using my keyboard.

1
godai78•

> Local engine not found, using default engine

This seems correct, I mean, I got it too and all stuff worked.

Have you checked the key mapping in the View > Setting section?

Do you have a script that detects the Start keystroke in the scene?

1
metansOP•

Yeah I checked the key mapping, should just be Enter as the start button.

As for the script... well technically I don't know, but its not a game I built, it's just the default in-built example game which seems to work perfectly fine when exported and played through an emulator.

So I'd presume everything is there to make it work OK during a play test?

1
godai78•

Sounds like it should. Maybe you can screenshot the script (right-hand side panel) of the scene where the start button is and show it?

1
metansOP•

If I remember to do it next time I try it out then I'll post something, though its literally just the basic pre-generated script that's already there when you load a template game. I've done nothing to it myself.

ETA: As far as I know (according to the documentation on the website) you should be able to load up a template game and then play it immediately, this is what they actually recommend.

I don't remember everything that's there but one part of the script is to "pause script until button input" - I tried disabling that, and it gets as far as bringing up the menu box (New Game/Continue) part way but it doesn't make it all the way onto the screen - like it's actually crashing rather than just not getting my keyboard inputs.

1