Space Engineers

Space Engineers

O.I.S. Lidar Rangefinder
67 条留言
8bit shadow 1 月 10 日 上午 1:22 
works well though instructions are bit confusing so here's a better one:


-Place a:
Camera
LCD panel
Programming block

- Rename the camera you want the raycast to come from to 'anything + [Lidar]' (e.g. range finder [Lidar])

- Rename the LCD panel you want to display the text on to 'anything + [Lidar]' (e.g. range finder infopanel [Lidar]"

- Add the programming block to your hotbar with the 'run' action and the argument: lase
- Add the programming block to your hotbar with the 'run' action and the argument: turnoff
- Add the programming block to your hotbar with the 'run' action and the argument: turnon

--For GPS storage--:
- Place another LCD panel

- Rename the LCD panel you want to display the GPS text on to anything + "[Lidar]" (e.g. range finder gpsinfo [Lidar]"

- In the programming block edit these lines:
string shipOrbitalLCDName = "[Lidar]"; (change to "[GPS]";
bool writeGPSToLCD = false; (change to true; )
bool saveGPS = false; (change to true; )
----
8bit shadow 1 月 10 日 上午 1:21 
Now when in game, on your hotbar;
- Press the turnon button you bound
- Press the lase button you bound
- When the distance is found don't forget to press the turnoff button that you bound

Remember: the raycast will come from the camera, NOT your character. I recommend viewing the camera when range finding.
Herboren 2023 年 8 月 16 日 上午 9:23 
Instructions are terrible, please re-write this to make more sense.
Veratisu 2023 年 8 月 5 日 上午 6:46 
Is there a video guide for setting up the programmable block in GPS saving mode?
Elfi Wolfe  [作者] 2021 年 4 月 6 日 上午 12:48 
It used to be able to detect planets.
It is no longer able to detect planets.
With that removed I should put a range limiter on the raycast.
WJSabey 2021 年 4 月 5 日 下午 9:39 
Can this do distant planets, or are they not detectable by raycasting?
DontFollowOrders 2021 年 2 月 4 日 下午 12:40 
Ohhhhhhh that makes sense, thanks
Elfi Wolfe  [作者] 2021 年 2 月 4 日 上午 7:43 
The camera charges up power to raycast 2km every second.so if you need to raycast 10km, you need to wait for the camera to charge up for 5 seconds.
DontFollowOrders 2021 年 2 月 4 日 上午 2:51 
What is the purpose/meaning of "laser increase 2km range each second?" Does the raycast have a velocity? How am I supposed to utilize this?
thoguht mcdanger 2020 年 10 月 10 日 上午 11:22 
I think I figured out a way using a different mod! The AutoLCDs 2 script has the option to have one screen mirror another, so it may be possible to have the lidar LCD mirrored to an AutoLCD. I haven't tested this, but I have done mirroring other LCD screens okay.
Elfi Wolfe  [作者] 2020 年 9 月 19 日 下午 4:02 
I will check to see if it checking LCD for same grid or same construct.
thoguht mcdanger 2020 年 9 月 19 日 上午 7:33 
Same issue as Kittamaru. Is there a way to get an LCD on a subgrid to show the results of the lidar?
Elfi Wolfe  [作者] 2020 年 9 月 12 日 下午 12:44 
It should replace the old target with the new one. Let me pop in and test.
GrayM3rc 2020 年 9 月 12 日 上午 9:14 
how do i clear current target? i aim at another asteroid and try lase, but it doesnt target that new one. old one is kept as target? help? am i missing something
Elfi Wolfe  [作者] 2020 年 3 月 31 日 上午 7:35 
odd. let me check my ultra-light shuttle.
Kittamaru 2020 年 3 月 31 日 上午 7:02 
OK, so, I got the lidar itself working (I didn't realize there was a refresh button within the scripts browser... heh)

HOWEVER, I can't seem to get it to output to the LCD panel.

My situation - I have a turret using WHIPS Rotor Slave Script - so, the LCD panel (named simply [Lidar]) is on a subgrid. The Lidar P-Block is a different grid, but the camera is on the same grid as the LCD. The LIDAR works, and displays on the P-Block screen, but not on the LCD panel.

I did change the writeGPSToLCD to true, but it doesn't seem to be doing anything.
Kittamaru 2020 年 3 月 31 日 上午 4:16 
Aye, I subscribed, re-loaded my game just to be safe, but when I go to my P-Block, it doesn't seem to show up there. I'll check again today (perhaps I was just being silly while tired)
Elfi Wolfe  [作者] 2020 年 3 月 30 日 下午 12:15 
You subscribe and then turn on PB in world settings, then you can open the PB for editing and then you can find it in the list of steam script. it filters based on local and workshop.
Kittamaru 2020 年 3 月 30 日 上午 11:57 
Perhaps I'm just being really stupid, but I'm not entirely sure how to use this - I don't see it showing in my scripts browser in the programmable block?
Elfi Wolfe  [作者] 2019 年 11 月 12 日 上午 7:09 
That is what is returned from the Raycast call to the Physics Engine. That is part of SE code.
BackRooms Enjoyer 2019 年 11 月 11 日 下午 11:01 
Please make a setting to disable the ability to detect planets it make it nearly impossible while floating in the air to hit a ground vehicle
Elfi Wolfe  [作者] 2018 年 9 月 1 日 下午 4:50 
Only a camera has a raycast. the Laser Antenna does not have script access to a raycast.
Kim Jong Chill 2018 年 9 月 1 日 下午 4:46 
Can this and the lidar homing script use the laser antenna instead of the camera? Not only would it look cooler I think aiming with a laser is probably a bit more accurate.
Enigmus 2018 年 8 月 30 日 下午 9:14 
Thank you for the rapid response.
Elfi Wolfe  [作者] 2018 年 8 月 30 日 下午 4:50 
Fixed, tested and uploaded.
Elfi Wolfe  [作者] 2018 年 8 月 30 日 下午 4:37 
Ah.. turns out it is the commas that break it. Working on it now.
Enigmus 2018 年 8 月 30 日 上午 11:54 
The GPS LCD screen output appears to add a space to the begining of the GPS output. This stops the coordinate from auto-populating in the GPS tab. Could we get that space removed please?
Elfi Wolfe  [作者] 2018 年 6 月 30 日 下午 6:35 
it gives the center of the bounding object of the object lased.
ProtocolPalpatine 2018 年 6 月 30 日 下午 6:31 
it gives the gps of the center of the object? cuz my drone smashed into the roid lol normally i set the gps manually on the crust and have no issues lol
Elfi Wolfe  [作者] 2018 年 6 月 30 日 下午 6:13 
I'd have to check to see if it is only own grid or not. been a while since I designed that one.
ProtocolPalpatine 2018 年 6 月 30 日 下午 6:11 
if i make a rotor turret would to put the camera on would it still work?
Elfi Wolfe  [作者] 2018 年 6 月 30 日 下午 6:05 
No. There is no raycast in a turret camera.
ProtocolPalpatine 2018 年 6 月 30 日 下午 5:57 
could i use a turret camera view instead of a camera?
ProtocolPalpatine 2018 年 6 月 30 日 下午 5:18 
@Elfi Wolfe im using this mod with rdavs auto mining script :D super nice
ProtocolPalpatine 2018 年 6 月 30 日 下午 5:17 
i forgot lase argument lol derp
Elfi Wolfe  [作者] 2018 年 6 月 30 日 下午 5:01 
the raycast has to hit the asteroid. Just tested and working.
ProtocolPalpatine 2018 年 6 月 30 日 下午 4:52 
@Elfi Wolfe it doesnt detect the roids it just looks through them as if they arent their.
Elfi Wolfe  [作者] 2018 年 6 月 30 日 下午 12:26 
if you add the text panel [GPS] it will put the gps on that screen then if you use the screen it will upload into the suit GPS. So yes.
ProtocolPalpatine 2018 年 6 月 30 日 上午 11:39 
can i get roid gps with this?
Elfi Wolfe  [作者] 2018 年 4 月 11 日 上午 8:24 
The GPS function I think is to center of grid.
Switch 2018 年 4 月 11 日 上午 8:18 
ok, thanks, just got to get my accuracy on point then :D
Elfi Wolfe  [作者] 2018 年 4 月 11 日 上午 8:16 
the rangefinder is right to where the raycast hits a item on that grid. it does not track, just gives you ETA to the spot where raycast hit something.
Switch 2018 年 4 月 11 日 上午 8:14 
Nevermind, got it to work. Nice mod, though is there a way to target a specific block on a grid, as in the one i am currently aiming at ?
Elfi Wolfe  [作者] 2018 年 4 月 11 日 上午 8:05 
Standalone script in vanilla. You do need to put a name in or at end of camera name default is [Lidar]
Switch 2018 年 4 月 11 日 上午 7:58 
Do we need new blocks for this to work or is this a standalone script with the vanilla cameras ? I can't seem to get it to work.
Elfi Wolfe  [作者] 2018 年 2 月 12 日 下午 7:35 
or put the PB on the same grid as text panel and camera.
Elfi Wolfe  [作者] 2018 年 2 月 12 日 下午 7:06 
or a timer block that call the PB with rebuild in arguemnt spot
Elfi Wolfe  [作者] 2018 年 2 月 12 日 下午 7:03 
It is a Keen Bug. it cannot see subgrids on world load. just use command rebuild to cause it to rebuild the system in the PB
PGI Xx HunterxX 2018 年 2 月 12 日 下午 6:23 
you can have alook at it now its called GC WIP in my workshop items
Elfi Wolfe  [作者] 2018 年 2 月 12 日 下午 4:37 
If you have it up on workshop i can look at it.