2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-22 03:29:37 +00:00
Commit Graph

189 Commits

Author SHA1 Message Date
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 1cd06668e0 Replace FileAPI with c++ streams and std::filesystem 2021-03-03 14:04:35 +01: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 991bcf6d58 Make sure that assets that use scriptstrings always have an empty scriptstring at position 0 2020-10-23 12:54:51 +02:00
Jan 3cfcfa0c5d Make sure scriptstring arrays are being reallocated when they are reusable so if it is being referenced again the scriptstring indices are the ones of the zone instead of the asset that originally loaded them 2020-10-23 12:54:18 +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 b8b8e4c267 Implement loading of the remaining iw4 assets which are the map assets 2020-10-11 12:22:20 +02:00
Jan 6437d8daa4 Remove SndDriverGlobals references as an asset since it is non existant for IW4 PC builds 2020-09-15 12:54:32 +02:00
Jan 906d112619 Add loading of iw4 weapondef and vehicledef assets 2020-09-15 12:51:59 +02:00
Jan c515747bc0 Add loading of iw4 font and addonmapents assets 2020-09-15 11:21:46 +02:00
Jan fb93d7cb2f Add loading of iw4 assets clipmap and mapents 2020-09-15 10:44:45 +02:00
Jan 8778421ebb Quick code style fix 2020-09-09 16:11:21 +02:00
Jan 83d76acedc add structureddatadef loading code for iw4 2020-09-09 12:36:53 +02:00
Jan 0efff7d637 add iw4 tracerdef loading code 2020-09-09 12:08:09 +02:00
Jan 3bf47f058d Add LeaderboardDef asset loading for IW4 2020-09-09 12:03:14 +02:00
Jan b4756c3688 Add IW4 ImpactFx loading code 2020-09-09 11:58:42 +02:00
Jan ceeb1832cd Add IW4 GfxLightDef asset loading code 2020-09-09 11:54:15 +02:00
Jan 24195be273 Add Fx asset for IW4 2020-09-09 11:47:29 +02:00
Jan bdbfb7114e Add menu loading for iw4 2020-09-08 20:52:29 +02:00
Jan c1d2ac6604 Add localize entry to iw4 and skip snddriverglobals since the asset is not loaded but is still in the asset list of fastfiles 2020-09-08 13:10:54 +02:00
Jan d35560ccd7 Add support for loading sound assets from iw4 zones 2020-09-08 12:11:16 +02:00
Jan b25fe9a9f7 Added iw4 assets related to materials, xmodels 2020-09-07 18:19:20 +02:00
Jan 5e8173539b Generate zone code for IW4 for the first 3 assets 2020-09-07 14:14:07 +02:00
Jan f59cb29cb2 Fix Processor inflate not setting next input buffer 2020-09-06 18:39:00 +02:00
Jan d7096c9137 Add AuthedBlocks processor for IW4 fastfiles 2020-09-06 18:18:30 +02:00
Jan 060e5678b5 Read IW4 signed headers 2020-09-06 14:39:19 +02:00
Jan 992e9cea30 ZoneLoading: Properly link assets as dependencies instead of only saving the name of the dependency 2020-02-18 13:16:39 +01: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 297358cdb0 ZoneLoading: Fix AssetLoader not initializing varScriptString 2020-01-03 18:13:04 +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 7121f2e215 ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory 2019-12-24 18:41:42 +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 80bc10752a ZoneLoading: Fix not respecting the block type when trying to load data 2019-12-24 01:59:40 +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 ca1d188759 ZoneLoading: Fix typo in InvalidOffsetBlockOffsetException message 2019-12-23 21:23:48 +01:00
Jan 21f395ab7d ZoneLoading: When using the temp block multiple times after another when for example loading nested assets, remember the last position of the temp block and return to there when popping it 2019-12-23 17:55:42 +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