You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,3 +13,43 @@ You may want to join the [SSCAIT Discord](https://discord.gg/frDVAwk), which is
13
13
For more information on Starcraft AI development, you can visit the [SSCAIT website](http://www.sscaitournament.com/). There should be enough information to get you started.
14
14
15
15
If you have any questions or feedback, feel free to create an issue on the `rsbwapi` GitHub repository.
16
+
17
+
# Usage
18
+
19
+
## Windows
20
+
You should be fine to just compile your bot. The resulting x64 executable should run fine in all current tournaments/ladders.
21
+
22
+
## Linux
23
+
Note: These instructions will create a 32-bit executable. There are no 32-bit tournaments and the result is not a DLL, so you can choose to create a 64-bit executable.
24
+
25
+
### Windows-GNU target
26
+
Install support for the target:
27
+
```
28
+
rustup target add i686-pc-windows-gnu
29
+
```
30
+
31
+
Create the file '.cargo/config.toml':
32
+
```toml
33
+
[build]
34
+
target="i686-pc-windows-gnu"
35
+
```
36
+
37
+
### Windows MSVC target
38
+
Follow the installation instructions for xwin: https://github.com/rust-cross/cargo-xwin
39
+
40
+
Create the file '.cargo/config.toml':
41
+
```toml
42
+
[build]
43
+
target="i686-pc-windows-msvc"
44
+
45
+
[target.i686-pc-windows-msvc]
46
+
linker = "lld"
47
+
rustflags = [
48
+
"-Lnative=/home/<youruser>/.xwin/crt/lib/x86",
49
+
"-Lnative=/home/<youruser/.xwin/sdk/lib/um/x86",
50
+
"-Lnative=/home/<youruser/.xwin/sdk/lib/ucrt/x86"
51
+
]
52
+
53
+
54
+
## Mac
55
+
It should work the same way as with Linux - but it's untested.
0 commit comments