Page 1 of 1
*[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Wed Aug 31, 2016 2:20 pm
by MPeti1
Hi!
I just found a bug when i built a train-gate system with some feedback lamps. The gate only sends the signal as long as the first train went through it, no matter if the second, third, etc trains and vagons are not went through yet.
Here is a video about it, because i'm not sure i wrote everything as it is, because of my not-too-good english
https://youtu.be/YDXjGAmrcLE
Re: Gate bug if train goes through
Posted: Wed Aug 31, 2016 2:26 pm
by Loewchen
- What version are you using
- Can you reproduce this without mods?
- What is the gate circuit supposed to do?
- Please upload the save file!
Re: Gate bug if train goes through
Posted: Wed Aug 31, 2016 3:34 pm
by Nexela
I confirmed it on modded 14.2, if I get a chance to try vanilla I will
Create a track with a gate in the middle. Wire the gate to lamp. set the gate to read sensor, red-signal. set the lamp to use colors, red>0
create a 2+ length train on one side of the gate and send it through either manually or automaticly
After the first loco goes through the lamp turns off (gate stays open correctly just no longer outputs signal for train)
Also not sure if a bug or not but using everything>0 on the lamp lights up the lamp even if no signals are present.
Re: Gate bug if train goes through
Posted: Wed Aug 31, 2016 6:55 pm
by MPeti1
Loewchen wrote:
- What version are you using
- Can you reproduce this without mods?
- What is the gate circuit supposed to do?
- Please upload the save file!
I.10.13.20
II.Yes. But now when i tryed it without mods, it's just more buggy, because the lamps are blinking with red-green colors when the first train goes through
III.It supposed to set the lamps to green color when i can safely go through the rails (if there is no trains coming), and to red if a train is near and opened the gate(s).
IV.Here you can find the vanilla save, and the modded save with all of the mods.
https://1drv.ms/f/s!ArvLKxtjzZnrkvsZbu1uGchyD9UYPg
Re: Gate bug if train goes through
Posted: Wed Aug 31, 2016 9:27 pm
by MPeti1
If any of you downloads the modded map, can you say how many UPS you has, and what is your HW configuration, and system? It'll be good, because i want to see my pc is too weak, or i have a very performance hungry factory. Thanks
Re: Gate bug if train goes through
Posted: Wed Aug 31, 2016 10:31 pm
by Loewchen
I tested the non moded file and build a circuit myself that should do the same (because I did not understand how that implementation even worked
), it had the same issue, the gate stops sending the open signal right after the locomotive passes even it is still open and the wagons have not passed yet.
Edit: tested with 14.2
Re: Gate bug if train goes through
Posted: Thu Sep 01, 2016 11:05 am
by MPeti1
Loewchen wrote:I tested the non moded file and build a circuit myself that should do the same (because I did not understand how that implementation even worked
), it had the same issue, the gate stops sending the open signal right after the locomotive passes even it is still open and the wagons have not passed yet.
Edit: tested with 14.2
The constant combinator is only built because it sends the green signal to the lamp if the gate not sending the red signal. The gate needs to overwrite the green signal with the red. Or i'm wrong if i think the lamp uses the newest signal's color? If i'm wrong, could you send a blueprint string about your gate sensor?
Re: *[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Thu Sep 01, 2016 3:54 pm
by Twinsen
I didn't thoroughly investigate this but I would say not a bug. There are 2 different things here: the gate sensor and the gate itself.
Gate sensor senses a train is approaching and opens the gate. When the train locomotive passes, the sensor is no longer active and the gate is told to close. Then internally the gate tries to close. There is a train on top of it so it can not close yet. It keeps trying to close until there is nothing on top of it.
Basically it depends what you want to read:
- read the sensor: the way it correctly works now: sends a signal when there is a player or approaching locomotive
- read the gate state: sends a signal when the gate is open
I know it's rather confusing, but it's how it works internally for performance reasons.
Re: *[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Thu Sep 01, 2016 9:16 pm
by MPeti1
Twinsen wrote:I didn't thoroughly investigate this but I would say not a bug. There are 2 different things here: the gate sensor and the gate itself.
Gate sensor senses a train is approaching and opens the gate. When the train locomotive passes, the sensor is no longer active and the gate is told to close. Then internally the gate tries to close. There is a train on top of it so it can not close yet. It keeps trying to close until there is nothing on top of it.
Basically it depends what you want to read:
- read the sensor: the way it correctly works now: sends a signal when there is a player or approaching locomotive
- read the gate state: sends a signal when the gate is open
I know it's rather confusing, but it's how it works internally for performance reasons.
Thanks
And can i read the gate state (open or closed)? If i can, how? I can't figure out so far all of the circuit system (it's the same with the train signal system when i started the game, but now i don't know how i don't understood it
), but as i know there isn't a "block update detector" in the game, or a game mechanism what can used for this. It'll be good if i can do this
Now it's just a little thing, but later if the game gets a new feature that can use this information other than to open and close a gate to prevent players to be killed by a train, it'll be better if it's working as expected.
An other thing. Sorry if I don't understand correctly what "forum people" (sorry if it's a bad expression) says, but it can be becasue my "motherlanguage" is not english. Maybe it can be better by the time
Re: *[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Fri Sep 02, 2016 11:19 am
by Twinsen
MPeti1 wrote:And can i read the gate state (open or closed)?
No, not at the moment.
Re: *[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Fri Sep 02, 2016 3:39 pm
by aober93
Perhaps install train signals, that sense a train present ,and send it to the lamps. Im sure this is equivalent to an open gate when trains are involved. You can install this additionally to the gate sensor that detects the player.
Re: *[13.20, 14.2] Gate stops sending open signal too early when open for train.
Posted: Wed Jan 29, 2020 2:07 am
by JasonC
Reported again:
viewtopic.php?f=7&t=80584
Strongly disagree that this is not a bug, see description and points there.