[SOLVED]Failed to load and run script

Post Reply
leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

[SOLVED]Failed to load and run script

by leblu » Post

Hello,

I'm trying to setup a minetest server (Ubuntu) with the game MineClone2. Unfortunatly I'm getting following error:

Code: Select all

Automatically selecting world at [/var/games/minetest-server/.minetest/worlds/world]
2019-01-18 13:45:21: ERROR[main]: ========== ERROR FROM LUA ===========
2019-01-18 13:45:21: ERROR[main]: Failed to load and run script from
2019-01-18 13:45:21: ERROR[main]: /var/games/minetest-server/.minetest/games/mineclone2/mods/MISC/mcl_commands/init.lua:
2019-01-18 13:45:21: ERROR[main]: ...inetest/games/mineclone2/mods/MISC/mcl_commands/init.lua:38: attempt to index field 'registered_chatcommands' (a nil value)
2019-01-18 13:45:21: ERROR[main]: stack traceback:
2019-01-18 13:45:21: ERROR[main]:       ...inetest/games/mineclone2/mods/MISC/mcl_commands/init.lua:38: in main chunk
2019-01-18 13:45:21: ERROR[main]: ======= END OF ERROR FROM LUA ========
2019-01-18 13:45:21: ERROR[main]: Server: Failed to load and run /var/games/minetest-server/.minetest/games/mineclone2/mods/MISC/mcl_commands/init.lua
Any idea how I can fix this?

Kind regards
Last edited by leblu on Fri Jan 18, 2019 21:19, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Failed to load and run script

by rubenwardy » Post

Hi, please make sure your version of Minetest is up to date. You should have 0.4.16 at least. If not, add the PPA:

sudo add-apt-repository ppa:minetestdevs/stable
sudo apt update
sudo apt upgrade
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

Re: Failed to load and run script

by leblu » Post

Hello, thank you for your help. Unfortunately it didn't help =/
With apt install minetest-server, it installs the version "0.4.13+repack-1build1".
With the command "apt-cache show minetest-server" it also only provides me this version...

apt upgrade is currently not available, since there are some pending Plesk updates...


EDIT:

"apt install -t minetestdevs/stable minetest-server" gives me following error:
"E: The value 'minetestdevs/stable' is invalid for APT::Default-Release as such a release is not available in the sources"

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Failed to load and run script

by rubenwardy » Post

install minetest, not minetest-server. Minetest will include minetest server, although you may need to use minetest --server instead of minetestserver
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

Re: Failed to load and run script

by leblu » Post

Ah thank you. It seems to work now. Will add MineClone2 and run a quick test to close this topic.
Thank you very much!

leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

Re: Failed to load and run script

by leblu » Post

Ofcourse, since it's not a service, the setup is a bit more work. I'll have to create a user for it and run it from that user. (Running on a VPS without a GUI)

leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

Re: Failed to load and run script

by leblu » Post

Sorry, i'm kinda like a noob here... how do I specify which game to run? I can't find any related config file, are argument. I did pass the -config parameter with my previous config file, and some settings are working, but it won't start the MineClone2 game but instead the default minetest.


EDIT:
OK,.. passed the gameid

leblu
New member
Posts: 8
Joined: Fri Jan 18, 2019 12:48

Re: [SOLVED]Failed to load and run script

by leblu » Post

Everything is working fine, thank you for your kind help :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 20 guests