TrainSignalSender

by Hermios

Allow Trains to send pre-configured signals with quantities to stations where they are stopped

18 days ago
1.1
60

Changelog

Version: 1.0.5
Date: 21-04-2024
  Gui
    - In some cases, train signal sender gui is still present, despite no train is selected. the gui doesn't disappear after reloading the game[https://api.github.com/repos/Hermios/TrainSignalSender/issues/22]
  Bugfixes
    - train station still read train content, despite train left already[https://api.github.com/repos/Hermios/TrainSignalSender/issues/23]
Version: 1.0.4
Date: 09-02-2024
  Info
    - [wrong dependancy to base (Is > instead of >=)](https://api.github.com/repos/Hermios/TrainSignalSender/issues/19)
Version: 1.0.3
Date: 08-02-2024
  Modding
    - [Incompatibility with trainconstructionsite](https://api.github.com/repos/Hermios/TrainSignalSender/issues/14)
    - [Make compatible with logistic train station from Mod LTN](https://api.github.com/repos/Hermios/TrainSignalSender/issues/16)
  Bugfixes
    - [train-stations created before research is handled don't have the technology](https://api.github.com/repos/Hermios/TrainSignalSender/issues/15)
    - [Crash when no schedule for a train](https://api.github.com/repos/Hermios/TrainSignalSender/issues/17)
Version: 1.0.2
Date: 28-01-2024
  Bugfixes
    - [in case of temporary station, crash](https://api.github.com/repos/Hermios/TrainSignalSender/issues/12)
Version: 1.0.1
Date: 27-01-2024
  Changes
    - [Update to adapt to the new dependancies structure](https://api.github.com/repos/Hermios/TrainSignalSender/issues/8)
  Gui
    - [gui overlay with train gui](https://api.github.com/repos/Hermios/TrainSignalSender/issues/9)
Version: 1.0.0
Date: 19-01-2024
  Bugfixes
    - [Please don't clear root level GUI elements](https://api.github.com/repos/Hermios/TrainSignalSender/issues/1)
  Major Features
    - [implement new version for Factorio 1.1](https://api.github.com/repos/Hermios/TrainSignalSender/issues/4)
Version: 0.3.8
Date: 05-01-2024
Improvements:
	- Add discrete values for the slider
	- Add number in the picture
0.3.7
Fix:
	- Remote call to function "HasSignal" didn't send back an accurate response
	- Fix crash when joining trains with defined signals
	- Fix issue on recovering data after a load of a game
0.3.6
Fix:
	- Issue when adding loco to a train with existing signals
0.3.5
Fix:
	- Issue with 0.17.35 for remnant corpses
0.3.4
Changes:
	- Require HermiosLibs
0.3.3
Improvements:
	- Create changelog file
Fix: 
	- copy/paste settings
0.3.2
Fix:
	- Crash on removing train-stop
0.3.1
Fix:
	- some risks of conflicts with other mods
0.3.0
Update:
	- Compatible with 0.17
	- Migration from previous versions
Improvements: 
	- Reduce the frequency of recalculation, to improve the UPS latency. Value configurable in the options
0.2.3
Fixed:
	- bugs of GUI
Improvements:
	- Reimplement quantity of signals, but with a new GUI. 
	- Set difference between signal (item or fluid) quantity and current content of the train. This option is defined on each train stations.
		When set to true, instead of generating, for an item A, X signals from the content of the train, and Y from the signal sender itself, the train station will generate a specific amount of item A to compensate the default one, and produce the final quantity Y-X. (Sorry if it not clear, basically, instead of having X+Y as a result, you will return Y-X).
		The option works even if the option "read content of the train" of the train station is deactivated

Mods:
	- Remote call is not changed, expect for the method "hasSignal". If the signal is present, the method returns the quantity of it
I use it to connect my train station to a decider combinator, with the config "If each item(green icon)>0, produce all items(red icon)", and connect the decider to a filter inserter, that can read the signals.
Thus, I define for my train which quantity of each item I expect. I just connect it to one decider, that I connect to all filter inserted I need, and they will fill it in automatically until each quantity for each item has been reached. (+1 or 2, because the inserter takes more than one at a time).
I definitely struggle to explain it properly, please feel free to ask for more explanation, I'll do my best!
0.2.2
Fixed:
	- Critical fixes (Conflicts with other mods)
0.2.1
Update:
	- compatible with 0.16.51
Improvements:
	- Gui changed, no count of signal anymore, only the signal itself
Mods:	
	- setSignals(train,signalIds)-->No return
	- clearSignals(train)-->No return
	- getSignals(train)-->Array of signals
	- hasSignal(train,signalId)-->Boolean
0.1.2
Fixed:
	-Various Bugs fixed
0.1.0
Update:
	- compatible with 0.15.10
Change:
	- Train reading has been removed (As it is provided by the core)
Mods:
	- Remote functions are available-> To set signals (If not place is available and the signal is not already present, this will be ignored), use remote.call("TrainsSignalSender","setsignals",train,signals) where signals is in the same format as the constantcombinator parameters
	- To clear signals, use remote.call("TrainsSignalsSender","clearsignals",train)