Afraid Of The Dark (enforced personal lights + more)


Night is too dark for you? Enforced flashlight and personal lights, powerful balloon lights or a pair of natural tinted night glasses could be the solution!

Utilities
a month ago
0.13 - 2.0
177K

b [Solved] 1.0.25 non-recoverable error

4 years ago

I just installed this together with another mods, and get the following error:

https://ibb.co/QPxH48x

Transcript:

The mod Afraid Of The Dark (enforced personal lights + more) (1.0.25) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AfraidOfTheDark::on_init()
AfraidOfTheDark/control.lua:14: attempt to index field 'night-vision-equipment' (a nil value)
stack traceback:
AfraidOfTheDark/control.lua:14: in function
<AfraidOfTheDark/control.lua:7>

Could it be a compatibility error? Here are the other mods that I have:
https://ibb.co/QFQYZrs

I'm using the factorio version 1.0.0 (build 54889, win64, steam)

4 years ago

Hej,

i added a check for existence of the needed research. An other mod is removing or changing it i think.

Can you please test it.

4 years ago

Thanks for the response, but I'm afraid that now there's a similar error, at control.lua:39:
https://ibb.co/fYgg9hw

Transcript:

The mod Afraid Of The Dark (enforced personal lights + more) (1.0.26) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AfraidOfTheDark::on_configuration_changed
AfraidOfTheDark/control.lua:39: attempt to index field 'night-vision-equipment' (a nil value)
stack traceback:
AfraidOfTheDark/control.lua:39: in function
<AfraidOfTheDark/control.lua:31>

4 years ago

Oh i feel so dumb as i overlooked it.
Next try please.

4 years ago

Awesome, it works now. Thank you very much

New response