97 Commits

Author SHA1 Message Date
Samuele Lorefice
bc53e27647 Added some handling of array vs field data attributes. 2025-05-09 17:11:25 +02:00
mm00
3657d34746 Only log not found blocks 2025-05-09 16:46:03 +02:00
mm00
eb76262e42 changed getblock function to just check beginning of block 2025-05-08 18:15:20 +02:00
Samuele Lorefice
679f15bce0 Added IsPrincipal implementation 2025-05-08 18:02:42 +02:00
Samuele Lorefice
e3c269af47 Added scaffolding + TODO 2025-05-02 17:02:32 +02:00
Samuele Lorefice
f03d907441 Formatting (again) 2025-05-02 16:25:03 +02:00
mm00
a7337dd1d6 Fixed various pointer problems 2025-03-12 19:56:34 +01:00
mm00
ba61ea59f9 updated generated files 2025-03-12 19:02:40 +01:00
mm00
226f001c78 handling of array of pointers, refactoring, fixes n shit 2025-03-12 19:02:25 +01:00
mm00
934c878878 Added IsPointer field for array attribute, fixed pointer arrays sizes 2025-03-12 19:01:52 +01:00
mm00
6533511a4a refactored GetArrayDimensions method, ParseFSize now returns null if not found 2025-03-12 19:01:20 +01:00
Samuele Lorefice
c48d84bb7c Formatting and documentation pass 2025-03-12 01:58:56 +01:00
Samuele Lorefice
633b2b4376 Implemented convert array field 2025-03-12 01:56:06 +01:00
Samuele Lorefice
8202c2185b Half-Handled generation of the same object, added docs, removed array specific handling from ConvertNormalField. Disabled exception thrown due to caveats. 2025-03-12 01:54:56 +01:00
Samuele Lorefice
c0bc1f0a0f Removed redundant statements 2025-03-12 00:55:23 +01:00
Samuele Lorefice
5b8158ea1a Added scaffolding for ArrayAttribute specific conversion 2025-03-11 19:18:41 +01:00
Samuele Lorefice
c30467acc5 Regenerated code files 2025-03-11 19:12:04 +01:00
Samuele Lorefice
3756f864ed Code Reformat 2025-03-11 19:09:47 +01:00
Samuele Lorefice
0fee1f10d2 Integrated DnaArrayAtribute generation in the generator 2025-03-11 19:08:47 +01:00
Samuele Lorefice
0bf0aeab09 Added Array specific logic to Reader. **NOTE: This doesn't use the new attribute yet** 2025-03-11 18:44:48 +01:00
Samuele Lorefice
8678ee6c85 Added DNAArrayAttribute to the generation and AddArrayField method. Disabled Array checking in AddNormalField and done Array checking at the main logic 2025-03-11 18:44:09 +01:00
Samuele Lorefice
fbc0f9be49 Changed String extensions to retunr char size as a 1 byte (cpp size) instead of 2 bytes (C# size) 2025-03-11 18:42:12 +01:00
Samuele Lorefice
9cbed0a8b8 Imported static Kaitai.BlendFile, compressing bunch of lines 2025-03-11 18:41:27 +01:00
mm00
37ebc71cf3 Added pointers and list handling in reader 2025-03-10 19:09:11 +01:00
Samuele Lorefice
b6760ab27a Fixed wrong attribute position being modified. Regenerated code files 2025-03-07 19:18:52 +01:00
Samuele Lorefice
73e98f5c5d Regenerated code files 2025-03-07 19:13:29 +01:00
Samuele Lorefice
26add1559f Fixed wrong name determination in field-count value coupling 2025-03-07 19:11:17 +01:00
mm00
d3e54246c4 fixed double loop problem and refactored field additions 2025-03-07 18:55:17 +01:00
Samuele Lorefice
bfa185c8e4 Added count field type argument to the list attribute 2025-03-06 19:41:37 +01:00
Samuele Lorefice
e11cd54096 Fioxed dictionary being recreated every step of the for loop. 2025-03-06 19:14:59 +01:00
Samuele Lorefice
9e1d65d08d Added start offset param to the field conversion methods, started implementing list conversions 2025-03-06 19:11:50 +01:00
Samuele Lorefice
fb50e3fa44 Fixed list length value returning always zero.
Added separated pointer and count memory offsets to list attributes.
Tried handling them
2025-03-06 19:11:03 +01:00
Samuele Lorefice
0bc7f73aee Moved pointer and struct conversion to a separate method 2025-03-06 18:32:21 +01:00
Samuele Lorefice
02aa7db319 Changed attribute builder to derive from correct class, also added method to pass base class parameters using string refs. Regenerated the files 2025-03-06 17:37:55 +01:00
Samuele Lorefice
a784eed61d General code cleanup in reader class. Added stub methods for extracting data retrieval to a separate method. 2025-03-05 18:43:39 +01:00
Samuele Lorefice
8e4eac0568 Regenerated codefiles 2025-03-04 18:48:04 +01:00
Samuele Lorefice
8bbfb49720 Fixed a critical bug in Array field name generation. Added DNAAttribute and DNAListAttribute classes 2025-03-04 18:47:55 +01:00
Samuele Lorefice
b70bcd4d02 Reordered parameters in Attributes 2025-03-04 18:33:17 +01:00
Samuele Lorefice
a8bf5e6e82 Added DnaListAttribute generation 2025-03-04 18:27:53 +01:00
mm00
b100dc8020 Fixed list length search 2025-03-04 18:03:40 +01:00
Samuele Lorefice
0dccefb7e4 added method to create ListFields and generation of Lists 2025-03-04 17:40:57 +01:00
Samuele Lorefice
d986670268 Added queue for log messages and logger on a separate thread, added telemetry. 2025-02-27 23:44:51 +01:00
Samuele Lorefice
30cdc7a23d Changed code gen to use latest lang version 2025-02-27 23:44:10 +01:00
Samuele Lorefice
7a0ad7e968 Added IsClass and FilterFields methods to streamline types creation, added more documentation 2025-02-27 20:57:12 +01:00
Samuele Lorefice
bdc9624d13 Added derive from class parts to the attribute building process. Added static Lists of substrings for attribute filtering. 2025-02-26 19:24:14 +01:00
Samuele Lorefice
80234eb599 Fixed a bug in AttributeBuilder where setting the derived type would not be applied if there wasn't one already set up. 2025-02-26 19:23:33 +01:00
Samuele Lorefice
55f3d411b3 Added documentation to Attribute builder. Added Inheritance methods. Added a base DNA attribute to GenerateTypeDeclarations method. 2025-02-26 18:59:14 +01:00
Samuele Lorefice
1a34d70f8d added heuristcs substrings 2025-02-26 17:37:49 +01:00
Samuele Lorefice
869fd3b794 Made AttributeBuilder not a singleton, replaced multiple methods per attribute with a single method that returns all the attributes in a single sweep. 2025-02-26 17:03:15 +01:00
Samuele Lorefice
4166482022 Fixed naming of variables in the code generator class 2025-02-26 16:01:16 +01:00