Was runProgram and programList removed?

@MakeCode I was adding some more games to my custom version of the arcade menu and noticed that there are now errors flying around the programList and runProgram:

I was pretty proud of myself originally that I was able to build this menu and staying within the blocks restrictions. But as of the latest version I’m now getting these errors. I haven’t had a chance yet to just try and see if it works but previously I was able to keep these in here and it would actually return a mock program list.

Please tell me it’s still available, this was super powerful and allowed me to have a game menu on an arcade box (and was an awesome dog-food style game launching other games).

Thanks!

1 Like

huh, i’m actually not familiar with these particular APIs but if they were removed, i’m guessing it was unintentional. for now you can work around this by using an older version of the editor (e.g. arcade.makecode.com/v2) but i’ll take a look to see if i can figure out what’s going on.

also, could you share a link to your project?

ah, i see these functions are defined within the raspberry pi package. if you download your program to raspberry pi, then the editor will set the hardware variant and the errors will go away

2 Likes

Actually I figured it out nearly instantly after sending this initial post. It actually validates if you put the fabled ?nolocalhost=1&compile=rawELF&hw=rpi#editor on the url.

When that’s in place the output of the control.programList is actually:

flappy_duck,chase_the_pizza,happy_flower,game_0,game_1,game_2,game_3,game_4,game_5,game_6,game_7,game_8,game_9

Which is really kind of awesome, I half expected originally that I’d have to code in the blind. This list is the available programs in the /sd/prj folder on the raspberry pi (which comes by default for the rpi-zero setup, but can be made manually if you use raspberry pi 3).

If you are curious, here’s the “game” menu I’ve built: https://arcade.makecode.com/S08322-82287-17628-98513

And the “whole arcade” machine is in github: https://github.com/Kikketer/CreationStationArcade (this is the surrounding python and other goodies that I use to handle the arcade machine itself).

Glad this capability didn’t vanish, please keep it forever :slight_smile: . I love having this be the menu system, in fact “runProgram” could really be anything from what I can tell… this could be a menu for an emulator system!

Thanks for replying!

2 Likes

How we [1] are feeling reading this


  1. Yes, WE ↩︎

1 Like