Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I can't modify the plugin but I can modify this mod to fix it. Now it just replaces the first occurence of [...] anywhere in the description with the current distance (my changes begin at line 132).
https://pastebin.com/H7wuSsae
Yes, it is apparently a mod via PluginLoader called GPS Folders and More. It apparently also has the GPS distance function built in. I had completely forgotten about that plugin! My mistake.
[151.95m]:<Folder>Cobalt</Folder>
[5.39km]:Current position
Yours looks much more handy in that sense.
I didn't realize how much I missed the GPS distance functionality until just now using your mod! Thanks!
At least that is my thinking.
This does have a small side effect of changing descriptions that look like "[0 m]AB" to "[0 m]:B". Not a big deal, but should be on the list of known bugs nonetheless
Why are you deleting the dead body, just curious?
It could also be that it is editing something that no longer exists because you deleted it?
gps.Description = distanceString + description.Substring(closeindex+2); seems to be the line causing trouble as there is not enough safety checks around it to confirm that closeIndex + 2 will even exist. You are assuming that if you find an open bracket in the 0th position and another one not in the 0th position that the description also contains extra characters after the bracket
Exception occurred: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
at System.String.Substring(Int32 startIndex, Int32 length)
at Tilleen.GPSDistanceHelper.UpdateBeforeSimulation()
at Sandbox.Game.World.MySession.UpdateComponents()
at Sandbox.Game.World.MySession.Update(MyTimeSpan updateTime)
at Sandbox.MySandboxGame.Update()
at Sandbox.Engine.Platform.Game.UpdateInternal()
at Sandbox.Engine.Platform.Game.RunSingleFrame()
at Sandbox.Engine.Platform.FixedLoop.<>c__DisplayClass11_0.<Run>b__0()
at Sandbox.Engine.Platform.GenericLoop.Run(VoidAction tickCallback)
at Sandbox.Engine.Platform.Game.RunLoop()
at Sandbox.MySandboxGame.Run(Boolean customRenderLoop, Action disposeSplashScreen)
at SpaceEngineers.MyProgram.Main(String[] args)