Small Robots - Just make the robots a bit smaller.

by Pi-C

Change the size of logistic, construction, and combat bots! You can scale vanilla and modded bots between 50% and 250% of their original size. This mod is the perfect complement for "miniMAXIme: Character scaler and selector".

Tweaks
27 days ago
0.16 - 2.0
3.58K

i [Implemented] Rampant Fixed drones

1 year, 8 months ago

Drones from the Rampant Fixed mod (and I assume also from the original Rampant mod) are also scaled which makes it hard to fight/avoid them since they are almost invisible.

Is it possible to add any way for them to not get scaled (something like blacklist perhaps)?

1 year, 8 months ago

Actually, I've already outlined a way for other to prevent their bots from being scaled pretty much at the top of data-final-fixes.lua:

------------------------------------------------------------------------------------
-- If you are the author of a mod that creates flying bots, and if you don't want
-- "SmallRobots" to scale your mods, please add the flag "SR_dont_scale_me" to your
-- prototype! Example:
--
-- my_bot = table.deepcopy(data.raw["construction-bot"]["construction-bot"])
-- my_bot.SR_dont_scale_me = true
------------------------------------------------------------------------------------

I could blacklist by name pattern (checking if the name contains the string "-drone-rampant"), but that would break if the prototype names ever got changed, so it's safer if the other mod added the flag. After taking a quick glance, for "Rampant" and "Rampant Fixed" you would do this in prototypes/utils/DroneUtils.lua, in the function droneUtils.makeDrone():

local drone = {
    type = "combat-robot",
    name = n,
    SR_dont_scale_me = true,       -- ADD THIS LINE!
1 year, 8 months ago

OK, they are blacklisted in version 1.1.6 …

1 year, 8 months ago

Thanks for the light speed fix (I guess the C in the name stands for speed of light :) ).

New response