Battery-Electric Train

by catweax

Electric trains, but UPS-friendly. Provides battery-powered locomotives, reusable battery packs and charging facilities. Balanced for vanilla gameplay by default, but trains can be as fast as you want.

Content
5 months ago
1.1 - 2.0
17.2K
Trains

g [resolved] 2.0?

5 months ago

I hate to be that guy, but do you plan on porting it to 2.0/Space Age?

5 months ago
(updated 5 months ago)

The mod version requirement used to specify the minimum required version, so I had hoped that It Just Works™, but if you’re asking, I guess it doesn’t.

Does the mod actually break in some way or does the game just tell you that it’s not compatible?

I haven’t updated to 2.0 yet because I don’t want to break my current base, but I guess I’ll have to install 2.0 elsewhere so that I can use both. I can’t do it today, but I’ll try to look into it tomorrow.

5 months ago

I'm not very knoalgable in the modding side, but I will not let me use the mod because it is not for that version of Factorio, I tried to open the config and change the game version to 2.0
Failed to load mods: core/lualib/util.lua:803: Recipe has no results: bet-locomotive
stack traceback:
[C]: in function 'error'
core/lualib/util.lua:803: in function 'normalize_recipe_products'
quality/prototypes/recycling.lua:78: in function 'add_recipe_values'
quality/prototypes/recycling.lua:191: in function 'generate_recycling_recipe'
quality/data-updates.lua:5: in main chunk

Mods to be disabled:
• quality (2.0.11)
It looks like you might need to add quality modifiers to the items
Im going to look into it and see if I can modify the mod files to get it to so you wont have to do as much

5 months ago

That’s for the info. I guess it’s actually this issue because I used "result" everywhere.

5 months ago

Space age Dose not work without Quality mod when disabling Space Age and Quality I get this error
Failed to load mods: Error while loading recipe prototype "bet-locomotive" (recipe): IngredientPrototype must be a dictionary and contain "type" property.
Shorthand format using an array is no longer supported in property tree at ROOT.recipe.bet-locomotive.ingredients[0]
Modifications: Battery-Electric Train
Hopefully this makes more sense to you then it does to me.

5 months ago

I won’t have Space Age for a while, so this is actually helpful. I’ll see what I can do tomorrow and I might need you to try out a new version with Space Age because I will only be able to test it with the base 2.0 game.

5 months ago

Alright will do, I will look for any new info when I log on ~11Am EST

5 months ago

I suggest you subscribe to this topic because it might take me a bit to make a new version for you to test. The error messages suggest that there will be quite a bit to change that I need to look up first.

5 months ago
(updated 5 months ago)

Sorry for taking so long; all the required changes for 2.0 were driving me insane and I hadn't done any mod programming in two years.

Please test this version and report whether it works as expected: https://files.catbox.moe/ksoc0i.zip
You might have to rename the file to BatteryElectricTrain_1.9.0.zip after downloading. Then simply replace the older file in your game’s mod folder with it. You should be able to update the mod via the game just fine once I properly release it.

I tested this version with the base 2.0 game, but I have no idea if it works with all the Space Age extensions. It would be great if you could test that as well.

5 months ago

Seems to work with the space age, Tested on every planet besides Aquilo. (have yet to get there) Thank you for updating it and getting back to me.

New response