diff --git a/ports/wakingmars/README.md b/ports/wakingmars/README.md new file mode 100644 index 000000000..a3c03ba9d --- /dev/null +++ b/ports/wakingmars/README.md @@ -0,0 +1,20 @@ +## Notes + +Thanks to the wonderful developers of Tiger Style for creating such a wonderful game. +https://www.humblebundle.com/store/waking-mars + +Other versions were not tested. + +## Controls + +| Button | Action | +|--|--| +| Dpad | Move | +| Joystick | Aim | +| A | Throw | +| B | Throw | +| X | Drop | +| L1 | Previous | +| L2 | Map | +| R1 | Next | +| R2 | Drop | \ No newline at end of file diff --git a/ports/wakingmars/Waking Mars.sh b/ports/wakingmars/Waking Mars.sh new file mode 100644 index 000000000..77ecd0853 --- /dev/null +++ b/ports/wakingmars/Waking Mars.sh @@ -0,0 +1,66 @@ +#!/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 + +[ -f "/etc/os-release" ] && source "/etc/os-release" +CUR_TTY=/dev/tty0 +GAMEDIR=/$directory/ports/wakingmars +CONFDIR="$GAMEDIR/conf/" + +exec > >(tee "$GAMEDIR/log.txt") 2>&1 + +get_controls + +$ESUDO chmod 666 $CUR_TTY +$ESUDO chmod 666 /dev/uinput + +if [ "$OS_NAME" == "JELOS" ]; then + export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2" + export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/" +fi + +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="$CONFDIR" + +# Setup GL4ES +export LIBGL_ES=2 +export LIBGL_GL=21 +export LIBGL_FB=4 + +# Setup Box86 +export BOX86_LOG=1 + +export LD_LIBRARY_PATH="$GAMEDIR/box86/native":"/usr/lib/arm-linux-gnueabihf/":"/usr/lib32":"$GAMEDIR/libs/":"$LD_LIBRARY_PATH" +export BOX86_LD_LIBRARY_PATH="$GAMEDIR/box86/x86":"$GAMEDIR/box86/native":"$GAMEDIR/libs/x86": + +export SDL_VIDEO_GL_DRIVER="$GAMEDIR/box86/native/libGL.so.1" +export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" + +#export TEXTINPUTINTERACTIVE="Y" + +if [ "$ANALOG_STICKS" = "1" ] || [ "$ANALOG_STICKS" = "0" ]; then + GPTK_FILE="wakingmars_1stick.gptk" +else + GPTK_FILE="wakingmars.gptk" +fi + +$GPTOKEYB "wakingmars" -c "./$GPTK_FILE" & +$GAMEDIR/box86/box86 gamedata/wakingmars + +$ESUDO kill -9 $(pidof gptokeyb) +$ESUDO systemctl restart oga_events & +printf "\033c" > /dev/tty0 \ No newline at end of file diff --git a/ports/wakingmars/port.json b/ports/wakingmars/port.json new file mode 100644 index 000000000..6c28dd06e --- /dev/null +++ b/ports/wakingmars/port.json @@ -0,0 +1,26 @@ +{ + "version": 2, + "name": "wakingmars.zip", + "items": [ + "Waking Mars.sh", + "wakingmars" + ], + "items_opt": [], + "attr": { + "title": "Waking Mars", + "porter": [ + "Cebion" + ], + "desc": "Waking Mars is a one-of-a-kind adventure in which you jetpack through subterranean Mars encountering a host of extraordinary alien lifeforms that operate as a living, breathing ecosystem.", + "inst": "Add your Linux (humble) game files to the gamedata folder\n\nFile structure:\n/roms/ports/gamedata/GameData\n/roms/ports/gamedata/wakingmars\n/roms/ports/gamedata/wakingmars.png", + "genres": [ + "action", + "adventure" + ], + "image": null, + "rtr": false, + "exp": false, + "runtime": null, + "reqs": [] + } +} diff --git a/ports/wakingmars/screenshot.jpg b/ports/wakingmars/screenshot.jpg new file mode 100644 index 000000000..ac2280400 Binary files /dev/null and b/ports/wakingmars/screenshot.jpg differ diff --git a/ports/wakingmars/wakingmars/LICENSE_BOX86 b/ports/wakingmars/wakingmars/LICENSE_BOX86 new file mode 100644 index 000000000..28262dee1 --- /dev/null +++ b/ports/wakingmars/wakingmars/LICENSE_BOX86 @@ -0,0 +1,19 @@ +Copyright (c) 2018-2021 Sebastien Chevalier ("ptitSeb") + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/ports/wakingmars/wakingmars/LICENSE_GL4ES b/ports/wakingmars/wakingmars/LICENSE_GL4ES new file mode 100644 index 000000000..f34587f4f --- /dev/null +++ b/ports/wakingmars/wakingmars/LICENSE_GL4ES @@ -0,0 +1,20 @@ +Copyright (c) 2016-2018 Sebastien Chevalier +Copyright (c) 2013-2016 Ryan Hileman + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/ports/wakingmars/wakingmars/LICENSE_SDL12-COMPAT b/ports/wakingmars/wakingmars/LICENSE_SDL12-COMPAT new file mode 100644 index 000000000..61d68b80a --- /dev/null +++ b/ports/wakingmars/wakingmars/LICENSE_SDL12-COMPAT @@ -0,0 +1,22 @@ +Copyright (C) 1997-2023 Sam Lantinga + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + + + +This project includes code from dr_mp3 ( https://github.com/mackron/dr_libs ) +which can be treated as public domain or MIT-0 licensed, at your option. \ No newline at end of file diff --git a/ports/wakingmars/wakingmars/box86/box86 b/ports/wakingmars/wakingmars/box86/box86 new file mode 100644 index 000000000..985a6b5d6 Binary files /dev/null and b/ports/wakingmars/wakingmars/box86/box86 differ diff --git a/ports/wakingmars/wakingmars/box86/native/libGL.so.1 b/ports/wakingmars/wakingmars/box86/native/libGL.so.1 new file mode 100644 index 000000000..fb01fd389 Binary files /dev/null and b/ports/wakingmars/wakingmars/box86/native/libGL.so.1 differ diff --git a/ports/wakingmars/wakingmars/box86/x86/libgcc_s.so.1 b/ports/wakingmars/wakingmars/box86/x86/libgcc_s.so.1 new file mode 100644 index 000000000..0c99e79eb Binary files /dev/null and b/ports/wakingmars/wakingmars/box86/x86/libgcc_s.so.1 differ diff --git a/ports/wakingmars/wakingmars/box86/x86/libstdc++.so.6 b/ports/wakingmars/wakingmars/box86/x86/libstdc++.so.6 new file mode 100644 index 000000000..9e8695677 Binary files /dev/null and b/ports/wakingmars/wakingmars/box86/x86/libstdc++.so.6 differ diff --git a/ports/wakingmars/wakingmars/conf/WakingMars/UserSettings.ini b/ports/wakingmars/wakingmars/conf/WakingMars/UserSettings.ini new file mode 100644 index 000000000..7981687ff --- /dev/null +++ b/ports/wakingmars/wakingmars/conf/WakingMars/UserSettings.ini @@ -0,0 +1,72 @@ + +[audio] +music_volume=80 +sound_volume=58 +voice_volume=65 +preload_all_sfx=true + +[display] +fullscreen=true +autodetectres=true +resolution_x=640 +resolution_y=480 +use_hires_textures=false +lightmap_enabled=false + +[player] +use_hires_textures=false + +[game] +skip_intro_screens=false + +[joystick] +enabled=false +cancel_throw=1 +research=3 +prev=4 +next=5 +map=6 +menu=7 +logging_enabled=false + +[axis] +deadzone_threshold=7500 +button_threshold=25000 +left=0,-1 +right=0,1 +up=1,-1 +down=1,1 +drop=2,1 +aim_left=3,-1 +aim_right=3,1 +aim_up=4,-1 +aim_down=4,1 +throw=5,1 + +[keyboard] +menu=esc +throw=space +select_seed_halid=1 +select_seed_hydron=2 +select_seed_prax=3 +select_seed_feran=4 +select_seed_compost=5 +select_seed_cephad_alk=6 +select_seed_cephad_acid=7 +left=a +right=d +next=e +cancel_throw=f +map=m +prev=q +research=r +down=s +up=w +drop=x + +[mouse] +throw=mouse1 +drop=mouse3 +cancel_throw=mouse2 +prev=mousewheelup +next=mousewheeldown diff --git a/ports/wakingmars/wakingmars/libs/libSDL-1.2.so.0 b/ports/wakingmars/wakingmars/libs/libSDL-1.2.so.0 new file mode 100644 index 000000000..a0e4899da Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/libSDL-1.2.so.0 differ diff --git a/ports/wakingmars/wakingmars/libs/libalut.so.0 b/ports/wakingmars/wakingmars/libs/libalut.so.0 new file mode 100644 index 000000000..d4865a475 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/libalut.so.0 differ diff --git a/ports/wakingmars/wakingmars/libs/libfreeimage.so.3 b/ports/wakingmars/wakingmars/libs/libfreeimage.so.3 new file mode 100644 index 000000000..a9f52fca1 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/libfreeimage.so.3 differ diff --git a/ports/wakingmars/wakingmars/libs/x86/libboost_filesystem.so.1.46.1 b/ports/wakingmars/wakingmars/libs/x86/libboost_filesystem.so.1.46.1 new file mode 100644 index 000000000..c5e00e425 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/x86/libboost_filesystem.so.1.46.1 differ diff --git a/ports/wakingmars/wakingmars/libs/x86/libboost_system.so.1.46.1 b/ports/wakingmars/wakingmars/libs/x86/libboost_system.so.1.46.1 new file mode 100644 index 000000000..604f54d33 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/x86/libboost_system.so.1.46.1 differ diff --git a/ports/wakingmars/wakingmars/libs/x86/libchipmunk.so.6.1.1 b/ports/wakingmars/wakingmars/libs/x86/libchipmunk.so.6.1.1 new file mode 100644 index 000000000..f668a2556 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/x86/libchipmunk.so.6.1.1 differ diff --git a/ports/wakingmars/wakingmars/libs/x86/libfreeimage.so.3 b/ports/wakingmars/wakingmars/libs/x86/libfreeimage.so.3 new file mode 100644 index 000000000..c30480a03 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/x86/libfreeimage.so.3 differ diff --git a/ports/wakingmars/wakingmars/libs/x86/libsteam_api.so b/ports/wakingmars/wakingmars/libs/x86/libsteam_api.so new file mode 100644 index 000000000..efccaabd7 Binary files /dev/null and b/ports/wakingmars/wakingmars/libs/x86/libsteam_api.so differ diff --git a/ports/wakingmars/wakingmars/wakingmars.gptk b/ports/wakingmars/wakingmars/wakingmars.gptk new file mode 100644 index 000000000..09cdec9a8 --- /dev/null +++ b/ports/wakingmars/wakingmars/wakingmars.gptk @@ -0,0 +1,34 @@ +back = esc +start = enter + +a = mouse_left +b = space +x = mouse_right +y = space + +l1 = q +l2 = m +r1 = e +r2 = x + +up = w +down = s +left = a +right = d + +left_analog_up = w +left_analog_down = s +left_analog_left = a +left_analog_right = d + +right_analog_up = mouse_movement_up +right_analog_down = mouse_movement_down +right_analog_left = mouse_movement_left +right_analog_right = mouse_movement_right + +deadzone_mode = scaled_radial +deadzone = 2000 +deadzone_scale = 8 +deadzone_delay = 16 +mouse_scale = 512 +mouse_delay = 16 \ No newline at end of file diff --git a/ports/wakingmars/wakingmars/wakingmars_1stick.gptk b/ports/wakingmars/wakingmars/wakingmars_1stick.gptk new file mode 100644 index 000000000..bdc0d4257 --- /dev/null +++ b/ports/wakingmars/wakingmars/wakingmars_1stick.gptk @@ -0,0 +1,29 @@ +back = esc +start = enter + +a = mouse_left +b = space +x = mouse_right +y = space + +l1 = q +l2 = m +r1 = e +r2 = x + +up = w +down = s +left = a +right = d + +left_analog_up = mouse_movement_up +left_analog_down = mouse_movement_down +left_analog_left = mouse_movement_left +left_analog_right = mouse_movement_right + +deadzone_mode = scaled_radial +deadzone = 2000 +deadzone_scale = 8 +deadzone_delay = 16 +mouse_scale = 512 +mouse_delay = 16 \ No newline at end of file