Page 1 of 1

Working Traffic Lights?

PostPosted: Thu Nov 12, 2015 13:23
by Addi808
Alright...
I have streets1.5. mesecons, and digilines...
I also followed a video of which the traffic lights seemed to work for them.
In the video for it, in the lua controller, he placed these lines:

if pin.d then
digiline_send(*traffic*,*green*)
else
digiline_send(*traffic*,*red*)
end

Also yes, I do have a player detector going into the d spot on the lua controller, and then a digiline to the distributer which is directly below the traffic light. Oh, and did name the traffic light "traffic"...

So is this something outdated? Or is there something wrong with this setup?

Oh yeah, my assumption is the code in the lua controller, considering it says there is a problem in line 2 near the *
:( please help!

(Placed it in this section, because it MAY be a bug, but is overall, a problem for me xD) if it's in the wrong area, my apologies. Thanks;

Re: Working Traffic Lights?

PostPosted: Thu Nov 12, 2015 13:48
by rubberduck
that does not belong to this topic, because it is mod related, you should post such bugs in the topic of the mod (viewtopic.php?id=2984)

Re: Working Traffic Lights?

PostPosted: Thu Nov 12, 2015 19:37
by Addi808
. .

Re: Working Traffic Lights?

PostPosted: Tue Nov 17, 2015 07:25
by snowflake
Addi808 wrote:Alright...
I have streets1.5. mesecons, and digilines...
I also followed a video of which the traffic lights seemed to work for them.
In the video for it, in the lua controller, he placed these lines:

if pin.d then
digiline_send(*traffic*,*green*)
else
digiline_send(*traffic*,*red*)
end

Also yes, I do have a player detector going into the d spot on the lua controller, and then a digiline to the distributer
which is directly below the traffic light. Oh, and did name the traffic light "traffic"...



So is this something outdated? Or is there something wrong with this setup?

Oh yeah, my assumption is the code in the lua controller, considering it says there is a problem in line 2 near the *
:( please help!

(Placed it in this section, because it MAY be a bug, but is overall, a problem for me xD) if it's in the wrong area, my apologies. Thanks;



Hi,

i saw the video that u didhttps://www.youtube.com/watch?v=BIujKA3ylJ8

and i cant understand,i tryed it but didn't work

so i want a clear scrpit

i did everything correct and i put the channel as traffic

but something is wrong :(