Black Market (sell and buy on the market) deprecated


Sell and buy items/fluids/energy on the universal black market using trading chests/tanks/accumulators, choosing the frequency of exchanges and related fees. You can now sell your overproduction and buy things that you don't want to craft by yourself. You can also use these trading units as a paying shipment system.

Overhaul
5 years ago
0.13 - 0.17.1
52

g LuaEquipmentGrid doesn't contain keyword

5 years ago
(updated 5 years ago)

I think something might have changed in recent versions, but i received this when opening my powerarmor.
Picture; https://i.imgur.com/Wab5Azx.jpg
Pastebin
; https://pastebin.com/fReZgVGG

According to api-lua LuaEquipmentGrid really doesn't contain "name" (disclaimer, i'm new at this mod/lua stuff) http://lua-api.factorio.com/latest/LuaEquipmentGrid.html but http://lua-api.factorio.com/latest/LuaEquipmentGridPrototype.html does contain name. Perhaps the variable isn't referencing Prototype?

5 years ago

in control.lua i replaced the line:

local prefix = string.sub(opened.name,1,15)

with the following:

local jimsTest = "NO"

for jimX,jimY in ipairs(opened) do
if jimX == "name" then
jimsTest = "YES"
end
end

if jimsTest == "YES" then
local prefix = string.sub(opened.name,1,15)
else
local prefix = "NO"
end

and thats got the game working for me again :)

5 years ago

nope not quite, that's switched off trading for all containers, not just ones that don't contain the name field anymore :(

5 years ago
(updated 5 years ago)

nope not quite, that's switched off trading for all containers, not just ones that don't contain the name field anymore :(

I'm having the same issue when I open my armor. Any progress?

https://forums.factorio.com/viewtopic.php?f=11&t=59790#p362836

New response