Commit Graph

220 Commits

Author SHA1 Message Date
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
dexy
d04d11c151 Expressions research from alexguirre 2023-12-13 09:19:28 +11: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
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
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
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
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
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
ultrahacx
3577c2872a Add missing shadow blur parameter in drawable XML 2022-11-03 19:53:21 +05:30
dexy
9904e92082 Improved conversion of struct arrays to/from byte arrays 2022-05-08 20:54:21 +10:00
dexy
9d53fa9318 YVR/XML conversion improvements 2022-02-01 20:35:34 +11:00
dexy
d367dbebe5 YVR/XML and YWR/XML conversions 2022-02-01 02:46:36 +11:00
dexy
4e8f789cf8 Fixed typo in YED XML importer 2022-02-01 01:59:29 +11:00
dexy
7a8977b277 YED/XML conversion 2022-01-31 19:39:42 +11:00
dexy
b65d250774 Fix for broken player peds animating 2022-01-29 20:26:13 +11:00
dexy
bc14a1fd22 Improved animations game replication and performance 2022-01-28 06:25:41 +11:00
dexy
8ea3327810 Fix for <Item type="None" /> appearing in drawable XML 2022-01-08 17:40:34 +11:00
dexy
7bb65ca063 Changed BoundComposite XML to use CompositeTransform Matrix instead of Position/Orientation/Scale 2022-01-06 19:52:18 +11:00
dexy
8af20945cb Fixed issues with light editor, upgraded ModelForm toolbar 2022-01-01 00:03:52 +11:00
Skylumz
0c62a04625 Implemented a lights editor in model viewer 2021-12-29 17:17:31 -05:00
dexy
7f0bb17e68 YTD and embedded texture editing in YtdForm, Fixed texture sorting by hash when importing XML 2021-12-28 23:26:35 +11:00
dexy
a4998e36c8 Fixed BoundComposite BVH crash issue for fragments with destroyed models, also fixed missing BVH for XML imported ybn 2021-12-19 04:11:51 +11:00
dexy
a6a2acab75 Fix for Bounds XML not exporting null composite children 2021-12-14 02:54:59 +11:00
dexy
70ebdd8360 Changed RSC Meta packing to old version - attempted fix for peds ymt's causing crashes 2021-12-14 01:38:52 +11:00
dexy
2a63329490 Fragments XML conversion improvements and field names update 2021-12-12 02:29:11 +11:00
dexy
959eae6686 Updated Fragments field names 2021-12-10 15:42:05 +11:00
dexyfex
8ba9faacec
Merge pull request #71 from carmineos/epedboneid
Added EPedBoneId enum
2021-11-08 00:43:19 +11:00
dexyfex
aef77218bc
Merge pull request #83 from carmineos/fragfix
BoundComposite: don't create duplicated ChildrenTransformation blocks
2021-11-08 00:15:24 +11:00
dexy
4e987e523a Added FragGlassWindow flags lo/hi bytes for research purposes 2021-05-05 19:03:32 +10:00
dexy
2c8311c936 LodLights generator positions improvement 2021-05-03 00:57:14 +10:00
dexy
7eec785459 Render window glass projections from fragments in model viewer and vehicle viewer 2021-04-27 21:29:42 +10:00
dexy
ac14e716d8 Added missing YNV content flag 2021-04-17 06:51:33 +10:00
dexy
4751818703 YNV/XML conversion 2021-04-17 06:33:23 +10:00
dexy
6268298207 List and render DrawableArray (damaged) models for fragments in ModelForm (and VehicleForm) 2021-04-15 17:40:23 +10:00