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

Add documentation to launch multiple chobbies #643

Open
jauggy opened this issue Apr 10, 2024 · 1 comment
Open

Add documentation to launch multiple chobbies #643

jauggy opened this issue Apr 10, 2024 · 1 comment

Comments

@jauggy
Copy link
Member

jauggy commented Apr 10, 2024

Add documentation to launch multiple chobbies. This documentation doesn't need to be in the readme. Can be added to seperate .md file. The purpose of this is to help teiserver devs test things like balance algorithms.

Draft below:

Launching Multiple Chobbies

1. Setup a new data folder

Create a folder called data2. Create symlinks inside your data2 folder that point to engine, pool, packages, rapid, maps, games that reside in Beyond-All-Reason\data.

Windows commands for symlinks

Open a command prompt on the data2 folder and run the commands below (replacing ..\data with the path to your data folder). You may need to launch the command prompt with admin privileges.

mklink /d .\engine ..\data\engine
mklink /d .\maps ..\data\maps
mklink /d .\pool ..\data\pool
mklink /d .\games ..\data\games
mklink /d .\packages ..\data\packages
mklink /d .\rapid ..\data\rapid

Next copy springsettings.cfg and chobby_config.json from the original folder to the new folder.

2. Launch Chobby from your new data folder

Open a command prompt on the data2 folder and run the commands below but replace with your latest engine version. The latest engine version can be found in the data\engine folder.

Windows commands for launching chobby
set enginever=105.1.1-2449-gf1234a9 bar
".\engine\%enginever%\spring.exe" --isolation --write-dir . --menu rapid://byar-chobby:test
Linux commands for launching chobby
./engine/<VERSION>/spring -isolation -write-dir . -menu rapid://byar-chobby:test

You can repeat these steps and create multiple data folders and be able to launch multiple chobbies.

@geekingfrog
Copy link

Couple of points:

Inside your Beyond All Reason folder
that's not required, the folder can be anywhere on your disk.

I think a "better" linux command would be

./engine/<VERSION>/spring -isolation -write-dir . -menu rapid://byar-chobby:test

The version bit isn't set, but it's fairly straightforward to figure out since it's just a folder name after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants