Commit Graph

521 Commits

Author SHA1 Message Date
dexy
4b65af9d74 Fix for BoundVertex going out of range on XML import 2024-07-25 18:09:37 +10:00
dexy
d0cdb1bd76 Updated Dec3N XML conversion. Ported BoundGeometry.VerticesShrunk code from rageAm. Added Track2AnimUV shader param name 2024-07-24 13:31:04 +10:00
dexy
b62162cf21 Fixed loading cache_y.dat files 2024-07-22 22:44:38 +10:00
dexy
97c24710e4 Fixed YED/XML conversion 2024-07-22 21:06:18 +10:00
dexy
5d3849b682 Improved resource packing, possibly 2024-07-19 15:24:02 +10:00
dexyfex
5fe554f9b3
Merge pull request #260 from ook3D/master
fix rel reading / writing
2024-07-18 17:27:06 +10:00
dexy
591bef09df PR #256 but with IsProportional and TracksPointDir fixes 2024-07-18 17:00:48 +10:00
dexy
bc48e0e45e PR #251 with additional fix 2024-07-18 15:23:29 +10:00
ook3d
880f880c4d fix rel reading / writing 2024-07-18 00:20:40 -04:00
dexy
d049e3ad1c PR #235 also enable light culling plane by flag 2024-07-18 14:05:49 +10:00
dexy
f5a637588f PR #230 and #248 with extra audio editing improvements 2024-07-17 18:00:55 +10:00
dexyfex
c7a943886a
Merge pull request #254 from ook3D/merge-8
update scenario chain NavSpeed, Cluster point unknowns
2024-07-16 08:06:31 +10:00
dexy
f01644a8cc PR #249 but only for Release build 2024-07-12 14:55:53 +10:00
dexy
6cf72c4b74 PR #221 changes 2024-07-12 09:43:53 +10:00
dexy
27a07461b1 PR #223 but slightly nicer 2024-07-11 09:25:01 +10:00
dexy
9b8331e696 PR #84 changes 2024-07-10 22:31:16 +10:00
ook3d
71671940eb Update Scenario Point Cluster Unknowns 2024-07-02 21:18:10 -04:00
ook3d
21242cffff update scenario chain NavSpeed 2024-05-20 16:29:57 -04: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
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