Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiulit/RetroPie-Godot-Engine-Emulator
A scriptmodule to install a Godot "emulator" for RetroPie.
https://github.com/hiulit/RetroPie-Godot-Engine-Emulator
emulator frt godot-emulator godot-engine godot-games raspberry-pi retropie scriptmodule shell-script x86 x86-64
Last synced: 1 day ago
JSON representation
A scriptmodule to install a Godot "emulator" for RetroPie.
- Host: GitHub
- URL: https://github.com/hiulit/RetroPie-Godot-Engine-Emulator
- Owner: hiulit
- License: mit
- Created: 2019-03-25T16:29:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-09T13:57:35.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:17:00.409Z (5 days ago)
- Topics: emulator, frt, godot-emulator, godot-engine, godot-games, raspberry-pi, retropie, scriptmodule, shell-script, x86, x86-64
- Language: Shell
- Homepage:
- Size: 1.15 MB
- Stars: 91
- Watchers: 6
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-godot - RetroPie Godot Game Engine "Emulator" - A scriptmodule to install a Godot "emulator" for RetroPie. (Other / 3D)
README
# RetroPie Godot Engine "Emulator"
![GitHub release (latest by date)](https://img.shields.io/github/v/release/hiulit/RetroPie-Godot-Game-Engine-Emulator?style=flat-square) ![GitHub license](https://img.shields.io/github/license/hiulit/cross-compile-godot-raspberry-pi?style=flat-square)
A scriptmodule to install a Godot "emulator" for RetroPie.
![Retropie-Godot-Banner](example-images/retropie-godot-banner.jpg)
Thanks to [@efornara](https://github.com/efornara) (for creating [FRT - A Godot "platform" targeting single board computers](https://github.com/efornara/frt)) you can now play 2D games made with the [Godot Engine](https://godotengine.org/) on the Raspberry Pi (and other single-board computers) using [RetroPie](https://retropie.org.uk/).
If you are running RetroPie on an `x86/x86_64` Linux PC you can also play Godot games, since the Godot "emulator" is actually the official **Linux/X11** export template.
## Table of contents
- [Where to find games made with Godot](#-where-to-find-games-made-with-godot)
- [Compatibility list](#%EF%B8%8F-compatibility-list)
- [Setup script](#%EF%B8%8F-setup-script)
- [Install the Godot "emulator" from RetroPie-Setup](#install-the-godot-emulator-from-retropie-setup)
- [Uninstall the Godot "emulator" from RetroPie-Setup](#uninstall-the-godot-emulator-from-retropie-setup)
- [Update the Godot "emulator" from RetroPie-Setup](#update-the-godot-emulator-from-retropie-setup)
- [How to install Godot games](#how-to-install-godot-games)
- [Using a GPIO/Virtual keyboard](#using-a-gpiovirtual-keyboard)
- [Troubleshooting](#ℹ%EF%B8%8F-troubleshooting)
- [How to create a new Godot system for an EmulationStation theme](#-how-to-create-a-new-godot-system-for-an-emulationstation-theme)
- [Pre-made Godot systems](#-pre-made-godot-systems)## 🎮 Where to find games made with Godot
There are plenty of games made with Godot, most of them hosted on https://itch.io.
You can find Godot games using the following links:
- https://itch.io/games/made-with-godot
- https://itch.io/games/tag-godotMost games are free to dowload, some are "pay what you want" with a suggested price (including free) and a few are paid. If you like the game, consider supporting the authors 😊.
## ✔️ Compatibility list
Take a look at the [compatibility list](https://docs.google.com/spreadsheets/d/1ybU_NHqhnJmZnlP9YDDGEf4BJ5nInbfsVVQtQCM7rYw/edit?usp=sharing) to check which games work.
Everyone can contribute to the list by starting a [discussion](https://github.com/hiulit/RetroPie-Godot-Game-Engine-Emulator/discussions).
## 🛠️ Setup script
### Install the script
```
cd ~
git clone https://github.com/hiulit/RetroPie-Godot-Game-Engine-Emulator.git
cd RetroPie-Godot-Game-Engine-Emulator/
sudo chmod +x setup-godot-engine-scriptmodule.sh
```### Update the script
```
cd ~/RetroPie-Godot-Game-Engine-Emulator/
git pull
```## 🚀 Usage
```
./setup-godot-engine-scriptmodule.sh [OPTIONS]
```If no options are passed, you will be prompted with a usage example:
```
USAGE: ./setup-godot-engine-scriptmodule.sh [OPTIONS]Use '--help' to see all the options.
```The script assumes that you are running it on a Raspberry Pi with the `RetroPie-Setup` folder being stored in `~/RetroPie-Setup`. If your setup differs, you can pass the path where your `RetroPie-Setup` folder is stored as a parameter, like this:
```
./setup-godot-engine-scriptmodule.sh [OPTION] "/path/to/your/RetroPie-Setup"
```## 📖 Options
- `--help`: Prints the help message and exit.
- `--version`: Shows the script version.
- `--install [path]`: Installs the `godot-engine` scriptmodule.
- Path: The location of the `RetroPie-Setup` folder.
- Default: `~/RetroPie-Setup`.
- `--uninstall [path]`: Uninstalls the `godot-engine` scriptmodule.
- Path: The location of the `RetroPie-Setup` folder.
- Default: `~/RetroPie-Setup`.
- `--update [path]`: Updates the `godot-engine` scriptmodule.
- Path: The location of the `RetroPie-Setup` folder.
- Default: `~/RetroPie-Setup`.## Install the Godot "emulator" from RetroPie-Setup
Once you've successfully installed the scriptmodule, run:
```
sudo ~/RetroPie-Setup/retropie_setup.sh
```Go to:
- Manage packages
- Manage optional packages
- godot-engine
- Install from sourceThe script installs all the major versions of Godot for maximum compatibility:
- `2.1.6`
- `3.0.6`
- `3.4.5`
- `3.5.1`A new `godot-engine` folder will be created in `~/RetroPie/roms`, where you can [install the Godot games](#how-to-install-godot-games) using the `.pck` and `.zip` extensions.
## Uninstall the Godot "emulator" from RetroPie-Setup
Run:
```
sudo ~/RetroPie-Setup/retropie_setup.sh
```Go to:
- Manage packages
- Manage optional packages
- godot-engine
- Remove## Update the Godot "emulator" from RetroPie-Setup
Before updating the "emulator", you must update the **setup script** and the **scriptmodule**.
Run:
```
# Update the setup script.
cd ~/RetroPie-Godot-Game-Engine-Emulator/
git pull
# Update the scriptmodule.
./setup-godot-engine-scriptmodule.sh --update
```Then, to update the Godot "emulator", run:
```
sudo ~/RetroPie-Setup/retropie_setup.sh
```Go to:
- Manage packages
- Manage optional packages
- godot-engine
- Update from source## How to install Godot games
When you download a game from https://itch.io, the downloaded `.zip` usually contains 2 files:
- The Godot executable.
- The game data.The later is, most of the times, a `.pck` file. That's the one we want!
Those `.pck` files will most likely be found on the **Linux downloads** (maybe on the **Windows downloads** too).
If you can't find a `.pck` file on neither the Linux nor the Windows downloads, you can try the **Mac/OSX downloads**. You'll have to:
- Unzip the `.zip` file.
- Go to `Contents -> Resources` (the `.pck` file should be in this folder).To install it, just copy the `.pck` file to `~/RetroPie/roms/godot-engine`.
## Scraping games
A scraper for games hosted on https://itch.io is bundled with this script.
Check out its [documentation](https://github.com/hiulit/RetroPie-Itchio-Godot-Scraper).
You can find it in EmulationStation's RetroPie menu.
![EmulationStation RetroPie menu](example-images/emulationstation-retropie-menu.png)
## Using a GPIO/Virtual keyboard
> ⚠️ When using a GPIO/Virtual keyboard, the actual keyboard won't work anymore. But you can always remove the GPIO/Virtual keyboard (see below).
As of **v1.2.0**, when using the **FRT** "emulator", you can use a GPIO/Virtual keyboard, such as [GPIOnext](https://github.com/mholgatem/GPIOnext) or [Adafruit's Retrogame](https://github.com/adafruit/Adafruit-Retrogame).
### Add/Remove a GPIO/Virtual keyboard
Run:
```
sudo ~/RetroPie-Setup/retropie_setup.sh
```and then go to:
- Configuration/tools
- godot-engineSelect **GPIO/Virtual keyboard**.
![GPIO/Virtual keyboard dialog](example-images/gpio-virtual-keyboard-dialog.png)
You will be prompted with a menu showing all the results from the command `cat /proc/bus/input/devices`. Select the GPIO/Virtual keyboard that you want.
If you want to to reverse that action, follow the same steps and select **None**.
## ℹ️ Troubleshooting### A game doesn't launch or crashes
> Useful information about errors can be found at `/dev/shm/runcommand.log`.
If the game you are trying to play doesn't work, it will most likely be because it was made with another version of Godot. Try changing the Godot "emulator" version in the [runcommand](https://github.com/RetroPie/RetroPie-Setup/wiki/runcommand).
If you downloaded the game from https://itch.io, there's a good chance the author stated which version of Godot that game uses.
In case none of the "emulators" work, it could be something related to the video driver.
### Video issues
See [VIDEO ISSUES](docs/VIDEO_ISSUES.md).
### Audio issues
See [AUDIO ISSUES](docs/AUDIO_ISSUES.md).
## 🎨 How to create a new Godot system for an EmulationStation theme
As there is no way to create a script to automate this, because themes don't have the same structure, the best way is to manually create a new system in your preferred theme.
- [Download](https://raw.githubusercontent.com/hiulit/RetroPie-Godot-Game-Engine-Emulator/master/art/system.svg) the Godot `system.svg`.
- [Download](https://raw.githubusercontent.com/hiulit/RetroPie-Godot-Game-Engine-Emulator/master/art/controller.svg) the Godot `controller.svg`.
- Copy any system folder in your theme (e.g. `/etc/emulationstation/themes/[THEME]/nes`).
- Rename it as `godot-engine`.
- Move the Godot `system.svg` and `controller.svg` to the `godot-engine/art` folder.**NOTE**:
The folder structure in the theme you are using might differ. Take a look at how this particular theme works to create the `godot-engine` folder accordingly. You might need to delete extra icons that are not needed.
## 🤖 Pre-made Godot systems
I've created a couple of ready-to-use Godot systems:
- For the **Carbon theme**, which is the default EmulationStation theme that comes with RetroPie.
- For the **Pixel theme**, my personal favourite theme.If you want to add a new theme, feel free to open a [pull request](https://github.com/hiulit/cross-compile-godot-raspberry-pi/pulls).
> The default EmulationStation theme is installed automaticaly and can't be deleted.
To install a Godot system, copy the `theme/[THEME]/godot-engine` folder from this repository to `/etc/emulationstation/themes/[THEME]`.
Or you can run:
```
sudo ~/RetroPie-Setup/retropie_setup.sh
```and then go to:
- Configuration/tools
- godot-engineSelect **Install themes**.
![Install themes dialog](example-images/install-themes-dialog.png)
Select the theme you would like to install.
![Select themes dialog](example-images/select-themes-dialog.png)
### Carbon theme
![Godot system for EmulationStation's Carbon theme](example-images/godot-engine-carbon-theme.png)
### Pixel theme
![Godot system for EmulationStation's Pixel theme](example-images/godot-engine-pixel-theme.png)
## 🗒️ Changelog
See [CHANGELOG](/CHANGELOG.md).
## 👤 Author
**hiulit**
- Twitter: [@hiulit](https://twitter.com/hiulit)
- GitHub: [@hiulit](https://github.com/hiulit)## 🤝 Contributing
Feel free to:
- [Open an issue](https://github.com/hiulit/RetroPie-Godot-Engine-Emulator/issues) if you find a bug.
- [Create a pull request](https://github.com/hiulit/RetroPie-Godot-Engine-Emulator/pulls) if you have a new cool feature to add to the project.
- [Start a new discussion](https://github.com/hiulit/RetroPie-Godot-Engine-Emulator/discussions) about a feature request.## 🙌 Supporting this project
If you love this project or find it helpful, please consider supporting it through any size donations to help make it better ❤️.
[![Become a patron](https://img.shields.io/badge/Become_a_patron-ff424d?logo=Patreon&style=for-the-badge&logoColor=white)](https://www.patreon.com/hiulit)
[![Suppor me on Ko-Fi](https://img.shields.io/badge/Support_me_on_Ko--fi-F16061?logo=Ko-fi&style=for-the-badge&logoColor=white)](https://ko-fi.com/F2F7136ND)
[![Buy me a coffee](https://img.shields.io/badge/Buy_me_a_coffee-FFDD00?logo=buy-me-a-coffee&style=for-the-badge&logoColor=black)](https://www.buymeacoffee.com/hiulit)
[![Donate Paypal](https://img.shields.io/badge/PayPal-00457C?logo=PayPal&style=for-the-badge&label=Donate)](https://www.paypal.com/paypalme/hiulit)
If you can't, consider sharing it with the world...
[![](https://img.shields.io/badge/Share_on_Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fhiulit%2FRetroPie-Godot-Engine-Emulator&text="RetroPie+Godot+Engine+Emulator"%3A%0D%0AA+scriptmodule+to+install+a+%23GodotEngine+"emulator"+for+%23RetroPie.%0Aby+%40hiulit%0A)
... or giving it a [star ⭐️](https://github.com/hiulit/RetroPie-Godot-Engine-Emulator/stargazers).
Thank you very much!
## 👏 Credits
Thanks to:
- **Juan Linietsky** ([@reduz](https://github.com/reduz)), **Ariel Manzur** ([@punto-](https://github.com/punto-)), **Rémi Verschelde** ([@akien-mga](https://github.com/akien-mga)) and **all the Godot contributors** - For creating and maintaining the [Godot Engine](https://github.com/godotengine/godot).
- **Emanuele Fornara** ([@efornara](https://github.com/efornara)) - For creating [FRT - A Godot "platform" targeting single board computers](https://github.com/efornara/frt).
- **Andrea Calabró** - For creating the "Godot logo". Changes made to it:
- Created an outline version.
- **Alícia Folgarona Ribot** ([@pingudroid](https://twitter.com/pingudroid)) - For creating the "Pixel Godot logo". Changes made to it:
- New colors.
- Added white outline.
- **Florian Müller** - For creating the RetroPie logo.## 📝 Licenses
- Source code: [MIT License](/LICENSE).
- Godot Engine: [MIT License](/LICENSE_GODOT.txt).
- FRT - A Godot platform targeting single board computers: [MIT License](/LICENSE_FRT.txt).
- Godot logo: [CC BY](https://creativecommons.org/licenses/by/4.0/).
- Pixel Godot logo: [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/).
- RetroPie logo: [CC BY-NC-ND](http://creativecommons.org/licenses/by-nc-nd/4.0/).