Commit Graph

532 Commits

Author SHA1 Message Date
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
dexy
bf5cf1bb6f Fix for .cut XML conversion: updated PSO structure definitions 2022-06-15 08:25:17 +10:00
cpmodding
4ed21ca9d8
added missing entity sets hashes for mptuner dlc 2022-06-09 11:55:44 +02:00
dexyfex
911fe4ef3b
Merge pull request #160 from cpmodding/master
updated entity sets names from day one interiors and all DLCs
2022-05-21 10:53:13 +10:00
dexyfex
46aaddee44
Merge pull request #159 from Monkeypolice188/master
Audio updates
2022-05-21 10:21:55 +10:00
dexy
1648378010 FXC/XML conversion 2022-05-20 17:52:51 +10:00
dexy
a2f34ddf05 FxcFile Save method and loading improvements 2022-05-20 12:11:25 +10:00
cpmodding
bce00c1bdb
updated entity sets names from day one interiors and all DLCs 2022-05-15 17:26:34 +02:00
Monkeypolice188
01b959f524 Audio updates 2022-05-09 22:48:35 +01:00
dexy
9904e92082 Improved conversion of struct arrays to/from byte arrays 2022-05-08 20:54:21 +10:00
dexy
df77346daf Fix for cachefile loading due to update2.rpf being used in latest game update 2022-04-27 08:37:34 +10:00
dexy
520eee6f81 YPDB/XML conversion 2022-03-30 20:13:01 +11:00
dexy
12750ff595 CacheDat/XML conversion 2022-03-29 23:32:29 +11:00
dexy
1cbbc1a6e0 Refactor XML import into XmlMeta class to be more consistent with XML exporting 2022-03-27 14:01:25 +11:00
dexy
77d18307fa Merge branch 'master' of https://github.com/dexyfex/CodeWalker 2022-03-20 11:09:45 +11:00
dexy
a12ccd6947 Add null checks for name hashing to help avoid crashes for some resources 2022-03-20 11:09:24 +11:00
dexyfex
ba1d465eb4
Merge pull request #154 from alexguirre/fix-wrapper-sound
Fix reading/writing of Dat54WrapperSound
2022-03-20 11:03:52 +11:00
alexguirre
f82f2ea7bf Fix reading/writing of Dat54WrapperSound 2022-03-14 21:40:29 +01:00
alexguirre
59b4850371 Support YPDB files 2022-02-23 23:28:47 +01:00
dexy
8998b8c808 Bug fix for reading/writing MrfNodeClip based on flags value 2022-02-07 00:28:14 +11:00
dexy
2bd5cacaf1 Added parsing of distantlights dat files 2022-02-02 05:48:18 +11:00
dexy
c45f170de4 MRF progress 2022-02-01 22:59:24 +11:00
dexy
9d53fa9318 YVR/XML conversion improvements 2022-02-01 20:35:34 +11:00
dexy
defbbead62 Added MRF MetaNames from Disquse 2022-02-01 20:11:24 +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
73402373e3 Fix for crash caused by bad entity LOD linkage 2022-01-28 04:50:10 +11:00
dexy
adcb997808 MRF progress 2022-01-27 03:35:50 +11:00
dexy
f669e62865 Audio explorer progress 2022-01-16 20:30:50 +11:00
dexy
80d175624f Audio explorer progress 2022-01-16 05:54:32 +11:00
dexy
d622cd33fa Use LodInParentYmap flag for LOD linking instead of index check hack 2022-01-16 00:00:48 +11:00
dexy
64f007d611 Audio explorer progress 2022-01-15 05:38:14 +11:00
dexy
75c3a0690b Audio explorer progress 2022-01-14 04:33:20 +11:00
dexy
df79715e6b Audio Explorer 2022-01-13 05:07:07 +11:00
dexy
e76e854ead Synth disassembly in XML instead of bytecode 2022-01-12 01:45:22 +11:00
dexyfex
dc8cc866be
Merge pull request #145 from Monkeypolice188/master
Audio.rel.xml updates
2022-01-10 21:59:14 +11:00
dexy
eb12b5ddcd Allow opening ydr,ydd,yft,ytd files in project window 2022-01-10 04:03:57 +11:00
dexy
8ea3327810 Fix for <Item type="None" /> appearing in drawable XML 2022-01-08 17:40:34 +11:00
Monkeypolice188
634e7296f3 Audio.rel.xml updates
Updates to the following classes;
Dat22Category
Dat151AmbientRule
Dat151AmbientZone
Dat151DependentAmbience
Dat151Unk124
Dat15Patch
2022-01-07 00:21:48 +00: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
dexy
5e7e91043e Fixed UI problems with AudioEmitter Start/End times and changed field types to ushort 2021-12-10 14:55:15 +11:00
Monkeypolice188
f2819b35f6 Audio updates 2021-12-08 15:15:44 +00:00
dexy
e812674e69 Added placeholder class for loading encrypted strings block in RSC Meta (only in debug build), added ResourceAnalyzer to Meta class (also debug build only). 2021-12-02 11:14:50 +11:00
dexyfex
06f24af091
Merge pull request #135 from Lucas7yoshi/fix/cutscenes
Correct cutscene breaking metaname additions
2021-12-01 17:41:12 +11:00
dexy
6c8e6be726 Changed field names in CScenarioChainingNode 2021-12-01 17:37:07 +11:00
Lucas7yoshi
8c494a0c62 Correct cutscene breaking metaname additions 2021-11-30 22:51:57 -05:00
dexy
f808c095c1 Update all scenario flags names 2021-11-23 12:46:16 +11:00
dexy
b29629d72b Update MetaTypes names from new MetaNames 2021-11-23 12:29:13 +11:00
dexy
9ac4785af4 Refactor scenarios deleting nodes/chains/clusters code, rename CScenarioChainingGraph and CSpawnPoint__AvailabilityMpSp 2021-11-23 10:37:31 +11:00
dexy
7922cff694 Sort Dat54SoundSet entries by ScriptName hash on XML import 2021-11-13 22:10:15 +11:00
dexy
2c3b8ee01d Sort gxt2 entries by hash when saving 2021-11-13 21:37:09 +11:00
dexy
f90a5e8fea Added gxt2 and nametable file editing 2021-11-09 08:28:35 +11:00
dexy
958c6def5b Auto update room portal counts when adding/editing portals 2021-11-08 23:43:47 +11:00
dexy
432b42504e Improved ymap rename/saveas experience 2021-11-08 04:01:51 +11:00
dexyfex
8ba9faacec
Merge pull request #71 from carmineos/epedboneid
Added EPedBoneId enum
2021-11-08 00:43:19 +11:00
dexy
a6cad60d6f Added MetaNames from Carl, Siprus and Smallo to manually resolve merge conflicts 2021-11-08 00:41:43 +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
93851d20f2 AudioOcclusionOverride names applied in RelFile. Manually resolved merge conflict to replace PR108 by Ghost 2021-11-08 00:05:38 +11:00
dexyfex
73fd159af6
Merge pull request #121 from Monkeypolice188/master
Various rel field name changes
2021-11-07 20:46:26 +11:00
dexyfex
e81b716dd1
Merge pull request #120 from Disquse/mrf-support
MRF files support
2021-11-07 20:44:33 +11:00
dexy
d0ec453c00 Scenario bug fixes for modelsets and types/groups 2021-11-07 00:58:08 +11:00
Monkeypolice188
8765197eda Various rel field name changes 2021-11-06 10:37:58 +00:00
Disquse
ca8eb31ae2 Resolve MRF saving issues
Should now be able to save any MRF with no difference comparing to original files

Remove debug dield from MrfFile
2021-11-06 08:17:21 +03:00
Disquse
11eb44dbd6 Early MRF saving code and tweaks
Saving is very fragile and might fail and generate wrong data if something is changed without respecting flags
2021-11-06 03:17:53 +03:00
Disquse
17b89cf4ee More MRF corrections 2021-07-16 20:24:01 +03:00
Disquse
8d399945cd A bit of findings about MRF structs 2021-06-12 14:20:21 +03:00
Disquse
fdf2c166f7 Basic parsing support for MRF files 2021-06-12 01:23:15 +03:00