Page 1 of 1

[Mod] Interact [interact]

Posted: Tue Feb 10, 2015 22:02
by Amaz
This mod provides another way of granting players interact, somewhat automatically. Players have to confirm that they will not grief, then they will have the option to just visit the world or gain interact. The player will have to agree to the rules, before taking a quiz, asking what the rules say.
You probably will want to change the rules, found in the rules.lua file, and the quiz questions, which are related to the rules, and also found in rules.lua. All other configuration options can be found in config.lua. The options provided are pretty basic defaults, so you may want to check them!
Other bits and pieces can be found in the Readme.
All of the screens do not have to be shown, and the content on the first two can be changed in the config.lua, but the basic structure does have to be kept...
Spoiler
The three different questions and the quiz:
Image
Designed for not very clever griefers!
Image
Added for those who may just want to visit a server.
Image
Notice how the buttons are switched round here, so as to fool the unwary!
Image
The quiz!
License: MIT
Credits: Based of the (old) rules "mod" on Craigy Davi's server, which was based on this mod: https://github.com/ChaosWormz/mt_terms_of_use
Dependencies: None!
Download: https://github.com/Amaz1/interact/archive/master.zip
Code on github: https://github.com/Amaz1/interact

Re: [Mod]Interact[interact]

Posted: Tue Feb 10, 2015 22:09
by gabo.xandre
Great mod.
Makes it really easy for new players to get interact and read the rules.

Re: [Mod]Interact[interact]

Posted: Wed Feb 11, 2015 10:20
by Oussamarer
i see that you released it
great mod , great code , great everything

Re: [Mod]Interact[interact]

Posted: Wed Feb 11, 2015 14:02
by Evergreen
Interesting idea.

Re: [Mod]Interact[interact]

Posted: Wed Feb 11, 2015 18:17
by Krock
Good idea! I hope OldCoder will use this mod on his servers because there's mostly no moderator around.

Re: [Mod] Interact [interact]

Posted: Sat Feb 14, 2015 20:31
by Hybrid Dog
you can use some code from there if you want
https://github.com/HybridDog/rulesaccept

Re: [Mod] Interact [interact]

Posted: Thu Apr 23, 2015 08:46
by Amaz
I've updated the mod. Now everything is configurable by editing things in the config.lua file. All the options should be fairly well documented.

Also, there is a now a quiz screen, where the players are quizzed on the rules! The questions for it are just bellow the rules in the rules.lua file. It should (with good questions!) help to make sure that players actually read the rules, and don't just click accept...

Re: [Mod] Interact [interact]

Posted: Thu Apr 23, 2015 16:37
by Krock
Please add the intllib dependency to make it more language-friendly.

The quiz is a nice idea but "PVP is allowed" can be point in the rules.
Rules aren't always restrictions.

Re: [Mod] Interact [interact]

Posted: Fri Apr 24, 2015 15:09
by Hybrid Dog
Krock wrote:Please add the intllib dependency to make it more language-friendly.
The interact mod is made for multiplayer, isn't it? And as far as l know, intllib only works in singleplayer mode (or national mt servers).

Re: [Mod] Interact [interact]

Posted: Fri Apr 24, 2015 19:34
by Krock
Hybrid Dog wrote:
Krock wrote:Please add the intllib dependency to make it more language-friendly.
The interact mod is made for multiplayer, isn't it? And as far as l know, intllib only works in singleplayer mode (or national mt servers).
I saw some national server and they might like questions in their language.

Re: [Mod] Interact [interact]

Posted: Sat Apr 25, 2015 06:52
by Amaz
Krock wrote:Please add the intllib dependency to make it more language-friendly.
Okay, I'll have a look at how to do that...
Second Edit: I don't think that there is a need for intllib, because all of things that would need translating can be found in config.lua or rules.lua and so the server owner can put his own translation in there... And as intllib is server side (as far as I can see), it won't make a difference for the clients.
Krock wrote:The quiz is a nice idea but "PVP is allowed" can be point in the rules.
Rules aren't always restrictions.
The values in the quiz are just default values, they can, or rather, are supposed to be changed, like the rules, which are just a default set.
From Readme.md: "You will probably want to replace the default rules with your own in rules.lua. Also, the quiz should be adapted to your rules, thus the quiz questions are found in rules.lua also."
Edit: Also, I was about to edit the first post to add that info, and I found it was already in there: "You probably will want to change the rules, found in the rules.lua file, and the quiz questions, which are related to the rules." (I have added that the quiz questions are also found in rules.lua to make things clearer.)

Re: [Mod] Interact [interact]

Posted: Wed Aug 19, 2015 09:47
by orwell
A nice idea and a nice mod!

Two things that could be done better:
1. Why is the player kicked if he doesn't agree to the rules? There should be an option to show a message to the player that he can only look around the server if he does not accept the rules instead of instantly kicking (or banning) him.
2. Could you please prefix your form names with "interact_" (like interact_welcome or interact_quiz) to avoid conflicts with other mods? (what if another mod is creating a form named "quiz" too?)

Nice work anyway!