Skip to content

Commit

Permalink
Re-enable online/multiplayer for beyond-all-reason. The desync issues
Browse files Browse the repository at this point in the history
have disappeared with the recent fixes (thanks to great work with
upstream from fabien@!). To re-enable, the launch script needs to
re-add the server address to chobby_config.json AND also update a
secondary file (IGL_data.lua). Solution by fabien@. Tested by me with
spectating active online matches.
  • Loading branch information
rfht committed Feb 25, 2025
1 parent 8b2fbc8 commit f0ca827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions games/recoil-rts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ COMMENT = real-time strategy game engine for Beyond All Reason

V = 2025.01.6
PKGNAME = recoil-rts-${V}
REVISION = 0

DIST_TUPLE += github beyond-all-reason spring ${V} .
DIST_TUPLE += github mikke89 RmlUi \
Expand Down
13 changes: 9 additions & 4 deletions games/recoil-rts/files/beyond-all-reason
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ if [ $(ulimit -Sd) -lt ${DATASIZE} ]; then
[ $? -eq 0 ] || exit
fi

# fix setup, go online again
if [[ -f ${CONFIG_FILE} ]] &&
! grep -q server4.beyondallreason.info ${CONFIG_FILE}; then
rm ${CONFIG_FILE}
sed -i '/serverAddress/d' ${GAME_DIR}/LuaMenu/Config/IGL_data.lua
fi

# setup
# XXX: empty server address to disallow multiplayer while desyncs
# once solved, set address to "server4.beyondallreason.info"
[[ -d ${GAME_DIR} ]] || mkdir -p ${GAME_DIR}
[[ -f ${CONFIG_FILE} ]] || cat > ${CONFIG_FILE} <<EOF
{
"server": {
"address": "",
"address": "server4.beyondallreason.info",
"port": 8200,
"protocol": "spring",
"serverName": "BAR"
Expand All @@ -33,7 +38,7 @@ fi
}
EOF
[[ -f ${SETTINGS_FILE} ]] || cat > ${SETTINGS_FILE} <<EOF
RapidTagResolutionOrder = repos-cdn.beyondallreason.dev;repos.beyondallreason.dev
RapidTagResolutionOrder=repos-cdn.beyondallreason.dev;repos.beyondallreason.dev
EOF

# update
Expand Down

0 comments on commit f0ca827

Please sign in to comment.