Working Traffic Lights?

Addi808
New member
 
Posts: 2
Joined: Thu Nov 12, 2015 13:08

Working Traffic Lights?

by Addi808 » Thu Nov 12, 2015 13:23

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;
 

User avatar
rubberduck
Member
 
Posts: 487
Joined: Thu Feb 27, 2014 19:19
IRC: rbduck
In-game: rubberduck

Re: Working Traffic Lights?

by rubberduck » Thu Nov 12, 2015 13:48

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)
My game (not minetest): http://forum.freegamedev.net/viewtopic.php?f=22&t=6800

my mods: gold_and_gem, meseconductors

a penguin throws an apple through a window

sometimes i change my "forum location" via user control panel
 

Addi808
New member
 
Posts: 2
Joined: Thu Nov 12, 2015 13:08

Re: Working Traffic Lights?

by Addi808 » Thu Nov 12, 2015 19:37

. .
 

User avatar
snowflake
Member
 
Posts: 215
Joined: Mon Nov 16, 2015 16:50
IRC: snow__flake
In-game: snowflake

Re: Working Traffic Lights?

by snowflake » Tue Nov 17, 2015 07:25

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 :(
✱ ŜИØŴℱŁΔҜΞ ✱
IF I REPORT ANY PROBLEM - SYSTEM
Ubuntu 15.04
32-bit
Memory-3.8GiB
Disk Space -310.8GB

DONT PM ME PLZ!!!! ,
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 5 guests

cron