Space Engineers

Space Engineers

Build Info
此主题已被锁定
Fat7i Bonané 2021 年 4 月 23 日 上午 4:30
Labelling Toolbar Slots not working with MMaster's Auto LCD
Hi all,

So I've been trying for 2 hours to get Custom Data from BuildInfo and MMaster's Auto LCD to work side by side in my control seat but they don't seem to get along well

His script (well, SE actually) allows for mutliple scripts to be used on the same block : check out his guide at the end where he mentions it
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=407158161

I typed exactly this in the Custom Data box :

[Toolbar]
1-1 = <color=red>Handbrake
---
@0 AutoLCD
SpeedKmh 30
PropBool {T:Control Seat} HandBrake Handbrake On Off
Working {T:H2 Thruster}


but in the terminal bottom right info it says :

Toolbar CustomData Errors :
Line#3 : Expectedkey=value definition

The screen displays the Auto LCD info without problem which means the 3 dashes that separate the 2 scripts work as intended (otherwise it would have said "unknown command" on the screen)

Please help
最后由 Fat7i Bonané 编辑于; 2021 年 4 月 23 日 上午 8:24
< >
正在显示第 1 - 4 条,共 4 条留言
Digi  [开发者] 2021 年 4 月 23 日 上午 11:16 
Yeah either I'm using it wrong or there's a bug in the MyIni parser, still looking into it.

However, there's a workaround for now: simply add a random header just before the dashes as my script only reads the Toolbar header so it'll ignore anything from other ones.

[Toolbar] 1-1 = <color=red>Handbrake [workaround] --- @0 AutoLCD SpeedKmh 30 PropBool {T:Control Seat} HandBrake Handbrake On Off Working {T:H2 Thruster}
最后由 Digi 编辑于; 2021 年 4 月 23 日 上午 11:17
Fat7i Bonané 2021 年 4 月 23 日 上午 11:36 
Oh wow it works !

I can't believe I haven't tried this :D I tried way dumber things.

I didn't say it but I got crazy when I saw I could customise the toolbar through Buildinfo, it's just soooooo convenient and I can't count how many times I endorsed people with that idea on KSH forum.

Anyway, you're the best, Digi, thanks a million.
Digi  [开发者] 2021 年 4 月 26 日 下午 7:44 
It seems to be a bug in the parser if I parse a specific section, however if I parse the entire thing it'll detect the dashes fine, so I'll be changing to that. This change isn't out yet, not even on the bleeding edge, but it'll be there first :}
Fat7i Bonané 2021 年 4 月 27 日 上午 10:08 
The way MMaster worded it in his Auto LCD guide felt like he had the parser tailor-made for his script, which I'm fairly sure I understood wrong, so chances are you can make it work with BuildInfo.

I'm actually quite surprised that issue was never raised before I doubt I'm the only one using both BuildInfo and Mmaster's Auto LCDs on a cockpit.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50