Sprite error

Place to get help with not working mods / modding interface.
Mackan90096
Inserter
Inserter
Posts: 25
Joined: Mon Dec 08, 2014 7:59 am
Contact:

Sprite error

Post by Mackan90096 »

Hi! I'm getting an error saying [quote]Sprite outside of "__Factorio_Mod__/graphics/belt/belt.png" (at 680,40, size 0x0 of 640x480)
How do I fix this?

Source can be found at http://github.com/Mackan90096/Factorio_Mod
<Trangar> If it doesn't run factorio, it's not worth buying
* mngrif back in my day..
<Trangar> We didn't have schools
<mngrif> WE HAD STICKS.
immaturity is the concentrated essence from which happiness is made
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Sprite error

Post by L0771 »

:shock:
that code is modified? I have big problems to run...
- duplicated name in locale
- type = "entity" doesn't exist
- entity name = "tree-seed" doesn't exist
- others.

your post is for this image
Image
This have 16 frames and 12 directions
try to change here frame_count of animation of super-belt to 16, like this

Code: Select all

    animations =
    {
      filename = "__Factorio_Mod__/graphics/belt/belt.png",
      priority = "extra-high",
      width = 40,
      height = 40,
      frame_count = 16,
      direction_count = 12
    },
and here the same

But have the other problems, if you need help, ask here
Mackan90096
Inserter
Inserter
Posts: 25
Joined: Mon Dec 08, 2014 7:59 am
Contact:

Re: Sprite error

Post by Mackan90096 »

Like so?
(I updated the code on GH)
<Trangar> If it doesn't run factorio, it's not worth buying
* mngrif back in my day..
<Trangar> We didn't have schools
<mngrif> WE HAD STICKS.
immaturity is the concentrated essence from which happiness is made
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Sprite error

Post by L0771 »

yep, this must work.
speed = 1.6875,
That speed :twisted:
Mackan90096
Inserter
Inserter
Posts: 25
Joined: Mon Dec 08, 2014 7:59 am
Contact:

Re: Sprite error

Post by Mackan90096 »

Yep. It'll be fairy expensive though :P
<Trangar> If it doesn't run factorio, it's not worth buying
* mngrif back in my day..
<Trangar> We didn't have schools
<mngrif> WE HAD STICKS.
immaturity is the concentrated essence from which happiness is made
Post Reply

Return to “Modding help”