To run locally follow these instructions
- Get last server.jar file
- Or clone the repository and use
mvn package
, then your jar is in this location:target/AIC21-Server-1.0-SNAPSHOT-jar-with-dependencies.jar
- Add a game config file
map.config
besides jar file- Its content should be similar to
map.config
above.
- Its content should be similar to
- Also add map details file (
map.json
) besidesserver.jar
- don't rename
- You can pass
map.json
file address using--read-map
arg to server
java -jar server.jar --first-team=/path/to/first/team/client --second-team=/path/to/second/team/client
--first-team
: full path to client binary or jar file for first team- use
./
if path is relative
- use
--second-team
: full path to client binary or jar file for second team
--run-manually
: run clients manually (server asks you to run a new instance when needed!)--read-map
: ifmap.json
is not at the same dir asserver.jar
, pass the address--max-agents
: maximum agents (client instances) to run--show-log
: show more output logs for server debug--first-team-name
and--second-team-name
When server finished successfully (Winner is anounced in console), use generated log.json
for graphics.
Server gui helps you generating server execution command.
- install
PySimpleGUI
package using:pip install pysimplegui
pip3 install pysimplegui
- get this file from the code:
gui/gui.py
- run:
python gui.py