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 Super Star Path #104

Merged
merged 2 commits into from
Feb 18, 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
17 changes: 17 additions & 0 deletions ports/superstarpath/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Notes

Special thanks to [DYA Games](https://dyagames.com/) for making this wonderful game

Source: https://dyagames.itch.io/super-star-path

## Controls

| Button | Action |
|--|--|
|D-pad/L-stick|Movement |
|A|Shoot/Confirm|
|B|Cancel|
|X|Turbo|
|Start|Pause|


74 changes: 74 additions & 0 deletions ports/superstarpath/Super Star Path.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/bash
# PORTMASTER: superstarpath.zip, Super Star Path.sh

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
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

$ESUDO chmod 666 /dev/tty0

GAMEDIR="/$directory/ports/love"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

# We log the execution of the script into log.txt
exec > >(tee "$GAMEDIR/log.txt") 2>&1

# Patch game
cd "$GAMEDIR"
# If "gamedata/game.unx" exists and its size is 911,688 bytes, apply the xdelta3 patch
if [ -f "./gamedata/game.unx" ]; then
file_size=$(ls -l "./gamedata/game.unx" | awk '{print $5}')
if [ "$file_size" -eq 911688 ]; then
$ESUDO ./patch/xdelta3 -d -s gamedata/game.unx -f ./patch/game.xdelta gamedata/game.unx
fi
fi

# If "gamedata/audiogroup1.dat" exists and its size is 3,204,899 bytes, apply the xdelta3 patch
if [ -f "./gamedata/audiogroup1.dat" ]; then
file_size=$(ls -l "./gamedata/audiogroup1.dat" | awk '{print $5}')
if [ "$file_size" -eq 3204899 ]; then
$ESUDO ./patch/xdelta3 -d -s gamedata/audiogroup1.dat -f ./patch/audio1.xdelta gamedata/audiogroup1.dat
fi
fi

# If "gamedata/audiogroup2.dat" exists and its size is 9,763,779 bytes, apply the xdelta3 patch
if [ -f "./gamedata/audiogroup2.dat" ]; then
file_size=$(ls -l "./gamedata/audiogroup2.dat" | awk '{print $5}')
if [ "$file_size" -eq 9763779 ]; then
$ESUDO ./patch/xdelta3 -d -s gamedata/audiogroup2.dat -f ./patch/audio2.xdelta gamedata/audiogroup2.dat
fi
fi

# We log the execution of the script into log.txt
exec > >(tee "$GAMEDIR/log.txt") 2>&1

cd $GAMEDIR

# Check for file existence before trying to manipulate them:
[ -f "./gamedata/data.unx" ] && mv gamedata/data.unx gamedata/game.droid
[ -f "./gamedata/game.unx" ] && mv gamedata/game.unx gamedata/game.droid

# Make sure uinput is accessible so we can make use of the gptokeyb controls
$ESUDO chmod 666 /dev/uinput

$GPTOKEYB "gmloader" -c ./superstarpath.gptk &

$ESUDO chmod +x "$GAMEDIR/gmloader"

./gmloader superstarpath.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
25 changes: 25 additions & 0 deletions ports/superstarpath/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 2,
"name": "superstarpath.zip",
"items": [
"Super Star Path",
"superstarpath"
],
"items_opt": [],
"attr": {
"title": "Super Star Path",
"porter": [
"Fraxinus88"
],
"desc": "Classic color match puzzle meets space shoot'em up action! Hop into your spaceship, open a path through huge waves of aliens and other hazards, and face intense boss battles!",
"inst": "Purchase the game either from https://dyagames.itch.io/super-star-path OR https://store.steampowered.com/app/375120/Super_Star_Path/\n\nItch.io\nDownload Super Star Path (Linux Ubuntu 14.04 LTS) version, copy all files from /assets to /ports/superstarpath/gamedata\n\nSteam\nRun steam console via Windows+R: Type: steam://open/console, download the linux version by typing: download_depot 375120 375123 in the console, when the download is complete, it will tell you the location of the folder, copy all files from /assets to /ports/superstarpath/gamedata",
"genres": [
"arcade"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/superstarpath/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/superstarpath/superstarpath/gmloader
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.
21 changes: 21 additions & 0 deletions ports/superstarpath/superstarpath/superstarpath.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
back = \"
start = \"

up = up
down = down
left = left
right = right

left_analog_up = \"
left_analog_down = \"
left_analog_left = \"
left_analog_right = \"

a = \"
b = \"
x = x
x = repeat
y = \"

repeat_delay = 0
repeat_interval = 100
Loading