Skip to content

Commit

Permalink
Merge pull request #921 from tabreturn/red-triangle-super-collection
Browse files Browse the repository at this point in the history
New Port: Red Triangle Super Collection
  • Loading branch information
JanTrueno authored Nov 13, 2024
2 parents 1767acb + 5e8fbe0 commit 1635c03
Show file tree
Hide file tree
Showing 30 changed files with 602 additions and 0 deletions.
24 changes: 24 additions & 0 deletions ports/redtrianglesc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Notes

Thanks to [Red Triangle Games](https://www.redtrianglegames.com) for creating this fantastic game and granting permission for PortMaster to distribute the game files.

Video Goose runs very slowly, but the rest are fine.


## Controls

| Button | Action |
| ------- | -------------- |
| D-PAD | Movement |
| A/B | Action/back |
| Y | Varies by game |
| L-STICK | Mouse cursor |
| X/R1 | Mouse click |

For entering text (for names, etc.) --

1. Enter text-input mode using: `START + DPAD-DOWN`
2. Once activated, use `DPAD-UP/DOWN` to select letters, and `DPAD-LEFT/RIGHT` to move a letter back/forward
3. Use `A` for `ENTER` (when you're done)

In some instances, you may need to press `START` to confirm and exit interactive text entry; `SELECT/HOTKEY` cancels interactive text entry.
54 changes: 54 additions & 0 deletions ports/redtrianglesc/Red Triangle Super Collection.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash

XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}

if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
controlfolder="$XDG_DATA_HOME/PortMaster"
else
controlfolder="/roms/ports/PortMaster"
fi

source $controlfolder/control.txt
# device_info.txt will be included by default

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

GAMEDIR="/$directory/ports/redtrianglesc"
CONFDIR="$GAMEDIR/conf/"

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

mkdir -p "$GAMEDIR/conf"

export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export TEXTINPUTINTERACTIVE="Y"
export XDG_DATA_HOME="$CONFDIR"

cd $GAMEDIR

if [ -f "./Paradox.rpg" ]; then
$controlfolder/xdelta3 -d -s "./Paradox.rpg" "./Paradox_patch.xdelta3" "./Paradox_patched.rpg"
# Check if Paradox file patched
if [ -f "./Paradox_patched.rpg" ]; then
rm -f "./Paradox.rpg"
mv "./Paradox_patched.rpg" "./Paradox.rpg"
else
echo "Paradox.rpg patch failed"
fi
fi

bind_directories "$HOME/.ohrrpgce" "$CONFDIR"

$GPTOKEYB "ohrrpgce-game" -c ./redtrianglesc.gptk &
pm_platform_helper "$GAMEDIR/ohrrpgce-game"
"./ohrrpgce-game" RTSuperCollection.rpg -f

pm_finish

13 changes: 13 additions & 0 deletions ports/redtrianglesc/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Red Triangle Super Collection.sh</path>
<name>Red Triangle Super Collection</name>
<desc>Red Triangle Games' collection of short OHR.RPG.CE games all in one place! With nine great games, there's something for everyone in this collection!</desc>
<releasedate>20211021T000000</releasedate>
<developer>Red Triangle Games</developer>
<publisher>Self-Published</publisher>
<genre>Compilation</genre>
<image>./redtrianglesc/screenshot.png</image>
</game>
</gameList>
30 changes: 30 additions & 0 deletions ports/redtrianglesc/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "redtrianglesc.zip",
"items": [
"Red Triangle Super Collection.sh",
"redtrianglesc"
],
"items_opt": null,
"attr": {
"title": "Red Triangle Super Collection",
"porter": [
"tabreturn"
],
"desc": "Red Triangle Games' collection of short OHR.RPG.CE games all in one place! With nine great games, there's something for everyone in this collection!",
"desc_md": null,
"inst": "Ready to run! Thanks to Red Triangle Games (https://www.redtrianglegames.com) for granting permission to distribute the game files.",
"inst_md": "Ready to run! Thanks to [Red Triangle Games](https://www.redtrianglegames.com) for granting permission to distribute the game files.",
"genres": [
"other"
],
"image": {},
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
}
}
Binary file not shown.
Binary file added ports/redtrianglesc/redtrianglesc/Fox.rpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 29 additions & 0 deletions ports/redtrianglesc/redtrianglesc/LICENSE-RTSuperCollection.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
THU OCT 31 13:06

Hey Tristan,

I'm down for the inclusion. Thank you for that. I am working on an update for the collection in the next couple of weeks if you can wait that long.

Thanks!
Matt

---

TUE OCT 29 15:45

Hi --

Thanks for the response on itch (https://itch.io/post/11239675)

My name is Tristan. I'm part of a group of developers working on porting games to handheld Linux devices. Our project is named PortMaster http://portmaster.games

We've added various OHRRPGCE games to these systems and would love to include the Red Triangle Super Collection as a ready-to-run game. Would you permit us to include your .rpg file in our packages? Without your consent, users must manually download the files for our ports.

You wouldn't have to do anything -- we have all the wrappers, etc. and can adapt the game.

Importantly, we do not want to profit or take credit for your games; our primary goal is to introduce more games to our beloved handheld devices.

Thank you for considering our request!

Cheers
Tristan
Loading

0 comments on commit 1635c03

Please sign in to comment.