Good news, I have made to fully working mods that use this to power trains. one off of the solar (unlimited) and the other to power off of the electrical network. I've had both running on a map for a good 30 minutes in a big loop, no issues.
I'll polish them up and see about uploading them for the world.
electric trains
Re: electric trains
Will code for Food. I also have 11+ mods!
Re: electric trains
Nice! Hope to see how you did that ASAP
-
- Filter Inserter
- Posts: 402
- Joined: Fri May 23, 2014 8:54 am
- Contact:
Re: electric trains
Sadly it is really inconsistent. I never found a good workable solution so i went with coal. Hope you can find a better way.
Re: electric trains
it is consistent, you just have to do it every tick. until we can find out how to add to the train buffer.JamesOFarrell wrote:Sadly it is really inconsistent. I never found a good workable solution so i went with coal. Hope you can find a better way.
Will code for Food. I also have 11+ mods!
Re: electric trains
https://forums.factorio.com/forum/vie ... 91&t=15364
Electric trains run off of an electrical network.
Solar trains are the basic unlimited energy trains.
Electric trains run off of an electrical network.
Solar trains are the basic unlimited energy trains.
Will code for Food. I also have 11+ mods!
Re: electric trains
Yesh, thanks for you mod vzybilly I had a look at the code, that's smart
However, why is there no function associated to the event on_save of the game ? The maps are not to be saved with the game ?
However, why is there no function associated to the event on_save of the game ? The maps are not to be saved with the game ?
Re: electric trains
From what I hear, "global.*" is stored in the game map. it gets saved automatically. it does persist through games, even full restarts of the games so I would have to say that it's true.@xi@g@me wrote:Yesh, thanks for you mod vzybilly I had a look at the code, that's smart
However, why is there no function associated to the event on_save of the game ? The maps are not to be saved with the game ?
This happens when you start a new world
Code: Select all
game.on_init()
Code: Select all
game.on_load()
Will code for Food. I also have 11+ mods!
Re: electric trains
Ah, OK, good to know