ThatOneHomelessGuy / togsclantags

TOGs Clan Tags
GNU General Public License v3.0
17 stars 3 forks source link

Database Issue #6

Open 3GaNwO opened 6 years ago

3GaNwO commented 6 years ago

So I decided to create a new thread because you asked me to. I have tried to do it the way you said in the post in the other thread and I can't seem to get it to work properly. It created the "togsclantags_setups" table but inside that table isn't anything. I have set about 6 tags and none of them seem to be syncing to the MySQL properly. Am I missing an important step to get that configured properly or maybe missing a new cfg file I need to edit?

Also what do I set this to make it so it reads it every map change? If I can't seem to get the MySQL working properly I'm sure setting this to read every map change for new tags to add would solve me even needing to MySQL the plugin. "Frequency to re-load clients from cfg file"

Anyways thank you for trying to help me solve this

ThatOneHomelessGuy commented 6 years ago

You seem to be using BOTH the cfg file and the MySQL database. You use one or the other.

If using the MySQL: Set the cvar "togsclantags_use_mysql" to 1, then create rows in the database table. I realize I didnt put extensive documentation for mysql, so I just edited both files in the configs folder to add more explanations. See https://github.com/ThatOneHomelessGuy/togsclantags/tree/master/configs/

If using the cfg file: Set the cvar "togsclantags_use_mysql" to 0, then follow the instructions to create setups in togsclantags.cfg.

Regarding the reloading of clients, it already reloads all setups on map change. Additionally, you can have the plugin reload clients on a set basis, if needed. See CVar "togsclantags_updatefreq".

3GaNwO commented 6 years ago

Okay so I don't know what I need to put in the database. I understand I have to edit the togsclantags_setups table but I have no idea what to put tin this to make it register the tags properly. Any help would be great. Also I have double checked my settings I can only get the cfg file to work but I have to rechecktags in order for any new tags to pop up. Even on a map change they don't pop up and sometimes they don't even get the tag itself :/

3GaNwO commented 6 years ago

Also just to clarify since im not grasping the idea "togsclantags_updatefreq" Set to 0 means it checks once a map? what does putting this cvar to 1 do? I don't understand how to function properly I guess