Everness error: attempt to index a nil value in function 'set_stars'

Post Reply
User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Everness error: attempt to index a nil value in function 'set_stars'

by Neuromancer » Post

Every time I try to run everness, whether it is in MT 5.4 or 5.6 I get the following error (even when I get the latest version): AsyncErr: Lua: Runtime error from mod 'everness' in callback environment_Step(): attempt to index a nil value
stack traceback:
[C]: in function 'set_stars'
...n64\minetest-5.6.0-win64\bin\..\mods\everness/skybox.lua:795: in function <...n64\minetest-5.6.0-win64\bin\..\mods\everness/skybox.lua:703>
...64\minetest-5.6.0-win64\bin\..\builtin\game\register.lua:429: in function <...64\minetest-5.6.0-win64\bin\..\builtin\game\register.lua:415>
Any ideas on how to get it working? There is no topic in the mods forum for it.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: Everness error: attempt to index a nil value in function 'set_stars'

by Festus1965 » Post

sure that value is nil = it didn't get any data,
so check and maybe post code, oh took some time to find the source:

https://bitbucket.org/minetest_gamers/e ... rc/master/

skybox.lua:703-704

Code: Select all

minetest.register_globalstep(function(dtime)
    timer = timer + dtime
is dtime set somewhere ? I would search


builtin\game\register.lua:415
406 : function core.override_item(name, redefinition)
414-416:

Code: Select all

if not item then
		error("Attempt to override non-existent item "..name, 2)
	end

go there and post this issue,
but a similar issue was just active,
and repost with:

Code: Select all

Juraj Vajda
There is new setting where you can disable the skybox if this issue still persist
    2023-02-26
That might help to start it for further usage or testing.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: Everness error: attempt to index a nil value in function 'set_stars'

by Neuromancer » Post

Thanks much, very helpful!

User avatar
Neuromancer
Member
Posts: 958
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

Re: Everness error: attempt to index a nil value in function 'set_stars'

by Neuromancer » Post

Festus1965 wrote:
Thu Mar 23, 2023 06:48
sure that value is nil = it didn't get any data,
so check and maybe post code, oh took some time to find the source:

https://bitbucket.org/minetest_gamers/e ... rc/master/

skybox.lua:703-704

Code: Select all

minetest.register_globalstep(function(dtime)
    timer = timer + dtime
is dtime set somewhere ? I would search


builtin\game\register.lua:415
406 : function core.override_item(name, redefinition)
414-416:

Code: Select all

if not item then
		error("Attempt to override non-existent item "..name, 2)
	end

go there and post this issue,
but a similar issue was just active,
and repost with:

Code: Select all

Juraj Vajda
There is new setting where you can disable the skybox if this issue still persist
    2023-02-26
That might help to start it for further usage or testing.
Thanks much! Based on your comments, I went to init.lua and commented out the following lines :
--if Everness.settings.features.everness_feature_skybox then
-- dofile(path .. '/skybox.lua')
--end
And now it works.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests