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!
Prevent bot upgrades to apply to mod-bots?
Re: Prevent bot upgrades to apply to mod-bots?
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)
And looking at the raw files always helps: (Factorio\data\base\prototypes\technology\technology.lua and Factorio\data\base\prototypes\entity\entities.lua)
Re: Prevent bot upgrades to apply to mod-bots?
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:
Any idea how to prevent the effect of this on my early-game bots?
Code: Select all
effects = {
{
type = "worker-robot-speed",
modifier = 0.35
}
}
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Prevent bot upgrades to apply to mod-bots?
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.
Re: Prevent bot upgrades to apply to mod-bots?
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.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.