angaityel / wotr-re

Launch War of the Roses game without backend
15 stars 2 forks source link

War of the Roses Launch Fix

Launch War of the Roses game without backend.

Examples of how it should look like:

"C:\Program Files (x86)\Steam\steamapps\common\War of the Roses\wotr.exe" %command%
"D:\Games\SteamLibrary\steamapps\common\War of the Roses\wotr.exe" %command%

And lobby visibility:

You can add these commands to game launch options after %command%.

Should look something like this:

"your path to wotr.exe" %command% -lobbyname "my super-duper server" -lobbymaxmembers 8

Or you can create a .bat file in game folder with:

wotr.exe -bundle-dir bundle -lobbyname "my super-duper server" -lobbymaxmembers 8

And launch game through .bat file.

Dedicated server

[!WARNING] Server is VAC secured

Create steam_appid.txt in game folder with wotr appid 42160

Check server_settings.ini and map_rotation.ini first.

Maps and available modes:

St_Albans - town_02 - tdm, con, battle, ass
Mortimers_Cross - village_02 - tdm, con, battle, ass
Bamburgh_Castle - castle_02 - tdm, con, battle, ass
Clitheroe_Forest - forest_01 - tdm, con, battle, ass
London_Tournament - tournament_01 - tdm, battle
Edgecote_Moor - moor_01 - tdm, con, battle
Barnet - field_01 - tdm, con, battle
Wakefield - wakefield_01 - tdm, con, battle
Towton - towton_01 - tdm, con, battle
Ravenspurn - ravenspurn_01 - tdm, con, battle
Greenwood - greenwood_01 - tdm, battle
Wakefield - wakefield_02 - ass

To launch (number = server_port from server_settings.ini - 10):

wotr_server.exe -bundle-dir bundle -no-rendering -ini dedicated_server_settings -server_server_port 27020

"Backend"

Add one of the commands to the server launch options:

-localbackend

Server will save stats for each player locally (gamefolder/stats).

Cons: each server/group of servers will have different stats.

or:

-onlinebackend 127.0.0.1:27844

Use wotr_mini_backend.py (http server with sqlite database) from repo as an improvised backend.

Server will save stats for each player online (if someone would host it, can be used locally too).

Pros: same stats for all servers.

Cons: centralized, basically a "proof of concept", can't say if it's a good idea to use it.

Build

Use this version of LuaJIT for compiling lua files:

https://github.com/LuaJIT/LuaJIT/releases/tag/v2.0.0-beta10

To create patch files, use:

https://github.com/angaityel/bundle-explorer