-
Notifications
You must be signed in to change notification settings - Fork 64
Game Customization
Gajo Petrovic edited this page Mar 21, 2019
·
3 revisions
Chobby can be used in two ways:
- As a generic lobby (Spring as platform) that works in a similar manner like most traditional lobbies (SpringLobby, SWL, etc.)
- As a customized lobby that can support game-specific functionalities and look&feel.
To create a customized lobby, it is necessary to do the following:
- Create a custom game config within Chobby. Currently they should be included to the main Chobby repo with a pull request.
- A configuration file which determines what game configuration and what lobby protocol to use. This file is specified in
chobby_config.json
. Note: This configuration file will be read only once, on first start of Chobby. After that whatever setting users set will be used. This means if you make any changes, for them to take effect, you should remove the DATADIR/LuaMenu folder.
Example chobby_config.json
are given below.
EvoRTS:
{
"server" : {
"address" : "springrts.com",
"port" : 8200,
"protocol" : "spring",
"serverName" : "Spring"
},
"game" : "evorts"
}
Spring as platform:
{
"server" : {
"address" : "springrts.com",
"port" : 8200,
"protocol" : "spring",
"serverName" : "Spring"
},
"game" : "generic"
}
ZK:
{
"server" : {
"address" : "zero-k.info",
"port" : 8200,
"serverName" : "Zero-K",
"protocol" : "zks"
},
"game" : "zk"
}
- The third step involves setting up a launcher application that is used to distribute the lobby with all the required dependencies.
It consists of 3 steps:
- Install the spring-launcher Github app, which will register the repo with the distribution system and once builds are created, they'll be available for download here: https://spring-launcher.ams3.digitaloceanspaces.com/
- Create a
config.json
file in thedist_cfg
folder (example: https://github.com/gajop/test-repo/blob/master/dist_cfg/config.json). Be sure to specify the necessary downloads (usually your game and Chobby) - Move the previously created
chobby_config.json
file to thefiles
subdirectory. This will tell Chobby what server to connect to and what the UI should be like (example: https://github.com/gajop/test-repo/blob/master/dist_cfg/files/chobby_config.json)