Realistic Electric Trains


This mod adds electric trains which require power delivered by overhead lines.

Content
3 years ago
0.16 - 1.0
140
Trains

b 1.1?

3 years ago

Failed to load mods: entity prototype "ret-chain-pole-base" (rail-chain-signal) collision mask does not collide with entity "rail-chain-signal" (rail-chain-signal).
rail signal collision masks must collide with all other rail signals.
ret-chain-pole-base modifications. Realistic Electric Trains

3 years ago

Same here.
Funny thing is when I add https://mods.factorio.com/mod/beautiful_bridge_railway , the game starts with both mods enabled and RET seems to work.

3 years ago

interesting might be a fix some where in the code for ret either directly if beautiful bridge maker doesn't mind or indirectly just by seeing what is getting fixed and replicating it

3 years ago

If I remember correctly the Beautiful Bridge Railway changes the collision mask of signals so it can be placed on water. I don't how that other mod does it but I think I know way it does.

3 years ago

so its a collision mask issue hmm i dont know enough about how those work to offer a fix

3 years ago

This is a result of https://forums.factorio.com/viewtopic.php?p=516988#p516988, or tl;dr "Rail signals have to have collision mask that collides with any other rail signal. By default rail signals now include rail-layer to achieve that."

I'm no modder but it seems all that needed done was adding the "rail-layer" "collision_mask" to the pole_base and pole_placer entities. I created a PR: https://github.com/Scarabytes/FactorioRealisticElectricTrains/pull/22

3 years ago

good job blacksmoke16

3 years ago

same here

3 years ago

until then I have a fix that works in 1.1.

https://mods.factorio.com/mod/Realistic_Electric_Trains_fix

3 years ago

unfortunately it does not work for version 1.1.19

3 years ago
(updated 3 years ago)

it seems to for me ? what other mods do you have ? is it crashing ? not working in some other way ?

3 years ago

I've been on the experimental branch so my fix should be working.

3 years ago

well I have the mod on my 1.0 backup
https://mods.factorio.com/mod/Realistic_Electric_Trains
and here with this mod, my trains are at a standstill and I can neither dismantle if touch, otherwise it is a direct crash.

3 years ago
(updated 3 years ago)

Hi!
I also have a problem with the fix and the 1.1.19 (in the stable branch)
And for some reasons, the bug is here only with the save I play on. If I start a new save, it's seem there is no problem

I have this error (because robots are placing poles), but if I delete a pole it's crashing with approximatly the same issue

1640.983 Error MainLoop.cpp:1285: Exception at tick 30095419: Le mod Realistic Electric Trains 1.1 fix (0.4.7) a engendré une erreur non récupérable.
Merci d'informer l'auteur de cette erreur.

Error while running event Realistic_Electric_Trains_fix::on_robot_built_entity (ID 14)
Realistic_Electric_Trains_fix/logic/rail_search.lua:251: attempt to index local 'target_wire' (a nil value)
stack traceback:
Realistic_Electric_Trains_fix/logic/rail_search.lua:251: in function <Realistic_Electric_Trains_fix/logic/rail_search.lua:174>
(...tail calls...)
Realistic_Electric_Trains_fix/logic/overhead_line.lua:242: in function 'install_pole'
Realistic_Electric_Trains_fix/logic/events/on_built.lua:100: in function 'create_pole'
Realistic_Electric_Trains_fix/logic/events/on_built.lua:162: in function <Realistic_Electric_Trains_fix/logic/events/on_built.lua:157>

(Screen of the error https://prnt.sc/y9to4p )

And when I load my save, all trains are like if there were not powered (they all stop with the little icon on top of these)

There is about 70 trains MK2 on the save
Screens of mods config + all mod I used on the save:
https://prnt.sc/y9sj09
https://prnt.sc/y9sgbp
https://prnt.sc/y9snia

I hope theses info will help you. Have a great day ! :D

3 years ago

voila c'est exactement cela qui m'arrive

New response