Yet another sprite outside of ...

Place to get help with not working mods / modding interface.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Yet another sprite outside of ...

Post by Adil »

Usually, the sprite errors happen when there's less of image than you've defined, but I can't guess what on the earth is causing it in this code:
Code
Error:

Code: Select all

Error Util.cpp:58: Sprite outside of "__core__/graphics/green-circle.png" (at 24, 49, size 1x1 of 25x25).
The size of the picture is 25x25, there's single frame, single direction.
What is that number mishmash from the error log supposed to mean anyway?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Yet another sprite outside of ...

Post by Adil »

Right, case solved: animation layers are supposed to be of same size or something.
By changing the last line:

Code: Select all

table.insert(turret.folded_animation.layers,overlay) 
to

Code: Select all

table.insert(turret.base_picture.layers,overlay) 
I got that single frame addition to work on turret.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”