Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Creating a script that creates a AI vs AI skirmish game

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
2/1/2019 2:45:49 AMAUrankAdminGoogleFrog before revert after revert
Before After
1 @gajop hasn't said how to get a script or how to even run one. I'll do everything here in terms of the Steam root folder for Zero-K. 1 @gajop hasn't said how to get a script or how to even run one. I'll do everything here in terms of the Steam root folder for Zero-K.
2 * "_script.txt" contains the script for your most recently run game, so you can use the menu UI to create the script that you want. 2 * "_script.txt" contains the script for your most recently run game, so you can use the menu UI to create the script that you want.
3 * Run "engine/win32/104.0.1-287-gf7b0fcc/spring.exe" with your script. To do so you will need to copy the required file from each of from "games" and "maps" to "engine/win32/104.0.1-287-gf7b0fcc/games" and "engine/win32/104.0.1-287-gf7b0fcc/maps" respectively. You may also want to copy settings, such as springsettings.cfg and luaUI. 3 * Run "engine/win32/104.0.1-287-gf7b0fcc/spring.exe" with your script. To do so you will need to copy the required file from each of from "games" and "maps" to "engine/win32/104.0.1-287-gf7b0fcc/games" and "engine/win32/104.0.1-287-gf7b0fcc/maps" respectively. You may also want to copy settings, such as springsettings.cfg and luaUI.
4 \n 4 \n
5 What you really want to do is run "engine/win32/104.0.1-287-gf7b0fcc/spring.exe" with your script as an argument and the root Zero-K folder set as the working directory. I attempted two methods of setting working directory (power shell and the shortcut creation UI) and both failed. This is approximately how the Zero-K wrapper works, so something along these lines should be possible. For now you can simply move the map and game. 5 What you really want to do is run "engine/win32/104.0.1-287-gf7b0fcc/spring.exe" with your script as an argument and the root Zero-K folder set as the working directory. I attempted two methods of setting working directory (power shell and the shortcut creation UI) and both failed. This is approximately how the Zero-K wrapper works, so something along these lines should be possible. For now you can simply move the map and game.
6 \n 6 \n
7 You were looking in the wrong place for modifying the skirmish lobby. 7 You were looking in the wrong place for modifying the skirmish lobby.
8 * Infrastructure runs the website, database, lobby server, and creates the wrapper. 8 * Infrastructure runs the website, database, lobby server, and creates the wrapper.
9 * https://github.com/ZeroK-RTS/Chobby runs inside Spring, which is launched by the wrapper. It is the lobby. It communicates with other entities through Spring lua interfaces, wrapper messages, and ports. 9 * https://github.com/ZeroK-RTS/Chobby runs inside Spring, which is launched by the wrapper. It is the lobby. It communicates with other entities through Spring lua interfaces, wrapper messages, and ports.
10 * You can get a modifiable version of the lobby in three steps: 10 * You can get a modifiable version of the lobby in three steps: https://zero-k. info/mediawiki/index. php?title=Zero-K:Developing#Modifying_lobby_menu
11 https://zero-k.info/mediawiki/index.php?title=Zero-K:Developing#Modifying_lobby_menu
12 \n 11 \n
13 Also, https://github.com/rlcevg/CircuitAI is the repository for the main AI that comes with ZK. There are others, in other languages, that can be found if you ask around. 12 Also, https://github.com/rlcevg/CircuitAI is the repository for the main AI that comes with ZK. There are others, in other languages, that can be found if you ask around.
14 \n 13 \n
15 \n 14 \n