Prevent bot upgrades to apply to mod-bots?

Place to get help with not working mods / modding interface.
TheOddler
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri May 12, 2017 5:52 pm
Contact:

Prevent bot upgrades to apply to mod-bots?

Post by TheOddler »

I've created a simple mod that adds early-game bots. They are to be worse versions of the later bots. The main thing that would make them worse it that they don't enjoy upgrades. However, I couldn't find how to prevent the new bots from getting those upgrades, so they can never carry more than 1 item, and don't get faster. Does anyone know how to do this?

Thanks!
kikker450
Inserter
Inserter
Posts: 30
Joined: Fri May 05, 2017 9:07 am
Contact:

Re: Prevent bot upgrades to apply to mod-bots?

Post by kikker450 »

I've never experimented with that but either a research applies a permanent modifier or permanently changes stats. In either case you have to replace all entities and recipes every time research is done with the old stats to keep them outdated.

And looking at the raw files always helps: (Factorio\data\base\prototypes\technology\technology.lua and Factorio\data\base\prototypes\entity\entities.lua)
TheOddler
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri May 12, 2017 5:52 pm
Contact:

Re: Prevent bot upgrades to apply to mod-bots?

Post by TheOddler »

It looks like the upgrades use a modifier, when I look in `Factorio\data\base\prototypes\technology\technology.lua` there are several technoligies with as effect:

Code: Select all

    effects = {
      {
        type = "worker-robot-speed",
        modifier = 0.35
      }
    }
Any idea how to prevent the effect of this on my early-game bots?
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Prevent bot upgrades to apply to mod-bots?

Post by bobingabout »

The only way to make this not apply, is to make the bot something other than a logistic or construction robot, which will also prevent it from performing the task you want it to do.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
TheOddler
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri May 12, 2017 5:52 pm
Contact:

Re: Prevent bot upgrades to apply to mod-bots?

Post by TheOddler »

bobingabout wrote:The only way to make this not apply, is to make the bot something other than a logistic or construction robot, which will also prevent it from performing the task you want it to do.
Shame :( Ahh well, I now just made them half as fast, which is really slow at the start but good enough for the beginning I guess.
Post Reply

Return to “Modding help”