Chatcommands in mymonth do not work

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Chatcommands in mymonth do not work

by burli » Sun May 01, 2016 09:04

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"
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Chatcommands in mymonth do not work

by MineYoshi » Sun May 01, 2016 18:31

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)
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Chatcommands in mymonth do not work

by burli » Sun May 01, 2016 19:31

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
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Chatcommands in mymonth do not work

by MineYoshi » Sun May 01, 2016 21:26

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...
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: Chatcommands in mymonth do not work

by KCoombes » Mon May 02, 2016 00:49

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.
 

cheapie
Member
 
Posts: 304
Joined: Mon May 14, 2012 00:59
GitHub: cheapie
IRC: cheapie
In-game: cheapie

Re: Chatcommands in mymonth do not work

by cheapie » Mon May 02, 2016 04:10

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", {
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Chatcommands in mymonth do not work

by burli » Mon May 02, 2016 06:03

It's working now, but it seems to be a little bit buggy. Will fix that later

KCoombes, right, I'm sorry.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 4 guests

cron