[0.17.79] Given sprite rectangle is outside the actual sprite size

Place to get help with not working mods / modding interface.
deto
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Apr 16, 2020 1:18 am
Contact:

[0.17.79] Given sprite rectangle is outside the actual sprite size

Post by deto »

Hey, I'm new to modding and I'm having a strange error that I have no idea how to fix. I can't find anything to help me fix this, so I'm posting here.

Here's the error:
error.png
error.png (42.88 KiB) Viewed 1064 times
I'm sure it's a really simple answer, but I just can't figure out how to do it.

I've attached the mod folder so you can see the code. The animation set that seems to be causing the error is on line 9 of either of the .lua files in the prototypes folder.

Thank you!
Attachments
alternate-transport-belts_0.0.1.zip
Mod folder
(4.07 MiB) Downloaded 67 times
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 431
Joined: Tue Mar 06, 2018 12:18 am
Contact:

Re: [0.17.79] Given sprite rectangle is outside the actual sprite size

Post by kirazy »

Your frame count needs to be 16. You're using the transport-belt graphics that correspond to the slower belt animations (half as many frames). You are currently using a frame count of 32, which is used by the faster belt animations, which isn't what you're using.

You also don't need all the east_index, west_index, etc. That's all optional now.
deto
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Apr 16, 2020 1:18 am
Contact:

Re: [0.17.79] Given sprite rectangle is outside the actual sprite size

Post by deto »

kirazy wrote: Thu Apr 16, 2020 3:30 am Your frame count needs to be 16. You're using the transport-belt graphics that correspond to the slower belt animations (half as many frames). You are currently using a frame count of 32, which is used by the faster belt animations, which isn't what you're using.

You also don't need all the east_index, west_index, etc. That's all optional now.
Thank you!

I would have never guessed that.
Post Reply

Return to “Modding help”