Space Engineers

Space Engineers

178 人が評価
Blarg's Fancy Ruler
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
9.406 KB
2017年2月11日 13時39分
2018年1月27日 18時54分
9 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Blarg's Fancy Ruler

Blargmode 作成の 1 件のコレクション
Blargmode's scripts
5 アイテム
解説
This script allows you to measure the distance between your camera and some asteroid or whatever. It shows you some basic info about the object: What it is, if it’s hostile, how far away it is, and how long it will take you to get there.

It uses the either Monospace pixels to display data on the main LCD, or regular text, and regular text on a secondary corner LCD. Of course, you don’t need to use either of the LCDs, you can just look in the programmable block’s output. Or you can have 12 main and 50 corner-LCDs.

You’ll find the GPS coordinates to what you scanned in the Custom Data field. Both on the PB and the LCDs.

Range: The range increases with 2000m per second. By default it tries to measure as far as possible and all of the built up charge is consumed. You can limit the range to conserve charge, and therefore be able to measure several times in rapid succession.

Note that the pictures above are taken with one of my mods active. It’s called Reduced Bloom and it does exactly what is says on the tin. Vital for anyone using LCDs.

Setup
You need:
  • One Programmable block.
  • One Camera with the tag #Ruler in the name.
  • #Ruler tags on the LCDs you want to use. To get the graphic panel, add #Fancy as well.

Usage
  • Run with the argument “scan” to measure the distance to whatever the camera is pointing at.

Additional ways to use it
  • Run with the argument “scan #” to ignore the range setting and shoot a ray # meters long.
  • Run with the argument “range #” to change the range setting on the fly (can also be changed in the settings).
  • Tag a Timer block or a Sensor with #Ruler to trigger them when you scan something.
  • Tag a programmable block to run it when you can something, with the GPS coordinates of what you scanned as the argument.
  • Previous 2 points can be set to only trigger if the target is an enemy.
  • Create GPS-points on your hud by copying the coordinates from Custom Data of the programmable block or LCD panels.

Also, try using this with my Dot Matrix font! It looks way better on large LCDs.
74 件のコメント
Unruly 2024年3月15日 15時20分 
It's a trivial fix, and it seems most likely Blargmode isn't coming back, but up to you of course.
Darth Porgus 2024年3月2日 16時44分 
Most of us will have to wait till Blarg reads this comment section and fixes the script.
Unruly 2024年2月20日 10時09分 
The API for text surfaces changed. Run your copy through https://jsonformatter.org/csharp-formatter so you can read it, then change all instances of 'writepublictext' to 'writetext' and simply comment out the showpublictext lines. There will also be one syntax error where the beautifier erroneously adds a space between e and $ on line 1020 of the prettified code. It should pass code check now and seems to run fine. No guarantees expressed or implied, ymmv, don't call us we'll call you, etc etc.

I still get 'no scan data' on objects Spectrometry returns data for. Anyone know what's going on there?
toke.exhale 2023年12月6日 23時17分 
Still not working unfortunately...
JingleBellWarrior 2023年10月4日 20時30分 
yeah I second the comment below, I believe blarg's ruler got screwed by the ai update :(
Rightraoedhelontidae 2023年9月1日 11時42分 
i guess it doesn't work since the last update, says "assembly not found, please recompile script" on vehicles where it worked perfectly fine before
dichebach 2022年11月6日 8時11分 
BTW, I see that some folks have recently commented that it doesn't seem to be working for them. It DOES seem to be working for me. There is a large amount of obscure telemetry it spits out when first plugging it all in which suggest incompatibilities between some of the syntax or identifiers used in this script and the latest version of the game. And moreover, I had to fiddle with it and seemingly " give it some time" to get going. But it has now spit out some data for me on an asteroid so it does seem to work as of 6 November 2022 :steamhappy:
dichebach 2022年11月6日 8時03分 
What syntax constraints on the "tag?" For example, will:
IVE: Camera #Ruler
IVE: #Ruler Camera
and
#Ruler Camera
all work equally well?

I generally try to append an affix to each device that isn't hidden on each construct, e.g., "IVE" = Ion_Vessel_Eleithylia vs. "BAB" = Base_Bat_Cave, etc.
Unruly 2022年9月7日 6時37分 
I also wanted to ask: I'm getting 'no scan data' on asteroids that Spectrometry ( https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2687324923 ) is returning information for, both blocks on the same grid. Range is not the issue. *Sometimes* futzing around and aiming at different parts of the asteroids will get a range, but usually not. Is there something we can do to get a range more reliably?
Unruly 2022年9月5日 15時13分 
Hi, thanks for your mods.

I realise that it's a been a while, but do you have any suggestions for a workaround for using other mods that also want to put or get data from the LCD's custom field? I'm trying to use Hud LCD v2 to put the data your ruler creates on the suit hud, but it's config options are either in the block name of the lcd (buggy, and needs refreshed every login) or the custom field, which your mod erases every scan. Perhaps a [Blarg's Ruler] section tag for the custom field?