# Undertale on clockworkpi

**URL:** <https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425>\
**Category:** Games\
**Created:** [April 17, 2019, 12:41pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425 "2019-04-17T12:41:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Lazy-Ish\_Artist](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/the_lazy-ish_artist/32/2163_2.png) [@The\_Lazy-Ish\_Artist](https://forum.clockworkpi.com/u/The_Lazy-Ish_Artist)\
**Post date:** [April 17, 2019, 12:41pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/1 "2019-04-17T12:41:30Z")

</div>

So this question has been in my mind for a while, especially since the game seems perfect for a portable setting but from what I have read even though the linux bianary doesnt work using wine allows you to run x86 games. I have a GOG copy that I tested through my linux laptop and it appears to work fine but playing it through a .sh command that cd’s to the directory and runs the app using wine seems to crash in execution. Am I missing something? Any help would be awesome! Thomas

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 17, 2019, 9:06pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/2 "2019-04-17T21:06:42Z")

</div>

It seems like it’s not possible, though I’d like to see someone try.

Wine wouldn’t be an option on Gameshell since it would only be able to run ARM binaries (like from Windows RT). The reason Wine works on laptop/desktop Linux is because it’s already X86 based.

But Undertale is made using GameMaker and people have already hacked out the game resources and run it under Android using the launcher for other GameMaker based games. That project is still probably online somewhere although the original creator removed it because he was hassled way too much by people.

The link below suggests using the game resource hack to get it running on a Pi using one of the other GameMaker game launchers for Pi (same technique as the Android method). It sounds like someone almost succeeded but the RAM requirements were too high. Since the Gameshell has no additional RAM, I assume the same problem would occur and we’d get a white screen and no game. It might be possible with the addition of a swap file, as mentioned on some other threads in the forum here, used for compiling particularly large programs that required too much memory. It would probably run slowly with a swap file though, but it might work.

There’s also mention of GL in this thread, which could mean the currently buggy Lima drivers in Gameshell 0.3 might have an issue with it. (Or maybe not, would be interesting to try!)

> **[Undertale for RetroPie/Raspberry Pi](https://retropie.org.uk/forum/topic/2704/undertale-for-retropie-raspberry-pi)**
>
> I am a huge Undertale fan, and I was wondering if I could port it to RetroPie. There is an official Linux release now (https://twitter.com/UnderTale/status/754657063318454272) and maybe I could replace the YoYo Games runner that comes with it, with...

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 17, 2019, 9:17pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/3 "2019-04-17T21:17:01Z")

</div>

Also, I’d be curious to know if anyone can get the three games for Pi listed here running on a Gameshell:

> **[GameMaker Games on Raspberry Pi | YoYo Games](https://www.yoyogames.com/pi)**
>
> Making top 2D games with the GameMaker: Studio game engine is easy. No code or programming required

The method to get Undertale running depends on one of these games being able to run. I tried them a while back and they all just exited with an error. It’s been a while so I forget the actual error, but I think it had to do with bcm\_host which appeared to be a Raspberry Pi library that wasn’t available on Gameshell. It would be cool if someone could figure out how to support that on Gameshell as it would probably allow more Raspberry Pi games like these to run. 🙂

---

<div class="post-metadata">

**Author:** ![javelinface](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/javelinface/32/3079_2.png) [@javelinface](https://forum.clockworkpi.com/u/javelinface)\
**Post date:** [August 25, 2019, 2:32pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/4 "2019-08-25T14:32:36Z")

</div>

A bit of a necro post, but looks like @Rebusmind has made some progress on the gamemaker front!

[Porting games to the GameShell (from Game Maker: Studio)](https://forum.clockworkpi.com/t/porting-games-to-the-gameshell-from-game-maker-studio/4029/22)

Of course we’d probably need to have the uncompiled source files etc. I wonder if we contacted toby fox directly if he would be happy to help out the Gameshell community?

---

<div class="post-metadata">

**Author:** ![Kneesnap](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/kneesnap/32/4194_2.png) [@Kneesnap](https://forum.clockworkpi.com/u/Kneesnap)\
**Post date:** [May 9, 2020, 9:51pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/5 "2020-05-09T21:51:17Z")

</div>

Sorry for the necropost, but I managed to get Undertale and Deltarune working on the Raspberry Pi 3 and Raspberry Pi 0 at full-speed.

> **[Kneesnap/deltarune-circuit-sword](https://github.com/Kneesnap/deltarune-circuit-sword)**
>
> A port that allows running Deltarune Chapter 1 on the Circuit Sword raspberry-pi based console. - Kneesnap/deltarune-circuit-sword

I can’t provide a download for Undertale since it isn’t free, but it does work.

---

<div class="post-metadata">

**Author:** ![PokeEngineer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/pokeengineer/32/4736_2.png) [@PokeEngineer](https://forum.clockworkpi.com/u/PokeEngineer)\
**Post date:** [May 19, 2020, 2:21am UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/6 "2020-05-19T02:21:31Z")

</div>

Sorry for the necro-necro-necropost, but nice! That’s actually pretty handy!

By the way, with the whole Undertale situation…  
Can’t you just create a patch with xdelta or something for Undertale’s game.unx file, or for any of the files that are changed?

---

<div class="post-metadata">

**Author:** ![Kneesnap](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/kneesnap/32/4194_2.png) [@Kneesnap](https://forum.clockworkpi.com/u/Kneesnap)\
**Post date:** [May 24, 2020, 10:21pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/7 "2020-05-24T22:21:39Z")

</div>

The problem with that the game was completely rebuilt, with some major changes.  
For instance, I had to change the size of the texture pages, since making them smaller meant less memory would be wasted, and that was important to getting it to run on a Pi Zero. (If I recall, this may also have impacted the Pi3 as well). What I’m trying to say is that an xdelta patch would be very large, possibly as large as the actual game, and certainly including copyrighted material, just due to how the file format works. Theoretically there might be a way to use UndertaleModTool to turn a retail game file into one that could work on a raspberry pi though.

---

<div class="post-metadata">

**Author:** ![PokeEngineer](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/pokeengineer/32/4736_2.png) [@PokeEngineer](https://forum.clockworkpi.com/u/PokeEngineer)\
**Post date:** [May 24, 2020, 10:37pm UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/8 "2020-05-24T22:37:28Z")

</div>

Hmm… alright. That’s a shame.  
I was just curious seeing as I couldn’t really find anything on that.

---

<div class="post-metadata">

**Author:** ![Kneesnap](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/kneesnap/32/4194_2.png) [@Kneesnap](https://forum.clockworkpi.com/u/Kneesnap)\
**Post date:** [May 26, 2020, 12:25am UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/9 "2020-05-26T00:25:54Z")

</div>

If you want to work with me, we could probably make something that could work on most GMS1 games more or less. The problem is I’m rather busy, so I likely can’t do too much of it myself, but I know all of what needs to be done to port it, so we could probably get something working. Add me on discord if you’re interested, Kneesnap#7540.

---

<div class="post-metadata">

**Author:** ![thisjustin2001](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thisjustin2001](https://forum.clockworkpi.com/u/thisjustin2001)\
**Post date:** [March 12, 2021, 6:53am UTC](https://forum.clockworkpi.com/t/undertale-on-clockworkpi/3425/10 "2021-03-12T06:53:54Z")

</div>

Hey, @Kneesnap ! I know someone who is attempting to get GameMaker Studio games up and running on an emulation handheld device called the RG351. He’s very talented, but I don’t know how much he can get done alone.

I have a big favor to ask if you. Would you be able to join forces with him and help him with this project? You got Undertale up and running on the Raspberry Pi, which seemed impossible, so I know you’re up to the task. Here’s a link to the github page of his project if you’re interested: [GitHub - JohnnyonFlame/axe11: A Proof-of-Concept libX11 Shim for Gamemaker Games to run under Box86 with GL4ES (and the necessary set of hacks on top of it).](https://github.com/JohnnyonFlame/axe11) Also, his Discord is @Johnny On Flame#3652

I’d be sooo grateful to you if you’d do this. Thank you for reading what I have to say! Please consider!
