Need help with character sprites replacement!
Posted: Sat Dec 27, 2025 11:12 am
Hi!
I really need outside help to create a simple mod that would replace the sprite of the engineer. There are no problems with sprites (and their parameters like "shift_by_pixel" e.t.c.) and they are almost ready. The problem lies in the replacement itself, i.e. in the code.
What I want:
- This is a "standalone" mod, it does not involve the use of a "character manager". Lightness is a priority, and in general it is more for personal use.
- Simplicity.
What I have already: "date" and "character_animation". The last one is a copy of the standard file, just trying to make it work for start. The first one states the following:
local animations = require("character-animations")
local character = data.raw["character"]["character"]
local characteranimations = animations
character.icon = "__ALGI__/graphics/icons/entity/character.png"
Yes, I was able to successfully replace the engineer icon. I did not understand how to replace animations.
Will be glad of any help, grateful in advance!
I really need outside help to create a simple mod that would replace the sprite of the engineer. There are no problems with sprites (and their parameters like "shift_by_pixel" e.t.c.) and they are almost ready. The problem lies in the replacement itself, i.e. in the code.
What I want:
- This is a "standalone" mod, it does not involve the use of a "character manager". Lightness is a priority, and in general it is more for personal use.
- Simplicity.
What I have already: "date" and "character_animation". The last one is a copy of the standard file, just trying to make it work for start. The first one states the following:
local animations = require("character-animations")
local character = data.raw["character"]["character"]
local characteranimations = animations
character.icon = "__ALGI__/graphics/icons/entity/character.png"
Yes, I was able to successfully replace the engineer icon. I did not understand how to replace animations.
Will be glad of any help, grateful in advance!