2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-06-25 13:51:58 +00:00
Commit Graph

2297 Commits

Author SHA1 Message Date
Jan
37e5e940b0 refactor: update IW5 loading code for x64 support 2025-06-24 17:08:45 +01:00
Jan
f70932684c fix: fix single pointer leaf structs that have non-matching cross platform structure 2025-06-24 17:08:45 +01:00
Jan
1736f38d78 refactor: update T5 loading code for x64 support 2025-06-23 18:29:04 +01:00
Jan
def9da6ae5 Merge pull request #458 from Laupetin/fix/x86-ff-loading
fix: x86 ff loading broken due to x64 updates
2025-06-22 23:05:10 +02:00
Jan
dd9b0915d9 fix: wrong XQuat structs for iw3,t5 2025-06-22 21:38:11 +01:00
Jan
377ef5ca5c fix: not passing correct zone ptr to content loader 2025-06-22 21:21:07 +01:00
Jan
f5a823dc9e Merge pull request #457 from Laupetin/dependabot/submodules/thirdparty/json-b451735
chore(deps): bump thirdparty/json from `568b708` to `b451735`
2025-06-21 16:54:20 +02:00
Jan
95b617a335 Merge pull request #456 from Laupetin/dependabot/submodules/thirdparty/eigen-6de0515
chore(deps): bump thirdparty/eigen from `d228bcd` to `6de0515`
2025-06-21 16:54:08 +02:00
Jan
f3b266ebe9 Merge pull request #455 from Laupetin/dependabot/submodules/thirdparty/catch2-416b075
chore(deps): bump thirdparty/catch2 from `3013cb8` to `416b075`
2025-06-21 16:53:56 +02:00
d36159b70b chore(deps): bump thirdparty/json from 568b708 to b451735
Bumps [thirdparty/json](https://github.com/nlohmann/json) from `568b708` to `b451735`.
- [Release notes](https://github.com/nlohmann/json/releases)
- [Commits](568b708fd4...b451735fe7)

---
updated-dependencies:
- dependency-name: thirdparty/json
  dependency-version: b451735fe7bb3283336f934b3f6cd3f484f73649
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-20 22:19:00 +00:00
69822b39a1 chore(deps): bump thirdparty/eigen from d228bcd to 6de0515
Bumps [thirdparty/eigen](https://gitlab.com/libeigen/eigen) from `d228bcd` to `6de0515`.
- [Release notes](https://gitlab.com/libeigen/eigen/tags)
- [Commits](d228bcdf8f...6de0515fa6)

---
updated-dependencies:
- dependency-name: thirdparty/eigen
  dependency-version: 6de0515fa6b923a8fc1436e3b8c6f2a4ce565484
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-20 22:18:57 +00:00
d93d5e51fd chore(deps): bump thirdparty/catch2 from 3013cb8 to 416b075
Bumps [thirdparty/catch2](https://github.com/catchorg/Catch2) from `3013cb8` to `416b075`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](3013cb897b...416b075211)

---
updated-dependencies:
- dependency-name: thirdparty/catch2
  dependency-version: 416b0752112e0e5f9a8568e3e18baace15de37a7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-20 22:18:54 +00:00
Jan
45cb454d63 Merge pull request #445 from Laupetin/feature/x64-zcg-loading
refactor: load iw4 x86 fastfiles in x64 environment
2025-06-19 22:12:22 +02:00
2230efbd27 chore: make xquat and xquat2 structs to improve handling from zcg 2025-06-19 20:45:19 +01:00
Jan
80558af9a1 fix: accessing freed memory when writing gltf inverseBindMatrix 2025-06-19 18:59:27 +01:00
Jan
818a8d7459 fix: Loading String arrays for x86 2025-06-19 18:59:27 +01:00
Jan
d612d8f1a6 fix: WavWriter outputting invalid files when compiled as x64 2025-06-19 18:59:27 +01:00
Jan
d30e2e6532 chore: fix annoying IW4 cross-type pointer reusage with dirty hack
The game reuses pointer across different types as long as bytes and size matches
This leads to non-pointer and pointer types being reused
To fix this loading code now handles block memory offsets by nulling
and block offsets to non-block data with pointing to raw block data
The behaviour only seems to realistically happen on nulled memory
2025-06-19 18:59:26 +01:00
Jan
667d76e50e wip: change redirect pointer to lookup 2025-06-19 18:59:26 +01:00
Jan
788bf1cc5d chore: make allocating redirect entry work with ptr directly 2025-06-19 18:59:25 +01:00
Jan
3c16da006c chore: make sure that pointer resolving via lookup always resolves something 2025-06-19 18:59:25 +01:00
Jan
bd9a680bb0 fix: pointer lookup for assets that should be reusable 2025-06-19 18:59:24 +01:00
Jan
930867f07f fix: properly load matching structure dynamic array inside non-matching structure embed 2025-06-19 18:59:24 +01:00
Jan
884ad57bf4 fix: dynamic fill loading missing conditions on unions 2025-06-19 18:59:24 +01:00
Jan
fe1bbce7aa fix: do not resolve pointers like alias for x64 2025-06-19 18:59:23 +01:00
Jan
43be997a22 fix: doing wrong alignment on dynamic filling 2025-06-19 18:59:23 +01:00
Jan
ee027502ca fix: Make LoadPtrArray reusable methods for x64 2025-06-19 18:59:23 +01:00
Jan
333cbed5f9 fix: fill structs in runtime block that are not matching structure 2025-06-19 18:59:22 +01:00
Jan
4ec5b52b0b fix: filling x64 structs with dynamic array size 2025-06-19 18:59:22 +01:00
Jan
e035e5deb7 fix: try fixing alias resolving via redirection for x64 for real 2025-06-19 18:59:22 +01:00
Jan
e120d01697 fix: dynamic array reallocation for x64 2025-06-19 18:59:21 +01:00
Jan
967a378b4e chore: temporarly adjust pointer insertion 2025-06-19 18:59:21 +01:00
Jan
f517130ef0 fix: not properly inserting pointer in x64 zone loading 2025-06-19 18:59:21 +01:00
Jan
6c8ec53821 fix: make x64 modified loading code compatible with x86 again 2025-06-19 18:59:20 +01:00
Jan
03ccede91c refactor: implement base x64 fastfile loading for iw4 2025-06-19 18:59:20 +01:00
Jan
78d8fba6f8 refactor: make ZoneInputStream a reference in zone loading 2025-06-14 00:39:58 +01:00
f6d7831e6e chore: implement base skeleton for architecture independent zone loading 2025-06-14 00:39:55 +01:00
Jan
280f74d4dd Merge pull request #451 from Laupetin/dependabot/submodules/thirdparty/json-568b708
chore(deps): bump thirdparty/json from `c633693` to `568b708`
2025-06-14 01:15:42 +02:00
Jan
09c11983e8 Merge pull request #453 from Laupetin/dependabot/submodules/thirdparty/libtommath-839ae9e
chore(deps): bump thirdparty/libtommath from `e823b0c` to `839ae9e`
2025-06-14 01:15:28 +02:00
Jan
e00874584c Merge pull request #452 from Laupetin/dependabot/submodules/thirdparty/eigen-d228bcd
chore(deps): bump thirdparty/eigen from `cda19a6` to `d228bcd`
2025-06-14 01:15:16 +02:00
2d3bcaa6de chore(deps): bump thirdparty/libtommath from e823b0c to 839ae9e
Bumps [thirdparty/libtommath](https://github.com/libtom/libtommath) from `e823b0c` to `839ae9e`.
- [Release notes](https://github.com/libtom/libtommath/releases)
- [Commits](e823b0c34c...839ae9ea66)

---
updated-dependencies:
- dependency-name: thirdparty/libtommath
  dependency-version: 839ae9ea66718705fba2b5773d1bdfb2b457cea4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 22:51:34 +00:00
91a85bf968 chore(deps): bump thirdparty/eigen from cda19a6 to d228bcd
Bumps [thirdparty/eigen](https://gitlab.com/libeigen/eigen) from `cda19a6` to `d228bcd`.
- [Release notes](https://gitlab.com/libeigen/eigen/tags)
- [Commits](cda19a6255...d228bcdf8f)

---
updated-dependencies:
- dependency-name: thirdparty/eigen
  dependency-version: d228bcdf8f35d0625e6dd69ae2f949c38ac21257
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 22:51:32 +00:00
2758e7b4ec chore(deps): bump thirdparty/json from c633693 to 568b708
Bumps [thirdparty/json](https://github.com/nlohmann/json) from `c633693` to `568b708`.
- [Release notes](https://github.com/nlohmann/json/releases)
- [Commits](c633693d3e...568b708fd4)

---
updated-dependencies:
- dependency-name: thirdparty/json
  dependency-version: 568b708fd46deeb23a959381393a7564f1586588
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 22:51:28 +00:00
Jan
c4a7c8c9b7 Merge pull request #450 from Laupetin/dependabot/submodules/thirdparty/lz4-2bc386d
chore(deps): bump thirdparty/lz4 from `351fc61` to `2bc386d`
2025-06-07 13:51:50 +02:00
Jan
2aa8d4e3dc Merge pull request #449 from Laupetin/dependabot/submodules/thirdparty/catch2-3013cb8
chore(deps): bump thirdparty/catch2 from `74fcff6` to `3013cb8`
2025-06-07 13:51:38 +02:00
Jan
4e37ab860b Merge pull request #448 from Laupetin/dependabot/submodules/thirdparty/json-c633693
chore(deps): bump thirdparty/json from `68c25ae` to `c633693`
2025-06-07 13:51:27 +02:00
Jan
2973704db4 Merge pull request #447 from Laupetin/dependabot/submodules/thirdparty/eigen-cda19a6
chore(deps): bump thirdparty/eigen from `4fdf87b` to `cda19a6`
2025-06-07 13:51:16 +02:00
8a85ee776b chore(deps): bump thirdparty/lz4 from 351fc61 to 2bc386d
Bumps [thirdparty/lz4](https://github.com/lz4/lz4) from `351fc61` to `2bc386d`.
- [Release notes](https://github.com/lz4/lz4/releases)
- [Commits](351fc6197d...2bc386d57c)

---
updated-dependencies:
- dependency-name: thirdparty/lz4
  dependency-version: 2bc386d57cd9c36780366acead0054fd49dcd36b
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 22:17:27 +00:00
a379d5db07 chore(deps): bump thirdparty/catch2 from 74fcff6 to 3013cb8
Bumps [thirdparty/catch2](https://github.com/catchorg/Catch2) from `74fcff6` to `3013cb8`.
- [Release notes](https://github.com/catchorg/Catch2/releases)
- [Commits](74fcff6e5b...3013cb897b)

---
updated-dependencies:
- dependency-name: thirdparty/catch2
  dependency-version: 3013cb897b5706e8532507cb2b6ac33e1fc35d93
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 22:17:25 +00:00
2cc63c6a0a chore(deps): bump thirdparty/json from 68c25ae to c633693
Bumps [thirdparty/json](https://github.com/nlohmann/json) from `68c25ae` to `c633693`.
- [Release notes](https://github.com/nlohmann/json/releases)
- [Commits](68c25aec60...c633693d3e)

---
updated-dependencies:
- dependency-name: thirdparty/json
  dependency-version: c633693d3e2ab81fa186c691c452c47ced107845
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-06 22:17:22 +00:00