2092 Commits

Author SHA1 Message Date
Jan
43fa845839 ObjLoading: Add possibility to go back to the beginning of a IPakEntryReadStream 2020-02-09 10:01:09 +01:00
Jan
4baca81210 ObjLoading: Implement IPakEntryReadStream as a linear stream 2020-02-09 09:51:57 +01:00
Jan
7b3b527ece ObjLoading: Fix not including algorithm header even though using find_if 2020-02-09 01:27:20 +01:00
Jan
eaa64665d6 ObjLoading: Fix Ipak entry size not specifying the filesize but the difference between start pos and end pos 2020-02-09 01:22:27 +01:00
Jan
345687125f ObjLoading: Fix not increasing head on reading uncompressed ipak data 2020-02-09 00:04:21 +01:00
Jan
28bc614a6d ObjLoading: Initial commit for IPak entry reading 2020-02-08 22:54:24 +01:00
Jan
91d5439f25 ObjLoading: Fix not respecting that IPak index entries specify an offset to the data section and not a file offset 2020-02-08 22:53:33 +01:00
Jan
00d7997d0a ObjLoading: Add basis for IPakEntryReadStream to read ipak entries 2020-02-08 15:55:10 +01:00
Jan
5bda400acb ObjLoading: Add basis for Iwi loading 2020-02-07 20:55:10 +01:00
Jan
589347ce08 ZoneCommon: Add Texture pointer from OAT to GfxTexture union of T6 to be able to save loaded texture data in GfxImage 2020-02-07 20:54:40 +01:00
Jan
b210661ac8 Unlinker: Fix not attempting to load files from manually specified search paths 2020-02-07 20:53:41 +01:00
Jan
c2b28a54be ObjCommon: Fix IPak order of hashes from name - data to data - name 2020-02-07 20:53:07 +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
f73c27a7dc Premake: Add include guard to make sure dependencies do not include themselves in an infinite chain when two components depend on each other 2020-02-07 02:46: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
75f6caab54 ObjCommon: Refactor classes for holding Texture information 2020-02-06 19:01:45 +01:00
Jan
63330ff908 ZoneCommon: Extract non ZoneMemory management from ZoneMemory into Utils::MemoryManager class 2020-02-05 16:52:43 +01:00
Jan
b67b4ee316 ObjLoading: Add documentation for IObjLoader, ObjLoading and IWD 2020-02-04 23:48:11 +01:00
Jan
b8de90a675 ObjLoading: Do not attempt to load textures that already have a loaddef 2020-02-04 19:52:23 +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
b8c2557482 ObjLoading: Display error message on directory_iterator throwing an exception 2020-02-04 19:44:56 +01:00
Jan
10342a7b58 Unlinker: Check if a file exists before attempting to load it 2020-02-04 19:44:30 +01:00
Jan
dde77901a3 ObjCommon: WIP: ImageData 2020-01-06 20:32:33 +01:00
Jan
c67911bdbb ZoneCommon: Add class object construction and destruction methods to ZoneMemory 2020-01-04 15:13:44 +01:00
Jan
297358cdb0 ZoneLoading: Fix AssetLoader not initializing varScriptString 2020-01-03 18:13:04 +01:00
Jan
4971ec190d ZoneCodeGenerator: Call custom action on loading singlepointer and embedded 2020-01-03 18:12:43 +01:00
Jan
91327c57ce ZoneCodeGenerator: Fix not generating tests for structure sizes and alignments 2020-01-03 17:25:31 +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
c995a12001 ZoneCodeGenerator: Fix aligning wrong when custom aligning is set in size calculation 2020-01-03 17:23:57 +01:00
Jan
96f2067030 ObjLoading: Read index section of ipaks and try to open images from it when loading obj data 2020-01-03 01:13:07 +01:00
Jan
204d3aed78 ObjLoading: Fix Repository not updating iterator when erasing entry 2020-01-03 01:11:28 +01:00
Jan
c2f3bca268 ObjLoading: Add indexing and reading of files in IWDs 2020-01-02 00:52:56 +01:00
Jan
0abdb64832 ObjLoading: Be able to load and index IWD files 2020-01-01 18:46:33 +01:00
Jan
a4d55ffae7 ThirdParty: Fix minizip not having all nessecary files included 2019-12-31 00:20:16 +01:00
Jan
153f8f2e89 Unlinker/ObjLoading: Add skeleton for dynamically loading search paths based on current zone 2019-12-30 23:52:33 +01:00
Jan
5f833969f9 Utils: Fix UsageInformation still outputting a dash when no short name is specified. Same for long name. 2019-12-30 23:51:13 +01:00
Jan
af55c202cf ObjLoading/ObjWriting: Initial skeleton for loading and writing obj files 2019-12-29 16:40:03 +01:00
Jan
a0d4e87b8e ZoneCommon: Change name of global variable for the T6 Game instance 2019-12-29 16:39:29 +01:00
Jan
c488e4c714 Add minilzo and minizip as dependencies 2019-12-29 16:38:14 +01:00
Jan
d77438d654 Project: Update .gitignore to only ignore paths are are supposed to be ignored with the current premake setup: build and local 2019-12-27 16:32:21 +01:00
Jan
ce063adcc5 Utils: Make file of FileAPI an interface to be able to integrate custom file implementations when using 2019-12-25 14:07:51 +01:00
Jan
00b3322cb2 ZoneLoading: Extract all obj dumping relevant parts to ObjWriting component 2019-12-25 14:07:24 +01:00
Jan
e8de3a3f39 Unlinker: Make Unlinker handle each zone directly after loading so it doesn't run out of memory when trying to load too many zones at once 2019-12-24 18:42:25 +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
31192e8372 ZoneCode: Fix XSurface VertListCount not being unsigned even though it is used as it is 2019-12-24 17:20:34 +01:00
Jan
86790d1486 ZoneCodeGenerator: Fix not respecting when in an operation the second operand should be calculated first but the precedence is the same 2019-12-24 17:19:49 +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
9e10cffdce ZoneCode: Fix XAnim bone count not being unsigned even though they are used as they were 2019-12-24 12:09:11 +01:00
Jan
69fff81b02 ZoneCode: Fix XModel bone count not being unsigned but being used as it was 2019-12-24 11:40:23 +01:00