Battery Pack

by mrudat

Changes modular armor batteries to work as removable battery packs able to power armor, vehicles or your factory.

3 years ago
0.17 - 0.18
9

g removing content

3 years ago

hi.
nice work !
id like to "remove" the vanilla vehicles you can craft out of eletrical versions.
i want only 2 recipes for my car. the vanilla one, and the electrical one.
right now there is 2 recipes for vanilla car.
id also like to "remove" power plant.

how would i do that ?

3 years ago

im familiar with changing vanilla-games-recipes.

altough i couldt find where to change your recipes, only the technology-recipes.

3 years ago

There isn't any provision within this mod to do either of those things, though I suppose I could add something.

All of the recipes for vehicles are constructed on the fly, so that the mod can support mod-added vehicles.

I think the easiest way to do so, would be to hide the recipes in question.

data.raw.recipe['recipe-name'].hidden = true

The main reason for having the electrical -> vanilla conversion is to support mods where the base vehicle can be upgraded; vehicle mk1 -> electric vehicle mk1 -> vehicle mk 1 -> vehicle mk2 -> electric vehicle mk2, ...

If I recall correctly, the recipe for the power plant should be in data.lua.

I can add a setting to remove the electric -> vanilla conversion easily enough, though I'm not quite sure why you'd want to remove the power plant?

3 years ago

much thanks !

New response