Nemoricus wrote:Smarter, logistics integrated trains are definitely something I'm interested in, and I may experiment with this mod soon.
However, I'm wondering if you can perhaps tell a train to transport a product, like iron ore, to a receiving station. Then, it would seek out the closest station that offers that product.
To make this fancier, it would only move if the logistics network tells it that the level of a product has dropped below a threshold that the player has set.
This would reduce the level of micromanaging the player has to do, since they just need to assign products to a station, and then trains that transport that product will automatically seek it out.
Is this something the mod is currently capable of? If not, would it be something that can be worked on for future releases?
You mean a special train stop, that has not also a name, but also
- an item-type and
- the amount of that item currently available or if it is a destination point?
And then trains that can an item be assigned and then they search through all stops with the same item and go to the station with the highest amount of items and return to the destination.
Would be really cool, but I think that is an extra mod.
PS: And when can this be moved out of Pre-Alpha?
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 06, 2015 8:55 am
by Alexs
THX!!
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 06, 2015 12:53 pm
by Choumiko
Nemoricus wrote:However, I'm wondering if you can perhaps tell a train to transport a product, like iron ore, to a receiving station. Then, it would seek out the closest station that offers that product.
To make this fancier, it would only move if the logistics network tells it that the level of a product has dropped below a threshold that the player has set.
Holding a train until some circuit condition is true can already be done. Seeking a nearby station that offers an item can't (and I won't add it as i'm quite happy with the current features/restrictions). However you can tell a train to which station to go via signal value. It may probably need a rather complex combinator setup but should be doable.
Neotix wrote:Could be possible to make train recalculate route and choose next station?
For example.
Train have route:
Station A
Station B
Station C
and going from Station B to Station C. Meanwhile Station C is removed. Train recalculate path and choose Station A as next stop.
Train move from Station A to Station B and Station B is disconnected (bitters destroyed tracks). Train recalculate patch and go back to Station A. It stay in Station A until Station B or Station C are available.
Not sure I understand correctly, but isn't that how vanilla already works? One thing I could do is have trains go to another station if their state changes to no path.
ssilk wrote:PS: And when can this be moved out of Pre-Alpha?
Soon (tm)
Re: [0.12.2+] SmartTrains 0.3.64
Posted: Sun Sep 06, 2015 2:03 pm
by Damrus
Choumiko wrote:Updated to 0.3.64
Did you install another mod? It could be some wierd naming conflict or whatever. Can you try loading Factorio with only SmartTrains (and Base of course) active?
Hey, sorry for the very late reply.
I simply downgraded to version 3.4 of smart trains as nothing was helping and completely forgot about the bug till I saw that the rail tanker had an update and I wanted to use it. Only to find out I'd need a new version of this mod too.
Currently I still have the same problem with the latest version of this mod. yet not if I load the game without any other mods (as you suggested).
So I went and checked which mods could have this affect and by loading in an extra mod one after another... and found that if I had Colour coding in there would give me the error.
I still had to 1.05 version so I updated to check if that changed anything
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 06, 2015 4:36 pm
by Jonathan88
This mod is AMAZING!!!
I'm not really a mod person but I recently installed rail tankers as that is something I think vanilla needs.
However, this alongside the new circuit network from 0.12 is something I've been looking for for a long time!
Thank you very much for making this! My worlds definitely need more trains now!
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 06, 2015 6:18 pm
by Neotix
Choumiko wrote:
Neotix wrote:Could be possible to make train recalculate route and choose next station?
For example.
Train have route:
Station A
Station B
Station C
and going from Station B to Station C. Meanwhile Station C is removed. Train recalculate path and choose Station A as next stop.
Train move from Station A to Station B and Station B is disconnected (bitters destroyed tracks). Train recalculate patch and go back to Station A. It stay in Station A until Station B or Station C are available.
Not sure I understand correctly, but isn't that how vanilla already works? One thing I could do is have trains go to another station if their state changes to no path.
I speak about situation like that
When top station was disconnected, train stopped instead of recalculating route and go back to bottom station.
So your's solution would solve that problem.
Re: [0.12.2+] SmartTrains 0.3.64
Posted: Sun Sep 06, 2015 6:28 pm
by Choumiko
Damrus wrote:Currently I still have the same problem with the latest version of this mod. yet not if I load the game without any other mods (as you suggested).
So I went and checked which mods could have this affect and by loading in an extra mod one after another... and found that if I had Colour coding in there would give me the error.
That really is the strangest thing ever.. I'm using color coding too, absolutely no issues. Try using https://raw.githubusercontent.com/Choum ... /info.json as the info.json
It simply removes the optional dependency for color coding. Again, i don't know why that should fix it but i also don't know why something that works for me (and others) doesn't work for you
Jonathan88 wrote:This mod is AMAZING!!!
Thanks
Neotix wrote:I speak about situation like that
When top station was disconnected, train stopped instead of recalculating route and go back to bottom station.
So your's solution would solve that problem.
I'll look into it (wednesday probably), shouldn't be too hard and could be usefull especially when you update a train line and some trains might not be able to reach the new station(s) without skipping one.
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 06, 2015 7:54 pm
by Alexs
The Mod "color coding" also makes for me problems.
When I click a Lockomotive in the game, there may be a CTD.
The Game then says, that a lock must be recolored and it lubricates.
Can you solve problem with your mod, or must color coding be deaktivated?
Incidentally, in Color Coding, I have turned the locks off, but it's no use anyway.
PS: Could you explain very simple for me, how I can fill up a lock properly - please even simple?
THX for your work!
Re: [0.12.2+] SmartTrains 0.3.66
Posted: Thu Sep 10, 2015 7:37 pm
by Choumiko
Alexs wrote:The Mod "color coding" also makes for me problems.
When I click a Lockomotive in the game, there may be a CTD.
The Game then says, that a lock must be recolored and it lubricates.
Can you solve problem with your mod, or must color coding be deaktivated?
Incidentally, in Color Coding, I have turned the locks off, but it's no use anyway.
PS: Could you explain very simple for me, how I can fill up a lock properly - please even simple?
THX for your work!
Sorry, i don't understand. Can you pm me in german, also screenshots/error logs etc would be nice. As i already said, i'm using color-coding locomotives without any issues.
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 11:43 am
by Alexs
wie besprochen:
bild 1.jpg (78.72 KiB) Viewed 11243 times
bild 2.jpg (64.96 KiB) Viewed 11243 times
bild 3.jpg (146.99 KiB) Viewed 11243 times
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 4:44 pm
by waduk
Noob question, please correct me of my understanding of the ST and rules setting :
The demosave files is crashing on load, can't learn from the example files
Min waiting time : Does this overide the value we set in every train ?
Say i set one train A to stay at train stop 1 for 0 seconds then it's will be overwrite internally as 4 seconds instead ?
Interval for auto depart : Does this is the value in seconds the train will leave after the condition in rules have been met to depart ?
Say the rules is the train to depart when full, then wait 2 seconds before depart ? If i set for zero, they will depart immediately ?
Interval for signal : Same as above, but ticks instead of seconds ?
Min. flow rate : I have no idea.
Signal in rules : I have no idea, what kind of signal ?
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 5:56 pm
by Choumiko
waduk wrote:The demosave files is crashing on load, can't learn from the example files
Any error log?
waduk wrote:Min waiting time : Does this overide the value we set in every train ?
Say i set one train A to stay at train stop 1 for 0 seconds then it's will be overwrite internally as 4 seconds instead ?
Interval for auto depart : Does this is the value in seconds the train will leave after the condition in rules have been met to depart ?
Say the rules is the train to depart when full, then wait 2 seconds before depart ? If i set for zero, they will depart immediately ?
Interval for signal : Same as above, but ticks instead of seconds ?
Min. flow rate : I have no idea.
Signal in rules : I have no idea, what kind of signal ?
Min waiting time: Controls when the first check for Full/Empty/Autodepart is made after the train arrives at the station. If this is higher than your time in the schedule the train should ignore these rules (i think).
Interval for auto depart: Controls when SmartTrains checks/updates the rules. E.g. 4 seconds after arriving: 1st check, 6sec. after arrival: 2nd check etc. As soon as a rule is true the train leaves. You can lower it to 1second if you want faster response, might cost you some FPS/UPS though.
Interval for signals: Same as above, only that it affects the update rate of the SmartTrain stops and the signal rule only
Min flow rate: Only used for RailTankerMod and the (Auto)Depart: every flow below this value is considered to be zero (you can get crazy low changes when a Railtanker is nearly full, like 0.0000001234)
Signal in rules: 1. signal checkbox: Makes trains only leave when the condition you set on the lamp at the smart train stop is true. 2nd signal checkbox: Makes the train go to the station number that the lamp condition gets from the circuit network. (numbers for your schedule would be 1 for "Coal Unload", 2 for "Coal 1")
I need to update that gui, make a better documentation and a demo save that works for everybody. So much to do
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 6:42 pm
by waduk
Thank you, yes a documentation and updated GUI would be very nice, it was confusing...hehe..
But i understand you have soo much in your hand, FARL, ST, Module Inserter, AutoTrash, and Foreman...hmm...what else did i miss?
Ahh totally different interpretation of "Interval for auto depart". Thank goodness i ask that, then i should set the number higher, didn't want to get fps hit.
About the flow rate, so default is 0.1.
Here's the case, on single depleted oil well, the train was set to "depart until full-wait forever".
Does that means they will not depart indefinitely ? Or ST will detected that flow, considered that to be zero, thus force departing the train ?
Edit :
Totally mistook your explanation on minimum flow..
OK, i get it now.
0.000 2015-09-13 01:10:36; Factorio 0.12.7 (Build 16743, win64)
0.000 Operating system: Windows 7 Service Pack 1
0.000 Program arguments: "E:\Games\Factorio_0.12.7 x64\bin\x64\Factorio.exe"
0.000 Read data path: E:/Games/Factorio_0.12.7 x64/data
0.000 Write data path: C:/Users/kyoshi/AppData/Roaming/Factorio
0.000 Binaries path: E:/Games/Factorio_0.12.7 x64/bin
0.117 Initialised Direct3D:[0] NVIDIA GeForce GTX 560 ; driver: nvd3dumx.dll 10.18.13.5582
0.117 [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 560 {0x05, [0,0], 1920x1080, 32bit, 60Hz}
0.165 Desktop composition is active.
0.166 Graphics options: [FullScreen: true] [VSync: true] [UIScale: 90%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: medium] [Screen: 255]
0.328 Loading mod core 0.0.0 (data.lua)
0.332 Loading mod base 0.12.7 (data.lua)
0.414 Loading mod actuator 0.4.5 (data.lua)
0.466 Loading mod advanced-logistics-system 0.2.5 (data.lua)
0.533 Loading mod Agent Orange 0.0.2 (data.lua)
0.598 Loading mod alien-science 0.0.6 (data.lua)
0.657 Loading mod auto-inserter 0.1.0 (data.lua)
0.717 Loading mod AutoTrash 0.0.1 (data.lua)
0.792 Loading mod blueprint_flipper 0.1.0 (data.lua)
0.849 Loading mod D-Load-Storage 0.1.2 (data.lua)
0.906 Loading mod Equalizer_Chests 1.1.1 (data.lua)
0.980 Loading mod EvoGUI 0.4.2 (data.lua)
1.041 Loading mod expanded_tools 1.0.1 (data.lua)
1.102 Loading mod fluid-barrel 1.0.0 (data.lua)
1.178 Loading mod Fluid Void 1.0.1 (data.lua)
1.235 Loading mod Foreman 0.0.8 (data.lua)
1.293 Loading mod Landfill 2.1.6 (data.lua)
1.368 Loading mod launch-control 0.1.1 (data.lua)
1.424 Loading mod logistic-combinators 0.1.1 (data.lua)
1.479 Loading mod ModuleInserter 0.0.9 (data.lua)
1.544 Loading mod nixie-tubes 0.1.7 (data.lua)
1.619 Loading mod RailTanker 1.1.0 (data.lua)
1.679 Loading mod Resource-Monitor-Mod 0.5.4 (data.lua)
1.740 Loading mod robotic-combinators 0.2.1 (data.lua)
1.828 Loading mod sensor 0.4.7 (data.lua)
1.886 Loading mod SpeedButtons 0.0.2 (data.lua)
1.955 Loading mod Terraforming 0.12.1 (data.lua)
2.014 Loading mod TheFatController 0.2.4 (data.lua)
2.079 Loading mod turrets-range 1.1.1 (data.lua)
2.154 Loading mod upgrade-planner 1.1.6 (data.lua)
2.216 Loading mod VoidChestInstant 1.0.0 (data.lua)
2.278 Loading mod SmartTrains 0.3.66 (data.lua)
2.353 Loading mod FARL 0.4.0 (data.lua)
2.435 Loading mod DefaultRequestAmount 1.0.0 (data-updates.lua)
2.523 Loading mod rso-mod 1.3.4 (data-updates.lua)
2.616 Loading mod SmartTrains 0.3.66 (data-updates.lua)
2.681 Loading mod FARL 0.4.0 (data-updates.lua)
2.751 Loading mod advanced-logistics-system 0.2.5 (data-final-fixes.lua)
2.842 Loading mod Agent Orange 0.0.2 (data-final-fixes.lua)
2.911 Loading mod AutoTrash 0.0.1 (data-final-fixes.lua)
2.991 Loading mod ModuleInserter 0.0.9 (data-final-fixes.lua)
3.089 Loading mod sensor 0.4.7 (data-final-fixes.lua)
15.230 Initial atlas bitmap size is 16384
15.231 Created atlas bitmap 16384x1351
37.391 Factorio initialised
42.241 Loading map C:/Users\kyoshi\AppData\Roaming\Factorio\saves\Demosave.zip
42.298 Info Scenario.cpp:160: Map version 0.12.4-3
42.303 Info PrototypeMigrationList.cpp:99: Activating migration Landfill/2.1.3.json
42.303 Warning PrototypeMigrationList.cpp:154: "landfill8by8" mentioned as FROM in prototype migration was not found in the map prototype dictionary, ignoring ...
42.538 Applying migration: Actuator: actuator_0.4.0.lua
42.541 Applying migration: Agent Orange: Recipe Change.lua
42.542 Applying migration: Expanded Tools: expanded_tools_1.0.1.lua
42.569 Applying migration: Landfill: 2.1.3.lua
42.573 Applying migration: Module Inserter: module-inserter_0.0.1.lua
42.593 Applying migration: Sensor: sensor_0.4.0.lua
42.596 Applying migration: The Fat Controller: TheFatController_0.1.1.lua
42.598 Applying migration: Upgrade planner: upgrade-planner_1.1.0.lua
42.617 Applying migration: Fully Automated Rail Layer: 2015-02-18_FARL_0.1.8.lua
43.053 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__Resource-Monitor-Mod__/script-locale/en.cfg)
43.054 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__Resource-Monitor-Mod__/script-locale/en.cfg)
43.161 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__upgrade-planner__/script-locale/en.cfg)
43.162 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__upgrade-planner__/script-locale/en.cfg)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\temp\factorio-492cc159\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\temp\factorio-492cc159\src\util\logger.cpp (283): Logger::writeStacktrace
c:\temp\factorio-492cc159\src\util\logger.cpp (337): Logger::logStacktrace
c:\temp\factorio-492cc159\src\util\crashhandler.cpp (81): CrashHandler::writeStackTrace
c:\temp\factorio-492cc159\src\util\crashhandler.cpp (139): CrashHandler::SignalHandler
f:\dd\vctools\crt\crtw32\misc\winxfltr.c (372): _XcptFilter
f:\dd\vctools\crt\crtw32\startup\crt0.c (267): __tmainCRTStartup$filt$0
f:\dd\vctools\crt\crtw32\misc\amd64\chandler.c (162): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077029D2D)
0000000077029D2D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000770191CF)
00000000770191CF (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077051248)
0000000077051248 (ntdll): (filename not available): KiUserExceptionDispatcher
c:\temp\factorio-492cc159\src\gui\alertgui.cpp (23): AlertGui::AlertGui
c:\temp\factorio-492cc159\src\gameview.cpp (318): GameView::loadGui
c:\temp\factorio-492cc159\src\gameview.cpp (114): GameView::GameView
c:\temp\factorio-492cc159\src\game.cpp (228): Game::checkGameViewCreation
c:\temp\factorio-492cc159\src\game.cpp (246): Game::prepareRender
c:\temp\factorio-492cc159\src\mainloop.cpp (211): MainLoop::prepare
c:\temp\factorio-492cc159\src\mainloop.cpp (457): MainLoop::tickStep
c:\temp\factorio-492cc159\src\mainloop.cpp (540): MainLoop::run
c:\temp\factorio-492cc159\src\main.cpp (412): wmain
f:\dd\vctools\crt\crtw32\startup\crt0.c (255): __tmainCRTStartup
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076DF59ED)
0000000076DF59ED (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007702C541)
000000007702C541 (ntdll): (filename not available): RtlUserThreadStart
45.309 Error Util.cpp:46: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 7:07 pm
by Choumiko
waduk wrote:Thank you, yes a documentation and updated GUI would be very nice, it was confusing...hehe..
But i understand you have soo much in your hand, FARL, ST, Module Inserter, AutoTrash, and Foreman...hmm...what else did i miss?
one yet unreleased mod (absolutely nothing fancy, doesn't even need a control.lua ), but yeah, it's starting to become quite a bit of work, and gui/documentation isn't really something i enjoy
About the crash: Can you try disablinc actuators? I think i had an issue with it on the demo save
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sat Sep 12, 2015 9:03 pm
by waduk
Yup, the actuator was the culprit. Can load without problem now.
Wow,..totally unexpected, really awesome demo setup. ST can do THAT ?!!
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 13, 2015 6:12 am
by StoneLegion
Does someone have a demo or screenshots or a how to to make the most basic fuel station? I opened the demo up and I ran off and closed it lol. I got so confused. Only thing at this point I like to do is just go to a station for fueling for fun Thank you
Re: [MOD 0.12.2+] SmartTrains 0.3.66
Posted: Sun Sep 13, 2015 9:06 am
by waduk
Kane wrote:Does someone have a demo or screenshots or a how to to make the most basic fuel station? I opened the demo up and I ran off and closed it lol. I got so confused. Only thing at this point I like to do is just go to a station for fueling for fun Thank you
Haha,..refueling was totally unnecessary given that i can just put inserter and chest.
But yeah, this is so much fun watching the train automatically go to station. I even set the value low, so they go refueling often.
Here's the screencap.
removed optional dependency for dolor coding (still uses the green lamp if available)
added missing locales
show "wait ∞" in Traininfo window, when wait forever is set
The MJ value will be calculated for saves with the old version, so if you have it setup already you don't need to do anything.
When making changes to the min/max values the equivalent in coal (8MJ equals 1 coal) will be shown in the settings window after saving.
Re: [MOD 0.12.2+] SmartTrains 0.3.67
Posted: Mon Sep 14, 2015 5:37 am
by StoneLegion
Is there multiplayer support?
Re: [MOD 0.12.2+] SmartTrains 0.3.67
Posted: Mon Sep 14, 2015 7:54 am
by Choumiko
Kane wrote:Is there multiplayer support?
Not for players in different forces (yet?!) if you're after that (it could work, but the forces would share the same settings/lines). It should work for normal MP though.