Page 1 of 1

Chatcommands in mymonth do not work

PostPosted: Sun May 01, 2016 09:04
by burli
I am playing with duanes mymonth mod, but the chat commands don't work

https://github.com/duane-r/mymonths

Not shure what's wrong. I set the mymonth priv

Edit: /date and /holidays or /setmonth are working, but not /weather and /setweather. They return "invalid command"

Re: Chatcommands in mymonth do not work

PostPosted: Sun May 01, 2016 18:31
by MineYoshi
burli wrote:I am playing with duanes mymonth mod, but the chat commands don't work

https://github.com/duane-r/mymonths

Not shure what's wrong. I set the mymonth priv

Edit: /date and /holidays or /setmonth are working, but not /weather and /setweather. They return "invalid command"


Surely you installed the mod correctly, you say when you enter the commands they return "Invalid Command", even with the "mymonth" priv, if you insert the commands without the "mymonth" priv, the commands work?
If you insert commands without the priv, they should return, "you don't have (here goes the name of priv) priv", or make a new world, maybe something is wrong...

(But if you want to know what to do, ask duane, he is the only who know what to do)

Re: Chatcommands in mymonth do not work

PostPosted: Sun May 01, 2016 19:31
by burli
As I mentioned some of the commands from the mod are working. But the weather does not, also the chatcommands. Don't get error messages

Re: Chatcommands in mymonth do not work

PostPosted: Sun May 01, 2016 21:26
by MineYoshi
burli wrote:As I mentioned some of the commands from the mod are working. But the weather does not, also the chatcommands. Don't get error messages


Sure you are writing those commands right?
Or then is a error from the mod...

Re: Chatcommands in mymonth do not work

PostPosted: Mon May 02, 2016 00:49
by KCoombes
No offense, but as this is a mod problem, it should be in the mod's thread - this particular forum is for bugs and problems with the game engine itself.

Re: Chatcommands in mymonth do not work

PostPosted: Mon May 02, 2016 04:10
by cheapie
A quick attempt at reverse engineering the mod shows that it's reading the minetest.conf setting "mymonths_use_weather" to control whether weather and those chat commands are enabled. Try setting that to "true".

Relevant sections of the code follow:

init.lua (line 8):
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
mymonths.use_weather = minetest.setting_getbool("mymonths_use_weather")


commands.lua (lines 9-10):
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
if mymonths.use_weather == true then
minetest.register_chatcommand("setweather", {


commands.lua (lines 83-84):
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
if mymonths.use_weather == true then
minetest.register_chatcommand("weather", {

Re: Chatcommands in mymonth do not work

PostPosted: Mon May 02, 2016 06:03
by burli
It's working now, but it seems to be a little bit buggy. Will fix that later

KCoombes, right, I'm sorry.