The given sprite is outside the actual sprite size

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

The given sprite is outside the actual sprite size

Post by john_1936 »

Version 0.17.79 i get this error every time i start the game. ,if i can get past the error and the game go to the menu,it only happens when i try to join a friends server.

Error AtlasSystem.cpp:1405: The given sprite rectangle (left_top=0x0, right_bottom=147x102) is outside the actual sprite size (left_top=0x0, right_bottom=147x101).: base/graphics/entity/roboport/roboport-shadow.png



MODLIST:

3x3 chest_0.1.1 ,5dim_autofill_0.17.3, 5dim_automatization_0.17.4, battlefield0.17.4, botrecaller 0.17.1, core energy 0.17.3, 5dim_equipiment 0.17.1, 5dim_fix0.17.1, 5dim_infiniteresearch 0.17.1, 5dim_logistic 0.17.2, 5dim_mining, 0.17.1, 5dim_module 0.17.1, 5dim_nuclear0.17.2, 5dim_resources 0.17.3, 5dim_trains 0.17.1, 5dim_transport 0.17.3, 5dim_vehicle 0.17.1, Additional turret updated 0.3.2, afraidofthedark 1.0.23, allcircuitsmaker 0.03, angelsaddons-warehouses 0.41, armored-train 0.2.161, artscore 0.17.5, artsfusionreactor 0.17.1, ATCTower 0.1.3, autodeconstruct 0.1.12, beautiful_bridge_railway 0.17.4, belt_buffer_up 0.17.7, better-landfill 0.1.1, BigLab 0.0.1, bobLibrary 0.17.5, Botstart 0.1.0, cargoships 0.0.48, Devterevs_Warfare 0.4.22, frill-mk2 0.17.1, ElectricTrain 0.17.29, FNEI 0.2.7, hexis CnC style defences 0.2.2, inserterModule 1.4.0, LJD_Vehicles_A16 0.17.0, LogisticTrainNetwork 1.11.7, MaxRateCalculator 3.2.30, miniloader 1.8.4, mining_drill_lv2 1.0.1, more-fusion-reactors 2.4.0, Nanobots 3.1.0, OpteraLib 0.1.8, OverloadedTrains 0.17.1, Power Armor MK3 0.2.10, ROBOTank,1.1.1, SchallAmmoTurrets 1.17.5, SchallTankPlatoon 0.17.12, SchallTransportGroup 0.17.2, SigmaOne_nuclear 1.3.3, Solar-Lamp 0.1.3, Squeak Through 1.4.0, stdlib 1.3.0, Total_Automization 0.1.7, Unit_Control 0.1.22, vtk-armor-plating 0.7.0, vtk-deep-core-mining 1.18.0, WarehouseAddons 0.1.2, WWhistleStopFactories 0.3.0
Attachments
factorio-current.log
(20.12 KiB) Downloaded 91 times

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1150
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by valneq »

This is an error in one of the mods you try to load, or an incompatibility between several mods you try to load.

Can you try to:
  1. update all mods
  2. activate only some of the mods in order to find a minimal set of mods that show this error
  3. report this error to all the mod authors of the minimal set of mods that shows this error.

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

I updated everything last night. the mods 5Dim core and 5Dim logistic are conflicting,if i leave out logistic its fine

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1150
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by valneq »

Apparently this error was reported already months ago, see here:
https://mods.factorio.com/mod/5dim_logi ... 000d707f08
But I don't know why the mod owner does not fix it …

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

i did this and it wouldnt allow me to join my friends game due to mod mismatch

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1150
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by valneq »

wait … you imply it does not crash for your friend with the unmodified version of the mod, is that correct?

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

correct,the friend that hosts the game and another friend dont have this problem, only me

PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by PyroFire »

john_1936 wrote:
Mon Dec 09, 2019 2:03 am
correct,the friend that hosts the game and another friend dont have this problem, only me
Then, bottom line, you don't have (and never had) the same mod list as your friends to begin with, changed or not.
Try removing all your mods then sync with the server - that way you're guaranteed to not have any differences.

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

i've done this too. We were playing on it a few days ago and now it gives this error

PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by PyroFire »

Sounds like your friends are using outdated versions of the mods, and it now isn't working because you updated and your friends haven't.

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

thought that too,as i had just done a clean install of the game and all mods we use,but they've updated everything

PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by PyroFire »

john_1936 wrote:
Mon Dec 09, 2019 3:03 am
but they've updated everything
Then they are using altered versions of mods that are not available on the mod portal and you will need to ask for a copy of those altered versions.

Basically - you're all friends right? Share around a modpack zip so everyone has the same stuff. no room for error.

If it's still happening after definitely using the same modpacks by everyone (server included), then it is likely a problem with your hardware or something else is corrupt.

john_1936
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 08, 2019 5:23 pm
Contact:

Re: The given sprite is outside the actual sprite size

Post by john_1936 »

They don't have modified versions,and we all get the mods from the mod manager in the game it self. the one hosting just game me his 5Dim logistic file and it still gave the error. everything is updated and everything is the same

PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: The given sprite is outside the actual sprite size

Post by PyroFire »

john_1936 wrote:
Mon Dec 09, 2019 6:59 pm
They don't have modified versions,and we all get the mods from the mod manager in the game it self. the one hosting just game me his 5Dim logistic file and it still gave the error. everything is updated and everything is the same
Let's go through this.

1. You, and 2 other people (3 total) have an identical setup of factorio on the same version, with the same mods installed, and all on the same version.
2. Of those 3 people, 2 of them are running fine, and your factorio crashes on startup with this sprite size error.

Now, the sprite size error is caused by a prototype with a bad sprite definition.
The exact cause is here:
https://github.com/McGuten/5DimsFactori ... k2.lua#L66
https://github.com/McGuten/5DimsFactori ... k3.lua#L67
https://github.com/McGuten/5DimsFactori ... k4.lua#L72

And i confirmed this code to be the same with the latest version of the mod on the portal, and it is the same going back 3 versions (so this mod has always been faulty).

We now go review the physical file,
roboport-shadow.png
roboport-shadow.png (108 Bytes) Viewed 3482 times
and can see the dimensions are 147x101.

Now, important distinction here, when defining sprites, there is a normal version and a high-res version which is typically about twice the size and is scaled down by the game. Said high-res version is here:
hr-roboport-shadow.png
hr-roboport-shadow.png (5.43 KiB) Viewed 3482 times
and the dimensions are 294x201.

Going back to 5Dim's code, we can see that the high-res version is defined correctly.
https://github.com/McGuten/5DimsFactori ... k2.lua#L72
https://github.com/McGuten/5DimsFactori ... k3.lua#L73
https://github.com/McGuten/5DimsFactori ... k4.lua#L78


Now that we have made these distinctions and clarifications, we can conclude the following:
Your friends are running factorio in high-res, and you are not.
Because of the fact that 5dim's low-res sprites are bad, your factorio is crashing and theirs is not.

Basically, to work around 5dim's bad/broken code, you can either edit it and distribute the modified version of the mod (so CRC/checksums are the same and it wont give you mismatch error), --OR-- you need to switch your factorio to using the high-res sprites.
You can do this in the setting.

Image

And for confirmation of these facts, i switched my factorio over to normal sprites and success - the error is reproduced without any need to change mod versions or whathaveyou.

Image

I can get past this issue by disabling those mods, switching my sprite resolution back to high, re-enabling the mods and restarting factorio, and we're running no issue.

Image

You're welcome.

And as a result of my time, and other peoples time being wasted by a broken and abandoned mod, i have opened a new discussion on that mod advertising the fact that the mod is broken and abandoned.
https://mods.factorio.com/mod/5dim_logi ... 000cdd9169
(This usually gets their attention if its not actually abandoned).

Post Reply

Return to “Technical Help”