#Gravity Blocks
15 messages · Page 1 of 1 (latest)
<@&1216123318122577972>
This need some work 🙂
Maybe tomorrow I have some time to help you out with the script if no other has helped so far
thanks for posting to testing 🙂
a few issues i spotted immediately --
- there's a zip within the gravblocks folder that appears to contain a duplicate set of contents
- there's no screenshot image (which must be of gameplay at 640 x 480)
- the json instructions state "unzip to the Ports folder" -- rather don't mention this (it differs between cfw's, there's an app, etc.)
- look at a newer gmloader port for the revised structure we're using now
- gamedata folder includes a .dll (delete this)
- prob a few other things, but that should get you started
this looks like a 32-bit port? so, you could scaffold it off something like https://github.com/PortsMaster/PortMaster-New/tree/main/ports/hallowedcandy (of course, you won't need the 7zzs stuff)
Is this ready to run or are gamefiles required?
ready to run (i believe the porter is the same person who created the game)
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"
get_controls
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
GAMEDIR="/$directory/ports/gravblocks"
# We log the execution of the script into log.txt
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
#permissions
$ESUDO chmod +x $GAMEDIR/gmloader
$ESUDO chmod 666 /dev/tty0
# Port specific additional libraries should be included within the port's directory in a separate subfolder named libs.
# Prioritize the armhf libs to avoid conflicts with aarch64
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_windows"
cd $GAMEDIR
# Check for file existence before trying to manipulate them:
[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid
[ -f "./gamedata/game.win" ] && mv gamedata/game.win 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 ./game.gptk &
pm_platform_helper "$GAMEDIR/gmloader"
./gmloader game.apk
# Kill processes
pm_finish```
I think this should be the updated .sh?
@bright plume if your game has native controller support, you can tru the following:
$GPTOKEYB "gmloader" &
pm_platform_helper "$GAMEDIR/gmloader"
./gmloader game.apk```
and delete the game.gptk
Thanks for the testing, guys! I have tested this as working on the the r36s with arkOS, which is what my 4 boys have. I haven't posted my last few ports (Deadbolt, fran bow, funky n frank, arena, boggle, etc.) on portmaster because of all the rules and I honestly dont have the time. If you guys want to finish and upload this, you are more than welcome to. If not, I understand, Have a good day.
TESTING
[x ] AmberELEC
[x] ArkOS
[x] ROCKNIX
[x] muOS
[x] 480x320 (optional)
[x] 640x480
[ ] 720x720 (RGB30) - stretches to fill
[x] Higher resolutions (e.g., 1280x720)
I dont think stretching would bother me here on 1:1 screens
@bright plume thanks for the game
going to send it later
@bright plume do you still have a copy of your dealdbolt port please 🙏