Concreep Refilled redux


Roboports automatically place and upgrade concrete and landfill within their reach.

Tweaks
2 years ago
1.1
703

b [Crash] Game crashes shortly after loading in.

2 years ago

Hello, shortly after loading into the game I get the following crash:

The mod Concreep Refilled redux (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event concreep-refilled_redux::on_nth_tick(60)
concreep-refilled_redux/control.lua:31: attempt to get length of local 'source' (a nil value)
stack traceback:
concreep-refilled_redux/control.lua:31: in function 'array_shallowcopy'
concreep-refilled_redux/control.lua:158: in function '_reinit_reentrant_level1_start'
concreep-refilled_redux/control.lua:132: in function '_reinit_reentrant'
concreep-refilled_redux/control.lua:119: in function 'reinit'
concreep-refilled_redux/control.lua:264: in function <concreep-refilled_redux/control.lua:259>

2 years ago
(updated 2 years ago)

I got this crash too, but it was after playing with concreep for a long while. The major thing that changed recently in my game is I just made a buffer chest for the first time, and I do have one chest holding refined concrete.

The error log dump:

The mod Concreep Refilled redux (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event concreep-refilled_redux::on_nth_tick(60)
concreep-refilled_redux/control.lua:31: attempt to get length of local 'source' (a nil value)
stack traceback:
concreep-refilled_redux/control.lua:31: in function 'array_shallowcopy'
concreep-refilled_redux/control.lua:158: in function '_reinit_reentrant_level1_start'
concreep-refilled_redux/control.lua:132: in function '_reinit_reentrant'
concreep-refilled_redux/control.lua:119: in function 'reinit'
concreep-refilled_redux/control.lua:264: in function <concreep-refilled_redux/control.lua:259>

Edit: switching the buffer chest to a storage chest didn't seem to stop the error from coming back, I can provide a savefile and modlist if that helps.

Edit 2: completely turning off all features while keeping the mod still "on" seems to prevent the crash.

1 year, 11 months ago

Got also a crash, not even have roboports yet, happens shortly after game load at translating dictionaries recipe book en 96%:

Playing with Space Exploration, Krastorio 2 and many other mods, when a complete list is needed just ask.

The mod Concreep Refilled redux (1.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event concreep-refilled_redux::on_nth_tick(60)
concreep-refilled_redux/control.lua:31: attempt to get length of local 'source' (a nil value)
stack traceback:
concreep-refilled_redux/control.lua:31: in function 'array_shallowcopy'
concreep-refilled_redux/control.lua:158: in function '_reinit_reentrant_level1_start'
concreep-refilled_redux/control.lua:132: in function '_reinit_reentrant'
concreep-refilled_redux/control.lua:119: in function 'reinit'
concreep-refilled_redux/control.lua:264: in function <concreep-refilled_redux/control.lua:259>

1 year, 11 months ago

So, this occurred for me once placing the initial round of bricks was done. I was able to resolve the issue by simply adding an if check around the problem, which is in the function array_shallowcopy(source) (which is in control.lua)

It was:

function array_shallowcopy(source)
local dest = {}
for i=1, #source do
dest[i] = source[i]
end

return dest

end

It is now:

function array_shallowcopy(source)
local dest = {}
if source then
for i=1, #source do
dest[i] = source[i]
end
end

return dest

end

This allowed me to repeat the same test and have it not crash.

The game by default allows you to use the mod within a zip; you'll need to extract the zip, then delete the zip after extracted, and you'll need to make sure the folder name are extracting it to matches the zip minus the .zip, so, for this,

concreep-refilled_redux_1.0.2.zip should be extracted to concreep-refilled_redux_1.0.2 or you can extract it to concreep-refilled_redux

control.lua should be within the first level of the extraction, so it should be concreep-refilled_redux_1.0.2/control.lua or concreep-refilled_redux/control.lua

Hope this helps!

1 year, 11 months ago

So, this occurred for me once placing the initial round of bricks was done. I was able to resolve the issue by simply adding an if check around the problem, which is in the function array_shallowcopy(source) (which is in control.lua)

It was:

function array_shallowcopy(source)
local dest = {}
for i=1, #source do
dest[i] = source[i]
end

return dest
end

It is now:

function array_shallowcopy(source)
local dest = {}
if source then
for i=1, #source do
dest[i] = source[i]
end
end

return dest
end

This allowed me to repeat the same test and have it not crash.

The game by default allows you to use the mod within a zip; you'll need to extract the zip, then delete the zip after extracted, and you'll need to make sure the folder name are extracting it to matches the zip minus the .zip, so, for this,

concreep-refilled_redux_1.0.2.zip should be extracted to concreep-refilled_redux_1.0.2 or you can extract it to concreep-refilled_redux

control.lua should be within the first level of the extraction, so it should be concreep-refilled_redux_1.0.2/control.lua or concreep-refilled_redux/control.lua

Hope this helps!

Nice, would be nice if you can fork this mod and add it to the mod portal, so me and friends can download it without manual adjusting ^^
It seems the author has not time atm. for it...

1 year, 11 months ago

While I would love to do that, that puts another version of this same mod on this site, that turns me into the author, that also turns me into the person responsible for future bug fixes; etc. Not really wanting all that. Probably the reason this present author has no time for things now is because they did the same thing to get a fix out or made a small update that the original author was unwilling to do.

It's probably easier for the present author to do so but until then, there's a fix that's super easy to do that doesn't put yet another copy of a mod on the site confusing people further as to which one to use.

1 year, 5 months ago

So, this occurred for me once placing the initial round of bricks was done. I was able to resolve the issue by simply adding an if check around the problem, which is in the function array_shallowcopy(source) (which is in control.lua)

It was:

function array_shallowcopy(source)
local dest = {}
for i=1, #source do
dest[i] = source[i]
end

return dest
end

It is now:

function array_shallowcopy(source)
local dest = {}
if source then
for i=1, #source do
dest[i] = source[i]
end
end

return dest
end

This allowed me to repeat the same test and have it not crash.

The game by default allows you to use the mod within a zip; you'll need to extract the zip, then delete the zip after extracted, and you'll need to make sure the folder name are extracting it to matches the zip minus the .zip, so, for this,

concreep-refilled_redux_1.0.2.zip should be extracted to concreep-refilled_redux_1.0.2 or you can extract it to concreep-refilled_redux

control.lua should be within the first level of the extraction, so it should be concreep-refilled_redux_1.0.2/control.lua or concreep-refilled_redux/control.lua

Hope this helps!

Thanks, works like a charm.

New response