Jan Laupetin
6fc988a079
fix: not differentiating wordsize in offset field
2026-10-22 20:01:06 +02:00
Jan Laupetin
c24d1f0cd8
chore: rename generated loader/writer/marker aggregated headers
2026-10-22 20:01:05 +02:00
Jan Laupetin
8490c09fad
refactor: generate combined asset loader/writer/marker headers per variant
2026-10-22 20:01:05 +02:00
Jan Laupetin
884fefd1db
chore: rename generated zone code classes with variants
2026-10-22 20:01:04 +02:00
Jan Laupetin
66aad9381e
fix: properly calculate matching memory layout with multiple variants
2026-10-22 20:01:04 +02:00
Jan Laupetin
367c87bdea
refactor: generate asset code once per asset/variant combination
2026-10-22 20:01:04 +02:00
Jan Laupetin
7c957c16a2
refactor: support multiple variants for games in zonecode
2026-10-22 20:01:00 +02:00
Jan
ab7d8f5670
fix: various wrong alignment values ( #823 )
...
* fix: alignment mistakes on various games
* chore: reduce overhead of zcg definition with members fields
* fix: make sure Material alloc alignment is 4
2026-06-07 01:14:37 +00:00
Michael Oliver
97591f59f4
refactor(zcg): use wordsize instead of architecture
2026-04-30 13:50:11 +01:00
Jan Laupetin
14b143466d
fix: not adding offset of reusable type when type is not structure
2026-03-14 15:56:08 +01:00
Jan Laupetin
aa47ffa629
refactor: introduce subasset loading
2026-02-05 18:17:15 +01:00
Jan Laupetin
5b6b82424b
fix: marking invalid offset as written in WritePtrArray methods
2026-01-18 17:12:13 +01:00
Jan Laupetin
f95745fb87
fix: not writing to script string var for embedded script string arrays
2026-01-17 00:45:22 +00:00
Jan Laupetin
00546740e4
fix: filling union members that are not supposed to be written
...
* This causes some pointers to be partially overwritten when filling in the wrong order as well
2026-01-17 00:45:21 +00:00
Jan Laupetin
9f559fdcd0
fix: ReusableAddOffset not respecting differing block and memory sizes
2026-01-17 00:45:21 +00:00
Jan Laupetin
0be778cf5c
fix: do not fill in runtime block members
2026-01-17 00:45:20 +00:00
Jan Laupetin
1dc25ee20a
fix: use correct written variable for WriteArray zone code methods
2026-01-17 00:45:20 +00:00
Jan Laupetin
7dffc77ed7
refactor: fill structs in templates when writing on x64 hosts
2026-01-17 00:45:19 +00:00
Jan Laupetin
257ef39b20
feat: add fill in ContentWriter classes for writing with x64 hosts
2026-01-17 00:45:19 +00:00
Jan Laupetin
6ea2e7faad
refactor: use ZoneOutputOffset for written variables
2026-01-17 00:45:19 +00:00
Jan Laupetin
ac24e4f893
refactor: combined ZoneOutputStream interface with impl
2026-01-17 00:45:18 +00:00
Jan Laupetin
86b7e55e5b
refactor: add game name to generated load and write files
2026-01-17 00:45:17 +00:00
Jan Laupetin
e7f126265d
refactor: add AssetMarker headers to zcg marker template
2026-01-05 17:43:56 +00:00
Jan Laupetin
660f34df69
chore: add ability for zcg to generate files once per template
2026-01-05 17:43:56 +00:00
Jan Laupetin
ba39e3f4d9
fix: do not override properties of foreign zones
2025-12-25 15:29:32 +01:00
Jan Laupetin
7bf7bf93de
chore: adjust asset name method based on asset to not require constructor
2025-12-23 15:40:51 +01:00
Jan
e120d01697
fix: dynamic array reallocation for x64
2025-06-19 18:59:21 +01:00
Jan Laupetin
446c38d8ee
refactor: reorder members of zcg generated classes
2025-05-02 22:08:06 +01:00
Jan
ed029bc24d
refactor: adjust template const modifiers
2025-05-02 22:08:06 +01:00
Jan
50612d117e
refactor: update zcg generate file headers
2025-04-30 17:01:52 +01:00
Jan
547da3fdf9
refactor: remove GetName method of ZoneWrite zcg template
2025-04-28 12:53:14 +01:00
Jan Laupetin
1fe1b30831
chore: use Asset definition instead of enum entry for zcg
2025-04-28 12:53:02 +01:00
Jan
10cbd47bdc
chore: use std::format for zcg templates
2025-04-24 21:37:43 +01:00
Jan
9f8a933277
chore: update ZoneCodeGenerator code style
2025-04-20 09:45:37 +02:00
Jan
cc67f6e730
refactor: use OutputPathFilesystem for writing fastfiles
2025-01-14 22:03:44 +01:00
Jan
fc18f81302
fix: consider asset references when looking for assets of zone
2024-03-30 17:44:55 +01:00
Clang Format
6b4f5d94a8
Reformat code with clang format
2023-11-19 21:07:21 +00:00
Jan
4d674fac83
Fix zonewriting not applying updated values for embedded scriptstrings
2021-08-26 21:01:12 +02:00
Jan
ae9633b696
Change ZoneCode zone writing template so it marks elements as following before writing them to ensure being able to write recursive structs
2021-06-24 16:59:43 +02:00
Jan
a8c62de081
Add written variable for zone writing code to be able to differ between written data and original data
2021-05-08 16:41:42 +02:00
Jan
156d7aa5cd
Make zone write add insert pointer even if reusable member does not have struct type
2021-04-28 15:31:12 +02:00
Jan
dbcbb4a4b3
Make sure assets need to be declared as temp block to be located in temp block to handle special case of iw3 stringtable not being in temp block
2021-04-15 13:42:03 +02:00
Jan
4e05bc6b44
Fix errors in iw3 commands and structs
2021-04-15 10:37:39 +02:00
Jan
d99eb0ab24
Use asset identified by name and type when writing asset dependency to make sure that the pointer always matches one that would have been written to the zone already even when using an asset from another loaded zone
2021-03-21 21:29:02 +01:00
Jan
a2ef445455
Fix adding offsets on strings and assets
2021-03-21 10:19:51 +01:00
Jan
1d33cf2adf
Save offset for reusing for any type that has a reusable reference
2021-03-20 16:04:17 +01:00
Jan
2f700a48a9
Make sure fastfile offset is taken after alignment, marking following is done on the originally written data and writing partially uses the original data when writing dynamic sized data
...
too lazy to split into single commits
2021-03-19 15:09:44 +01:00
Jan
5443ed4261
Add scriptstrings from loaded zones to newly linked zone
2021-03-18 20:03:00 +01:00
Jan
8736280ea8
Fix zone writing code not setting ptr following
2021-03-18 13:02:31 +01:00
Jan
7c0504603e
Basic write template based on load template
2021-03-18 10:58:07 +01:00