How to install PICO-8 on GameShell

pico-8
#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

2 Likes
#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:

2 Likes
#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… =(

1 Like
#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!

#68

Did you put the raspberry pi zip file in the games/PICO-8 folder?

#69

The directory exists. It’s just not normally visible since its name starts with a period. SSH into the GameShell and enter the following:

cd ~/.lexaloffle/pico-8/carts
ls
#72

20190512_122003_HDR

#73

You are trying to install the newest version of PICO8.
Try to update launcher and check If you have your versions of PICO8 inside this file https://github.com/clockworkpi/launcher/blob/fb156214f96811d8afb9be01cd6944ef5ef1612d/Menu/GameShell/50_PICO-8/compkginfo.json or just replace that file with versions from GitHub

#77

Open compkginfo.json in any text editor and replace content with that:

{
"GameDir":"/home/cpi/games/PICO-8/",
"InstallDir":"pico-8",
"NotFoundMsg":["Please purchase the PICO-8 \n|None|varela16",
"and copy it to the \"~/games/PICO-8\"|None|varela16"],
"MD5":{"pico-8_0.1.11g_raspi.zip":"a3f2995cf117499f880bd964d6a0e1f2","pico-8_0.1.11g_amd64.zip":"6726141c784afd4a41be6b7414c1b932","pico-8_0.1.12_raspi.zip":"08eda95570e63089a2b9f5531503431e","pico-8_0.1.12c_raspi.zip":"1a62b0d7d4e4be65f89f23ec9757cb66","pico-8.zip":"whatever it takes"},
"Post-Up":"bash Post-Up.sh" 
}

The problem could be that your file doesn’t contain line with pico-8_0.1.12c_raspi.zip.

#78

Yes. I kinda figured it out by myself but thank you so much for replying.

#79

Thank you for the walk through! I got PICO8 up and running, start and select are working, but ABXY are not. Rebooting the Gameshell doesn’t seem to fix anything. Any thoughts?

#80

Hi,

Since I am totally new to this could you please explain this further in a detailed manner.
Maybe a video showing each step? I am unable to understand how to go about installing this.
I know how to SSH into the gameshell.
From there I copied and pasted

sudo pip install pyxhook

I received this message:

Requirement already satisfied: pyxhook in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: python-xlib in /usr/lib/python2.7/dist-packages (from pyxhook)

How do I proceed from here?

Please help me as I find this code really useful when playing Pico8 games.

Thank you.