Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Port: Finding Paradise #57

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions ports/finding_paradise/Finding Paradise.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash
if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
else
controlfolder="/roms/ports/PortMaster"
fi

source $controlfolder/control.txt
source $controlfolder/device_info.txt

get_controls

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

CUR_TTY=/dev/tty0
$ESUDO chmod 666 $CUR_TTY

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

cd $GAMEDIR

# Ensure the conf directory exists
mkdir -p "$GAMEDIR/conf"

# Set the XDG environment variables for config & savefiles
export XDG_CONFIG_HOME="$CONFDIR"
export XDG_DATA_HOME="$GAMEDATA"

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export LD_LIBRARY_PATH="$GAMEDIR/libs"

# Extract and organize game files if the installer exists

WOG_FILE=$(ls finding_paradise*.sh 2> /dev/null | head -n 1)

if [ -f ""$WOG_FILE"" ]; then
unzip -o "$WOG_FILE" > "$CUR_TTY"
if [ -d "data/noarch/game" ]; then
$ESUDO mv -f data/noarch/game/* "$GAMEDIR/gamedata/" || { echo "Failed to move game directory." > "$CUR_TTY"; sleep 5; exit 1; }
else
echo "Game directory not found after extraction." > "$CUR_TTY"
sleep 5
exit 1
fi
rm -f "$WOG_FILE"
echo "Setup complete. Have fun playing!" > "$CUR_TTY"
fi
[ -d gamedata/lib ] && rm -rf data/ meta/ scripts/ gamedata/lib gamedata/lib64
[ -f falcon_mkxp.bin ] && mv falcon_mkxp.bin gamedata/falcon_mkxp.bin
sed -i 's/frameSkip=true/frameSkip=false/' gamedata/mkxp.conf


$GPTOKEYB "falcon_mkxp.bin" -c "./finding_paradise.gptk" &
$GAMEDIR/gamedata/falcon_mkxp.bin

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
15 changes: 15 additions & 0 deletions ports/finding_paradise/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Notes

Thanks to the developers of Freebird Games for creating such a wonderful game.
https://www.gog.com/en/game/finding_paradise

GOG Files are compatible.
Steam Game files may work

## Controls

| Button | Action |
|--|--|
| Dpad | Move |
| A | Accept |
| B | Back / Cancel |
339 changes: 339 additions & 0 deletions ports/finding_paradise/finding_paradise/LICENSE_falcon-mkxp

Large diffs are not rendered by default.

Binary file not shown.
33 changes: 33 additions & 0 deletions ports/finding_paradise/finding_paradise/finding_paradise.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
back = esc
start = enter
a = enter
b = esc
x = \"
y = \"
l1 = \"
l2 = \"
l3 = \"
r1 = \"
r2 = \"
r3 = \"
up = up
down = down
left = left
right = right

left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right

right_analog_up = \"
right_analog_down = \"
right_analog_left = \"
right_analog_right = \"

deadzone_mode = scaled_radial
deadzone = 4096
deadzone_scale = 8
deadzone_delay = 16
mouse_scale = 512
mouse_delay = 16
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions ports/finding_paradise/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 2,
"name": "finding_paradise.zip",
"items": [
"Finding Paradise.sh",
"finding_paradise"
],
"items_opt": [],
"attr": {
"title": "Finding Paradise",
"porter": [
"Cebion"
],
"desc": "Finding Paradise is an adventure game developed and published by Freebird Games. Serving as a sequel to To the Moon and A Bird Story, the story continues with doctors Eva Rosalene and Neil Watts as they help to fulfill a wish for Colin Reeds, who is now a bedridden old man.",
"inst": "If using the GOG Version place the to_the_moon_*.sh installer to the root of the finding_paradise folder or extract the contents of the data/noarch/game/ folder into finding_paradise/gamedata/",
"genres": [
"adventure"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/finding_paradise/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading