Space Engineers

Space Engineers

Zephyr Industries Light Profiles
17 Comments
Illusori  [author] 11 Sep, 2019 @ 8:40pm 
Thank you for all your help in trying to figure this out, I'm sorry for the inconvenience it caused. Hopefully if there's some edge case I've missed then someone else will trip over it and report it too, so I can piece together the puzzle. It absolutely looked like you were using the script correctly!
Splitsie 11 Sep, 2019 @ 8:20pm 
I hadn't made any changes to it that I recall, unless I accidentally modified some of them as I was using build vision, but then I normally change it back. If I come across the problem again I'll see if I can nail down anything that I think might have contributed to it
Illusori  [author] 11 Sep, 2019 @ 6:16pm 
Thank you, that's really useful information.

Unfortunately, falloff still seems to be being saved and restored correctly when I test in SP and MP. This is baffling.

Did you manually change the falloff in the lights at any point? Those changes would be saved to the current profile next time you switched profile, and restored when you switch back. I maybe haven't made it clear enough in the docs that the "original" profile is just a name, and that perhaps counterintuitively it will save change you make, rather than permanently being the pre-install state.

I admit, I'm clutching at straws here, I still can't manage to break it myself. :D
Splitsie 11 Sep, 2019 @ 5:19pm 
So I did a little more investigation, the lights were all on, the only setting that hadn't been stored properly was the falloff, while they were originally set to 1 (I checked an older save) the custom data had stored it at 0 so while the rest of the values were correct there was almost no light being emitted.
Illusori  [author] 11 Sep, 2019 @ 4:24pm 
OK, I'm having no luck reproducing this, including in multiplayer. One thing you could do if you have time is to go into the Custom Data section of one of your lights (any light will do) and copy-paste the contents to me here. Place it between [noparse] [/noparse] tags so that the formatting doesn't go wrong. I might be able to do some forensics and figure something out from that.
Illusori  [author] 11 Sep, 2019 @ 3:41pm 
So, that didn't appear to be the problem. Whichever combination of profiles I start with from a clean install is remembering settings correctly when I test. Going to have to dig further on this.
Illusori  [author] 11 Sep, 2019 @ 3:20pm 
I've looked at the video and it looks like you did everything right. However I'm wondering if activating the original profile first is the issue. It might not be saving correctly, because you're switching from original TO original - if it then tried to read the profile which was blank, it would end up loading default values for the lights.

That's not a very clear explanation, but it's something I can test.
Splitsie 11 Sep, 2019 @ 3:02pm 
I think I mostly cut out the process sadly, but all the lights had custom settings before I pressed the 'original' button, which I thought would have preserved those settings
Illusori  [author] 11 Sep, 2019 @ 2:27pm 
Oooh, I hadn't checked youtube today, I know what I'm watching next. I might also have a clearer idea once I've watched it.

It sounds like what you did should have worked, unless you'd changed the lights settings manually before you switched. I've not tested in multiplayer... from my understanding that shouldn't have had an effect, but it's possible there's some issues there I'm unaware of.

I'll watch the video and see what I can figure out from that.
Splitsie 11 Sep, 2019 @ 2:18pm 
This was in multiplayer though, so I wonder if that had an effect - I used this script in the most recent Escape Unlikely and Capac greatly enjoyed its effects :)
Splitsie 11 Sep, 2019 @ 2:17pm 
I set up one timer with the command 'original' and another with 'capac' then first hit the original button before switching, then when it went back it didn't have the correct range on the lights :/
Illusori  [author] 11 Sep, 2019 @ 9:28am 
Do you know what sequence of actions you took? I can see if I can replicate it.
Splitsie 10 Sep, 2019 @ 11:08pm 
I might have run into a bit of a problem while using this, the original light settings didn't seem to get stored, or it didn't correctly revert the light radius once I went to situation Capac and back :(

I thought I stored the original properly first but maybe I messed up something with that step so instead it reverted to the defaults?
Illusori  [author] 8 Sep, 2019 @ 9:21pm 
I can't wait to see. :D Yell if you need any tweaks and I'll see what I can do.
Splitsie 8 Sep, 2019 @ 5:03pm 
Subscribed, going to have some fun with this one :D
Illusori  [author] 4 Sep, 2019 @ 10:10am 
Thanks!
pro100tv 4 Sep, 2019 @ 7:23am 
Very nice script, I found it useful. Good job!