安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
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)