Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
afa6da0
[ResourceLib] Add initial support for KNT (007 First Light)
OrfeasZ May 27, 2026
c5b3501
[ResourceLib] Fix build (maybe)
OrfeasZ May 27, 2026
dfe545f
[ResourceLib] Fix build (actually) and bump clang to v22
OrfeasZ May 27, 2026
2a36732
[ResourceLib] Add KWOR, TDAT, and TDPK support for KNT
OrfeasZ May 27, 2026
524cb50
[ResourceLib] Update C# wrapper and README
OrfeasZ May 27, 2026
2681452
[ResourceTool] Fix KNT support
OrfeasZ May 29, 2026
1758b19
[ResourceTool] Fix Linux library loading support
OrfeasZ May 29, 2026
8eab101
[CodeGen] Log to disk as well
OrfeasZ May 29, 2026
b5e0a01
[CodeGen] Possibly fix 007 codegen missing types
OrfeasZ May 29, 2026
fa67c87
[CodeGen] Further codegen fixes for 007
OrfeasZ May 29, 2026
6c8c218
[CodeGen] Further codegen fixes for 007
OrfeasZ May 29, 2026
f8b8336
[CodeGen] Further codegen fixes for 007
OrfeasZ May 29, 2026
2a71a8d
[CodeGen] Add json type dump and remove manual struct packing
OrfeasZ May 29, 2026
1639aee
[CodeGen] Skip generation of some more non-data classes
OrfeasZ May 29, 2026
35ff0f2
[CodeGen] Further improve codegen
OrfeasZ May 29, 2026
73eb9b4
[CodeGen] More codegen fixes
OrfeasZ May 29, 2026
0c49be3
[CodeGen] More codegen fixes
OrfeasZ May 29, 2026
57c5ecf
[ResourceLib] Update generated KNT code
OrfeasZ May 29, 2026
40edf06
[ResourceLib] Further codegen fixes
OrfeasZ May 30, 2026
ebd96ca
[ResourceLib] Fix TArray<ZResourceID> parsing & generation for KNT
OrfeasZ May 30, 2026
0867f1e
[ResourceLib] Fix ENUM for KNT
OrfeasZ May 30, 2026
4e19217
[ResourceLib] Disable broken KNT types
OrfeasZ May 30, 2026
099c155
[ResourceLib] Update generated code
OrfeasZ May 30, 2026
4353e79
[CodeGen] Emit SBehavior_ and SCondition_ types to json, use typeinfo…
OrfeasZ May 30, 2026
fdc6f36
[CodeGen] More HM3 tweaks
OrfeasZ May 30, 2026
e3a121e
[ResourceLib] Update HM3 bindings
OrfeasZ May 30, 2026
feb9a17
Add resource fiddler tool
OrfeasZ May 30, 2026
8fcec12
[CodeGen] Fix crash and improve json generation
OrfeasZ May 30, 2026
4878e8e
Oopsie
OrfeasZ May 30, 2026
5ec1c53
Should go to bed
OrfeasZ May 30, 2026
afbb33a
[CodeGen] Emit further types on JSON
OrfeasZ Jun 3, 2026
eaca366
[ResourceFiddler] Add pin JSON dumping
OrfeasZ Jun 4, 2026
95e298b
[ResourceLib] Update generated code for HM2016 and HM2
OrfeasZ Jun 4, 2026
51cc0f5
[ResourceLib] Remove broken SAudioDynamicSequenceItemData from HM2016
OrfeasZ Jun 4, 2026
27778a2
[CodeGen] Emit fields with no typeinfo to JSON as type null
OrfeasZ Jun 4, 2026
a884de8
[ResourceLib] Update bindings for 3.270.0
AnthonyFuller Jun 6, 2026
dc59925
[ResourceLib] Add custom properties for 3.270.0
AnthonyFuller Jun 6, 2026
e9c0b41
Merge pull request #58 from AnthonyFuller/h3-3-270-0-knt
OrfeasZ Jun 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: 17
version: 22
platform: x64

- name: Generate projects
Expand All @@ -144,8 +144,8 @@ jobs:
cd _build
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=clang++-17 \
-DCMAKE_C_COMPILER=clang-17 \
-DCMAKE_CXX_COMPILER=clang++-22 \
-DCMAKE_C_COMPILER=clang-22 \
..

- name: Build
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CodeGen

on:
push:
branches-ignore:
- master
workflow_dispatch:

jobs:
build_codegen:
name: Build CodeGen (Windows)
runs-on: [ windows-latest ]

steps:
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup VS environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Generate projects
run: |
mkdir _build
cd _build
cmake -G Ninja `
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
-DCMAKE_CXX_COMPILER=cl `
-DCMAKE_C_COMPILER=cl `
..

- name: Build CodeGen and PropertyBundler
run: |
cmake --build _build --target CodeGen --target PropertyBundler -j2

- name: Copy CodeGen artifacts
run: |
cd _build
mkdir _codegen
Copy-Item CodeGen.exe -Destination _codegen/
Copy-Item CodeGen.pdb -Destination _codegen/
Copy-Item CodeGenLib.dll -Destination _codegen/
Copy-Item CodeGenLib.pdb -Destination _codegen/
Copy-Item PropertyBundler.exe -Destination _codegen/
Copy-Item PropertyBundler.pdb -Destination _codegen/
Copy-Item ../LICENSE -Destination _codegen/

- name: Archive CodeGen
uses: actions/upload-artifact@v4
with:
name: CodeGen-win-x64
path: |
_build/_codegen/*
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,13 @@ FodyWeavers.xsd
/Tools/NavViewer/Faces.js
/Tools/NavViewer/Surfaces.js
/Tools/NavViewer/AIGrids.js
_build/
_build/

# Nix / flake dev shell
/.direnv/
/.nix-cargo-home/
/.nix-rustup-home/
/result
/result-*
.rustc_info.json
.future-incompat-report.json
2 changes: 2 additions & 0 deletions Libraries/CodeGenLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ add_library(CodeGenLib SHARED
Src/ZHMCommon.h
Src/CodeGen.h
Src/CodeGen.cpp
Src/Log.h
Src/Log.cpp
Src/HMAData.cpp
Src/HMAData.h
Src/RTTI/Image.h
Expand Down
Loading
Loading