Railway Motor Car

by S3bulon

Adds a railway motor car as an equipment to ride the railway without placing a locomotive manually.

Content
7 months ago
1.0 - 1.1
10.3K
Trains

b bug with py alienlife

2 years ago
(updated 2 years ago)

when loading the mod with py alienlife factorio chrashes at around 90% loading.
The reason it crashes is cause it uses _G.scale for setting the size of an entity.
_G means that it takes this value from all the global values. and your mod uses a global function scale (first line in motorcar.lua) witch overides this value to a function. Making the function local, by adding the keyword "local" in front of the word function, you can fix the problem.
Thanks for fixing this in advance.

edit: seems to be the same problem as https://mods.factorio.com/mod/railway-motor-car/discussion/5f660229c8ebf5e7974e7516 but this is a full fix

2 years ago

Thanks for the suggestion / information, fixed with 0.1.6

New response