[Bug] Light persists when human is eaten!

Locked
Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

[Bug] Light persists when human is eaten!

Post by Varlun » 02 Oct 2015, 06:04

Bug Description: Light persists after swallowing dead human. Stays in area, doesn't follow alien


Steps to reproduce:
1. Have human with light source on them die
2. Swallow human
3. Move around, you'll see the light has stayed where they were swallowed

User avatar
WyattH
Registered user
Posts: 305
Joined: 10 Sep 2015, 22:36

Re: [Bug] Light persists when human is eaten!

Post by WyattH » 02 Oct 2015, 06:41

+1 Can confirm this bug exists, possible to infinitely light up map by regurgitating and re-eating them as you move

Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

Re: [Bug] Light persists when human is eaten!

Post by Varlun » 04 Oct 2015, 12:53

Update. Shutting the body in a locker does not remove the light source. Moving the locker around does not move the source. Opening the locker in a different location does not move the source. Moving the body after it's been moved to a different location by the locker- THAT moves the source.

Figured this would be valuable in troubleshooting what the actual problem is here. The light just simply isn't updating.

Many potential fixes. The end goal here is to make it so that the light source can be gotten rid of conveniently. As it stands, I have to drag bodies off to places obscure before devouring them, so the light isn't persisting in the middle of a room or hallway. But that doesn't stop other aliens from just devouring them, who have darkvision on and don't care about darkness. Which leaves sources I can't get rid of.

You could tackle the problem directly, by making the light update sensibly when it should. Closing the locker should hide the light. Devouring the body should remove the light.

You could tackle it indirectly, applying a bandaid fix. Make all light sources on someone's body get deleted when they die. (Assuming the light would update in this case.)

Make all light sources on someone's body DROP when they die. The alien could then delete this which DOES work. Melting flares and flashlights and guns with flashlights all works as intended.

I don't really care how this is approached. But darkness is a very critical part of alien gameplay, and one that I'm finding frustrating to actually manage because of this.

User avatar
WyattH
Registered user
Posts: 305
Joined: 10 Sep 2015, 22:36

Re: [Bug] Light persists when human is eaten!

Post by WyattH » 05 Oct 2015, 00:42

The worst part of this darkness bug is you can't even stop the imaginary light source with resin walls or anything.

Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

Re: [Bug] Light persists when human is eaten!

Post by Varlun » 05 Oct 2015, 04:05

Yep. Goes through walls and everything. The light level in each square stays exactly as it is at the time of the body being devoured.

One strategy I have found for dealing with this, as a drone or queen or hivelord, is to plant walls/doors around the body and standing on top of the body, letting the doors all close, trapping the light in one square. And then eating the body. But of course this can't be done when playing as anything but those 3, and most aliens will just devour without giving a second thought to the light, leaving irremovable light.

User avatar
apophis775
Host
Host
Posts: 6985
Joined: 22 Aug 2014, 18:05
Location: Ice Colony
Byond: Apophis775
Contact:

Re: [Bug] Light persists when human is eaten!

Post by apophis775 » 05 Oct 2015, 15:25

I've not even a clue on how to fix this, or even what causes it.

without knowing the cause, I can track down where it's not updating and fix it.

User avatar
Gentlefood
Registered user
Posts: 540
Joined: 30 Jul 2015, 04:18

Re: [Bug] Light persists when human is eaten!

Post by Gentlefood » 06 Oct 2015, 12:44

Its a bug with the light source not updating properly. My guess is it doesn't 'know' the source holder is moving due to another entity moving it without directly interacting with the holder. When anything updates in the local area of the light holder it 'finds' where the light holder is.

Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

Re: [Bug] Light persists when human is eaten!

Post by Varlun » 12 Oct 2015, 21:08

Simple fix would be to make the light disappear if the person gets devoured. So this would be coded on the human's end and not the alien's? Same thing for lockers. Unless you want light bleeding through lockers. But that's another issue entirely. Most important thing is fixing the devouring.

Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

Re: [Bug] Light persists when human is eaten!

Post by Varlun » 18 Oct 2015, 22:57

Status on this?

Varlun
Donor
Donor
Posts: 12
Joined: 05 Jan 2015, 11:59

Re: [Bug] Light persists when human is eaten!

Post by Varlun » 11 Nov 2015, 02:11

Well?

Wickedtemp
Registered user
Posts: 603
Joined: 10 Aug 2015, 22:14

Re: [Bug] Light persists when human is eaten!

Post by Wickedtemp » 11 Nov 2015, 04:07

Hopefully this gets fixed..

User avatar
Rahlzel
Donor
Donor
Posts: 1160
Joined: 14 Dec 2014, 16:17
Location: USA

Re: [Bug] Light persists when human is eaten!

Post by Rahlzel » 15 Feb 2016, 15:04


User avatar
tuzz
Registered user
Posts: 134
Joined: 13 Feb 2016, 23:47

Re: [Bug] Light persists when human is eaten!

Post by tuzz » 17 Feb 2016, 04:30

Is this related to not having any light after getting regurgitated?

User avatar
Infernus
Registered user
Posts: 985
Joined: 16 Oct 2014, 17:02
Location: Croatia

Re: [Bug] Light persists when human is eaten!

Post by Infernus » 17 Feb 2016, 07:21

Mhmm.

User avatar
forwardslashN
Community Contributor
Community Contributor
Posts: 2495
Joined: 14 Dec 2015, 23:12
Byond: forwardslashN

Re: [Bug] Light persists when human is eaten!

Post by forwardslashN » 17 Sep 2016, 22:44

This was fixed.
Image
The ambivalent giant white baldie in a jungle near you.

Locked