Ingame Scripting Error

Rochus Jung shared this bug 4 years ago
Not a Bug

Hallo KSH,


Ich schreibe jetzt ein Room Control Ingame-Skript. Ich codiere mit Visual Studio MDK.

Wenn ich eine öffentliche Struktur erstelle, gibt Space Engieers Blocks wie IMyTerminalBlock, IMyDoor, IMyLightnigBlock und Visual Sutdio keinen Fehler aus. Space Engieers meldet Fehler.

public Struktur Room //This Dosent Work

{

public IMyLightningBlock[] Lights;

public IMAirVent[] AirVents;

public IMyTextPanel[] TextPanels;

}


public struct Variables //This Works

{

public int i;

public string s;

public float f;

}


Space engineers own Variables dosent work in structs, Normal variables work.

I dont no, why this is so, because its very difficult, to code Ingame Scripts with structs with this Problems.

Replies (2)

photo
1

Hello, Rochus!

Thank you for letting us know about this issue. This has been reproduced and reported internally

Kind Regards

Laura, QA Department

photo
1

Hello Rochus,

We have been revisiting some of our older reports, and this one turned out to be a misunderstanding rather than a scripting issue. In C#, all language keywords (such as struct) must be written in English, even when Visual Studio or the system language is set to German. Using “Struktur” instead of struct will result in compilation errors, but this is expected behavior and not related to the game.

We will close this ticket as Not a Bug.


Kind Regards,

Ludmila Danilchenko

Head of Space Engineers QA Department

Leave a Comment
 
Attach a file