Panakotta00 / FicsIt-Networks

Control, Monitor, Manage and Automate your Satisfactory.
https://ficsit.app/mod/FicsItNetworks
GNU General Public License v3.0
158 stars 51 forks source link

Game crash when dealing with ItemType:getMembers() #47

Closed Justintime505 closed 4 years ago

Justintime505 commented 4 years ago

Doing a bit of fiddling and ran into a reproducible game crash. The variable mergerFromConstructor is a merger that is being fed screws. Find the code below:

co = component.findComponent("Constructor")
constructors = component.proxy(co)
mergerFromConstructors = component.proxy(component.findComponent("Merger fromConstructors")[1])
requestedType = "Screw"
requestedQty = 100

tempItem = mergerFromConstructors:getInput(2)

for _,n in pairs(tempItem) do
   print(n)
   temp = n
end

for _,n in pairs(temp:getMembers()) do
   print(n)
end

Log File:

FactoryGame-backup-2020.08.19-01.44.55.log

SebastianHD commented 4 years ago

Same issue when doing recipe:getMembers(), where recipe is from machine:getRecipe().

Justintime505 commented 4 years ago

Same issue when doing recipe:getMembers(), where recipe is from machine:getRecipe().

I also just ran into that one as well.