Space Engineers

Space Engineers

Consolidation Armament II - Definitive Weapon Pack
This topic has been locked
Visentinel 17 Mar, 2023 @ 6:54pm
Crash - MyScreenDecals
Hi Foltast i have found that using any of these weapons especially the really powerfull ones crash my game with a decal crash, I managed to get Digi to load up my world with all of my mods (at great suffering to him) and he debug the issue.

Exception in render!

Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at VRageRender.MyScreenDecals.GetDecalCameraSqDistance(MyScreenDecal decal)
at VRageRender.MyScreenDecals.CanBePlaced(MyScreenDecal decal)
at VRageRender.MyScreenDecals.AddDecal(UInt32 id, UInt32[] parentIDs, MyDecalTopoData& topoData, MyDecalFlags flags, String sourceTarget, String material, Int32 matIndex, Single renderSqDistance, Boolean isTrail, Int32 timeUntilLive)
at VRageRender.MyRender11.ProcessMessageInternal(MyRenderMessageBase message, Int32 frameId)
at VRageRender.MyRender11.ProcessMessage(MyRenderMessageBase message, Int32 frameId)
at VRageRender.MyRender11.ProcessRenderFrame(MyUpdateFrame frame, Boolean draw)
at VRageRender.MyRender11.ProcessMessageQueue(Boolean draw)
at VRageRender.MyRender11.FullDraw(Boolean draw)
at VRageRender.MyRender11.Draw(Boolean draw)
at VRageRender.ExternalApp.MyRenderThread.Draw()
at VRageRender.ExternalApp.MyRenderThread.RenderFrame(Boolean async)
at VRageRender.ExternalApp.MyRenderThread.RenderCallback(Boolean async)

Here is the Debugger finding the problem exists within the game Engine

the game is trying to act on a decal that no longer exists.

the fix is to stop using decals with your weapons =P

https://imgur.com/a/Wvx68rU

These screenshots have the debugger output.
Last edited by Visentinel; 17 Mar, 2023 @ 7:00pm
< >
Showing 1-7 of 7 comments
Visentinel 17 Mar, 2023 @ 6:57pm 
Digi also said

"you can disable WC's add decal by just editing the mod script, in Data\Scripts\CoreSystems\AudioVisual\RunAv.cs search for adddecal and comment out that line"
Dercaixr  [developer] 18 Mar, 2023 @ 7:07am 
We are aware of this problem, but unfortunately that's not on our side. The whole CoreSystems folder is not used and thus not present by this mod, it's one of the folders of the WeaponCore itself. I have made a report in WeaponCore discord about this problem some time ago, but all we can do is wait.
Visentinel 18 Mar, 2023 @ 7:13am 
hmmm any way to get the weaponcore team to just disable the decals and push an update ? its kindof making your two mods and potentially any weaponcore mod un-usable. IMO this bug is high to critical priority.
Last edited by Visentinel; 18 Mar, 2023 @ 7:13am
Foltast  [developer] 18 Mar, 2023 @ 8:14am 
Originally posted by Visentinel:
hmmm any way to get the weaponcore team to just disable the decals and push an update ? its kindof making your two mods and potentially any weaponcore mod un-usable. IMO this bug is high to critical priority.

So far we have been able to reproduce this problem only with the second mod and when shooting at shields. At least neither we nor the players on our server did not have a problem with the decals in the first mod

My guess is that the problem may be caused by the new WeaponCore API, which is currently used by an extremely small number of mods, including CA2
Visentinel 18 Mar, 2023 @ 5:19pm 
Hey i dont know exactly what file on your end this is in but apparently you can control the decals in your ammo definition here

https://steamuserimages-a.akamaihd.net/ugc/2026096191571792067/1215BBFA3B2597D017D9BBEFF6D32CA206968FE6/

I reached out to Darkstar about this and unfortunately they arent going to do anything at all about this bug, its a keen problem apparently. Also Darkstar seems to think theres only been 1 report of this bug ? and he was a massive **** about this issue to me over in keens discord. Nukeguard was way way nicer to talk to and thats where i found out about the ammo def thing.

I hope this helps you guys :D !
Last edited by Visentinel; 18 Mar, 2023 @ 5:22pm
Foltast  [developer] 18 Mar, 2023 @ 5:36pm 
Originally posted by Visentinel:
Hey i dont know exactly what file on your end this is in but apparently you can control the decals in your ammo definition here

https://steamuserimages-a.akamaihd.net/ugc/2026096191571792067/1215BBFA3B2597D017D9BBEFF6D32CA206968FE6/

I reached out to Darkstar about this and unfortunately they arent going to do anything at all about this bug, its a keen problem apparently. Also Darkstar seems to think theres only been 1 report of this bug ? and he was a massive **** about this issue to me over in keens discord. Nukeguard was way way nicer to talk to and thats where i found out about the ammo def thing.

I hope this helps you guys :D !

Yes, sometimes he can be rough. And sometimes he doesn't pay attention to problems he doesn't really want to solve ;)
We already solved the problem on our side and ran the patch a few hours ago. The tests showed that the problem should be solved. Anyway, thank you very much for taking the time and trying to find a solution on your own and bring attention to it!
Visentinel 18 Mar, 2023 @ 5:37pm 
Your welcome =D
< >
Showing 1-7 of 7 comments
Per page: 1530 50