Commit Graph

536 Commits

Author SHA1 Message Date
Niek Schoemaker
da3dc2f8f3
Optimizations and refactoring
Added pooling to most of the Space Init functions (BVH Builders, etc)

Added multi threading to search world and Space Init functions
2024-01-08 05:00:55 +01:00
Niek Schoemaker
ed68bd59fd
Merge branch 'master' of github.com:dexyfex/CodeWalker into update 2024-01-06 19:56:59 +01:00
Niek Schoemaker
528ab1a98c
Another big commit, updated to .NET 8.0 and a lot more refactoring and optimizations 2024-01-06 19:41:10 +01:00
dexyfex
f9a3559263
Merge pull request #225 from nikez/master
fix: type06 data types
2023-12-13 09:24:38 +11:00
dexyfex
332b751576
Merge pull request #226 from ook3D/master
Update Unknown Values And Flags
2023-12-13 09:24:00 +11:00
dexy
d04d11c151 Expressions research from alexguirre 2023-12-13 09:19:28 +11:00
dexy
f473fb6a5d Fix for GTAV exe update 2023-12-13 09:17:43 +11:00
ook3d
370de41da6 Update Unknown Flags and Values 2023-11-25 22:53:37 -05:00
Nikez
dc449b0abf fix: type06 data types
Co-authored-by: z3t4s <26795431+z3t4s@users.noreply.github.com>
Co-authored-by: okqut <38298546+okqut@users.noreply.github.com>
2023-11-23 11:16:41 +01:00
Niek Schoemaker
8c2e444049
Update to .NET 6
Added Span support in some places already, and changed Nullable to annotations to declare intent to enable nullable at some point in the future
2023-11-14 16:16:59 +01:00
Niek Schoemaker
ba72dadd16
Many optimizations and bug fixes 2023-11-11 18:59:17 +01:00
Niek Schoemaker
aed7a1e051
Performance optimalizations and refactoring 2023-10-27 21:31:09 +02:00
dexy
b55458b113 Ynd research V2 by fish-cfx
Some refactoring and adjustments by dexy
2023-09-04 20:48:50 +10:00
rollschuh2282
7d294e6c57 update Portal flag names 2023-09-03 18:39:14 +02:00
dexyfex
11591fa008
Merge pull request #216 from alexguirre/fix/clip-hash-escaping
Escape ClipBase.Hash when writing XML
2023-09-03 22:28:20 +10:00
alexguirre
7542dabb71 Escape ClipBase.Hash when writing XML
Some YCDs have special characters in the clip hash, which causes
the XML to be invalid.
2023-09-03 11:07:10 +02:00
ook3D
65c9778695 Update Unknown_7Ch 2023-08-31 17:06:45 -04:00
ook3D
4cdf69445a Updated more .ypt Unknowns 2023-08-31 01:37:34 -04:00
gg781
595bb9a375
Add Support for D3DFMT_X8R8G8B8 (#214)
This would "fix" the exported xml from having "22" in the embedded texture's format block.
In before this 22 prevents the xml file from importing into blender via Sollumz, caused the common error "KeyError:22" when some people editing weird-making mods.
2023-08-23 13:26:48 +10:00
Monkeypolice188
023cc1eb47
Audio.rel.xml updates (#183)
* Audio.rel.xml updates

* Update RelFile.cs

* Audioconfig.dat4 changes + fix for config game crash

Credits to alexguirre for type & fieldname changes to ERSettings (prev UnkER) and Vector3 (prev Orientation)
2023-08-21 15:27:13 +10:00
dexyfex
3bfd6ac9f8
Merge pull request #213 from ook3D/master
tweak(); updated Particle Unknowns to correct names
2023-08-21 14:48:04 +10:00
dexyfex
f8fa095322
Merge pull request #212 from alexguirre/clip-tags
Rename ClipTag.Unknown40/44 to Start/EndPhase
2023-08-21 14:47:19 +10:00
dexyfex
ae9498f7d5
Merge pull request #211 from alexguirre/rpf
Fix crashes due to malicious RPFs
2023-08-21 14:41:54 +10:00
dexyfex
44878ff70f
Merge pull request #210 from alexguirre/fix-drawables
Auto-calculate drawables blocks size fields
2023-08-21 14:40:50 +10:00
dexyfex
378e66ef3b
Merge pull request #204 from coltfox/bvh-extents-calc
Correctly calculate BVH item extents
2023-08-21 14:36:25 +10:00
dexyfex
734a7d9cbc
Merge pull request #203 from coltfox/octants
Calculate Octants during XML import, Auto calculate Vertices2 (Vertices shrunk by margin), Rename Vertices2 to VerticesShrunk
2023-08-21 14:33:10 +10:00
dexyfex
bbcbc90582
Merge pull request #201 from alexguirre/frame-filters
Support YFD XML import/export
2023-08-21 14:27:20 +10:00
dexyfex
c863cc1931
Merge pull request #185 from cpmodding/master
updated entity sets names for los santos drug wars DLC
2023-08-21 14:24:20 +10:00
dexyfex
62a430abc8
Merge pull request #177 from FumaPraQue/master
Fix importing occlusions from .ymap files
2023-08-21 14:23:51 +10:00
ook3D
ce3a0aa406 tweak(); updated Unknowns to correct names 2023-08-19 17:32:21 -04:00
alexguirre
6cf3c27e48 Rename ClipTag.Unknown40/44 to Start/EndPhase
These fields contain the phase range (time normalized between 0 and 1) during which the tag is active.
2023-08-16 17:38:34 +02:00
alexguirre
118305e481 Fix crashes due to malicious RPFs
RpfFile:
- Limit RPF entry names to 256 characters because long names can cause the RPFExplorer to freeze when opening its directory.
- Skip RPFs with paths longer that 5000 characters, which are probably an attempt to make CW run out-of-memory.

ExploreForm:
- Use `Path.GetExtension` directly instead of `FileInfo` to prevent `PathTooLongException`s.
- Check for invalid characters in file names to prevent `ArgumentException`s.
2023-08-12 10:03:28 +02:00
alexguirre
1dd9bc34a2 Auto-calculate drawables blocks size fields
`ShaderGroup.ShaderGroupBlocksSize` (aka `Unknown_30h`) contains the byte size divided by 16 of the ShaderGroup block and its children blocks, when they are packed contiguously in the resource file.

`DrawableBase.DrawableModelsBlocksSize` (aka `Unknown_9Ah`) is similar but with the size of the `DrawableModelsBlock`.

Incorrect values can cause crashes when the model is unloaded.

Discussed here https://discord.com/channels/329138547833700352/329142468102586368/1139264754767122533
2023-08-11 19:30:23 +02:00
Colton Fox
1b074b4389 Correctly calculate BVH item extents 2023-07-28 16:47:11 -04:00
Colton Fox
91ab5bd6bb Rename Vertices2 to VerticesShrunk 2023-07-27 19:15:42 -04:00
Colton Fox
9137f8a169 Auto calculate Vertices2 (Vertices shrunk by margin) 2023-07-27 19:14:26 -04:00
Colton Fox
d0c4221670 Calculate Octants during XML import 2023-07-27 18:36:53 -04:00
alexguirre
071251e429 Support YFD XML import/export 2023-06-16 16:50:22 +02:00
cpmodding
9829cb92ba
updated entity sets names for los santos drug wars DLC 2022-12-13 13:43:34 +01:00
ultrahacx
3577c2872a Add missing shadow blur parameter in drawable XML 2022-11-03 19:53:21 +05:30
FumaPraQue
f0f23ded18 Fix importing occlusions from .ymap files
Occlude Models from imported .ymap files was not being recognized properly.
The triangles count being shown on Project window was always being 0.
2022-10-17 23:34:46 -03:00
dexyfex
0a9a55f7f2
Merge pull request #169 from cpmodding/master
updated entity sets names for DLCs
2022-09-08 10:24:50 +10:00
cpmodding
ab35732e84
updated entity sets names for mpbiker DLC 2022-08-25 12:06:12 +02:00
alexguirre
ddf689ae81 MRF/XML conversion 2022-08-24 12:39:23 +02:00
alexguirre
f0567d315b MRF research 2022-08-08 21:54:23 +02:00
cpmodding
861c4e5be1
updated entity sets names for mpsum2 DLC 2022-08-08 20:56:51 +02:00
dexy
ba16eab570 Fixed memory leak in RPF Explorer 2022-07-30 21:54:21 +10:00
dexy
cf81aebbb7 Allow patchday27ng DLC to be enabled if it is selected 2022-07-30 14:40:32 +10:00
dexyfex
cca75a00c5
Merge pull request #163 from cpmodding/master
added missing entity sets hashes for mptuner dlc
2022-07-29 22:48:54 +10:00
dexy
c023671557 Fix for patchday27ng duplicating everything 2022-07-29 22:46:48 +10:00