Due to my love for this game, I decided to actually get into modding of the game, starting off simple by making my own slightly overpowered mining machine.
I have gotten far enough to actually get an entirely working building, but I have a single issue.
The ingame graphics aren't properly working, it's only half working. To avoid confusions I have made a simple mspaint mockup to explain what I think is happening.
My animation is 11 frames (mostly because it's from another very old game seeing I'm no blender wizard).

The red filled boxes are the frames that aren't seen, and the blue ones are the ones that ARE showing up.
The thin orange lines are what I think the game has constructed the animation as somehow, that it's going out of bounds for no reason, or has some kind of weird offset that I'm not aware of.
The code I use is this, only with repeated code for East, South and West. I was also curious if I can simply let out the rest and only have that piece of code seeing the object doesn't change graphics while rotating.
Code: Select all
animations =
{
north =
{
priority = "extra-high",
frame_width = 84,
frame_height = 54,
line_length = 4,
shift = {0.0, -0.5},
filename = "__superdrill__/graphics/entity/super-mining-drill.png",
frame_count = 11,
animation_speed = 0.2,
},