Space Engineers

Space Engineers

165 个评价
Graphical Resource Bars
4
2
   
奖励
收藏
已收藏
取消收藏
标签: visualization
文件大小
发表于
更新日期
269.045 KB
2024 年 8 月 3 日 上午 7:47
10 月 7 日 上午 9:09
21 项改动说明 ( 查看 )

订阅以下载
Graphical Resource Bars

描述
A Script that displays a grids resources as graphical bars.
The colours of the bars are customizable for those (Like me) who like to color code your grids.


UPDATE 05 October 2025: Changeable Border Offsets
UPDATE 08 October 2025: Themes!!!

https://youtu.be/gjx0RVto-Jk?si=eIBouY8rxJ2I2ZuD

Options:

To make it display on a screen go to the block in the control panel
Press 'Custom Data'
Paste in this next line
[Graphical Resource Bars]
Then Press 'Recompile' on the Programming Block that has the script in it.

There are several more options you can paste in after that line, though they are ALL optional
These are the supported options so far

  • To tell the script which LCD screen on the block to use (0 is default, which is the first screen)
    ScreenNumber=0
  • To Make a screen only use text mode make the following true
    TextMode=false
  • To adjust where the information appears on the screen use:
    TopOffset=20 LeftOffset=0 RightOffset=10
  • To Let the script decorate the screen for you choose a theme like so:
    Theme=1
  • To choose which Bars are shown on a specific block, use the following (true is default, false means don't show it)
    ShowBatteries=true ShowWindSpeed=true ShowSunExposure=true ShowWindTurbines=true ShowSolarPanels=true ShowHydrogen=true ShowHydrogenEngines=true ShowOxygen=true ShowReactorFuel=true ShowWater=true
  • As the script is getting too many features you can now set it to Whitelist Mode to make defaults for the above "ShowBars" false (So it only shows the ones you specify as true) - defaults to false so you can ignore this if you don't want to use it.
    WhitelistMode=false
  • To choose custom colours for each bar, use the following entries (Below shows the default colors)
    BatteryColor=255,0,0 WindSpeedColor=255,255,0 SunExposureColor=0,255,0 ReactorFuelColor=0,255,128 WindTurbineColor=0,255,255 SolarPanelColor=128,0,0 HydrogenColor=128,128,0 HydrogenEngineColor=0,128,0 OxygenColor=0,128,0 WaterColor=0,255,255
  • To stop it showing the titles between each category, set this to false (defaults to true)
    ShowCategoryTitles=true
  • To stop it showing the titles on the left of the bars, set this to false (defaults to true)
    ShowTitles=true
  • To change what the text on the screen says (e.g. put it in your language) change the following
    AvailablePowerName=Доступная мощность BatteryName=Аккумуляторы WindSpeedName=Скорость ветра SunExposureName=воздействие солнца PowerUsageName=Потребление энергии WindTurbinesName=Ветряные турбины SolarPanelsName=Солнечные панели GasStockpilesName=Запасы газа HydrogenName=Водород OxygenName=кислород
    PLEASE NOTE: I used google translate to get this Russian Text so let me know if it doesn't say what I think it does.
if you want an option to stay as the default value, you can just skip the entry all together.


NOTES:
  1. If you use this in Multiplayer on a server - There is known bugs in the game for screen updates.
    The only fix for this is to cross your fingers and hope that Keen finally fix it (It's been over half of a decade so far)

  2. More settings and features to come... I'll keep you up to date.
    It is my hopes to keep updates so they won't need you to adjust anything to keep the same output.
    I'll add notes at the top if changes are unavoidable.
Themes
Index
Theme Name
0
No Theme (Default)
1
Amiga Workbench 1.3.2
Let me know if you want to see more themes and what they might be
35 条留言
7T Primal Wolf 9 月 14 日 下午 3:07 
I guess add oxygen firms and algae Farms to the sun exposure gauge If possible.
Kiasanth  [作者] 9 月 14 日 上午 5:24 
@ 7T Primal Wolf: Sure, what would you like me to add to it?
7T Primal Wolf 9 月 13 日 上午 7:43 
will this be gettin' an Update for Apex?
ProTecz 9 月 10 日 上午 11:35 
nvm i found a way, edited the begin script 10 offset pixels to 30 and works fine now
ProTecz 9 月 10 日 上午 10:36 
Is this still being updated ?
I'd like to scale the bars and font but i cant figure out if this is possible, its taking all the screen size and i want to offset it slightly so it isn't blocked by panels sit infront of the edges.
DIEU CARTMAN ! 8 月 26 日 下午 1:36 
Merci les mec pour l'update ;)
Kiasanth  [作者] 8 月 12 日 上午 5:21 
Thanks @Maggz I've added these fixes. Sorry for the delay, this isn't the only game I play :P
Maggz 7 月 21 日 下午 12:28 
since i am here to resolve the issues from the last poster for bars showing when disabled the fix for this is to put the correct ShowBar index for each option on lines 289, 294, 299 they need to be incremented UP by 1 so if it is showing looking for ShowBar[5] change it to 6. I am assuming the author added some new items and for got to index the new additions in the script
Maggz 7 月 21 日 下午 12:20 
had to fix this for the name change for hydrogen engine as you never added a name define for that and had the oxygen actually naming that accomplished this fix by adding

if (_ini.Get(ScriptName, "HydrogenName").TryGetString(out n)) SPrefs.BarTitle[6] = n;
if (_ini.Get(ScriptName, "HydrogenEngineName").TryGetString(out n)) SPrefs.BarTitle[7] = n;
if (_ini.Get(ScriptName, "OxygenName").TryGetString(out n)) SPrefs.BarTitle[8] = n;

this is at or about line 594 in the script. this should fix any custom naming issues
ahhhh 6 月 29 日 上午 5:00 
you have ShowHydrogenEngines=true here but couldnt get it to disable double checked code and you have "ShowHydrogenEngine" there figured id let ya know so you could correct either one to avoid any hassle with it