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: Waking Mars #54

Merged
merged 3 commits into from
Feb 7, 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
20 changes: 20 additions & 0 deletions ports/wakingmars/README.md
Original file line number Diff line number Diff line change
@@ -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 |
66 changes: 66 additions & 0 deletions ports/wakingmars/Waking Mars.sh
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions ports/wakingmars/port.json
Original file line number Diff line number Diff line change
@@ -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": []
}
}
Binary file added ports/wakingmars/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions ports/wakingmars/wakingmars/LICENSE_BOX86
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 20 additions & 0 deletions ports/wakingmars/wakingmars/LICENSE_GL4ES
Original file line number Diff line number Diff line change
@@ -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.
22 changes: 22 additions & 0 deletions ports/wakingmars/wakingmars/LICENSE_SDL12-COMPAT
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (C) 1997-2023 Sam Lantinga <[email protected]>

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.
Binary file added ports/wakingmars/wakingmars/box86/box86
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
72 changes: 72 additions & 0 deletions ports/wakingmars/wakingmars/conf/WakingMars/UserSettings.ini
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
Binary file added ports/wakingmars/wakingmars/libs/libalut.so.0
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.
34 changes: 34 additions & 0 deletions ports/wakingmars/wakingmars/wakingmars.gptk
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions ports/wakingmars/wakingmars/wakingmars_1stick.gptk
Original file line number Diff line number Diff line change
@@ -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
Loading