Skip to content

Commit c7a7653

Browse files
authored
Merge pull request #364 from Gothic-Unity-Project/releases/stabilizing-for-2026-07
Releases/stabilizing for 2026 07
2 parents 4ce332d + acb37f2 commit c7a7653

45 files changed

Lines changed: 1032 additions & 192 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Assets/Gothic-Core/Resources/DeveloperConfigs/Production.asset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ MonoBehaviour:
5151
ShowVOBMeshCullingGizmos: 0
5252
ShowCapsuleOverlapGizmos: 0
5353
EnableNpcs: 1
54+
EnableCombatSystem: 1
5455
EnableNpcMeshCulling: 1
5556
NpcCullingDistance: 50
5657
SpawnNpcInstances:
5758
Value:
5859
SpawnMonsterInstances:
5960
Value: 00000000
6061
EnableNpcEyeBlinking: 0
62+
EnableNpcLooting: 1
6163
ShowNpcColliders: 0
6264
ShowFreePoints: 0
6365
ShowWayPoints: 0

Assets/Gothic-Core/Resources/FontAsset/LiberationSans SDF empty.asset

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ MonoBehaviour:
3737
m_TabWidth: 29
3838
m_Material: {fileID: 5152873236376385906}
3939
m_SourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
40+
m_CreationSettings:
41+
sourceFontFileName:
42+
sourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
43+
faceIndex: 0
44+
pointSizeSamplingMode: 0
45+
pointSize: 104
46+
padding: 8
47+
paddingMode: 1
48+
packingMode: 0
49+
atlasWidth: 512
50+
atlasHeight: 256
51+
characterSetSelectionMode: 5
52+
characterSequence:
53+
referencedFontAssetGUID:
54+
referencedTextAssetGUID:
55+
fontStyle: 0
56+
fontStyleModifier: 0
57+
renderMode: 4165
58+
includeFontFeatures: 0
4059
m_SourceFontFile: {fileID: 0}
4160
m_SourceFontFilePath:
4261
m_AtlasPopulationMode: 0
@@ -67,25 +86,6 @@ MonoBehaviour:
6786
m_MarkToMarkAdjustmentRecords: []
6887
m_ShouldReimportFontFeatures: 0
6988
m_FallbackFontAssetTable: []
70-
m_CreationSettings:
71-
sourceFontFileName:
72-
sourceFontFileGUID: e3265ab4bf004d28a9537516768c1c75
73-
faceIndex: 0
74-
pointSizeSamplingMode: 0
75-
pointSize: 104
76-
padding: 8
77-
paddingMode: 1
78-
packingMode: 0
79-
atlasWidth: 512
80-
atlasHeight: 256
81-
characterSetSelectionMode: 5
82-
characterSequence:
83-
referencedFontAssetGUID:
84-
referencedTextAssetGUID:
85-
fontStyle: 0
86-
fontStyleModifier: 0
87-
renderMode: 4165
88-
includeFontFeatures: 0
8989
m_FontWeightTable:
9090
- regularTypeface: {fileID: 0}
9191
italicTypeface: {fileID: 0}
@@ -151,17 +151,15 @@ Texture2D:
151151
m_ImageContentsHash:
152152
serializedVersion: 2
153153
Hash: 00000000000000000000000000000000
154-
m_ForcedFallbackFormat: 4
155-
m_DownscaleFallback: 0
156154
m_IsAlphaChannelOptional: 0
157-
serializedVersion: 2
155+
serializedVersion: 4
158156
m_Width: 512
159157
m_Height: 256
160158
m_CompleteImageSize: 131072
161159
m_MipsStripped: 0
162160
m_TextureFormat: 1
163161
m_MipCount: 1
164-
m_IsReadable: 0
162+
m_IsReadable: 1
165163
m_IsPreProcessed: 0
166164
m_IgnoreMipmapLimit: 0
167165
m_MipmapLimitGroupName:
@@ -297,3 +295,4 @@ Material:
297295
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
298296
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
299297
m_BuildTextureStacks: []
298+
m_AllowLocking: 1

Assets/Gothic-Core/Resources/Prefabs/UI/StatusBars/StatusBar.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Canvas:
225225
m_OverridePixelPerfect: 0
226226
m_SortingBucketNormalizedSize: 0
227227
m_VertexColorAlwaysGammaSpace: 1
228-
m_AdditionalShaderChannelsFlag: 0
228+
m_AdditionalShaderChannelsFlag: 25
229229
m_UpdateRectTransformForStandalone: 0
230230
m_SortingLayerID: 0
231231
m_SortingOrder: 0

Assets/Gothic-Core/Scenes/MainMenu.unity

Lines changed: 114 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ MeshRenderer:
287287
m_PrefabInstance: {fileID: 0}
288288
m_PrefabAsset: {fileID: 0}
289289
m_GameObject: {fileID: 775636288}
290-
m_Enabled: 1
290+
m_Enabled: 0
291291
m_CastShadows: 1
292292
m_ReceiveShadows: 1
293293
m_DynamicOccludee: 1
@@ -300,6 +300,8 @@ MeshRenderer:
300300
m_RayTracingAccelStructBuildFlagsOverride: 0
301301
m_RayTracingAccelStructBuildFlags: 1
302302
m_SmallMeshCulling: 1
303+
m_ForceMeshLod: -1
304+
m_MeshLodSelectionBias: 0
303305
m_RenderingLayerMask: 1
304306
m_RendererPriority: 0
305307
m_Materials:
@@ -321,9 +323,11 @@ MeshRenderer:
321323
m_AutoUVMaxDistance: 0.5
322324
m_AutoUVMaxAngle: 89
323325
m_LightmapParameters: {fileID: 0}
326+
m_GlobalIlluminationMeshLod: 0
324327
m_SortingLayerID: 0
325328
m_SortingLayer: 0
326329
m_SortingOrder: 0
330+
m_MaskInteraction: 0
327331
m_AdditionalVertexStreams: {fileID: 0}
328332
--- !u!33 &775636291
329333
MeshFilter:
@@ -388,7 +392,7 @@ Transform:
388392
m_GameObject: {fileID: 783007466}
389393
serializedVersion: 2
390394
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
391-
m_LocalPosition: {x: -15.407947, y: 2.073237, z: -29.998268}
395+
m_LocalPosition: {x: 0, y: 0, z: 0}
392396
m_LocalScale: {x: 1, y: 1, z: 1}
393397
m_ConstrainProportionsScale: 0
394398
m_Children:
@@ -467,6 +471,8 @@ MeshRenderer:
467471
m_RayTracingAccelStructBuildFlagsOverride: 0
468472
m_RayTracingAccelStructBuildFlags: 1
469473
m_SmallMeshCulling: 1
474+
m_ForceMeshLod: -1
475+
m_MeshLodSelectionBias: 0
470476
m_RenderingLayerMask: 1
471477
m_RendererPriority: 0
472478
m_Materials:
@@ -488,9 +494,11 @@ MeshRenderer:
488494
m_AutoUVMaxDistance: 0.5
489495
m_AutoUVMaxAngle: 89
490496
m_LightmapParameters: {fileID: 0}
497+
m_GlobalIlluminationMeshLod: 0
491498
m_SortingLayerID: 0
492499
m_SortingLayer: 0
493500
m_SortingOrder: 0
501+
m_MaskInteraction: 0
494502
m_AdditionalVertexStreams: {fileID: 0}
495503
--- !u!33 &791865609
496504
MeshFilter:
@@ -565,17 +573,23 @@ MonoBehaviour:
565573
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
566574
m_Name:
567575
m_EditorClassIdentifier:
568-
m_Version: 3
569576
m_UsePipelineSettings: 1
570577
m_AdditionalLightsShadowResolutionTier: 2
571-
m_LightLayerMask: 1
572-
m_RenderingLayers: 1
573578
m_CustomShadowLayers: 0
574-
m_ShadowLayerMask: 1
575-
m_ShadowRenderingLayers: 1
576579
m_LightCookieSize: {x: 1, y: 1}
577580
m_LightCookieOffset: {x: 0, y: 0}
578581
m_SoftShadowQuality: 0
582+
m_RenderingLayersMask:
583+
serializedVersion: 0
584+
m_Bits: 1
585+
m_ShadowRenderingLayersMask:
586+
serializedVersion: 0
587+
m_Bits: 1
588+
m_Version: 4
589+
m_LightLayerMask: 1
590+
m_ShadowLayerMask: 1
591+
m_RenderingLayers: 1
592+
m_ShadowRenderingLayers: 1
579593
--- !u!108 &1308095012
580594
Light:
581595
m_ObjectHideFlags: 0
@@ -584,14 +598,14 @@ Light:
584598
m_PrefabAsset: {fileID: 0}
585599
m_GameObject: {fileID: 1308095009}
586600
m_Enabled: 1
587-
serializedVersion: 11
601+
serializedVersion: 12
588602
m_Type: 1
589603
m_Color: {r: 1, g: 1, b: 1, a: 1}
590604
m_Intensity: 1
591605
m_Range: 10
592606
m_SpotAngle: 30
593607
m_InnerSpotAngle: 21.80208
594-
m_CookieSize: 10
608+
m_CookieSize2D: {x: 10, y: 10}
595609
m_Shadows:
596610
m_Type: 0
597611
m_Resolution: -1
@@ -667,13 +681,13 @@ RectTransform:
667681
m_PrefabInstance: {fileID: 0}
668682
m_PrefabAsset: {fileID: 0}
669683
m_GameObject: {fileID: 2031667426}
670-
m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068}
671-
m_LocalPosition: {x: 0, y: 0, z: 0.02}
672-
m_LocalScale: {x: -40, y: 8, z: 32}
684+
m_LocalRotation: {x: 0, y: 0.7071068, z: 0.7071068, w: 0}
685+
m_LocalPosition: {x: 0, y: 0, z: 10}
686+
m_LocalScale: {x: 2, y: 1, z: 2}
673687
m_ConstrainProportionsScale: 0
674688
m_Children: []
675689
m_Father: {fileID: 783007468}
676-
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
690+
m_LocalEulerAnglesHint: {x: -90, y: 180, z: 0}
677691
m_AnchorMin: {x: 0.5, y: 0.5}
678692
m_AnchorMax: {x: 0.5, y: 0.5}
679693
m_AnchoredPosition: {x: 0, y: 0}
@@ -721,6 +735,8 @@ MeshRenderer:
721735
m_RayTracingAccelStructBuildFlagsOverride: 0
722736
m_RayTracingAccelStructBuildFlags: 1
723737
m_SmallMeshCulling: 1
738+
m_ForceMeshLod: -1
739+
m_MeshLodSelectionBias: 0
724740
m_RenderingLayerMask: 1
725741
m_RendererPriority: 0
726742
m_Materials: []
@@ -741,9 +757,11 @@ MeshRenderer:
741757
m_AutoUVMaxDistance: 0.5
742758
m_AutoUVMaxAngle: 89
743759
m_LightmapParameters: {fileID: 0}
760+
m_GlobalIlluminationMeshLod: 0
744761
m_SortingLayerID: 0
745762
m_SortingLayer: 0
746763
m_SortingOrder: 0
764+
m_MaskInteraction: 0
747765
m_AdditionalVertexStreams: {fileID: 0}
748766
--- !u!33 &2031667430
749767
MeshFilter:
@@ -761,10 +779,38 @@ PrefabInstance:
761779
serializedVersion: 3
762780
m_TransformParent: {fileID: 505140342}
763781
m_Modifications:
782+
- target: {fileID: 514510020229674838, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
783+
propertyPath: m_fontSize
784+
value: 44.75
785+
objectReference: {fileID: 0}
786+
- target: {fileID: 819469628458212509, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
787+
propertyPath: m_fontSize
788+
value: 44.75
789+
objectReference: {fileID: 0}
790+
- target: {fileID: 1099075632631060353, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
791+
propertyPath: m_fontSize
792+
value: 44.75
793+
objectReference: {fileID: 0}
794+
- target: {fileID: 1395391690268023265, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
795+
propertyPath: m_fontSize
796+
value: 44.75
797+
objectReference: {fileID: 0}
798+
- target: {fileID: 1684002802907956876, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
799+
propertyPath: m_fontSize
800+
value: 44.75
801+
objectReference: {fileID: 0}
764802
- target: {fileID: 1879303798920566507, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
765803
propertyPath: m_Name
766804
value: Tutorials
767805
objectReference: {fileID: 0}
806+
- target: {fileID: 1894576811620697740, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
807+
propertyPath: m_fontSize
808+
value: 44.75
809+
objectReference: {fileID: 0}
810+
- target: {fileID: 1988018937390540162, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
811+
propertyPath: m_fontSize
812+
value: 22.9
813+
objectReference: {fileID: 0}
768814
- target: {fileID: 2283093842980008316, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
769815
propertyPath: m_LocalPosition.x
770816
value: 0
@@ -805,6 +851,58 @@ PrefabInstance:
805851
propertyPath: m_LocalEulerAnglesHint.z
806852
value: 0
807853
objectReference: {fileID: 0}
854+
- target: {fileID: 3406562529197016604, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
855+
propertyPath: m_fontSize
856+
value: 44.75
857+
objectReference: {fileID: 0}
858+
- target: {fileID: 3521149265392391147, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
859+
propertyPath: m_fontSize
860+
value: 22.35
861+
objectReference: {fileID: 0}
862+
- target: {fileID: 4641005291164401446, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
863+
propertyPath: m_fontSize
864+
value: 44.75
865+
objectReference: {fileID: 0}
866+
- target: {fileID: 6503434739734083609, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
867+
propertyPath: m_fontSize
868+
value: 44.75
869+
objectReference: {fileID: 0}
870+
- target: {fileID: 6916374624597502023, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
871+
propertyPath: m_fontSize
872+
value: 36.75
873+
objectReference: {fileID: 0}
874+
- target: {fileID: 6924097052499452501, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
875+
propertyPath: m_fontSize
876+
value: 44.75
877+
objectReference: {fileID: 0}
878+
- target: {fileID: 7063008752886569165, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
879+
propertyPath: m_fontSize
880+
value: 44.75
881+
objectReference: {fileID: 0}
882+
- target: {fileID: 7255685370734901281, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
883+
propertyPath: m_fontSize
884+
value: 44.75
885+
objectReference: {fileID: 0}
886+
- target: {fileID: 7407273248831804694, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
887+
propertyPath: m_fontSize
888+
value: 22.35
889+
objectReference: {fileID: 0}
890+
- target: {fileID: 8256774338473347927, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
891+
propertyPath: m_fontSize
892+
value: 44.75
893+
objectReference: {fileID: 0}
894+
- target: {fileID: 8591534907977924294, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
895+
propertyPath: m_fontSize
896+
value: 44.75
897+
objectReference: {fileID: 0}
898+
- target: {fileID: 9011431278706922558, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
899+
propertyPath: m_fontSize
900+
value: 44.75
901+
objectReference: {fileID: 0}
902+
- target: {fileID: 9118953017428058395, guid: a0af29d97abd24d4c8382b6da4017660, type: 3}
903+
propertyPath: m_fontSize
904+
value: 44.75
905+
objectReference: {fileID: 0}
808906
m_RemovedComponents: []
809907
m_RemovedGameObjects: []
810908
m_AddedGameObjects: []
@@ -828,19 +926,19 @@ PrefabInstance:
828926
objectReference: {fileID: 0}
829927
- target: {fileID: 7389606469834037353, guid: 962bda2b335a56f48a6f7159a9e824d8, type: 3}
830928
propertyPath: m_LocalScale.x
831-
value: 0.7
929+
value: 1
832930
objectReference: {fileID: 0}
833931
- target: {fileID: 7389606469834037353, guid: 962bda2b335a56f48a6f7159a9e824d8, type: 3}
834932
propertyPath: m_LocalScale.y
835-
value: 0.7
933+
value: 1
836934
objectReference: {fileID: 0}
837935
- target: {fileID: 7389606469834037353, guid: 962bda2b335a56f48a6f7159a9e824d8, type: 3}
838936
propertyPath: m_LocalPosition.x
839937
value: 0
840938
objectReference: {fileID: 0}
841939
- target: {fileID: 7389606469834037353, guid: 962bda2b335a56f48a6f7159a9e824d8, type: 3}
842940
propertyPath: m_LocalPosition.y
843-
value: 1.6
941+
value: 1.5
844942
objectReference: {fileID: 0}
845943
- target: {fileID: 7389606469834037353, guid: 962bda2b335a56f48a6f7159a9e824d8, type: 3}
846944
propertyPath: m_LocalPosition.z

Assets/Gothic-Core/Scripts/Adapters/Animations/AnimationSystem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,13 @@ private void ApplyEventTags(AnimationTrackInstance trackInstance)
565565
AttackAnimation = trackInstance.AnimationName;
566566
break;
567567
case EventType.OptimalFrame:
568-
AttackOptFrame = eventTag.Slots.Item1.Split(' ').Select(i => Convert.ToInt32(i)).ToList();
568+
AttackOptFrame = eventTag.Slots.Item1.Split(' ').Where(s => !string.IsNullOrEmpty(s)).Select(i => Convert.ToInt32(i)).ToList();
569569
break;
570570
case EventType.HitEnd:
571-
AttackHitEnd = eventTag.Slots.Item1.Split(' ').Select(i => Convert.ToInt32(i)).ToList();
571+
AttackHitEnd = eventTag.Slots.Item1.Split(' ').Where(s => !string.IsNullOrEmpty(s)).Select(i => Convert.ToInt32(i)).ToList();
572572
break;
573573
case EventType.ComboWindow:
574-
AttackWindowFrames = eventTag.Slots.Item1.Split(' ').Select(i => Convert.ToInt32(i)).ToList();
574+
AttackWindowFrames = eventTag.Slots.Item1.Split(' ').Where(s => !string.IsNullOrEmpty(s)).Select(i => Convert.ToInt32(i)).ToList();
575575
break;
576576
// Unused. @see: https://gothic-modding-community.github.io/gmc/zengin/anims/events/#def_dir
577577
case EventType.HitDirection:

Assets/Gothic-Core/Scripts/Adapters/Animations/Morph/AbstractMorphAnimation.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ protected void StartAnimation(string morphMeshName, [CanBeNull] string animation
5757
var newMorph = new MorphAnimationData();
5858

5959
newMorph.MeshMetadata = _resourceCacheService.TryGetMorphMesh(morphMeshName);
60+
if (newMorph.MeshMetadata == null)
61+
{
62+
Logger.LogWarning($"MorphMesh not found: {morphMeshName}", LogCat.Mesh);
63+
return;
64+
}
65+
6066
newMorph.AnimationMetadata = animationName == null
6167
? newMorph.MeshMetadata.Animations.First()
6268
: newMorph.MeshMetadata.Animations.First(anim => anim.Name.EqualsIgnoreCase(animationName));

0 commit comments

Comments
 (0)