Kenshi
Gym Training Tools
Cattrina  [developer] Dec 1, 2021 @ 10:39pm
Bug hunting for GTT
Please reply to this thread with your computer specs (you can find them in the system information and copy it usinf ctrl+c)

Please also state what you did when the crash happened. A complete mod list would also help, but I do understand that can be super tedious to make.
Last edited by Cattrina; Jun 6, 2022 @ 1:00pm
< >
Showing 1-12 of 12 comments
Cattrina  [developer] Dec 1, 2021 @ 10:39pm 
For transparency sake, my comp stats below, no CTDs for me

OS Name Microsoft Windows 10 Home
Version 10.0.19043 Build 19043
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ESMERALDA
System Manufacturer Gigabyte Technology Co., Ltd.
System Model Z170-Gaming K3
System Type x64-based PC
System SKU To be filled by O.E.M.
Processor Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz, 3501 Mhz, 4 Core(s), 4 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. F1, 7.12.2015
SMBIOS Version 2.8
Embedded Controller Version 255.255
BIOS Mode Legacy
BaseBoard Manufacturer Gigabyte Technology Co., Ltd.
BaseBoard Product Z170-Gaming K3
BaseBoard Version x.x
Platform Role Desktop
Secure Boot State Unsupported
PCR7 Configuration Binding Not Possible
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.19041.1151"
User Name ESMERALDA\Cattrina
Time Zone FLE Standard Time
Installed Physical Memory (RAM) 16,0 GB
Total Physical Memory 16,0 GB
Available Physical Memory 9,80 GB
Total Virtual Memory 22,0 GB
Available Virtual Memory 13,0 GB
Page File Space 6,00 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Not enabled
Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes
Bench Shapiro Dec 2, 2021 @ 5:11pm 
Computer Specs: DM me if you need specs but it is similar enough to yours.

Crashes 80% of the time when I FIRST load into the game and attempt to move my screen a pixel in view of the training tools, I have all except the tesla coils, and collectively about 30-50 of training tools built total. Also will immediately crash when I double-click zoom onto a character who is in the vicinity of these training tools. I have none of my guys assigned "jobs" on these tools, I notice they just work them automatically. The tools in my world are built and located in the building "Japanese Castle" which is another mod.

I have probably undergone 100 crashes over a month because of this mod but I kept it because I enjoy having a swole gym, and again; it only crashes 80% of the time. If I am to pause my game and slowly move my camera onto the location of the training tools it won't crash 20% of the time, I don't know; it just works. But still my game is quite unstable because of it (moving the tools out of view again and double-clicking onto a character working them likely crashes the game again)

And yea, ultimately I know for sure it is this mod that is causing this large number of crashes since it is alleviated when I specifically remove this one.
Scipione Dec 3, 2021 @ 3:24am 
I didn't have much time to play the last days, did a quick test to help narrowing down the problem, but wasn't able to recreate the problem in the last 10 minutes (and currently have the time to continue testing)
Stryker Dec 3, 2021 @ 9:24am 
Win 10
Ryzen 9 3900X
32 Gigs of RAM (smp prof. confirmed)
GTX 2080 SUPER
MSI MPG X570

I can only add that it happens when I do visually look at the area vs it happening off camera.
Vintage Dec 4, 2021 @ 9:34am 
Just adding my personal experience, haven't finished building the weight bench. Exited the building, when I try to re-enter it the game crashes.
Derejin Dec 28, 2021 @ 6:59pm 
Adding my voice to the chorus: seem to crash if I start building these then exit+re-enter a building.

The kenshi.log from the crashdump ends like this:

Mesh: Loading AOM_MESH_SkelMuscle.mesh.
Mesh: Loading WeightLiftingBench.mesh.
Mesh: Loading WeightSupports.mesh.
Mesh: Loading clothbench.mesh.
Texture: WeightBench.dds: Loading 1 faces(PF_DXT5,800x800x1) with 7 custom mipmaps from Image. Internal format is PF_DXT5,800x800x1.

Mesh: Loading Weightbenchadv.mesh.
OGRE EXCEPTION(887a0005:RenderingAPIException): Failed to create rasterizer state
Error Description:hr = 0x887A0005
(Reason: 0x887A0006) in D3D11RenderSystem::_render at ..\..\..\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 2503)

Exception when rendering material: FogPlaneVolume_16
OGRE EXCEPTION(887a0005:RenderingAPIException): Failed to create rasterizer state

Error Description:hr = 0x887A0005
(Reason: 0x887A0006) in D3D11RenderSystem::_render at ..\..\..\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 2503)

OGRE EXCEPTION(887a0005:RenderingAPIException): Failed to create sampler state
Error Description:hr = 0x887A0005
(Reason: 0x887A0006) in D3D11RenderSystem::_render at ..\..\..\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 2567)

Exception when rendering material: FXAA
OGRE EXCEPTION(887a0005:RenderingAPIException): Failed to create sampler state
Error Description:hr = 0x887A0005
(Reason: 0x887A0006) in D3D11RenderSystem::_render at ..\..\..\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 2567)

OGRE EXCEPTION(887a0005:RenderingAPIException): Error Presenting surfaces. Description: hr = 0x887A0005
(Reason: 0x887A0006). Reason: 2289696774 in D3D11RenderWindowSwapChainBased::swapBuffers at ..\..\..\RenderSystems\Direct3D11\src\OgreD3D11RenderWindow.cpp (line 632)

====
For reference, playing on Experimental.
Last edited by Derejin; Dec 28, 2021 @ 7:00pm
Derejin Dec 29, 2021 @ 2:48am 
Think I may have fixed it, on my end.
I did some researching and found this thread:
https://steamcommunity.com/app/233860/discussions/1/2605804632885024044/

The thread noted that a crash (similar to mine) occurred due to a material issue.
I opened the mod and noticed that the material for the 'Weight Bench Support' part was red - so I cleared that material reference inside the Weight Bench Support.

The crashes (and hitching, and strange 'color lines' when constructing a Weight Bench) all stopped. The actual support part of the bench looks different now due to using a default material, but I can use the weight benches now with no problem. :)

You may want to check out the material the Weight Bench Support uses and see if it's throwing any errors on your end.
====
For any reading who want to do the fix I did (note that this fix will be reset if the mod receives any updates, since Steam will re-install the mod if it gets an update):

-Open the Modding Tool (hit Play on Kenshi in your library, then select Modding Tool on the popup)
-Hit 'DONE' when the list of the four modules pops up. It'll warn you about editing default files, but don't worry about it, since we're going to load a mod after this.
-The Game World (and its errors popup) will now appear. Ignore it for now.
-On the top bar, the rightmost option (or near it) should be 'Open Any'. Select that.
-Navigate to your Steam library install/steamapps/common/workshop/content/233860/25736469896 - that's this mod's folder from the workshop.
-Open the 'CBT Gym Training Tools.mod' file in that folder. The mod's contents will appear now in the Game World popup.
-Scroll down and look for 'Weight Bench Support'. Double click that and a window will open.
-On the right side of the window will be a red material reference. Left click it, then hit the DELETE key on your keyboard.
-Close out the editor - it'll prompt you asking if you want to save. Hit 'yes', and boom: weight benches fixed (though they will look a little different, it's not ugly).

===
Further EDIT:
Doesn't seem like the above fully fixes the crashes, but it makes them less likely.
After doing the above, if you enter 'build mode' then scroll the camera over to where one of the benches is, the crash won't happen - but if you look at it first while NOT in build mode, the crash seems very likely.

Not exactly sure what's going on, or why being in build mode when you first see a bench stops it from causing an issue, but this method seems to help a lot.
Last edited by Derejin; Feb 1, 2022 @ 11:50am
stanner Jan 3, 2022 @ 4:14am 
Originally posted by Derejin:
Think I may have fixed it, on my end.
I did some researching and found this thread:
https://steamcommunity.com/app/233860/discussions/1/2605804632885024044/

The thread noted that a crash (similar to mine) occurred due to a material issue.
I opened the mod and noticed that the material for the 'Weight Bench Support' part was red - so I cleared that material reference inside the Weight Bench Support.

The crashes (and hitching, and strange 'color lines' when constructing a Weight Bench) all stopped. The actual support part of the bench looks different now due to using a default material, but I can use the weight benches now with no problem. :)

You may want to check out the material the Weight Bench Support uses and see if it's throwing any errors on your end.
====
For any reading who want to do the fix I did (note that this fix will be reset if the mod receives any updates, since Steam will re-install the mod if it gets an update):

-Open the Modding Tool (hit Play on Kenshi in your library, then select Modding Tool on the popup)
-Hit 'DONE' when the list of the four modules pops up. It'll warn you about editing default files, but don't worry about it, since we're going to load a mod after this.
-The Game World (and its errors popup) will now appear. Ignore it for now.
-On the top bar, the rightmost option (or near it) should be 'Open Any'. Select that.
-Navigate to your Steam library install/steamapps/common/workshop/content/233860/25736469896 - that's this mod's folder from the workshop.
-Open the 'CBT Gym Training Tools.mod' file in that folder. The mod's contents will appear now in the Game World popup.
-Scroll down and look for 'Weight Bench Support'. Double click that and a window will open.
-On the right side of the window will be a red material reference. Left click it, then hit the DELETE key on your keyboard.
-Close out the editor - it'll prompt you asking if you want to save. Hit 'yes', and boom: weight benches fixed (though they will look a little different, it's not ugly).


just did this and may not know if it works since it crashes when i load in and doubletap a player to view the character. if i make it past that im good. may not report back if i dont then its good news. just want to think you for this very detailed help, amazing brother!
Frission Jan 16, 2022 @ 6:41pm 
100% this mod is responsible for the CTD's, I started getting them not long after installing it too. No idea what's causing it. It's less about the camera 'moving over' them directly which doesn't seem to be the case for me, and more likely something to do with how the game processes camera state changes when telling the camera to zoom near people using them. Animation errors maybe? Either way it always seems to crash when I tell the game or a character to *do* something, it hasn't happened passively yet.
Cattrina  [developer] Feb 24, 2022 @ 10:31pm 
Originally posted by Derejin:
Think I may have fixed it, on my end.
I did some researching and found this thread:
https://steamcommunity.com/app/233860/discussions/1/2605804632885024044/

... cut

There must be something wrong with the file on Steam, as I do not get any errors. The material file used for the support is the vanilla furniture atlas modular. I have now reuploaded the files in hopes this fixes the error.
Cattrina  [developer] May 24, 2022 @ 7:17am 
V9 out now, if the current theory is correct, there should not be any CTDs anymore. Let me know.
Rokonuxa May 9 @ 10:25am 
Whenever my main engineer goes into a dedicated gym building with something between 2-4 objects from this mod, I get a crash.
< >
Showing 1-12 of 12 comments
Per page: 1530 50