Mega Black Market


Mega Black Market is a Factorio mod that introduces an advanced economic system, allowing players to buy and sell items, fluids, and energy through a universal black market.

Utilities
9 months ago
2.0
3.01K
Circuit network Power Storage

g Game loading issue

4 months ago

Hi, I have encounter the issue with version 1.2.4 when upgrading the main game from 2.0.43 to 2.0.47. It reported:
The given sprite rectangle (left_top=0x0, right_bottom=219x235) is outside the actual sprite size (left_top=0x0, right_bottom=440x216).
See the log file for more information.: MegaBlackMarket/graphics/trading-tank-sell.png

In 2.0.43 it seems works well but in 2.0.47 it fails to load.

3 months ago

The given sprite rectangle (left_top=0x0, right_bottom=219x235) is outside the actual sprite size (left_top=0x0, right_bottom=440x216).
See the log file for more information.: MegaBlackMarket/graphics/trading-tank-buy.png

seems same with the error above. loading issue

3 months ago

Same difficulty. Tried different versions, but the mod still doesn't work

3 months ago

So I got bored and decided to try my hand at finding out what the issue was. The 219x235 is the size of the base game storage tank file that the black market's buy/sell tank inherits but his graphic size is different (440x216). I went into the entity.lua file to see if I could reconfigure it and I got it to work by adding two lines under the part of the code that locates the PNG with tank in it:

tank_sell.pictures.picture.sheets[1].filename = "__MegaBlackMarket__/graphics/trading-tank-sell.png"
tank_sell.pictures.picture.sheets[1].width= 220
tank_sell.pictures.picture.sheets[1].height= 216

tank_buy.pictures.picture.sheets[1].filename = "__MegaBlackMarket__/graphics/trading-tank-buy.png"
tank_buy.pictures.picture.sheets[1].width= 220
tank_buy.pictures.picture.sheets[1].height= 216

Width is 220 instead of 440 because the tank has 2 configurations. Adding those two lines makes it work (But the graphic is a little jank if you zoom into it).

3 months ago

So I got bored and decided to try my hand at finding out what the issue was. The 219x235 is the size of the base game storage tank file that the black market's buy/sell tank inherits but his graphic size is different (440x216). I went into the entity.lua file to see if I could reconfigure it and I got it to work by adding two lines under the part of the code that locates the PNG with tank in it:

tank_sell.pictures.picture.sheets[1].filename = "MegaBlackMarket/graphics/trading-tank-sell.png"
tank_sell.pictures.picture.sheets[1].width= 220
tank_sell.pictures.picture.sheets[1].height= 216

tank_buy.pictures.picture.sheets[1].filename = "MegaBlackMarket/graphics/trading-tank-buy.png"
tank_buy.pictures.picture.sheets[1].width= 220
tank_buy.pictures.picture.sheets[1].height= 216

Width is 220 instead of 440 because the tank has 2 configurations. Adding those two lines makes it work (But the graphic is a little jank if you zoom into it).

Where's the file located?
I dont see it in the Mod folder

3 months ago

NVM, I found it.
<<DRIVE>>\<<USER>>\AppData\Roaming\Factorio\mods\MegaBlackMarket.zip\MegaBlackMarket\prototypes

3 months ago

I had the same issue:
Failed to load mods: The given sprite rectangle (left_top=0x0, right_bottom=219x235) is outside the actual sprite size (left_top=0x0, right_bottom=440x216).
See the log file for more information.: MegaBlackMarket/graphics/trading-tank-sell.png

3 months ago

I had the same issue:
Failed to load mods: The given sprite rectangle (left_top=0x0, right_bottom=219x235) is outside the actual sprite size (left_top=0x0, right_bottom=440x216).
See the log file for more information.: MegaBlackMarket/graphics/trading-tank-sell.png
for now I suggest you to change these pictures's size by yourself. scale the images /graphics/trading-tank-buy.png and /graphics/trading-tank-sale.png to 440x236 pixels. This will fix the load error, for now.

2 months ago

Does anyone know what to replace the market with?
I need access to all items at once, yes, this is cheating, but I have a lot of mods and a very long game.

New response