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
+38-9Lines changed: 38 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,29 +5,58 @@ A diablo 2 1.13C installation is required, but this API should work for all vers
5
5
6
6
## Installation
7
7
8
-
Download & install vcpkghttps://github.com/microsoft/vcpkg (don't forget to add to path)
8
+
First install [vcpkg](https://github.com/microsoft/vcpkg)
9
9
10
-
Dependencies should now be installed and included for you when building from source.
10
+
### Windows
11
+
```
12
+
git clone https://github.com/microsoft/vcpkg
13
+
.\vcpkg\bootstrap-vcpkg.bat
14
+
```
15
+
16
+
### Unix
17
+
```
18
+
git clone https://github.com/microsoft/vcpkg
19
+
.\vcpkg\bootstrap-vcpkg.sh
20
+
```
21
+
22
+
The binary will be located here `.\vcpkg\vcpkg`, make sure to include the absolute path to this in your system path environment variable and restart your shell. Once done setup a vcpkg integration by running:
23
+
24
+
```
25
+
vcpkg integrate install
26
+
```
27
+
28
+
If you are using Visual Studio to build this project, vcpkg dependencies will be automatically installed and included to this repository. If not, you will need to manually fetch and include the following packages:
11
29
12
-
If required, manually install and include these dependences:
13
30
```
14
31
vcpkg install boost-uuid
15
32
vcpkg install restinio
16
33
vcpkg install json-dto
17
34
```
18
35
36
+
You should now be able to build d2mapapi.sln
37
+
19
38
## Usage
20
39
21
-
d2mapapi.exe DIABLO2_PATH \[ADDRESS_OVERRIDE\]
40
+
Syntax:
41
+
```
42
+
d2mapapi.exe {pathToDiablo2} [optionalArguments]
43
+
```
44
+
45
+
#### Optional Arguments
46
+
* -i or --ip
47
+
specify an IP address to use instead of localhost. ex: `-i 192.168.0.1` OR `--ip=192.168.0.1`";
48
+
* -p or --port
49
+
specify n port address to use instead of the default 8080. ex: `-p 8080` OR `--port=8080`";
0 commit comments