Mods / COGetTransformMatrixFix

Tags:
Tweak
Author:
SiiMeR
Side:
Client
Created:
Jun 13th 2025 at 10:19 PM
Last modified:
Jun 21st 2025 at 5:18 AM
Downloads:
3487
Latest release (for Vintage Story 1.20.11 - 1.20.12, outdated):
cogettransformmatrixfix_1.1.1.zip  1-click install

When using the latest version of CO and OverhaulLib, there is crash that can occur when someone near you takes off their clothes (specifically the Upper Body and Upper Body Over slots). 

 

The crash log looks like this:

Running on 64 bit Windows 10.0.26100.0 with 15731 MB RAM
Game Version: v1.20.12 (Stable)
12/06/2025 22:06:34: Critical error occurred in the following mod: overhaullib@0.2.9
Loaded Mods: aculinaryartillery@1.2.5, americanfrontiersman@1.8.0, tonwexp-neue@2.1.1, anmitechco@1.3.0, chiseltools@1.14.19, dressedtokill@1.7.0, fixedpaths@1.0.2, flowers@1.0.1, globalbloc@1.0.0, handtohand@1.0.3, hangingoillamps@1.0.3, hideplayername@2.1.3, immersiveorecrush@2.2.1, manualdough@1.1.3, manualscraping@1.2.1, millwright@1.2.4, morebanners@1.2.1, moremeadoptions@1.1.4, overhaullib@0.2.9, primitivesurvival@3.7.7, ridetogether@1.0.0, cotassets@0.0.4, slowwalkmod@1.2.2, stepfixelk@0.0.1, tankardsandgoblets@1.0.0, unevenbricks@1.0.0, game@1.20.12, apegrapes@1.2.6, flags@1.1.8, bedspawnv2@1.4.0, betterfirepitexploitfit@1.1.6, betterpoultice2@1.0.9, betterruins@0.4.12, billposting@1.0.1, butchering@1.9.0, carryon@1.8.1, cartwrightscaravan@1.5.1, coinage@1.14.0, colorfulcandles@1.2.3, combatoverhaul@0.3.9, commonlib@2.6.1, coopsynergy@0.1.0, coreofarts@0.2.3, caffCuniculture@1.0.8, doubleupdatefix@1.0.3, dynamictestingtools@1.0.1, entitynametag@1.2.2, envelopes@1.4.1, expandedfoods@1.7.4, expandedskins@2.1.0, fairplayguardian@1.1.9, farseer@1.3.1, foodshelves@1.6.3, fromgoldencombs@1.8.12, gourmandbalance@1.0.1, gourmand@1.7.0, heatretention@1.0.2, herbarium@1.4.0, improvedhandbookrecipes@1.1.3, itemizer@1.1.1, jopainting@1.4.1, kevinsfurniture@1.6.6, knapster@2.14.4, kscartographytable@1.0.2, maketea@0.3.1, maltiezcrossbows@1.2.0, multisign@1.1.0, neverwinter@1.6.4, noticeboard@1.1.1, oneroof@1.9.3, pewter@1.2.3, playerlist@2.1.5, plumbandcube@1.1.0, postsandbeams@1.4.0, removeprimitivesurvivalstairs@1.0.0, rivers@4.1.0, rpvoicechat@2.3.19, slapalabelonit@1.0.0, somethinginthewater@1.2.6, speedboat@1.0.0, statushudcont@3.2.6, stonebakeoven@1.1.6, substrate@1.1.2, tabletopgames@2.10.4, toolsanimations@1.0.2, traitacquirer@0.9.6, typing_indicatorfix@1.0.1, unconscious@1.10.3, vanvar@6.0.12, vinconomy@0.4.0, creative@1.20.12, vsinstrumentsbase@2.0.1, survival@1.20.12, xlib@0.8.16, armory@0.2.4, artofgrowing@1.1.2, em@3.2.2, nocrossbowspam@1.1.1, pabrass@1.0.2, paelectrum@1.0.1, pagoldsilver@1.0.2, playercorpse@1.11.1, stonequarry@3.4.3, thebasics@5.0.1, vsinstruments_quackpack@1.0.2, wildcraftfruit@1.3.2, xskills@0.8.19, aogbreedingaddon@1.1.0, artsxskills@1.1.0, tailorsdelight@1.9.7, theworkingclasses@1.0.4, dressmakers@1.6.0
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at CombatOverhaul.Colliders.ShapeElementCollider.GetTransformMatrix(Int32 jointId, Single[] TransformationMatrices4x4) in D:\Projects\VintageStory\Overhaullib\source\Colliders\EntityCollider.cs:line 491
at CombatOverhaul.Colliders.ShapeElementCollider.Transform(Single[] transformMatrixAll, ICoreClientAPI api) in D:\Projects\VintageStory\Overhaullib\source\Colliders\EntityCollider.cs:line 338
at CombatOverhaul.Colliders.CollidersEntityBehavior.RecalculateColliders(ClientAnimator animator, ICoreClientAPI clientApi) in D:\Projects\VintageStory\Overhaullib\source\Colliders\EntityBehavior.cs:line 360
at CombatOverhaul.Colliders.CollidersEntityBehavior.OnGameTick(Single deltaTime) in D:\Projects\VintageStory\Overhaullib\source\Colliders\EntityBehavior.cs:line 180
at Vintagestory.API.Common.Entities.Entity.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\Entity.cs:line 1106
at Vintagestory.API.Common.EntityAgent.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\EntityAgent.cs:line 481
at Vintagestory.API.Common.EntityPlayer.OnGameTick(Single dt) in VintagestoryApi\Common\Entity\EntityPlayer.cs:line 654
at Vintagestory.Client.NoObf.ClientSystemEntities.OnGameTick(Single dt) in VintagestoryLib\Client\Systems\Entities.cs:line 107
at Vintagestory.Common.GameTickListener.OnTriggered(Int64 ellapsedMilliseconds) in VintagestoryLib\Common\Model\GameTickListener.cs:line 31
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world) in VintagestoryLib\Common\EventManager.cs:line 174
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt) in VintagestoryLib\Client\ClientMain.cs:line 825
at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenRunningGame.cs:line 161
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 695
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 670
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 88
at OpenTK.Windowing.Desktop.GameWindow.Run()
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 334
at Vintagestory.Client.ClientProgram.<>c__DisplayClass10_0.<.ctor>b__1() in VintagestoryLib\Client\ClientProgram.cs:line 130
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93

 

 

This mod is a band-aid fix to the crashing issue.

I've just replaced the crashing method with a patched version.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.1.1 cogettransformmatrixfix
1.20.11 - 1.20.12
3186 Jun 21st 2025 at 5:18 AM cogettransformmatrixfix_1.1.1.zip 1-click install

* Make it possible to install on server and have clients auto-download it upon joining

1.1.0 cogettransformmatrixfix 158 Jun 14th 2025 at 11:59 PM cogettransformmatrixfix_1.1.0.zip 1-click install

* No more requirement of OverhaulLib

1.0.0 cogettransformmatrixfix 143 Jun 13th 2025 at 10:19 PM cogettransformmatrixfix_1.0.0.zip 1-click install

*First release


1 Comment (oldest first | newest first) (threaded | flat)

bintoss, Nov 13th 2025 at 11:23 AM

Still useful for people stuck on VS 1.20.1.
This was fixed upstream in Overhaul Lib v0.3.1 for VS 1.21.0-pre.1, but has not been backported to VS1.20.12 and released as (hypothetically) v0.3.1-dev.1 as a maintenance release channel.

| Mod Version | Game version | DLs | Released           | Changelog
| ----------- | -------------| ----| ------------------ | ---------
| 0.3.1       | 1.21.0-pre.1 | 638 | Jun 24th at 5:23PM | Fixed crash when someone around you takes off/on clothes or armor