Space Engineers

Space Engineers

O.I.S. Lidar Rangefinder
67 kommentarer
8bit shadow 10. jan. kl. 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 10. jan. kl. 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 16. aug. 2023 kl. 9:23 
Instructions are terrible, please re-write this to make more sense.
Veratisu 5. aug. 2023 kl. 6:46 
Is there a video guide for setting up the programmable block in GPS saving mode?
Elfi Wolfe  [ophavsmand] 6. apr. 2021 kl. 0: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 5. apr. 2021 kl. 21:39 
Can this do distant planets, or are they not detectable by raycasting?
DontFollowOrders 4. feb. 2021 kl. 12:40 
Ohhhhhhh that makes sense, thanks
Elfi Wolfe  [ophavsmand] 4. feb. 2021 kl. 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 4. feb. 2021 kl. 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 10. okt. 2020 kl. 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  [ophavsmand] 19. sep. 2020 kl. 16:02 
I will check to see if it checking LCD for same grid or same construct.
thoguht mcdanger 19. sep. 2020 kl. 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  [ophavsmand] 12. sep. 2020 kl. 12:44 
It should replace the old target with the new one. Let me pop in and test.
GrayM3rc 12. sep. 2020 kl. 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  [ophavsmand] 31. mar. 2020 kl. 7:35 
odd. let me check my ultra-light shuttle.
Kittamaru 31. mar. 2020 kl. 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 31. mar. 2020 kl. 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  [ophavsmand] 30. mar. 2020 kl. 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 30. mar. 2020 kl. 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  [ophavsmand] 12. nov. 2019 kl. 7:09 
That is what is returned from the Raycast call to the Physics Engine. That is part of SE code.
White Van 11. nov. 2019 kl. 23: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  [ophavsmand] 1. sep. 2018 kl. 16:50 
Only a camera has a raycast. the Laser Antenna does not have script access to a raycast.
Kim Jong Chill 1. sep. 2018 kl. 16: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 30. aug. 2018 kl. 21:14 
Thank you for the rapid response.
Elfi Wolfe  [ophavsmand] 30. aug. 2018 kl. 16:50 
Fixed, tested and uploaded.
Elfi Wolfe  [ophavsmand] 30. aug. 2018 kl. 16:37 
Ah.. turns out it is the commas that break it. Working on it now.
Enigmus 30. aug. 2018 kl. 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  [ophavsmand] 30. juni 2018 kl. 18:35 
it gives the center of the bounding object of the object lased.
ProtocolPalpatine 30. juni 2018 kl. 18: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  [ophavsmand] 30. juni 2018 kl. 18: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 30. juni 2018 kl. 18:11 
if i make a rotor turret would to put the camera on would it still work?
Elfi Wolfe  [ophavsmand] 30. juni 2018 kl. 18:05 
No. There is no raycast in a turret camera.
ProtocolPalpatine 30. juni 2018 kl. 17:57 
could i use a turret camera view instead of a camera?
ProtocolPalpatine 30. juni 2018 kl. 17:18 
@Elfi Wolfe im using this mod with rdavs auto mining script :D super nice
ProtocolPalpatine 30. juni 2018 kl. 17:17 
i forgot lase argument lol derp
Elfi Wolfe  [ophavsmand] 30. juni 2018 kl. 17:01 
the raycast has to hit the asteroid. Just tested and working.
ProtocolPalpatine 30. juni 2018 kl. 16:52 
@Elfi Wolfe it doesnt detect the roids it just looks through them as if they arent their.
Elfi Wolfe  [ophavsmand] 30. juni 2018 kl. 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 30. juni 2018 kl. 11:39 
can i get roid gps with this?
Elfi Wolfe  [ophavsmand] 11. apr. 2018 kl. 8:24 
The GPS function I think is to center of grid.
Switch 11. apr. 2018 kl. 8:18 
ok, thanks, just got to get my accuracy on point then :D
Elfi Wolfe  [ophavsmand] 11. apr. 2018 kl. 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 11. apr. 2018 kl. 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  [ophavsmand] 11. apr. 2018 kl. 8:05 
Standalone script in vanilla. You do need to put a name in or at end of camera name default is [Lidar]
Switch 11. apr. 2018 kl. 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  [ophavsmand] 12. feb. 2018 kl. 19:35 
or put the PB on the same grid as text panel and camera.
Elfi Wolfe  [ophavsmand] 12. feb. 2018 kl. 19:06 
or a timer block that call the PB with rebuild in arguemnt spot
Elfi Wolfe  [ophavsmand] 12. feb. 2018 kl. 19: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 12. feb. 2018 kl. 18:23 
you can have alook at it now its called GC WIP in my workshop items
Elfi Wolfe  [ophavsmand] 12. feb. 2018 kl. 16:37 
If you have it up on workshop i can look at it.