How to install PICO-8 on GameShell

pico-8

#48

This is a good list of Pico-8 games: https://www.playpico.com/

(Forum thread about the list: https://www.lexaloffle.com/bbs/?tid=27847)

The site doesn’t make it immediately obvious how to download each game for local play, but nearly every game has a link to the BBS thread where the author first posted the game. You can click “Cart” there to get the PNG file.


#49

Ah, that’s a great resource! Pity it doesn’t have an RSS feed…


#50

Installed and launched Pico-8, but the config files aren’t being created when I do so. I’m also not getting the launch chime when I launch Pico-8. Anyone know how to fix this, or link me to a config directory I could copy? Thanks :smiley:


#51

Thanks to everyone here. Another Pico-8 up and working on the GS.

Instructions were excellent. I ended up with broken links 'cause I was being fancy with the directories. I went back, slowed down, and it was easy to find where I went wrong. Thanks for the excellent work making this clear. Played for about 10min to check inputs, etc. Works great, no issues on my updated launcher system. I did have 1 game out of 10 crash on me, but I figured that was par.

PICO-8 is a sweet program I just discovered due to these forums, so I can’t wait to find the next cool thing to stumble onto with the GS. I’m hoping that Lexaloffle picks up GameShell where they left off with CHIP. Did someone say custom GS build? Yeah, it was me.

How about Voxatron? Wonder if GS could even run that thing…


#52

heya!

this wont work on v0.21

im stuck without icon to select on menu.

after a little jump on fillezilla seems folder architecture have changed. for the rest im not enougth smart to understand how to do.

cheers.


#53

Place the icon file in the same folder with the launcher script. If they have the same name, they’ll work together.


#54

found a way to correct it.

the good command for 0.21 are

echo >~/launcher/Menu/GameShell/PICO-8.sh SDL_VIDEODRIVER=x11 DISPLAY=:0 /home/cpi/pico-8/pico8_dyn -splore -draw_rect 32,0,256,240

i do it and i got my icon on menu.

custom icon are to put in

/home/cpi/launcher/skin/default/Menu/GameShell


#55

a small PS

cpi@clockworkpi:~/apps/Menu/50_PICO-8$ ls
pico8  pico8.dat  pico8_dyn  PICO-8.png  PICO-8.sh

in os v0.21 ,already installed wiringPI for pico-8

so like above ,create a folder with name of 50_PICO-8 <- here the 50_ is for the order in launcher ,but not necessarily
PICO-8.png is the icon
PICO-8.sh is where to start pico-8
They all have the same name as the directory, but different extensions

from v0.2x, launcher can read items from ~/apps/Menu, doing so will facilitate future data migration , launcher switching

cpi@clockworkpi:~/apps/Menu/50_PICO-8$ cat PICO-8.sh 
#!/bin/bash

SDL_VIDEODRIVER=x11 DISPLAY=:0 ./pico8_dyn -splore -draw_rect 32,0,256,240

chmod +x PICO-8.sh


#56

really working well meow :slight_smile:


#57

I found that installation is very easy with launcher 1.24.

Just place archive pico-8_0.1.11g_raspi.zip inside directory /home/cpi/games/PICO-8.

That’s all)


#58

I receive my GameShell and Pico 8 is awesome on it :slight_smile: but with my config (rebuild from 0.3 image sd card and last launcher 1.24) i have some instability: All is ok in first run after reboot but if i play some games in pico8 and quit pico8 to return to launcher when i try to restart Pico8 i have a black screen and i stuck: i can only reboot GameShell.

For someone that have the same trouble i find that if i force the size of windows in pico8 config file that correct the trouble for me. Here the change:

Edit the file ~/.lexaloffle/pico-8/config.txt (in ssh with nano)

change the line
window_size 0 0
to
window_size 320 240

Save and that it


#59

I still can’t get Pico 8 to run dropped the zip file in the directory. Edited the config file for the screen size. Nothing still a black screen and straight back to the ui.


#60

Did you keep the zip file exactly the same as when you downloaded it from the Lexaloffle/Humble Bundle site? Exact same filename, extension, and case?

And you’re copying it to /home/cpi/games/PICO-8 ?


关于game shell无法ota更新,无法下载引擎的网络问题
#61

Yeah I sure did nothing has changed


#62

Did you try to launch it twice? The first launch leads straight back to the UI, the second launch should actually run PICO-8.
Also, maybe your config is messed up. Simply delete config.txt. Launch PICO-8, wait a little. Then close it. It should create a fresh config file on shutdown. Check if config.txt exists now and isn’t empty. Does it work now?


#63

谢谢你的教程。
我购买并下载了 https://www.lexaloffle.com/pico-8.php 之后
将下载好的pico-8_0.1.11g_raspi.zip 放进我的gameshell\home\cpi\games\pico-8目录下
直接进入已经升级到 clockworkOS v0.3的pico-8中,自动运行就搞定了。
这个方法可以帮助不会使用linux的同学。

谢谢你的教程,:pray:


#64

I have the same problem – zip file right off Lexaloffle into that directory… doesn’t show up. Where should it appear? At the home menu? I rebooted, tried LauncherGo instead… reloaded UI… all nothing…

Also, maybe dumb question, but do you have to unzip it, or will the GameShell handle a zip like a directory?


#65

I’m also having issues where the app can’t load (always crashes, goes to main menu). I followed parts of this walkthrough, then realized the zip inside PICO-8 should work, and now I’m uncertain what elements could be causing this issue from either operations.

I’ve been going through the SSH command line and have edited some of the common files that are being brought up in this thread. Below are the contents.

Files within the ‘launcher/Menu/GameShell’ directory

~/launcher/Menu/GameShell/50_PICO-8/pico-8/ ls
config.txt log.txt sdl_controllers.txt

~/launcher/Menu/GameShell/50_PICO-8/pico-8/config.txt

// :: Video Settings
window_size = 320 240
screen_size = 320 240

~/launcher/Menu/GameShell/50_PICO-8/PICO-8.sh

#!/bin/bash
cd /home/cpi/games/PICO-8/pico-8
SDL_VIDEODRIVER=xll DISPLAY=:0 ./pico8_dyn =splore -draw-rect 32,0,256,240

Within the PICO-8 folder in ‘games’

~/games/PICO-8/ ls
15133.p8.png  pico-8  pico-8_0.1.11g_raspi.zip

~/games/PICO-8/pico-8/ ls
lexaloffle-pico8.png  license.txt  pico8  pico8.dat  pico8_dyn  pico8.txt

It would be helpful if the instructions could explain why we do certain operations rather than only what since it makes troubleshooting much harder. For instance, no tutorial mentions where exactly the pico-8 folder and contents are supposed to live.

EDIT: the user @hpcodecraft provided some information in another thread that resolved my issue:

I had the same issue and solved it like this:

The launcher script for pico-8 contains this line
cd /home/cpi/games/PICO-8/pico-8

From there it tries to launch the actual pico8 binary. So all I had to do was to unzip the pico-8 archive (again - I had it running before and have no idea why it vanished):

cd ~/games/PICO-8
unzip pico-8_0.1.11g_raspi.zip

This created the pico-8 folder the launcher wants and voila, it runs again.

Additional tip: If you link your carts folder to ~/games/PICO-8 , you can upload carts via WinSCP or the file browser. To do that, run this command: ln -s ~/.lexaloffle/pico-8/carts/ ~/games/PICO-8/carts

Hope that helps!


#66

Hi all, I don’t know what I’m doing wrong, but I followed this guide all the way till this step, and when I click on the PICO-8 icon, It still tells me that I have purchase the PICO-8 although I already did, it’s driving me crazy…

Someone pls help me… =(


#67

Hi.

I’ve been trying to upload some carts onto my GameShell, and this directory doesn’t seem to exist in my device:

I was wondering if you would have any idea of what other directory I would have to upload my carts to.

Thanks!