Space Engineers

Space Engineers

Paint Gun - realistic painting for survival + special creative features
This topic has been locked
Borrel 5 Jul, 2020 @ 8:19am
Error when loading newest mod update (July 5th, 15:32hr)
The latest update from this afternoon gives me an error when loading it on my dedicated server.

The error:

### PaintGun v19
Paint Gun error/exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.PaintGun.Features.Palette.Palette.IsSkinAsset(MyAssetModifierDefinition assetDef)
at Digi.PaintGun.Features.Palette.Palette.InitBlockSkins()
at Digi.PaintGun.Features.Palette.Palette..ctor(PaintGunMod main)
at Digi.PaintGun.PaintGunMod..ctor(PaintGun_GameSession session)
at Digi.ComponentLib.PaintGun_GameSession.LoadMod()
at Digi.ComponentLib.PaintGun_GameSession.LoadData()
Exception while loading world: Error in mod loading, see above exceptions.

I cannot start the server right now without temporary removing the mod, a couple of hours ago before this mod was updated it worked fine.
< >
Showing 1-5 of 5 comments
Digi  [developer] 5 Jul, 2020 @ 8:49am 
I'm looking into it and will update once I find what causes it.
EDIT: So far I can't replicate it on my local DS :/
Last edited by Digi; 5 Jul, 2020 @ 8:54am
Digi  [developer] 5 Jul, 2020 @ 9:07am 
I've updated the mod with some error catching in that method because I don't know what the issue is since I can't replicate it.

Those errors could also mean something else breaks down the line, so you will get some errors but it shouldn't crash the server anymore, I need those errors tho.

Check the mod's log if last skin is #17 (total 18 skins including noskin).

And if you still get crashes, check if it's paintgun v20, if not then you didn't get the update.
Borrel 5 Jul, 2020 @ 11:02am 
Thank you. I will look into it tomorrow if it is fixed
Borrel 6 Jul, 2020 @ 12:02am 
I checked, and it is working now, still getting a lot of errors, but the server is starting.
Not going to paste them all here (for readability). I will if you need them.

2020-07-06 08:50:12.018 - Thread: 1 -> MOD_ERROR: Paint Gun - realistic painting for suvival + special creative features 2020-07-06 08:50:12.018 - Thread: 1 -> in file: C:\Users\XXXXXX\AppData\Roaming\SpaceEngineersDedicated\content\244850\500818376\Data\TransparentMaterials_SkinIcons.sbc 2020-07-06 08:50:12.018 - Thread: 1 -> Resource not found, setting to null. Resource path: C:\Users\XXXXXX\AppData\Roaming\SpaceEngineersDedicated\content\244850\500818376\Textures\GUI\Icons\Skins\Armor\Frozen.dds


Above error pops up in the log for all Skins. I have this error for a lot ofmods though.


Further up in the log gives this error:


2020-07-06 08:50:16.130 - Thread: 1 -> ### PaintGun v20 2020-07-06 08:50:16.151 - Thread: 1 -> Paint Gun error/exception: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Surface has null Icon in a valid icon array! 2020-07-06 08:50:16.152 - Thread: 1 -> Paint Gun error/exception: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Lights has null Icon in a valid icon array! 2020-07-06 08:50:16.153 - Thread: 1 -> Paint Gun error/exception: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Surface has null Icon in a valid icon array! 2020-07-06 08:50:16.153 - Thread: 1 -> Paint Gun error/exception: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Lights has null Icon in a valid icon array!


Then in the info.log from the mod:

[08:50:16] Initialized GameMode=Survival OnlineMode=PUBLIC Server=True DS=True Defined=STABLE, [08:50:16] ### PaintGun v20 [08:50:16] Finding block skins... [08:50:16] ERROR: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Surface has null Icon in a valid icon array! [08:50:16] ERROR: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Lights has null Icon in a valid icon array! [08:50:16] ERROR: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Surface has null Icon in a valid icon array! [08:50:16] ERROR: MyObjectBuilder_AssetModifierDefinition/Neon_Colorable_Lights has null Icon in a valid icon array! [08:50:16] Defined skin #0 - No Skin () [08:50:16] Defined skin #1 - Battered (Battered_Armor); Mod=Medium Crate Pack [08:50:16] Defined skin #2 - Carbon Fibre (CarbonFibre_Armor) [08:50:16] Defined skin #3 - Clean (Clean_Armor); Mod=Medium Crate Pack [08:50:16] Defined skin #4 - Cow Moo Flage (CowMooFlage_Armor); Mod=Medium Crate Pack [08:50:16] Defined skin #5 - Digital Camouflage (DigitalCamouflage_Armor) [08:50:16] Defined skin #6 - Disco (Disco_Armor) [08:50:16] Defined skin #7 - Frozen (Frozen_Armor) [08:50:16] Defined skin #8 - Glamour (Glamour_Armor) [08:50:16] Defined skin #9 - Golden (Golden_Armor) [08:50:16] Defined skin #10 - Mossy (Mossy_Armor) [08:50:16] Defined skin #11 - Neon Colorable Lights (Neon_Colorable_Lights) [08:50:16] Defined skin #12 - Neon Colorable Surface (Neon_Colorable_Surface) [08:50:16] Defined skin #13 - Rust Non Colorable (RustNonColorable_Armor); Mod=Medium Crate Pack [08:50:16] Defined skin #14 - Rusty (Rusty_Armor); Mod=Medium Crate Pack [08:50:16] Defined skin #15 - Sci Fi (SciFi_Armor) [08:50:16] Defined skin #16 - Silver (Silver_Armor) [08:50:16] Defined skin #17 - Wood (Wood_Armor)
Digi  [developer] 6 Jul, 2020 @ 3:22am 
I see, "has null Icon in a valid icon array!" were the errors I was looking for, for some reason your server's skin assets has the icons nullified...
Is this something torch, plugin or mod does?
Because it's annoying to have random differences like this that I can't verify myself.

EDIT: Oh it seems that medium crate mod is causing this one too... even though the mod defined the icons, for some reason the icon gets nulled in DS only for the mod's definition, not the vanilla ones... ?!

EDIT2: Either way, thanks for the report, this is now fixed and the debugging messages are also gone.
Last edited by Digi; 10 Jul, 2020 @ 4:33am
< >
Showing 1-5 of 5 comments
Per page: 1530 50