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
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