Page 1 of 1

vmanip calc lighting segfault

PostPosted: Mon Nov 30, 2015 04:44
by BrandonReese
I frequently get segfaults that seems to be related to vmanip calc_lighting.

http://pastebin.com/wsVhD2d3

Is this something that needs to be fixed in the engine or could be a problem with a mod? It happens in adventuretest (https://www.github.com/bremaweb/adventuretest) and it seems to happen mostly because of vmanip used in mg_villages and/or mg/dungeons.lua

Any help is appreciated.

Re: vmanip calc lighting segfault

PostPosted: Mon Nov 30, 2015 17:34
by paramat
https://github.com/Bremaweb/adventuretest/blob/master/mods/mg/dungeons.lua#L156
Here try this instead:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
vm:calc_lighting()

Calc lighting should never have emin, emax as arguments, it might have worked in the past but lighting code has evolved.