57 Commits

Author SHA1 Message Date
Jan
1b13f1f1b4
refactor: only use sizeof with parenthesis 2024-03-24 19:56:06 +01:00
Clang Format
6b4f5d94a8
Reformat code with clang format 2023-11-19 21:07:21 +00:00
Jan
3bbe5a4835 Remove outdated assertion for empty scriptstring list on loading 2021-12-30 19:19:42 +01:00
Jan
538c4be839 Fix not supporting nullptr scriptstrings 2021-12-30 16:51:16 +01:00
Jan
843b861b1b Load GfxImageLoadDef for all supported games 2021-04-28 18:19:30 +02:00
Jan
4f995751ce Add load argument to unlinker to load zones before trying to unlink specified zones
this allows to make sure certain ipaks are loaded before dumping
2021-03-27 16:45:30 +01:00
Jan
6f6d25da4a Always duplicate temp loaddef for T6 instead of only duplicating it if resource size is bigger than 0 2021-03-22 12:30:02 +01:00
Jan
2a6d7c84c2 Add ZoneScriptString class to store zone script strings 2021-03-18 16:55:30 +01:00
Jan
f22012d282 Move XChunk processors to ZoneCommon 2021-03-16 20:42:48 +01:00
Jan
9d26c9c927 Add ZoneWriting basis 2021-03-15 22:36:07 +01:00
Jan
301f6e3e7a Use unique_ptr for ZoneLoading 2021-03-14 12:34:50 +01:00
Jan
88c48e8107 Add dynamic allocation alignment to be able to load T6 MemoryBlock asset which isnt used at all so why am i doing this again 2021-03-05 09:23:37 +01:00
Jan
1a45cf2107 Fix more gcc compilation issues 2021-03-03 09:12:27 -08:00
Jan
eed7164b5b Save scriptstrings per zone and not per asset since that solves all problems with multiple assets of the same zone referencing the same struct in memory that has scriptstring indices 2020-10-23 15:54:27 +02:00
Jan
068add0eef Fix script string indices being off by one due to inserting empty script string that is not necessarly in the zone 2020-10-23 12:51:18 +02:00
Jan
f3afaf3110 move zoneloaderfactories in their respective game namespaces 2020-10-17 16:04:26 +02:00
Jan
f0c8ffa6be move contentloader classes to their respective game namespaces 2020-10-17 15:55:19 +02:00
Jan
b25fe9a9f7 Added iw4 assets related to materials, xmodels 2020-09-07 18:19:20 +02:00
Jan
060e5678b5 Read IW4 signed headers 2020-09-06 14:39:19 +02:00
Jan
9f8022c2ca ZoneCommon: Add GameLanguagePrefix class and save known prefixes for languages in the game object 2020-02-07 20:52:24 +01:00
Jan
55d5746650 ZoneCode: Add Action on loading a GfxImage to set the loadedSize property to 0 to indicate Texture data has not yet been loaded 2020-02-06 21:26:34 +01:00
Jan
d01f5c49a8 ZoneLoading: Add implementation for LoadImageData action:
Duplicate any ImageLoadDef that contains data, otherwise discard temporary empty loaddef
2020-02-04 19:45:45 +01:00
Jan
bdb0958c16 ZoneCodeGenerator: Add possibility to define custom actions that should be performed after loading a certain Structure 2020-01-03 17:25:10 +01:00
Jan
a0d4e87b8e ZoneCommon: Change name of global variable for the T6 Game instance 2019-12-29 16:39:29 +01:00
Jan
00b3322cb2 ZoneLoading: Extract all obj dumping relevant parts to ObjWriting component 2019-12-25 14:07:24 +01:00
Jan
d224eb8ce5 ZoneLoading: Simulate the vanilla edge case that the chunk size is in the end of the loadbuffer and cannot quite fit into it so the space is padded and the chunk size is loaded from the beginning of the buffer 2019-12-24 17:21:58 +01:00
Jan
33ec343460 ZoneCodeGenerator: Add possibility to specify a custom array count to signalize how many entries of a static array should be loaded 2019-12-24 12:41:27 +01:00
Jan
4932994355 ZoneLoading: Remove unused asset counting part 2019-12-24 11:40:00 +01:00
Jan
551deeec34 ZoneCode: Add commands for GfxWorld and enable it 2019-12-24 01:59:58 +01:00
Jan
d6f49c459c ZoneLoading: Only dump localized strings when there are any in the pool 2019-12-23 21:24:06 +01:00
Jan
0d801948bc ZoneLoading: Enable now properly working assets 2019-12-23 17:05:53 +01:00
Jan
2fea7654a9 ZoneLoading: Fix not being able to load a null scriptstring and aligning incorrectly when loading the header 2019-12-23 17:05:12 +01:00
Jan
af56d9193d ZoneLoading: Always initialize AssetPools as dynamic since not all loaded assets are contained inside the initial assetlist 2019-12-23 17:04:23 +01:00
Jan
5b8cd9cbc6 ZoneCode: Fix and enable menuDef and WeaponVariantDef 2019-12-07 13:40:27 +01:00
Jan
e7725f6a9c ZoneLoading: Fix and enable xmodel, destructibledef, gameworldsp/mp, attachment_unique, weaponcamo, fx, vehicledef 2019-12-07 03:49:32 +01:00
Jan
a7857172d7 ZoneLoading: Enable assets menuList, impactfx and footsteptablefx due to now working properly 2019-12-06 16:33:36 +01:00
Jan
c386231576 ZoneCode: Fix and enable all already working assets 2019-12-05 04:05:44 +01:00
Jan
10334266b3 ZoneLoading: Enable mapents assets 2019-12-05 02:59:04 +01:00
Jan
2215fef883 ZoneLoading: Dump localized strings as str files 2019-11-19 02:30:27 +01:00
Jan
11168c782f ZoneLoading: Make AssetDumpers get the zone via their args 2019-11-19 02:30:04 +01:00
Jan
2f108d533c ZoneLoading: Save which language a zone has when loading 2019-11-19 00:43:46 +01:00
Jan
81255695a7 ZoneLoading: Remove KeyValuePair Dumper because keyvaluepairs will be part of the zone file 2019-11-18 21:45:16 +01:00
Jan
97590148ad ZoneLoading: Add dumper for Stringtable assets 2019-11-18 21:44:51 +01:00
Jan
d220aa8fde ZoneLoading: Make ZoneDumper also generate a game specific zone file 2019-11-18 21:42:02 +01:00
Jan
73489ee455 ZoneLoading: Add dumping for Rawfile based assets 2019-11-16 01:24:09 +01:00
Jan
caa01a4864 ZoneCodeGenerator: Add commands for ddlDef and a bit of other stuff to not break from errors 2019-11-15 14:56:11 +01:00
Jan
765b0d9e32 ZoneCodeGenerator: Fix XAssetList of T6 being loaded into block memory and therefore causing overflows 2019-11-15 14:50:23 +01:00
Jan
271c819e97 ZoneLoading: Enable further easy assets like qdb, slug, localize, scriptparsetree 2019-11-14 15:35:19 +01:00
Jan
b7ab2a1aa6 ZoneCodeGenerator: Change ContentLoader to use vars for fastfile pointer transfer and change ZoneInputStream API to be able to specify load location to better reflect the way the games do it. 2019-11-14 14:48:40 +01:00
Jan
034de70bbc Add code generation on compiling to premake scripts using custom build commands 2019-10-25 02:13:37 +02:00