Space Engineers

Space Engineers

Visible Lasers for Laser Antenna
36 Comments
Doc 17 Jan, 2024 @ 8:08pm 
Hows that configuration coming? I'm looking up ways to just tie those values to a control panel setting. Only thing is im trying to think of ways that multiple people could have differing colors for opposing factions showing off competing constellations? So that the color settings only affect that block and a button can sync the whole networked constellation, maybe.
Privatteer 4 May, 2023 @ 7:41am 
You're right about lasers being buggy so thanks for this mod was useful in an scenario I am playing.
Whiplash141  [author] 21 Oct, 2022 @ 2:31pm 
Nah
Blu 21 Oct, 2022 @ 8:11am 
Can it be added to plugin manager? Preferably with option to see only your own antennas by default.
Would make it much easier to debug why given laser antennas can't connect - you connect laser antenna from point a to ship, fly it to destination, checking connectivity every jump or so and there's a chance you can find what's blocking your way and make a respectable hole through ;)
The Commander 29 Sep, 2022 @ 9:48am 
can you change the color of the laser.
Whiplash141  [author] 9 Sep, 2022 @ 1:39pm 
Yeah, I wanted them mainly as a visual indication of connection, and I personally find them very difficult to see unless you are right next to them :)
Ribbons0121R121 9 Sep, 2022 @ 1:25pm 
honestly it ruins no stealth unless youre like 2 feet from it
tiny thin laser hard to see
Whiplash141  [author] 10 May, 2022 @ 3:44pm 
A plugin for this is kinda unnecessary
Tetra 10 May, 2022 @ 3:29pm 
a plugin that includes this would be pretty cool,
jackik 16 Apr, 2022 @ 2:56pm 
maybe potentially even make it so only allied factions can see the laser?
That would make it top notch.
Whiplash141  [author] 20 Mar, 2022 @ 10:59am 
I'll probably make it configurable once I have the time
Doc 19 Mar, 2022 @ 11:09pm 
Anyone who wants to edit the thickness, color, or opacity of the laser can edit the BlockLogic.cs file in the mod, Whiplash makes very friendly code,

Color and Opacity can be changed on
line 21: static Vector4 _laserColor = new Vector4(2f, 0f, 0f, 1f);
first 3 digits are RBG values,
4th digit is opacity on a scale from 0.00 to 1.00

line 24: const float _laserWidth = 0.1f; can be increased to change the thickness of the laser.
mookie1590 28 Sep, 2021 @ 10:28am 
Yup, it is working now. Didn't crash and is drawing the laser. Makes it nice to find that asteroid thats blocking the path.

Thanks for fixing this so fast. Do like muh lasers.
Whiplash141  [author] 27 Sep, 2021 @ 7:24pm 
Alright, should be fixed (I hope). Try now. Once the mod updates, there should be no more crashes.
Whiplash141  [author] 27 Sep, 2021 @ 7:01pm 
Yeah, lemme see if I can push a patch from my laptop, if not it may be a day or so until I get back to my real computer.
mookie1590 27 Sep, 2021 @ 5:48pm 
yes dedicated server crash, I have 50 ish mods but dont believe any of them affect the laser antenna, im sure its possible. I can upload my mod list on discussion as well.

And I was trying to get it to connect. The very moment that I put in cords and hit connect it crashes that very second. I did try it prob a dozen times to be sure. I turn the laser off, put in cords, and the moment I turned it on it would crash. Never had time to even see the visable laser.

Also, if it matters, pretty sure there is an asteroid in between lasers. one laser on earth, one laser in space. Not sure if that affects it.

Threws the mod list up on the discussion page, just ripped it from the .sbc file as it was the fastest way to compile it. Not seeing anything thats obvious to me that could conflict, but I'm not a mod maker, so dunno.
Also the mod list does not have the visable laser antenna loaded on it since I removed it to be able to use the antennas.

Thanks for checking
Whiplash141  [author] 27 Sep, 2021 @ 11:31am 
Wait... server crash? :steamfacepalm:

I think I may know what's up.
Whiplash141  [author] 27 Sep, 2021 @ 11:29am 
What the hell, how the the render shit itself...

Are there any other mods in your world?

Also, what did you do before it crashes? I want to replicate it.
mookie1590 27 Sep, 2021 @ 7:25am 
Causes server crash once they connect. full log under discussion



2021-09-26 23:09:06.695 - Thread: 1 -> Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
at VRageRender.MyRenderProxy.get_BillboardsPoolWrite()
at VRage.Game.MyTransparentGeometry.AddLineBillboard(MyStringId material, Vector4 color, Vector3D origin, UInt32 renderObjectID, MatrixD& worldToLocal, Vector3 directionNormalized, Single length, Single thickness, BlendTypeEnum blendType, Int32 customViewProjection, Single intensity, List`1 persistentBillboards)
at VRage.Game.MySimpleObjectDraw.DrawLine(Vector3D start, Vector3D end, Nullable`1 material, Vector4& color, Single thickness, BlendTypeEnum blendtype)
at Whiplash.LaserAntennaLasers.BlockLogic.UpdateBeforeSimulation()
GrumpyPlok616 13 Aug, 2021 @ 12:15pm 
my understanding is laser antenna are only good for stealth because they require more power
if that is true, i or someone else needs to make a mod that fixes that stupid ness
stephenmhall 13 Aug, 2021 @ 5:51am 
Do they have to be connected? I was thinking this could be useful to fault find when they don't connect. Find that mini asteroid blocking the path
Chaos_02 6 Aug, 2021 @ 5:11pm 
if you _would_ add colors, please also consider an opacity slider wich could also disable the laser completely. would be needed to be the same on both sides of the connection, otherwise the lower value is used :)
lechkingofdead 6 Aug, 2021 @ 1:58pm 
from what i find, the laser atenna is best for stationary build but drones conected to this does seams to be reliable. like the new start has, and btw i love the new starts bases
FartyParty 6 Aug, 2021 @ 11:42am 
Awesome... but I want more RGB!
BinaryKiller Recoded 5 Aug, 2021 @ 12:38pm 
I agree with Dalten, Laser antennas doesn't work half the time... I noticed this in the previous update... tried having a lock to a delivery drone that I constructed mainly for helping people out with resources on servers.... Lock goes away after 50Km
Dalten 2 Aug, 2021 @ 6:39pm 
> Laser antenna don't work half the time anyways so this mod is probably useless XD
truer words never said, especially at longer distance. real shame tho, idea of the block is interesting. good mod idea for a difficulty challenge :)
pro100tv 2 Aug, 2021 @ 3:29pm 
I can feel that there is a bigger project coming
Einherjar 1 Aug, 2021 @ 3:12pm 
@spiritplumger that was the best and most nerdy implementation of a rickroll I've seen in a long time. Thank you for that.

Cuz lasers.
spiritplumber 1 Aug, 2021 @ 9:50am 
Alex Wisar (alex0183 GER) 1 Aug, 2021 @ 1:19am 
Very good Ideer
Gufo10 31 Jul, 2021 @ 10:37pm 
"Laser antenna don't work half the time anyways so this mod is probably useless XD"

i have not once gotten 2 antennas to connect in my 1000+ hr of playtime, so yes, they never seem to work
Kilovus Loxic 31 Jul, 2021 @ 8:43pm 
@Rose Minotaur That's not... what they do...
Firewarrior44 31 Jul, 2021 @ 12:58pm 
Is the colour configurable?
Rose Minotaur 31 Jul, 2021 @ 12:56pm 
how do I make this laser shoot down ships I cant get it to work
Th3W0lf3 31 Jul, 2021 @ 12:55pm 
first lol nerds
Th3W0lf3 31 Jul, 2021 @ 12:54pm 
how do u put ths scrip in the ntenna blkoc i cant se the beam laser.
als pls add color picker too it wil help me im colorbln thx wip