Skip to content

Commit f556db3

Browse files
authored
Merge pull request #530 from Nightblade/improve-exporter-docs
improve "set up the exporter" tutorial
2 parents 379e0dd + 6b9dbcb commit f556db3

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

CONTRIBUTING.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Please provide detailed instructions on how to reproduce the bug, if possible.
2424
* Provide a build share code for a build that is affected by the bug, if possible.
2525
In the "Import/Export Build" tab, click "Generate", then "Share" and add the link to your post.
26-
26+
2727
Build share codes allow us to reproduce bugs much more quickly.
2828

2929
## Requesting features
@@ -236,6 +236,8 @@ Docker alternative:
236236
* [How skills work in Path of Building](docs/addingSkills.md)
237237

238238
## Exporting GGPK data from Path of Exile
239+
> [!WARNING]
240+
> This will not work on files from the torrent that is released before league launches, as it contains no `Data` section.
239241
240242
Note: This tutorial assumes that you are already familiar with the GGPK and its structure. [poe-tool-dev/ggpk.discussion](https://github.com/poe-tool-dev/ggpk.discussion/wiki)
241243
is a good starting point.
@@ -244,6 +246,9 @@ The `./src/Data` folder contains generated files which are created using the scr
244246
If you change any logic/configuration in `./src/Export`, you will need to regenerate the appropriate `./src/Data` files. You can do so by running the `./src/Export` scripts using the `.dat` viewer at `./src/Export/Launch.lua`:
245247

246248
### Obtain an Oodle extractor
249+
> [!TIP]
250+
> Binaries are usually available at https://github.com/zao/ooz/releases.
251+
247252
Note: For this tutorial, you will need a working installation of [Visual Studio Community](https://visualstudio.microsoft.com/vs/community/)
248253
as well as some familiarity with build tools such as [CMake](https://cmake.org).
249254
1. In Visual Studio, clone the following repository using this command:
@@ -252,13 +257,24 @@ as well as some familiarity with build tools such as [CMake](https://cmake.org).
252257
2. Configure CMake.
253258
3. Build `bun_extract_file.exe`, `libbun.dll` and `libooz.dll`.
254259

255-
### Set up the exporter
256-
1. Copy `bun_extract_file.exe`, `libbun.dll` and `libooz.dll` to `./src/Export/ggpk/`.
257-
2. Create a shortcut to `./runtime/Path{space}of{space}Building.exe` with the path to `./src/Export/Launch.lua` as first argument. You should end up with something like: `"<path to repo>\runtime\Path{space}of{space}Building.exe" "<path to repo>\src\Export\Launch.lua"`.
258-
3. Run the shortcut, and the GGPK data viewer UI will appear. If you get an error, be sure you're using the latest release of Path of Building Community.
259-
4. Paste the path to `Content.ggpk` (or, for Steam users, `C:\Program Files (x86)\Steam\steamapps\common\Path of Exile`) into the text box in the top left, and hit `Enter` to read the GGPK. If successful, you will see a list of the data tables in the GGPK file. Note: This will not work on the GGPK from the torrent file released before league launches, as it contains no `Data` section.
260-
5. Click `Scripts >>` to show the list of available export scripts. Double-clicking a script will run it, and the box to the right will show any output from the script.
261-
6. If you run into any errors, update the code in `./src/Export` as necessary and try again.
260+
### Set up the exporter
261+
1. Copy `bun_extract_file.exe`, `libbun.dll` and `libooz.dll` to `.\src\Export\ggpk\`.
262+
2. Create a shortcut to `.\runtime\Path{space}of{space}Building.exe` with the path to `.\src\Export\Launch.lua` as the first argument. You should end up with something like:
263+
264+
"<path to repo>\runtime\Path{space}of{space}Building.exe" "<path to repo>\src\Export\Launch.lua"
265+
3. Run the shortcut. "Dat View", the GGPK data viewer UI, should appear. If you get an error, be sure you're using the latest release of Path of Building Community.
266+
4. Click `Edit Sources...` to display the "New DAT Source" popup. Click `New` and enter a name.
267+
5. Paste the full path to `Content.ggpk` into the "Source from GGPK/Steam PoE path" box and hit `Enter`. For the stand-alone client, the path must include the file-name. (Do not put anything in the "Source from DAT files" box unless you have already manually unpacked the relevant files.)
268+
269+
Example input for the stand-alone client:
270+
271+
C:\Path of Exile 2\Content.ggpk
272+
Example input for Steam:
273+
274+
C:\Program Files (x86)\Steam\steamapps\common\Path of Exile 2
275+
If successful, you should see some cmd windows pop up as the files are unpacked, and then a list of the data tables in the GGPK file should appear.
276+
6. Click `Scripts >>` to show the list of available export scripts. Double-clicking a script will run it, and the box to the right will show any output from the script.
277+
7. If you run into any errors, update the code in `./src/Export` as necessary and try again.
262278

263279
## Using the inbuilt profiler
264280
The profiler is found at https://github.com/charlesmallah/lua-profiler and is written entirely in lua under a MIT license.

0 commit comments

Comments
 (0)