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

[ND] Commander Management (1.3.0, 2012-04-21)


Post New Thread Reply   
 
Thread Tools Display Modes
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Old 01-31-2012 , 13:57   Re: [ND] Commander Management (1.2.1, 2011-10-21)
Reply With Quote #11

Quote:
Originally Posted by xcal1bur View Post
this being updated?
Ay, but I forgot to subscribe to this thread.

Quote:
Originally Posted by Ultrix Prime View Post
Get plugin doesn't compile
Yes it does ;)
This was made when SM 1.4 wasn't released yet, which is why the web compiler wouldn't work.

Quote:
Originally Posted by Kateana View Post
Setting and demoting commanders often crash the server with no error.
"2011-10-20 (v1.2.0)

* Updated to use 'startmutiny' to force a commander to resign, and '_promote_to_commander' to promote a player."

I did not remove the legacy method (which can make the server crash when used at the wrong time) in its entirety, but rather disabled it at compile-time using "conditional compiling". I may have compiled the latest version with the wrong option though, meaning that line 93
Code:
#define PROBLEMS // No, don't do it. 0o
should have been
Code:
//#define PROBLEMS // No, don't do it. 0o
I've updated the plugin and I'm terribly sorry for the inconvenience :/

Quote:
Originally Posted by Kateana View Post
Documentation on setting it up for MySQL
The SQL setup (not necessarily MySQL) is quite straightforward; all you need to do is add an entry to databases.cfg and alter commander_management_nd.cfg.

e.g.
../nucleardawn/addons/sourcemod/configs/databases.cfg
Code:
"Databases"
{
    "driver_default"          "mysql"
    
    "default"
    {
        "driver"              "mysql"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                "iq3hjioea3"
        //"timeout"           "0"
        //"port"              "3306"
    }
    
    "storage-local"
    {
        "driver"              "sqlite"
        "database"            "sourcemod-local"
    }
}
../nucleardawn/cfg/sourcemod/commander_management_nd.cfg
Code:
"Config"
{
    "SQL"
    {
        "named_config"       "default"
    }
}
The plugin defaults to SQLite if commander_management_nd.cfg doesn't exist, "named_config" can't be read from it, or connecting to the specified database fails.

Quote:
Originally Posted by Kateana View Post
Convar to disable admin mutiny immunity
It uses command overrides instead of a console variable / config file. (Fixed documentation)
1Swat2KillThemAll is offline
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 03-09-2012 , 04:04   Re: [ND] Commander Management (1.2.2, 2012-01-31)
Reply With Quote #12

L 03/09/2012 - 10:03:27: [SM] Warning(s) encountered in translation file "commander_management_nd.phrases.txt"
L 03/09/2012 - 10:03:27: [SM] Ignoring translation to invalid language "#format" on line 65.
__________________
tcviper is offline
Send a message via MSN to tcviper
Jay Dogg
Senior Member
Join Date: Jan 2009
Old 04-14-2012 , 18:57   Re: [ND] Commander Management (1.2.2, 2012-01-31)
Reply With Quote #13

I need just a little help cause I maybe missing something. Here is what I have going on in my database.cfg

Code:
"Databases"
{
    "driver_default"        "mysql"
    
    // When specifying "host", you may use an IP address, a hostname, or a socket file path
    
    "default"
    {
     "driver"            "mysql"
     "host"                "**.**.***.*"
     "database"            "gameserver"
     "user"                "******"
     "pass"                "******"
    }
    
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
}
Which I already had this set up because Im using sourcemod web admin, sql banning and simple player tracking on my servers.


Here is how my commander_management_nd.cfg


Code:
"Config"
{
    "SQL"
    {
        "database.cfg"       "default"
    }
}
Now Im not sure if my commander_management_nd.cfg is set up right or if I need to have the full path to my database.cfg. Also doesnt this plugin need a table in my database? Most plugins I have ran into with database have some kind of sql file or dump to make the table in the database. Any and all help would be great.


Thanks Jay

Last edited by Jay Dogg; 04-14-2012 at 19:28.
Jay Dogg is offline
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Old 04-21-2012 , 09:47   Re: [ND] Commander Management (1.2.2, 2012-01-31)
Reply With Quote #14

Quote:
Originally Posted by Jay Dogg View Post
I need just a little help cause I maybe missing something. Here is what I have going on in my database.cfg

Code:
...
Which I already had this set up because Im using sourcemod web admin, sql banning and simple player tracking on my servers.
Seems ok.

Quote:
Originally Posted by Jay Dogg View Post
Here is how my commander_management_nd.cfg


Code:
...
Now Im not sure if my commander_management_nd.cfg is set up right or if I need to have the full path to my database.cfg.
Should be
Code:
"Config"
{
    "SQL"
    {
        "named_config"        "default"
    }
}
Quote:
Originally Posted by Jay Dogg View Post
Also doesnt this plugin need a table in my database? Most plugins I have ran into with database have some kind of sql file or dump to make the table in the database.
It does need database tables, but it creates them automatically.
1Swat2KillThemAll is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 06-12-2012 , 19:00   Re: [ND] Commander Management (1.3.0, 2012-04-21)
Reply With Quote #15

This plugin was causing crashes whenever we went to use the timed ban feature so I'm just using a separate promote/demote plugin now. Also, we get a translation error spamming the error logs all the time.
__________________
databomb is offline
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 10:42.


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