[MOD 0.12.X 0.13.X][1.0.0] Rail logic system

Topics and discussion about specific mods
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

[MOD 0.12.X 0.13.X][1.0.0] Rail logic system

Post by craftoBot »

Good time everyone!

This mod add some features for connecting logistic network with rails.

Now mod adds Rail Switch, Goto Station Controller, Signal Reader, Cargo Reader, Train Detector
How to use:
Rail switch
Train detector
Cargo inventory reader
Rail signal reader
Train GOTO station
Mod updated for 0.13!
Some features removed because reading and setting rail signals added intro base game, but train cargo reader and station goto controller remains and updated.
Attachments
RailLogicSystem_0.0.8.zip
Fixed bugs reported by Alexs
(1.02 MiB) Downloaded 1290 times
RailLogicSystem_0.0.7.zip
Bugfixes, Big Thanks to theit8514, thewd
(1.02 MiB) Downloaded 462 times
RailLogicSystem_0.0.6.zip
Small bugfixes, added manual/auto mode switcher and full train cargo reader
(120.95 KiB) Downloaded 585 times
RailLogicSystem_0.0.5.zip
Major bugfixes, instructions how to update see in post below
(243.19 KiB) Downloaded 463 times
Last edited by craftoBot on Wed Aug 10, 2016 3:18 am, edited 29 times in total.
billw
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Tue May 27, 2014 10:27 am
Contact:

Re: [0.12.X] Rail Logic Arrows

Post by billw »

Sorry, but what is a rail arrow?
DeamonEngineer
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu May 21, 2015 7:29 pm
Contact:

Re: [0.12.X] Rail Logic Arrows

Post by DeamonEngineer »

im guessing from the description that it will either add or remove a rail when a certain logic is achieved. therefor creating a dynamic track condition and controls where trains path to
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X] Rail logic system

Post by craftoBot »

I am very sorry for thease 4 people's who had downloaded it already, but i fully changed naming of mod and it's contents, so why prev version made uncompatiable
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X] Rail logic system

Post by craftoBot »

I had added two new features, so i will made how-to for it next day
mrdormouse
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 15, 2013 5:32 am
Contact:

Re: [0.12.X][0.0.4] Rail logic system

Post by mrdormouse »

Hi,
I'm having some problems with 0.0.4; when i try to start a new game i get

Unknown key: "Error while running the on_init: __RailLogicSystem__/control.lua:252:attempt to index field 'railLogicSystem' (a nil value)

0.0.3 worked fine, and also very very very much useful, can't wait to try these new objects :D
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.4] Rail logic system

Post by craftoBot »

I'am very sorry for this problem, i had already found it and working about fixing, some bug fix build will be available in few days (est 1 or 2)
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.5] Rail logic system

Post by craftoBot »

to update from 0.0.3 to 0.0.5 you need to destroy all placed entities and place it again :cry:
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.5] Rail logic system

Post by craftoBot »

mrdormouse
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 15, 2013 5:32 am
Contact:

Re: [0.12.X][0.0.5] Rail logic system

Post by mrdormouse »

craftoBot wrote:to update from 0.0.3 to 0.0.5 you need to destroy all placed entities and place it again :cry:
Confirming 0.0.5 to work fine, after destroying all old entities. Seems to be working in MP too!
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by craftoBot »

I'am very sorry, but i not disgner, so may by someone can draw icons/textures for our mod :?:
User avatar
Devildog
Fast Inserter
Fast Inserter
Posts: 170
Joined: Tue Aug 19, 2014 8:19 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by Devildog »

really cool mod
Image
Check Out Factorio Mod Madness 2.0 Here : http://bit.ly/1afTDl0
Mod Madness ModPack
thewd
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Dec 07, 2014 10:39 am
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by thewd »

Excellent mod, I thought about writing something similar myself :)
craftoBot, I`ve found two little bugs, first - when you load, some of cargo detectors are signaling, but there`s no train at all. Or when it`s too much kinds of things in train (I use bob`s mods, so there are always many kind of things) :)
Second - well,it`s not a bug at all, you use onTick event and make some validity checkings.
fix
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by craftoBot »

Thank you for report, will be fixed in 0.0.7, cargo detectors can only detect 15 kind of things in train because this is limit os constant-combintaor output, so you can try to use cargo detector mk1 to read each cargo unit, if this can help)
thewd
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Dec 07, 2014 10:39 am
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by thewd »

Well, I needed only a empty\no empty train signal,not using exact items count by type :)
And one question- when I used A/M train mode switcher,it switch the train at station,but inserters aren't working:(
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by craftoBot »

@thewd Strange, i will test it
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by Choumiko »

thewd wrote:And one question- when I used A/M train mode switcher,it switch the train at station,but inserters aren't working:(
I had the same issue with SmartTrains. If i remember correctly i solved it by putting the train into manual mode 5 ticks after it arrived. I guess the inserters need time to wake up/recognize a train.
craftoBot wrote:cargo detectors can only detect 15 kind of things in train because this is limit os constant-combintaor output, so you can try to use cargo detector mk1 to read each cargo unit, if this can help)
You can change item_slot_count in the prototype definition of the combinator.
craftoBot
Inserter
Inserter
Posts: 37
Joined: Sun Dec 28, 2014 7:39 pm
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by craftoBot »

Choumiko wrote:
thewd wrote:And one question- when I used A/M train mode switcher,it switch the train at station,but inserters aren't working:(
I had the same issue with SmartTrains. If i remember correctly i solved it by putting the train into manual mode 5 ticks after it arrived. I guess the inserters need time to wake up/recognize a train.
craftoBot wrote:cargo detectors can only detect 15 kind of things in train because this is limit os constant-combintaor output, so you can try to use cargo detector mk1 to read each cargo unit, if this can help)
You can change item_slot_count in the prototype definition of the combinator.
I already sloved first problem , thank you for suggestion in second)
thewd
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Dec 07, 2014 10:39 am
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by thewd »

report from the fields :)
go-to controller seems not working on vertical rails (

UPDATE
ow sry, I forgot to add station,at which train goes, in its schedule ^^
theit8514
Inserter
Inserter
Posts: 47
Joined: Sun Apr 20, 2014 2:11 am
Contact:

Re: [0.12.X][0.0.6] Rail logic system

Post by theit8514 »

Thanks for the great mod. I wanted to use the rail switch with the concreted rail tracks mod for my stations, but the rail switch lamp would not detect those as proper rails. I updated your code to detect any type of rail (including curved rail). If no rail is found, it defaults to a regular straight rail.
Rail Switch class
Post Reply

Return to “Mods”