Page 2 of 2

Re: *Clap* *Clap* I've got a request

Posted: Sat Nov 30, 2019 11:46
by HackerinPink
Okay thanks to everyone for clearing some stuff up, I have added the line to the minetest.conf file, I will edit this post when I get good/bad results, Lets hope it works!!!

Re: *Clap* *Clap* I've got a request

Posted: Sat Nov 30, 2019 12:49
by Miniontoby
HackerinPink wrote:Okay thanks to everyone for clearing some stuff up, I have added the line to the minetest.conf file, I will edit this post when I get good/bad results, Lets hope it works!!!
But I really think that the server runner needs to add it in his minetest.conf

Re: *Clap* *Clap* I've got a request

Posted: Sat Nov 30, 2019 22:47
by HackerinPink
HackerinPink wrote:Okay thanks to everyone for clearing some stuff up, I have added the line to the minetest.conf file, I will edit this post when I get good/bad results, Lets hope it works!!!
I decided not to edit the post or nobody will get the handy notification in their email or something lol, but anyways:
SAME PROBLEM.
I'm not even gonna post the debug.txt output, cuz I KNOW its the exact same thing as last time. I will try Polysaken's, maybe his works.

EDIT: just realized that I use Lone_Wolf's 'modform' CSM alot, thanks dude, your CSM is epic, super handy!!

Re: *Clap* *Clap* I've got a request

Posted: Sun Dec 01, 2019 10:36
by Miniontoby
I have made a change in my code and I cant try it (because when I try to run a server my server crashes after loading all the mods)

Please try my code
kick_csm.zip
The changed one
(813 Bytes) Downloaded 59 times
And you need to type ".kick2 <playername> | <playername> <reason>" and ".unkick <playername>"

Re: *Clap* *Clap* I've got a request

Posted: Wed Dec 04, 2019 14:47
by Miniontoby
I made a mistake by the code and solved it now, so please reinstall
kick_csm.zip
The hopeful working one
(812 Bytes) Downloaded 50 times

Re: *Clap* *Clap* I've got a request

Posted: Tue Dec 10, 2019 20:55
by HackerinPink
CONGRATULATIONS!!!
well, not really...
I tried the new CSM code, and a error still occurs, but its a DIFFERENT error, so that's an improvement!

Code: Select all

2019-12-10 14:52:50: ERROR[Main]: ModError: Failed to load and run script from C:\MTC\0.4.17-win64\bin\..\clientmods\kick_csm\init.lua:
2019-12-10 14:52:50: ERROR[Main]: C:\MTC\0.4.17-win64\bin\..\clientmods\kick_csm\init.lua: No such file or directory
2019-12-10 14:52:50: ERROR[Main]: Check debug.txt for details.
2019-12-10 14:53:43: ERROR[Main]: Access denied. Reason: Client environment_step: Runtime error from mod '' in callback environment_step(): C:\MTC\0.4.17-win64\bin\..\builtin\client\chatcommands.lua:64: attempt to concatenate local 'param' (a nil value)

Re: *Clap* *Clap* I've got a request

Posted: Wed Dec 11, 2019 20:12
by Miniontoby
I dont know what your error now means.

But by me (the by not published code) does work (the loading only) but not the kicking

I will publish that code now, but there are some mistakes I think
kick_csm.zip
The one I now have
(860 Bytes) Downloaded 59 times
Or try this one
kick_csm.zip
The other one
(781 Bytes) Downloaded 48 times

Re: *Clap* *Clap* I've got a request

Posted: Wed Dec 18, 2019 09:56
by HackerinPink
@Miniontoby

Unfortunately, the kicking simply doesn't work.
I checked both codes, none of them produce errors, but none of them actually kick.
I will try PolySaken's one. maybe that will work.
EDIT: i think i did something wrong, cuz PolySakens also doesnt work. maybe someone can test his code??

Re: *Clap* *Clap* I've got a request

Posted: Wed Dec 18, 2019 22:18
by PolySaken
HackerinPink wrote:@Miniontoby

Unfortunately, the kicking simply doesn't work.
I checked both codes, none of them produce errors, but none of them actually kick.
I will try PolySaken's one. maybe that will work.
EDIT: i think i did something wrong, cuz PolySakens also doesnt work. maybe someone can test his code??
Any errors?

Re: *Clap* *Clap* I've got a request

Posted: Thu Dec 19, 2019 19:27
by HackerinPink
@PolySaken
No, no errors, thankfully. But the kicking just doesn't work! That's why I need someone else to test it as well, because I think I'm doing something wrong...

Re: *Clap* *Clap* I've got a request

Posted: Thu Dec 19, 2019 22:32
by PolySaken
HackerinPink wrote:@PolySaken
No, no errors, thankfully. But the kicking just doesn't work! That's why I need someone else to test it as well, because I think I'm doing something wrong...
In that case it seems like sending chatcommands can't be automated. Maybe it's handled separately from the normal chat system. (Maybe prefixing with a slash switches to a separate handler with no exposed API?)

Re: *Clap* *Clap* I've got a request

Posted: Fri Dec 20, 2019 08:52
by HackerinPink
@PolySaken

No! Blasphemy, there was a CSM (I forgot the name, oh no!) and it technically enabled the user to say hello to everyone, or more specifically, print 'Hello Everyone' in the chat. I'm still confused about why it was labeled as the same thing as oredetect and hidden away from the community, (sucks a lot) but who am I to judge moderator decisions.
My point is that its possible to 'automate' chat commands, but it might be a hidden thing we haven't thought up of.

I was thinking, since it's totally possible to program loops, and it's totally possible to program an application that prints something, maybe its possible to combine the two!
(DS-minetest, where u at?)

Re: *Clap* *Clap* I've got a request

Posted: Sat Dec 21, 2019 03:56
by PolySaken
HackerinPink wrote:@PolySaken

No! Blasphemy, there was a CSM (I forgot the name, oh no!) and it technically enabled the user to say hello to everyone, or more specifically, print 'Hello Everyone' in the chat. I'm still confused about why it was labeled as the same thing as oredetect and hidden away from the community, (sucks a lot) but who am I to judge moderator decisions.
My point is that its possible to 'automate' chat commands, but it might be a hidden thing we haven't thought up of.

I was thinking, since it's totally possible to program loops, and it's totally possible to program an application that prints something, maybe its possible to combine the two!
(DS-minetest, where u at?)
It is definitely possible to automate messages, just maybe not commands.

Re: *Clap* *Clap* I've got a request

Posted: Sat Dec 21, 2019 14:00
by HackerinPink
@PolySaken
Hmm... I see.

Re: *Clap* *Clap* I've got a request

Posted: Sat Dec 21, 2019 16:05
by Lone_Wolf
You can automate commands. Look at my modform CSM
@Hackerpink what do you get when you change minetest.register_on_receiving_chat_message to minetest.register_on_receiving_chat_messages? (Added an s to the end)

Re: *Clap* *Clap* I've got a request

Posted: Sun Dec 22, 2019 17:52
by HackerinPink
Lone_Wolf wrote:@Hackerpink what do you get when you change minetest.register_on_receiving_chat_message to minetest.register_on_receiving_chat_messages? (Added an s to the end)
ooh! I shall try this whenever I can.
And yes, I use MODFORM and I totally forgot about 'the .y' command

Re: *Clap* *Clap* I've got a request

Posted: Sun Dec 22, 2019 21:30
by Lone_Wolf
HackerinPink wrote:And yes, I use MODFORM and I totally forgot about 'the .y' command
There's only one way to run a command with CSM, so even the GUI is using the same function to run commands