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 · 3 comments
Open

Add documentation to launch multiple chobbies #643

jauggy opened this issue Apr 10, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

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.

@AntlerForce AntlerForce added the documentation Improvements or additions to documentation label Nov 26, 2024
@AntlerForce
Copy link
Collaborator

AntlerForce commented Dec 10, 2024

Is there any reason to do these steps and not just use the debug launcher? https://github.com/beyond-all-reason/bar_debug_launcher

If you select BYAR Chobby $VERSION (no launcher) it will launch a new instance every time you press start.

@jauggy
Copy link
Member Author

jauggy commented Dec 12, 2024

I'll have a look later in my spare time and see if it works. Fireball mentioned to me that there were still changes he had to do to get it working with local teiserver. Will need to retest if it's still an issue.

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

No branches or pull requests

3 participants