# Love2d on gameshell

**URL:** <https://forum.clockworkpi.com/t/love2d-on-gameshell/92>\
**Category:** Developers\
**Tags:** pico-8, love2d, fantasy-console\
**Created:** [January 2, 2018, 9:13pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92 "2018-01-02T21:13:26Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 26, 2018, 8:54pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/21 "2018-07-26T20:54:48Z")

</div>

So. I connected my computer to the gameshell with putty ssh.  
Login cpi  
Pass cpi

I went to the first directory that you give and create a test.sh with “sudo nano test.sh” (basic for the moment)  
Inside the test.sh I just type “love” with no other informations.  
I launch a game (cavestory) and go back to the menu to reload the start menu…  
The screen was freeze to the loading icone…  
The thing saved me was the active wifi.  
I undo all the things i made and try again to do exactily what you said…

I copy the poweroff.png to rename it foo.png (i used the same name than in your exemple ^^) and create a file Foo.sh in the good directory.  
Same action to reload the start screen… And same problem.  
But for now the wifi doesn t work.  
Now I m downloading the image of the os to burn it on a SD card. I ll try to use a SD card with more space…

Some on can explain to me where is my mistake ? I really don t anderstand.

Thanks for your help

---

<div class="post-metadata">

**Author:** ![dddaaannn](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dddaaannn](https://forum.clockworkpi.com/u/dddaaannn)\
**Post date:** [July 26, 2018, 11:49pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/22 "2018-07-26T23:49:41Z")

</div>

Don’t use sudo to create the files. sudo creates the file with administrative user permissions and no global user permissions. The launcher runs as the cpi user and is probably crashing with a permissions error trying to read the file. If you just use “nano test.sh” to create the file, it’ll be owned by the cpi user and readable by default.

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 27, 2018, 2:05pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/23 "2018-07-27T14:05:44Z")

</div>

Oups ! Thanks for the advice

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 27, 2018, 4:42pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/24 "2018-07-27T16:42:49Z")

</div>

that’s work!!!

really big thanks to you @dddaaannn for your adivice, you make my day!  
now i can create all i want with Love!!! (and love ^^)

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 27, 2018, 4:46pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/25 "2018-07-27T16:46:40Z")

</div>

For people how are curious ^^  
 ![IMG_20180727_184336](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex029/uploads/clockworkpi/original/1X/3feee87aeecf932fc4c7bd0ae0f1519a4e404a28.jpg)

---

<div class="post-metadata">

**Author:** ![mccarthy](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mccarthy](https://forum.clockworkpi.com/u/mccarthy)\
**Post date:** [July 27, 2018, 5:34pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/26 "2018-07-27T17:34:33Z")

</div>

Awesome! Still have yet to receive my GS (damn UK delivery!) but am very excited to get my hands on it!

Let me know if you’ve got any questions about building games with Löve, I’ve been using it since last November so have a decent chunk of experience now.

---

<div class="post-metadata">

**Author:** ![Metalcory](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/metalcory/32/409_2.png) [@Metalcory](https://forum.clockworkpi.com/u/Metalcory)\
**Post date:** [July 27, 2018, 5:45pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/27 "2018-07-27T17:45:33Z")

</div>

OOOOOH! Congrats \<3 It´s possible to play Celeste yet? D:

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 27, 2018, 5:46pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/28 "2018-07-27T17:46:30Z")

</div>

i think we ll have a little probleme with the key binding and the resolution for celeste

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 28, 2018, 7:33am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/29 "2018-07-28T07:33:49Z")

</div>

ok, so! next step is to program my first test…

i create a directory call /love/test in the games directory  
i put a main.lua file inside  
i put this code inside the file  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/1X/c4bd500827f3aa314835fe05ae55cad33fbfeb08.png)  
i go to the directory of the launcher  
_cd /home/cpi/apps/launcher/Menu/GameShell_  
i edit the Love.sh  
_nano Love.sh_  
i add the way to my program directory inside the file  
_love /home/cpi/games/love/test/_  
i reload the startmenu and launch my love icon  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/1X/bd3f7267bfa9f3434ff57001a46a64a8ba0780d9.png)  
et voila!!!

really big thanks to every people how helped me 😄

---

<div class="post-metadata">

**Author:** ![mccarthy](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mccarthy](https://forum.clockworkpi.com/u/mccarthy)\
**Post date:** [July 28, 2018, 8:25am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/30 "2018-07-28T08:25:54Z")

</div>

Awesome!

Congrats!

I mentioned it on the game development thread but not sure if I posted here. Be sure to check out these tutorials:

[https://simplegametutorials.github.io/](https://simplegametutorials.github.io/)

They’ve been updated to support Love v11, not much has changed aside from colour values range from 0-1 in v11 and 0-255 in v0.10.

The GameShell looks to be running v0.10 from the No Game screen you posted above (Super Toast)

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 28, 2018, 9:21am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/31 "2018-07-28T09:21:43Z")

</div>

i just forgot to say:  
thanks for you proposition @mccarthy i got a little know about LUA and Love2D but some help ll be welcome ^^

---

<div class="post-metadata">

**Author:** ![damantisshrimp](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/damantisshrimp/32/626_2.png) [@damantisshrimp](https://forum.clockworkpi.com/u/damantisshrimp)\
**Post date:** [July 28, 2018, 8:50pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/32 "2018-07-28T20:50:45Z")

</div>

Speaking of Pico-8 and fantasy consoles, I opened an issue on the TIC-80 GitHub to see if we can run it on the GameShell:

> <https://github.com/nesbox/TIC-80/issues/643>

---

<div class="post-metadata">

**Author:** ![dddaaannn](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dddaaannn](https://forum.clockworkpi.com/u/dddaaannn)\
**Post date:** [July 29, 2018, 1:16am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/33 "2018-07-29T01:16:35Z")

</div>

Repeating this from the Celeste thread to make sure it’s findable:

> **[clockworkpi/GameShellDocs](https://github.com/clockworkpi/GameShellDocs/wiki/Running-PICO-8-on-the-GameShell)**
>
> GameShell Documents. Contribute to clockworkpi/GameShellDocs development by creating an account on GitHub.

Please help me test these instructions and give feedback!

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [July 30, 2018, 6:00pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/34 "2018-07-30T18:00:38Z")

</div>

this is what i m going to do with Love2D!!

a small Zelda3 like ^^

![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/1X/c169dd2983c3e88e2cc0b15c1724601d45177298.png)

i hope i can finish this project

---

<div class="post-metadata">

**Author:** ![vonzippenstein](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/vonzippenstein/32/437_2.png) [@vonzippenstein](https://forum.clockworkpi.com/u/vonzippenstein)\
**Post date:** [August 1, 2018, 1:49am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/35 "2018-08-01T01:49:07Z")

</div>

Got an action.config work around that allows you an interface to load Love games as you would a rom from the Retro Games folder. First get an ssh ftp program like WinSCP or Filezilla. Connect to the IP with the credentials in Tinycloud. Navigate to “/home/cpi/apps/launcher/Menu/GameShell” and create a folder called “LOVE”. You might want to put some numbers and an underscore before it for formatting. The lower numbers appear first. Mine was 40\_LOVE. Inside that newly created LOVE folder create a file called “action.config” and inside it put the following.

- ROM=/home/cpi/games/LOVE
- ROM\_SO=/usr/bin/love
- EXT=love
- LAUNCHER=
- TITLE=LOVE Games
- SO\_URL=http://vonzippenstein.com/gameshell/love.zip

Here’s an explanation of what it does and what I did. So an action.config file will download an emulation core from the internet then install it. Then it will list roms for you to select. When you’ve selected one it will launch program+core+rom. The love launcher is in “/usr/bin/”. I took the love file and put it in a zip then put that zip online. You can do the same thing and host it anywhere you like or use mine. So the action.config will download that zip and put love back in the folder. Now Love is getting treated like a core. To run just Love we blank out the launcher. In the end it will come out as “/usr/bin/love selectedgame.love”. ROM will be your designated love games folder. Make sure you save that action.config

After that let’s give that folder a pretty icon. Simple as dropping in a LOVE.png.  
Navigate to “/home/cpi/apps/launcher/skin/default/Menu/GameShell” and upload the following.  
 ![LOVE](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/1X/8e27c3267c533e9e6ddb6942ce990e85faa9b9bb.png) Rename this to LOVE.png

Next we create our love games folder. Navigate to “/home/cpi/games”. Create a folder called “LOVE” and put your games in here. That’s it. If you want to test it out I have two love files you can put on there.

1. [version.love](http://vonzippenstein.com/gameshell/version.love)  
A simple program to show which version of LOVE you’re running, should be 10.2, and will display the keycode of any key you press on the GameShell.
2. [vztetris.love](http://vonzippenstein.com/gameshell/vztetris.love)  
A Tetris game I made in love a while back that and updated for the GameShell. Added volume controls.

Throw those and whatever else you’re working on into your “/home/cpi/games/LOVE” and you can select them right from the launcher without having to create an sh file for every love game. Enjoy.

---

<div class="post-metadata">

**Author:** ![Godzil](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/godzil/32/60_2.png) [@Godzil](https://forum.clockworkpi.com/u/Godzil)\
**Post date:** [August 1, 2018, 9:38am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/36 "2018-08-01T09:38:04Z")

</div>

I’m renaming that topic as it is more about love2d than PICO8 and we already have quite a lot of PICO-8 topics

---

<div class="post-metadata">

**Author:** ![Drjekill77](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/drjekill77/32/41_2.png) [@Drjekill77](https://forum.clockworkpi.com/u/Drjekill77)\
**Post date:** [August 1, 2018, 11:57am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/37 "2018-08-01T11:57:12Z")

</div>

@Godzil no problems i andersand  
@vonzippenstein thanks for the information. I ll try it. But as i have seen, it just work with the .love files. Not with the project in construction…

---

<div class="post-metadata">

**Author:** ![vonzippenstein](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/vonzippenstein/32/437_2.png) [@vonzippenstein](https://forum.clockworkpi.com/u/vonzippenstein)\
**Post date:** [August 1, 2018, 11:03pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/38 "2018-08-01T23:03:07Z")

</div>

Yeah. My method is probably best for browsing downloaded love games. Not for automated testing. Though I’ve never used any of the build or run functions of Sublime Text. Always tested as .love files. Selected the project files, send to zip, change the file extension, and hit enter thrice to run on my main machine with JoyToKey mapped to mimic whatever device I plan on putting it on. Or using the method above just drag it into the LOVE folder and use the action.config to select and run it.

Update: Tried it with creating creating the .sh file on the launcher that runs the project folder and it is much faster. Can edit and save from Sublime straight onto the device and test it with one button press. Yeah, it is better for construction. Now I just need a new game idea.

---

<div class="post-metadata">

**Author:** ![bbsamurai](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bbsamurai/32/808_2.png) [@bbsamurai](https://forum.clockworkpi.com/u/bbsamurai)\
**Post date:** [August 5, 2018, 4:57pm UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/39 "2018-08-05T16:57:09Z")

</div>

Is there any way of updating LÖVE to version 11.1?

---

<div class="post-metadata">

**Author:** ![bbsamurai](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bbsamurai/32/808_2.png) [@bbsamurai](https://forum.clockworkpi.com/u/bbsamurai)\
**Post date:** [August 6, 2018, 3:08am UTC](https://forum.clockworkpi.com/t/love2d-on-gameshell/92/40 "2018-08-06T03:08:28Z")

</div>

I was able to update Love2d to version 11.1 (Mysterious Mysteries). Here are the steps I took.

**Check version**

First make sure that you are not running the latest version (11.1) already. Let’s check what version of Love2d is currently installed.

`love --version`

**Downloading Love2d**

Now that we’ve verified that we are running an older version, let’s download the latest version. As of now, the official debs for Love2d for armhf are not installing correctly. When I tried to install the packages, it failed due to Clockwork OS having older versions of libc6 and libsdl. Thanks to **bartbes** , from the Love2d discord, we can download the debs that work with the GameShell.

Lets download the **liblove** package first.

`wget https://launchpad.net/~bartbes/+archive/ubuntu/love-unstable/+build/14763963/+files/liblove0_11.1ppa1_armhf.deb`

Next lets download the love2d package.

`wget https://launchpad.net/~bartbes/+archive/ubuntu/love-unstable/+build/14763963/+files/love_11.1ppa1_armhf.deb`

**Installing Love2d**

Now that we have those two debs packages downloaded, it is time to install them.

Let’s install **liblove** first.

`sudo dpkg -i liblove0_11.1ppa1_armhf.deb`

Next, install any dependencies that we might be missing.

`sudo apt-get install -f`

Then install Love2d.

`sudo dpkg -i love_11.1ppa1_armhf.deb`

**Conclusion**

That’s it, Love2d 11.1 will install over the older version. Make sure to double check that you have the latest version.

**Resource link**

[https://launchpad.net/~bartbes/+archive/ubuntu/love-unstable/+build/14763963](https://launchpad.net/~bartbes/+archive/ubuntu/love-unstable/+build/14763963)

[Previous page](https://forum.clockworkpi.com/t/love2d-on-gameshell/92.md?page=1)

[Next page](https://forum.clockworkpi.com/t/love2d-on-gameshell/92.md?page=3)
