Space Engineers

Space Engineers

Paint Gun - realistic painting for survival + special creative features
< >
Showing 1-7 of 7 comments
Digi  [developer] 25 Apr, 2023 @ 2:58pm 
The mod's server-side config is the issue (it has 2, a player one and a more recently added server one), did you really not edit it at all? it's in your world's folder, under /Storage/<stuff>_PaintGun/
Xsile 25 Apr, 2023 @ 4:48pm 
I migrated servers hosts at one point but i have never edited it outside of the payed servers dashboard. So whats the fix here. It just suddenly stopped working after a regular scheduled restart.
Digi  [developer] 25 Apr, 2023 @ 10:47pm 
Can you post that file's contents to see what is going on there, it's small enough to be posted directly as a message.

And the fix is to delete it so it can be re-created, but I would first like its contents to probably figure out how this happened in the first place.
Xsile 26 Apr, 2023 @ 6:34pm 
So after trying to open the serversetting file, it seemed to error out and was corrupted. I tried to copy it from the server using ftp but its just blank i went ahead and deleted it after transferring it to my personal pc and hoping this will solve my issue. Im guessing the config file got corrupted somehow i doubt it had anything to do with your mod but more or less migrating servers/improper save states Idk I have the file if you want but it only opens to a blank text document. Thanks for all your help though i probably would have just erased my server in the end trying to get it to work.
iveoles 28 Jul, 2023 @ 12:10pm 
I'm also getting the same when copying from the Dedicated Server app on windows to a seperate dedicated server.


On Windows
2023-07-28 20:08:35.243: ### PaintGun v24
2023-07-28 20:08:35.259: PaintGunMod - Loaded server settings:
[ServerSettings]
RequireAmmo=True
PaintSpeedMultiplier=1
ReplacePaintSurvival=False


On Docker
2023-07-28 20:08:17.750: ### PaintGun v24
2023-07-28 20:08:17.777: PaintGunMod - Loaded server settings:
[ServerSettings]
RequireAmmo=True
PaintSpeedMultiplier=1
ReplacePaintSurvival=False

2023-07-28 20:08:17.786: Paint Gun error/exception: System.IO.FileNotFoundException: Unable to find the specified file.
at Sandbox.ModAPI.MyAPIUtilities.VRage.Game.ModAPI.IMyUtilities.WriteFileInWorldStorage(String file, Type callingType)
at Digi.PaintGun.Features.ServerSettings.LoadOnHost()
at Digi.PaintGun.Features.ServerSettings..ctor(PaintGunMod main)
at Digi.PaintGun.PaintGunMod..ctor(PaintGun_GameSession session)
at Digi.ComponentLib.PaintGun_GameSession.LoadMod()
at Digi.ComponentLib.PaintGun_GameSession.LoadData()
2023-07-28 20:08:17.789: Exception while loading world: Error in mod loading, see above exceptions.


The files were copied and looking at them side by side they seem fine.
Xsile 28 Jul, 2023 @ 1:42pm 
I would just delete it and let it remake the file, should work fine after that.
Digi  [developer] 28 Jul, 2023 @ 4:32pm 
That error is probably because of some sort of directory linking or I don't even...

Code from WriteFileInWorldStorage(): https://i.imgur.com/VoFc5cE.png
The highlighted last line is likely the one it hits, not the first one because the input file name is "ServerSettings.ini" so I very much doubt that period character is not allowed in file names on that OS.

Which leaves that GetFullPath() returns a different path for whatever reason, either CurrentPath is wrong or something else is going on... this is not something I can fix, and not even debug/test xD
You'll have to report it to keen and I very much doubt they'll do anything about it, they ignore reports that have the answer right in them and it's 1-2 line changes :(
< >
Showing 1-7 of 7 comments
Per page: 1530 50