安装 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(越南语)
Українська(乌克兰语)
报告翻译问题






Thanks
thanks forthe nice script
@Geneticus
It's a good idea, but it's not the problem at all.
To get the User-Object i have to call "GetObjectBuilder" on the entity, and the entity is just an interface-object. The only way to check if that works is simply to try it. And if its impossible, the application it will rise an exception.
So my quickfix is to just try/catch the error that happens. And yes, thats uggly, but it works...
Conditions: hosting multiplayer game, bunch of other mods.
Exception occured: System.NullReferenceException: Object reference not set to an instance of an object.
at 5BCAC68007431E61367F5B2CF24E2D6F.F6DF01EE4159339113BB9650DEEE1913.GetObjectBuilder(Boolean A5DC70F106B952A1255F4B70E35F9DCD)
at ProxSpaceEngineers.ProxEnergyWarner.UpdateAfterSimulation100()
at ProxSpaceEngineers.ProxEnergyWarner.UpdateAfterSimulation()
at AAC05F537A6F0F6775339593FBDFC564.D580AE7552E79DAB03A3D64B1F7B67F9.F672BBF9E192151CE8FD7E91E62B997D()
at AAC05F537A6F0F6775339593FBDFC564.D580AE7552E79DAB03A3D64B1F7B67F9.EC90B1C44E3C361983D093F355FF0CC8(MyTimeSpan 9916A9BA14FB0BB1A36908E2E8C15A74)
I tested it in a offline-sandbox. What are the testing conditions you have?
Exception occured: System.NullReferenceException: Object reference not set to an instance of an object.
at 5BCAC68007431E61367F5B2CF24E2D6F.F6DF01EE4159339113BB9650DEEE1913.GetObjectBuilder(Boolean A5DC70F106B952A1255F4B70E35F9DCD)
at ProxSpaceEngineers.ProxEnergyWarner.UpdateAfterSimulation100()
at ProxSpaceEngineers.ProxEnergyWarner.UpdateAfterSimulation()
at AAC05F537A6F0F6775339593FBDFC564.D580AE7552E79DAB03A3D64B1F7B67F9.F672BBF9E192151CE8FD7E91E62B997D()
I reprogramed the part using this: "MyAPIGateway.Session.Player.Controller.ControlledEntity.Entity"
If you know how to program you see how stupid this is. If not, it's working again ;)
MOD_ERROR: 316092014.sbm_energyWarnerScript, in file: 316092014.sbm_energyWarnerScript
c:\Users\Username\AppData\Local\Temp\EnergyWarner.cs(193,70) : error CS1061: 'Sandbox.ModAPI.IMyPlayer' does not contain a definition for 'PlayerCharacter' and no extension method 'PlayerCharacter' accepting a first argument of type 'Sandbox.ModAPI.IMyPlayer' could be found (are you missing a using directive or an assembly reference?)
MOD_ERROR: 316092014.sbm_energyWarnerScript, in file: 316092014.sbm_energyWarnerScript
Compilation of 316092014.sbm_energyWarnerScript failed:
"I tryed to write to the file where the finish version of the 'energy warner script' (Suit Energy Manager) is, but i couln't BECAUSE there is someone using this file"
Now here comes the Joke: The one using the file IS Space Engineers, so it is basicly trying to access a file that is currently in used by IT SELF!
What i can do about it is:
- Nothing
- Wait for a patch
What you can do about it:
- Restart Space Engineers every time before you join a new game
- Wait for a patch
I hope this helps ;)
Compilation of 316092014.sbm_energyWarnerScript failed:
MOD_ERROR: 316092014.sbm_energyWarnerScript, in file: 316092014.sbm_energyWarnerScript
error CS0016: Could not write to output file 'e:\Steam\steamapps\common\SpaceEngineers\Bin64\316092014.sbm_energyWarnerScript' -- 'The process cannot access the file because it is being used by another process. '
Or am I asking too much?
Todo: sounds