Artisanal Reskins: Bob's Mods

by Kirazy

Reskins items, entities, and technologies within Bob's mods to add tier colors and icon labeling. Features high-res icons and updated sprites to align with vanilla Factorio, and supports player-customizable tier labels, colors and mapping. Part of the Artisanal Reskins series.

Tweaks
14 hours ago
1.0 - 1.1
98.8K

b [Not a bug] Small robots

3 years ago

Hi!
I found out your mod and Small Robots are not working properly together.
All bob's bots size don't change when Artisanal Reskins is on (those of Angel have any issues)

I saw Small Robots mod works with all bots mods, so I assume the problem "yours"

3 years ago
(updated 3 years ago)

This is actually a Small Robots error. They do not account for the possibility of layered sprites.

Specifically the function modify_robot in data-final-fixes, the subsection here:

for _, state in ipairs(states) do
  if robot[state] then
    dprint(string.format("Scaling graphics for %s[%s] (%g%%)", robot.name, state, scale * 100))
    robot[state].scale = scale
    if robot[state]["hr_version"] then
      dprint("Scaling hr-version")
      robot[state]["hr_version"].scale = 0.5 * scale
    end
  end
end

It assumes that hr_version will be at the root of the state table, but if the robot is defined with layers, properties other than layers at the root are ignored. The mod needs to check for layers, and if there, iterate through the table and apply scale changes there.

3 years ago

Oh, ok!
I see you have already posted a message about it, thank you :)

3 years ago

The author has indicated he has fixed this. Can you confirm?

3 years ago

Yes ! Thanks ;)

New response