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: Trigger Rally (Racing) #814

Merged
merged 5 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions ports/triggerrally/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Notes
Thanks to [Jasmine Langridge and Richard Langridge & Team](https://trigger-rally.sourceforge.io/) for making this awesome game!

## Controls

| Button | Action |
|--|--|
|DPAD| Steer|
|A| Accelerate|
|B| Brake|
|Y| Handbrake|
|X| Change Camera View|
|L1 | Map|
|L2| Toggle UI|
|R1 | Left Mouse|
|R2 | Recover Car|
|L3 | Pause|

## Compile

```shell
git clone https://github.com/Cebion/trigger-rally_pm.git
cd trigger-rally
cd src
make
```
47 changes: 47 additions & 0 deletions ports/triggerrally/Trigger Rally.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/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

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

GAMEDIR=/$directory/ports/triggerrally
CONFDIR="$GAMEDIR/conf"
BINARY=trigger-rally

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

bind_directories ~/.local/share/trigger-rally $GAMEDIR/conf/.local/share/trigger-rally

cd $GAMEDIR

if [ -f "${controlfolder}/libgl_${CFW_NAME}.txt" ]; then
source "${controlfolder}/libgl_${CFW_NAME}.txt"
else
source "${controlfolder}/libgl_default.txt"
fi

$GPTOKEYB "$BINARY" -c ./$BINARY.gptk &
pm_platform_helper "$GAMEDIR/$BINARY"
./$BINARY

pm_finish
14 changes: 14 additions & 0 deletions ports/triggerrally/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<name>Trigger Rally</name>
Cebion marked this conversation as resolved.
Show resolved Hide resolved
<path>Trigger Rally.sh</path>
<desc>Trigger is a free 3D rally car racing game. Fun for all the family!
Trigger comes with a number of challenges where you have to race several tracks to finish each challenge.</desc>
<releasedate>20040101T000000</releasedate>
<developer>Trigger-Rally Team</developer>
<publisher>Self-Published</publisher>
<genre>Racing</genre>
<image>./triggerrally/screenshot.png</image>
</game>
</gameList>
40 changes: 40 additions & 0 deletions ports/triggerrally/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"version": 3,
"name": "triggerrally.zip",
"items": [
"Trigger Rally.sh",
"triggerrally"
],
"items_opt": null,
"attr": {
"title": "Trigger Rally",
"porter": [
"Cebion"
],
"desc": "Trigger is a free 3D rally car racing game. Fun for all the family!\nTrigger comes with a number of challenges where you have to race several tracks to finish each challenge.",
"desc_md": null,
"inst": "Ready to run!\nMouse is invisible but can be navigate trough hovering over the menu items.",
"inst_md": null,
"genres": [
"racing"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
},
"status": {
"source": "Unknown",
"md5": null,
"status": "Installed"
},
"files": {
"port.json": "triggerrally/port.json",
"Trigger Rally.sh": "Trigger Rally.sh",
"triggerrally": "triggerrally"
}
}
Binary file added ports/triggerrally/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading