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.configbesides jar file- Its content should be similar to
map.configabove.
- Its content should be similar to
- Also add map details file (
map.json) besidesserver.jar- don't rename
- You can pass
map.jsonfile address using--read-maparg 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.jsonis 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-nameand--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
PySimpleGUIpackage using:pip install pysimpleguipip3 install pysimplegui
- get this file from the code:
gui/gui.py - run:
python gui.py