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
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2592996560
I want to use this script in diferent scenarios on a large/small grid ship design. when i use the script with this:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1607980611
the alarm script works as intended, but when i put this leg on to the ship its designed to work with, the alarm script stops to function and i get a message in the script menu:
Found exception while running script:
Object reference not set to an instance of an object
at Program.GetTotalDamage{}
at Program.Init{}
at Program.Main{}
at Sandbox.Game.Entities.Bloks.MyProgrammableBlok.<>c__DisplayClass26.<ExecuteCode>b__25(IMyGridProgram
program)
at Sandbox.Game.Entities.Blocks.MyProgramableBlock.RunSandboxedProgramAction(action'I
action.
String&
response)
Hope someone can tanslate the mening of the message i get from this alarm script and therby an explenation to why it wont run as intended.
{
Runtime.UpdateFrequency = UpdateFrequency.Update1;
}
paste that in after "bool" and before "void Main()" so you dont need a timer block,and it will update a lot faster,if you lag,then change .Update to 100;
Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Update100;
}