LinkTroisUn / ShipMeltdown

Lethal Company mod - maybe you should not rely too much on the autopilot...
0 stars 0 forks source link

Flashlights still stay red after meltdown #4

Closed FrostyCirno closed 5 months ago

FrostyCirno commented 5 months ago

I dont know what else to write

image

LinkTroisUn commented 5 months ago

I would need to know the following :

1) Does it concern only flashlights that were on ship when it took off ?

2) Do flashlights blink by themselves ?

3) Have the lights of the ship returned to their normal colours ?

4) Maybe the approximate time of when ship took off ? (2 min before explosion ? 15s before ?)

If you can't answer all these questions now, you can still answer those for which you know the answer

FrostyCirno commented 5 months ago
  1. It effects flashlights that were used during the meltdown and after the meltdown
  2. The flashlights do blink
  3. The ship lights returned to their normal colors
  4. I tried both 1 minute and 15 seconds before the explosion
FrostyCirno commented 5 months ago

The video is a example of it during a meltdown, the screenshot was from a round after a meltdown https://github.com/LinkTroisUn/ShipMeltdown/assets/107891678/ae469b81-7068-4af4-ba9a-bc2d284993a1

LinkTroisUn commented 5 months ago

I think I have found out why flashlights stayed red after the meltdown. When the meltdown starts, one of the early step of the mod is to collect all the lights of the ship. Since I don't really know how to specifically get only the ones that belong to the ship, the mod ends up collecting more (such as flashlights). For some reasons, some lights were collected twice or more, which messed the whole mechanism to restore their original color.

After adding another check, flashlights (and possibly other affected lights) should turn back to their original colour after the meltdown. Now, if you could test the latest push on the FlashlightsStillRed branch, so you can confirm that it indeed solves your issues. Here is the pre-compiled plugin folder : ShipMeltdown.zip. It is a debug version, so a meltdown can be manually initiated by pressing the F7 key.

FrostyCirno commented 5 months ago

I tested the complied version you gave me. The flashlights sometimes would still change color, but going into orbit will always fix the color

LinkTroisUn commented 5 months ago

I don't know how I can prevent flashlights from changing the colors of their lights, but at least, now, they get back to normal after the meltdown.

I have published the new version on Thunderstore.