Skip to content

Commit

Permalink
Merge branch 'PortsMaster:main' into tailspin
Browse files Browse the repository at this point in the history
  • Loading branch information
slobters authored Oct 10, 2024
2 parents bd533a6 + bbfdb65 commit 0440b31
Show file tree
Hide file tree
Showing 638 changed files with 9,129 additions and 162 deletions.
39 changes: 39 additions & 0 deletions ports/assaultshell/ASSAULT SHELL.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/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
export PORT_32BIT="Y"
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="/$directory/ports/assaultshell"

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

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

[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid

$GPTOKEYB "gmloader" &
echo "Loading, please wait... " > /dev/tty0

$ESUDO chmod +x "$GAMEDIR/gmloader"
pm_platform_helper $GAMEDIR/gmloader
./gmloader assaultshell.apk

pm_finish
17 changes: 17 additions & 0 deletions ports/assaultshell/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Notes

Huge thanks to [Team Overloaded](https://store.steampowered.com/app/1432970/ASSAULT_SHELL/) for creating this awesome shmup! Extra thanks to Ganimoth for the rad splash.png, and thank you, Slobsters! Big thanks to all who tested this port!

## Controls

| Button | Action |
|--|--|
|dpad|movement|
|left analog|movement|
|B|normal fire/extended fire|
|A|special missiles|
|Y|bomb|
|X|normal fire|
|Start|Pause|


Binary file added ports/assaultshell/assaultshell/assaultshell.apk
Binary file not shown.
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/assaultshell/assaultshell/gmloader
Binary file not shown.
Binary file added ports/assaultshell/assaultshell/libc++_shared.so
Binary file not shown.
Binary file not shown.
Binary file added ports/assaultshell/assaultshell/libs/libzip.so.5
Binary file not shown.
Binary file added ports/assaultshell/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions ports/assaultshell/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>./ASSAULT SHELL.sh</path>
<name>ASSAULT SHELL</name>
<desc>Defend your people from the growing military faction, AMBER BLACK, in 5 stages of big bosses and blasting ships!</desc>
<releasedate>20200430T000000</releasedate>
<developer>Team Overloaded</developer>
<publisher>Team Overloaded</publisher>
<genre>action/arcade</genre>
<image>./assaultshell/cover.png</image>
</game>
</gameList>
31 changes: 31 additions & 0 deletions ports/assaultshell/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 3,
"name": "assaultshell.zip",
"items": [
"ASSAULT SHELL.sh",
"assaultshell/"
],
"items_opt": [],
"attr": {
"title": "ASSAULT SHELL",
"porter": [
"MadShmupper"
],
"desc": "Engage in an action packed shoot em' up adventure! Choose from 4 powerful fighters and fight through 5 intense stages!",
"desc_md": null,
"inst": "Purchase from itch.io https://overloadedstudios.itch.io/assault-shell or Steam https://store.steampowered.com/app/1432970/ASSAULT_SHELL/ and place data.win, each audiogroup.dat file, and each .csv file into gamedata folder.",
"inst_md": "Purchase from [itch.io](https://overloadedstudios.itch.io/assault-shell) or [Steam](https://store.steampowered.com/app/1432970/ASSAULT_SHELL/) and place data.win, each audiogroup.dat file, and each .csv file into gamedata folder.",
"genres": [
"action",
"arcade"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"armhf"
]
}
}
Binary file added ports/assaultshell/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions ports/axecop/Axe Cop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/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/axecop
CONFDIR="$GAMEDIR/conf/"
DATAFILE=axecop.rpg

> "$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

# Rename any .rpg file found to the DATAFILE variable
file=$(find . -maxdepth 1 -type f -name "*.rpg")
# Check if a file was found
if [[ -n "$file" ]]; then
mv "$file" "tmp.rpg" # FAT32 case rename fix
mv "tmp.rpg" "$DATAFILE"
echo "File renamed to $DATAFILE"
else
echo "No .rpg file found"
fi

$GPTOKEYB "ohrrpgce-game" -c ./axecop.gptk &
pm_platform_helper $GAMEDIR/ohrrpgce-game
"./ohrrpgce-game" $DATAFILE -f

pm_finish

26 changes: 26 additions & 0 deletions ports/axecop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Notes

Thanks to [Red Triangle Games](https://redtrianglegames.itch.io/) for creating this game, which you can purchase on [itch.io](https://redtrianglegames.itch.io/axecop) or [Steam](https://store.steampowered.com/app/1193300/Axe_Cop/). This hasn't been tested with the GOG version, but that *should* work, too.

The game runs a bit slow on RK3326 devices, better on H700 devices, and best on RK3566 devices. The game takes a while to load initially, so be patient :)


## Controls

| Button | Action |
| ------ | --------------------- |
| D-PAD | Movement / navigation |
| A | Action / axe |
| B | Back |
| X | Switch character |
| Y | Menu |


## Compile OHRRPGCE

```shell
Install FreeBASIC
git clone https://github.com/ohrrpgce/ohrrpgce.git
cd ohrrpgce
scons gfx=sdl2
```
Loading

0 comments on commit 0440b31

Please sign in to comment.