Skip to content

Commit 974b028

Browse files
committed
Bump version to 2.4.0, update readme, logs
1 parent 222b73b commit 974b028

4 files changed

Lines changed: 19 additions & 22 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_policy(SET CMP0141 NEW)
33
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<CONFIG:Debug>,EditAndContinue,ProgramDatabase>" CACHE STRING "MSVC debug information format")
44
project(
55
NavKit
6-
VERSION 2.3.1
6+
VERSION 2.4.0
77
DESCRIPTION "An app to create NAVP and AIRG files for use with Hitman: World of Assassination"
88
LANGUAGES CXX)
99
set(CMAKE_CXX_STANDARD 20)

README.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,21 @@ You will also need to install the latest Visual C++ Redistributable from https:/
99

1010
Functions available are loading and saving Navp and Navp.json, loading Airg and Airg.json, loading and saving Obj, scene extraction, building Navp, building Airg and viewing navp in game.
1111

12-
# View Navp in game
13-
1. Open Hitman and launch a mission.
14-
1. Open NavKit and load a Navp file for that mission.
15-
1. Click the `Send Navp` button in NavKit.
16-
1712
# Full generation of Navp and Airg (Scene Extraction, Navp generation, Airg generation)
18-
1. Download the latest release of NavKit (https://github.com/glacier-modding/NavKit/releases/latest) and extract it to any folder (e.g., C:\NavKit)
19-
1. Install ZHMModSDK (https://github.com/OrfeasZ/ZHMModSDK/releases/latest)
20-
1. Install Blender (tested with 3.4 https://download.blender.org/release/Blender3.4/)
13+
1. Download the latest release of NavKit (https://github.com/glacier-modding/NavKit/releases/latest) and run the installer
14+
1. Install ZHMModSDK (Usually you will want to use https://github.com/OrfeasZ/ZHMModSDK/releases/latest, but for NavKit version 2.4.0 you will want to use the SDK artifact from this build: https://github.com/dbierek/ZHMModSDK/actions/runs/20363060518)
15+
1. Install Blender (tested with 3.4 and 4.3 https://download.blender.org/release/Blender4.3/)
2116
1. Install the latest Visual C++ Redistributable from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-140. Make sure you get the X64 version.
2217
1. Start Hitman and enter a mission
2318
1. Open NavKit
24-
1. On the "Extract menu" of NavKit, set your file paths:
19+
1. On the "Settings > NavKit" menu of NavKit, set your file paths:
2520
1. Hitman 3 directory (e.g., C:\Program Files (x86)\Steam\steamapps\common\HITMAN 3)
2621
1. Output directory (e.g., C:\NavKit\Output)
27-
1. Blender Executable (e.g. C:\Program Files\Blender Foundation\Blender 3.4\blender.exe)
28-
1. On the "Extract menu" of NavKit, click the "Extract from game" button. It may take up to around 10 minutes depending on the complexity of the mission being extracted, and whether the alocs have already been extracted from the rpkg files.
29-
1. When the OBJ finishes generating, you can save it to an OBJ file so you can load it later if you'd like by clicking the "Save Obj" button on the "Obj menu"
30-
1. On the "Navp menu" click the "Build Navp from Obj" button
31-
1. On the "Navp menu" click the "Save Navp" button and choose where to save the navp file
32-
1. On the "Airg menu" click the "Build Airg from Navp" button
33-
1. On the "Airg menu" click the "Save Airg" button and choose where to save the airg file
22+
1. Blender Executable (e.g. C:\Program Files\Blender Foundation\Blender 4.3\blender.exe)
23+
1. On the "Extract menu" of NavKit, click the "Extract scene from game and build all" button. It may take up to around 10 minutes depending on the complexity of the mission being extracted, and whether the alocs have already been extracted from the rpkg files.
24+
1. When the OBJ finishes generating, you can save it to an OBJ file so you can load it later if you'd like by clicking "File > Save Obj" on the menu bar
25+
1. When the NAVP finishes generating, click on "File > Save Navp" on the menu bar
26+
1. When the AIRG finishes generating, click on "File > Save Airg" on the menu bar
3427

3528
# Adding navp and airg to a new scene
3629
1. Include the .navp and .airg files in the chunk folder for your brick
@@ -92,16 +85,17 @@ Functions available are loading and saving Navp and Navp.json, loading Airg and
9285
# How NavKit generates Navp and Airg files
9386
NavKit performs the following series of steps to be able to generate Navp files.
9487
1. Connect to the Editor server of the running Hitman game, and issue commands to: rebuild the entity tree, find the scene's ZGeomEntities, PFBox entities, and PFSeedPoint entities and send their data back to NavKit, where they are saved to `output.nav.json` in the specified output folder.
95-
1. Extract all the necessary Aloc files from the rpkg files to the `aloc` folder of the specified output folder.
96-
1. Open the blender cli and run `glacier2obj.py` to generate an obj by importing all the Aloc files, copy them the number if times they are used in the scene, and transform each one according to what was sent by the game, and save it to `output.obj` in the specified output folder.
88+
1. Extract all the necessary Aloc or Prim files from the rpkg files to the `aloc` or `prim` folder of the specified output folder using glacier2obj.exe (A rust program included in the installer).
89+
1. Open the blender cli and run the `glacier2obj.py` script to generate an obj by importing all the Aloc or Prim files, copy them the number if times they are used in the scene, and transform each one according to what was sent by the game, and save it to `output.obj` in the specified output folder.
9790
1. Load `output.obj` from the specified output folder or another specified Obj file.
98-
1. At this point, the build Navp section of the menu will be available, and you can customize the parameters, then press build to call Recast to generate the Navmesh. Then you can save the Navmesh as a Navp or Navp.json file by pressing the Save Navp button.
91+
1. At this point, the build Navp section of the menu will be available, and you can customize the parameters with "Settings > Recast Settings" on the menu bar, then press "Build > Build Navp" on the menu bar to call Recast to generate the Navmesh. Then you can save the Navmesh as a Navp or Navp.json file by pressing the Save Navp button.
9992
1. At this point, the build Airg section of the menu will be available, and you can customize the parameters, then press build to generate the Airg.
10093
# Disclaimer
10194
*NavKit is still a work in progress, and there may be glitches or issues with Obj, Navp, or Airg generation in the current version. If you encounter any problems while running NavKit please create an issue on this GitHub repo.*
10295
# Future enhancements
10396
* Faster Scene generation
10497
* Linux and macOS support
98+
* More issues on the Issues tab
10599
# Building instructions (CLion or Visual Studio)
106100
1. Clone this repository with the '--recurse-submodules' option
107101
1. Open in Visual Studio or CLion
@@ -111,6 +105,7 @@ NavKit performs the following series of steps to be able to generate Navp files.
111105
1. Then change back to the main directory and run
112106
`cmake --preset x64-debug`
113107
# MSI Building instructions
108+
You shouldn't need to build the MSI yourself, but here are the instructions:
114109
1. Install WiX 6.0 and add its bin/x64 folder to your PATH
115110
1. Run the installer target. For CLion there is an included run configuration that should automatically be added called Build MSI that runs this command:
116111
`cmake --build . --target installer --config Release`
@@ -124,6 +119,7 @@ See [Rider Instructions](docs/rider_instructions.md)
124119
Anthony Fuller
125120
Atampy26
126121
Dafitius
122+
Dog
127123
Dribbleondo
128124
Invalid
129125
IOI
@@ -139,5 +135,6 @@ Pavle
139135
Piepieonline
140136
Rdil
141137
Recast team
138+
Someone Else
142139
Voodoo Hillbilly
143140
And everyone at the Glacier 2 discord!

bin/glacier2obj.exe

-512 Bytes
Binary file not shown.

include/NavKit/NavKitConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#define NavKit_VERSION_MAJOR "2"
2-
#define NavKit_VERSION_MINOR "3"
3-
#define NavKit_VERSION_PATCH "1"
2+
#define NavKit_VERSION_MINOR "4"
3+
#define NavKit_VERSION_PATCH "0"

0 commit comments

Comments
 (0)