Big Brother


Big Brother - Research radar upgrades in amplification, efficiency, and surveillance capabilities. Create the ultimate surveillance state.

Content
3 years ago
0.13 - 1.1
88.7K
Combat

b Require can't be used outside of control.lua parsing

5 years ago

Got a strange error on one of my saves:
Big_Brother/stdlib/area/position.lua: 178: Require can't be used outside of control.lua parsing

5 years ago

Having this as well in 0.17.58

5 years ago

I have found a work around, and everything appears to work.

In control.lua add this line near the top
require 'stdlib/area/area'
I put it on line 2.

In stdlib/area/position.lua change line 178 from
local Area = require("stdlib/area/area")
to
local Area = package.loaded["stdlib/area/area"]

The first change will ensure that area is loaded and can be accessed from packages. The second change uses the data per-loaded by the first.

5 years ago

that workaround doesn't do the trick for me - in addition i wonder which stdlib this mod uses the one inside its directory or the other one in my mod folder ?!

5 years ago

I can confirm that workaround works nicely for me - I PR'd it: https://github.com/Afforess/Big_Brother/pull/13

Happy to upload a zip somewhere if it helps

5 years ago

Thanks for noticing - I uploaded a new version with umbrios / dominics changes.

New response