Page 2 of 4

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

Posted: Fri Aug 21, 2015 12:37 pm
by Alexs
Finally a programmable system for the trains.
A great idea and a great job! a big thx!!

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

Posted: Fri Aug 21, 2015 7:32 pm
by craftoBot
I uploaded new version of the mod. Fixed problem with train mode controllers and rail switches, increased slot count in inventory readers.

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

Posted: Fri Aug 21, 2015 9:04 pm
by ssilk
Your links to the pics aren't working, because you cannot use [pic] inside of [url]-tag!
This hoster is also known to be blocked by many networks, cause it is known as sex-pic-upload.

I recommend to use the Factorio forum file/pic upload (when you edit the file, the "upload" folder in the lower half of screen - as the normal attachements). I don't know the current pic limit, but it seems to be big enough. :)

Re: [MOD 0.12.X][0.0.7] Rail logic system

Posted: Sat Aug 22, 2015 8:08 pm
by craftoBot
@Alexs
Also for more complex control on logic network you can use another my mod [MOD 0.12.x][0.0.2] Programmable Controllers

Re: [MOD 0.12.X][0.0.7] Rail logic system

Posted: Sun Aug 23, 2015 11:10 am
by Alexs
Thanks for the tip, I downloaded and will look at it.

have just following error occurred while trying to delete the TrainmodeController:

Error .. eventHandler
__RailLogicSystem__ /control.lua:258: attempt to call field "destroy" (a nil value)


thanks again for the mod - just great

And another problem: after reconstruction (build and rebuils) Rails:

/control.lua:71: Removal of trains over rail unsucessful.

Crash, when the lock trying to ride over the Rail Switcher

Can this be error, because I use also the mod Concretet-rails_0.1.2?
If so, could you make their mod with Concretet-rails_0.1.2 compatible?

Re: [MOD 0.12.X][0.0.7] Rail logic system

Posted: Sun Aug 23, 2015 6:13 pm
by craftoBot
Alexs wrote:Thanks for the tip, I downloaded and will look at it.

have just following error occurred while trying to delete the TrainmodeController:

Error .. eventHandler
__RailLogicSystem__ /control.lua:258: attempt to call field "destroy" (a nil value)


thanks again for the mod - just great

And another problem: after reconstruction (build and rebuils) Rails:

/control.lua:71: Removal of trains over rail unsucessful.

Crash, when the lock trying to ride over the Rail Switcher

Can this be error, because I use also the mod Concretet-rails_0.1.2?
If so, could you make their mod with Concretet-rails_0.1.2 compatible?
Sorry for this strange bugs,
Fix wiil be at 24.08 evening

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Tue Aug 25, 2015 2:53 am
by craftoBot
Uploaded version 0.0.8.
Fixed removing rails under train and tarin mode controller crash.

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Tue Aug 25, 2015 6:02 am
by Alexs
many thanks!!!

Edit:
I've just tested - it works beautifully!
Special thanks that you have made the mod "concreted-rails" compatible.
good work, sir!!

Edit 2:
Another error is detected:
Cargo Reader MK2 reads not the inventory.

Proposal for a Mod extension:
Change of train controller:
- If positive signal: Manuel mod, the train can load the cargo, even if it is not delivered until night minutes. (now so)
- If a negative signal: switch back to automatic (missing so far).
So a very simple control can be realized, and it needs no rail-switcher more. By rail switcher switches the train after the charging time to go, can not go, but can no longer load a later delivery.

I also did a German translation, as a thank you for your work. interested?

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Fri Aug 28, 2015 10:35 am
by Neotix
This mod is great but very heavy. Placing detectors cause fps drops. When I placed 20 signal detectors I had ~30fps less.

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Tue Sep 01, 2015 8:38 pm
by GopherAtl
Disregard. I am herp, king of the derps.

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Tue Sep 01, 2015 9:11 pm
by Alexs
THX!! :D

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Wed Sep 09, 2015 4:54 pm
by DOSorDIE
Try to use the system but i have no idea how this should work
I want in a train station that the train wait so long until all iron is unloaded.
So i read the cargo and make with coombinator a signal that A=1 then iron < 1 ... that work great but how i bring the train to wait until he is emty?
Railswitch dont work but he stop unloading
Train Mode Controller stop the train (sometimes) but never start it again if signal changes.

Can you help me?

Edit:
In Multiplayer unplayable ... but its makes heavy task each tick ... change that to every 30 tick ... and now no lags anymore ...
Please make the mod more efficient ...
Found a way but its not the easy one with Cargo Inventory & Train Goto Controller and a Zombie Station ... but it works!

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Mon Sep 21, 2015 1:08 pm
by Chess
Is it possible to make the locomotives to emit a signal? I would like to be able to identify which train is in the station to set the destiny with the goto controller.

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sun Dec 13, 2015 7:27 pm
by Xipheas
Hi,

When trying to use this mod, I get an error
:

Code: Select all

_ _RailLogicSystem_ _/control.lua:3:
_ _RailLogicSystem_ _/helpers/gui_helpers.lua:1
28: attempt to index global 'game' (a nil value)
Did I do something wrong?

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sun Dec 13, 2015 7:51 pm
by orzelek
You didn't.

Mod needs to be updated to be compatible with current version.

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sun Dec 13, 2015 7:56 pm
by Freetambo
Two weeks ago somebody posted a question about updating this mod on reddit. I downloaded the fix there, but now my Station go to controllers don't work after resuming a save. Which kind of sucks, since I had this awesome automated train dispatching system going on. :(

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sat Jan 09, 2016 10:42 am
by Arakasiii
is there some trick to getting the rail switch to go horizontal. everything i've tried it remains vertical.
cheers

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sun Jan 17, 2016 12:01 pm
by thewd
I`ve updated some things in RLS. Switch now works correctly (well, it worked for me). Check it out.
https://forums.factorio.com/forum/viewtop ... 20&t=19236

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sun Jan 31, 2016 9:45 am
by mophydeen
Xipheas wrote:Hi,

When trying to use this mod, I get an error
:

Code: Select all

_ _RailLogicSystem_ _/control.lua:3:
_ _RailLogicSystem_ _/helpers/gui_helpers.lua:1
28: attempt to index global 'game' (a nil value)
Did I do something wrong?
game.on_event(defines.events.on_gui_click, GUI.OnClick)

>>>

script.on_event(defines.events.on_gui_click, GUI.OnClick)

Re: [MOD 0.12.X][0.0.8] Rail logic system

Posted: Sat Mar 05, 2016 2:24 am
by GRAW
mophydeen wrote:
Xipheas wrote:Hi,

When trying to use this mod, I get an error
:

Code: Select all

_ _RailLogicSystem_ _/control.lua:3:
_ _RailLogicSystem_ _/helpers/gui_helpers.lua:1
28: attempt to index global 'game' (a nil value)
Did I do something wrong?
game.on_event(defines.events.on_gui_click, GUI.OnClick)

>>>

script.on_event(defines.events.on_gui_click, GUI.OnClick)

Have the error quoted, but I've tried your fix as well as downloading a new control.lua that was supposed to fix the issue, it hasn't. I'm curious if anyone has figured it out, as it may relate to the new patches released recently.