Raised This Month: $32 Target: $400
 8% 

Knowledgebase


Post New Thread Reply   
 
Thread Tools Display Modes
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 02-04-2008 , 02:47   Re: Knowledgebase
Reply With Quote #11

1. Can you please add support for Nican's database extension, to use that for database connection? Would be easier imo.

2. Do we really need a space between ? and the command name? For example:
? command
?command

Thx.
__________________
LocutusH is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 02-04-2008 , 04:00   Re: Knowledgebase
Reply With Quote #12

Quote:
Originally Posted by LocutusH View Post
1. Can you please add support for Nican's database extension, to use that for database connection? Would be easier imo.
What exactly would it make easier?

If you've already setup a database connection before you install my plugin, you don't have to do anything. If not, you'll have to set one up anyway, because that database manager thing requires one as well. In both cases, you don't have to create a table for my plugin because it does that by itself anyway.

What advantage would I/anyone have from making the installation process more complicated by adding a dependency?

Quote:
Originally Posted by LocutusH View Post
2. Do we really need a space between ? and the command name?
Yes, because ? is registered as a command, while ?keyword is not. I'm using commands here, not chat message filtering, that's why this is required

Gee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 02-04-2008 , 05:03   Re: Knowledgebase
Reply With Quote #13

Make sure you're doing these commands through console and not chat.
bl4nk is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 02-04-2008 , 07:52   Re: Knowledgebase
Reply With Quote #14

Quote:
Originally Posted by MistaGee View Post
What exactly would it make easier?

If you've already setup a database connection before you install my plugin, you don't have to do anything. If not, you'll have to set one up anyway, because that database manager thing requires one as well. In both cases, you don't have to create a table for my plugin because it does that by itself anyway.

What advantage would I/anyone have from making the installation process more complicated by adding a dependency?



Yes, because ? is registered as a command, while ?keyword is not. I'm using commands here, not chat message filtering, that's why this is required

Gee

Ok, if it created and manages the datatable himself, there is really no point for that extension (maybe just that you can simplify your plugin). I have a database connection to mysql, wich is already used by some plugins, that use this extension.
__________________
LocutusH is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 02-04-2008 , 09:22   Re: Knowledgebase
Reply With Quote #15

Quote:
Originally Posted by LocutusH View Post
maybe just that you can simplify your plugin
There's really not much to simplify in there, and I don't want to add a dependency to an extension if it is not absolutely neccessary in order to keep the installation process as simple as possible.

Gee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
DeaD_EyE82
AlliedModders Donor
Join Date: Jan 2006
Location: Germany
Old 02-04-2008 , 09:26   Re: Knowledgebase
Reply With Quote #16

N1 plugin.
Can you add an optional long description for Keywords

example: ! url "http://evil-twin.org.uk" "longdescription"
Optput when type ? url: longdescription http://evil-twin.org.uk
DeaD_EyE82 is offline
Send a message via ICQ to DeaD_EyE82
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 02-04-2008 , 12:37   Re: Knowledgebase
Reply With Quote #17

What about defining
! url "http://evil-twin.org.uk"
! urlong "Guys visit our ub0rcool homepage at http://evil-twin.org.uk"
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 02-05-2008 , 03:53   Re: Knowledgebase
Reply With Quote #18

Quote:
Originally Posted by MistaGee View Post
How exactly did you try to add the string? If you use the chat, you'll need to prepend the command with a ! or /, like so:

!? keyword

I've registered ! and ? as regular commands, so the usual rules for commands apply to them as well

If it still doesn't work then, please try from the server console and post error messages.
Doh! I didn't prepend the commands.

I'll have another whirl tonight. Thank you
__________________
Extreme_One is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 02-05-2008 , 17:20   Re: Knowledgebase
Reply With Quote #19

OK after ensuring that I prefixed my chat commands with / the plugin works like a dream.

Here are some ideas/wishes

Any chance we could see a command which would display (strictly to the one that called it : not publically) the defined keywords?

/knowledge

^ A command like that which displayed a list of defined keywords would be cool!

Also in TF2 the chat is plain white : I assume that can't be changed to be more eyecatching?

Would be awesome if we could define custom colours!

%1 = red
%2 = blue
%0 = white
%3 = green
%4 = pale green
%5 = yellow
Code:
/! test %1red %2blue %3green etc etc...
/? test red blue green etc etc...
[KB] test: red blue green etc etc...
I'm not sure what colours are available in TF2 but this thread is interesting


[Kb] ....

When a response is 'printed' can [KB] be altered to [INFO] or something? Maybe it could be defined to display whatever the admin decides...

I'd prefer it if the keyword didn't appear in the response:

so[KB] url : www.evil-twin.org.uk showed as[KB] www.evil-twin.org.uk although I'd prefer it even more if I could make it [INFO] www.evil-twin.org.uk

This last idea is a pipe-dream which is borne from an Eventscript I used to use to fulfil the function your plugin now fulfils.

Clan members could type "!me" and a personal description would be printed in chat to all clients.

If you could make it so that admins could do "/! me "my description goes here" and that was tied to their Steam ID so that a "/? me" would output the description for the person that defined it then that would be awesome.

hmmm I was a tad drunk typing this so I hope it's not complete gibberish :/
__________________

Last edited by Extreme_One; 02-06-2008 at 05:58.
Extreme_One is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 02-06-2008 , 16:13   Re: Knowledgebase
Reply With Quote #20

The colors and list stuff is a bit harder to implement, I'll take a loot at that tomorrow.

The "me" stuff however is easy, got that running. I've tested it with CS:S, DoD:s and TF2; everything works fine in CS:S and DoD:S, but the "me" messages aren't displayed when the player joins in TF2.
When typing "? me" as a command, the message works in every mod though.
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble

Last edited by MistaGee; 02-06-2008 at 16:57.
MistaGee is offline
Send a message via ICQ to MistaGee
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode