#Gravity Blocks

15 messages · Page 1 of 1 (latest)

bright plume
final swan
#

<@&1216123318122577972>

desert quest
#

This need some work 🙂
Maybe tomorrow I have some time to help you out with the script if no other has helped so far

final swan
#

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
civic ivy
#

Is this ready to run or are gamefiles required?

final swan
tender aurora
#

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
bright plume
#

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.

earnest current
#

going to send it later

sharp elm
#

@bright plume do you still have a copy of your dealdbolt port please 🙏