View Single Post
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 06-10-2014 , 22:24   Re: [CS:GO] Multi-1v1 (v0.3.2, 2014-6-05)
Reply With Quote #24

Quote:
Originally Posted by dv9unknown View Post
Yep, ATM, I'm implementing a feature to display if a user is active/inactive. I'm not sure how I am going to go about making the rate removal more admin-friendly since the PHP script is only run if the the page is viewed by a user. It is possible, but the admin would have to set up a cron job on their webserver to run the script and update the tables.

Edit: Regarding the site not running, all you have to do is set up the config.inc.php file with your MySQL credentials. It should be the same as it is in your Python program. The only thing you might, possibly, maybe have to change is the MySQL query in index.php and search.php. The default table name you gave was 'multi1v1_stats' but if you have that changed on your end all you need to do is replace all instances of 'multi1v1_stats' with whatever your table is names. I'll probably add that setting to the config.inc.php file.

Edit 2: Any specific errors you are getting?
Don't worry about me yet, I'm pretty sure I'm setting up the configuration incorrectly, I'll let you know if I can't get it working though. (I was trying to showcase it on my website but it still displays the regular site, I'm probably forgetting something for apache)


With regards to the connection times, I pretty much do that. I have a cron job run once a day that does:

Code:
        if elapsed_time_days > 1.0 and lastTime > 0 and rating > 1500.0:
            rating_loss = 40.0  * elapsed_time_days * (rating - 1500.0) / rating
            new_rating = rating - rating_loss
            # update rating in database

       # update lastTime to current time
I only put this together yesterday, so the 40.0 is a arbitrary constant I might change. Make sure you check if lastTime != 0 since that's the default value. For backwards compatibility it won't be guaranteed to be recorded.



Quote:
Originally Posted by Scuba View Post
Thank you for this plugin, it is awesome.

I would like to install it on my server, however I have one question.

Is there a way for me to toggle this plugin on and off, as well as the workshop collection??

I run a community of guys that all like to play a little bit of everything, and this 1v1 mode would be fun for us to play after meetings, but would like it to revert back to typical competitive mode afterwards.

Is this possible?

Thanks a bunch,

Scuba
I see the use, I actually tested the plugin while waiting for friends to join my server for a 10-man. I'll work on a way to enable/disable the plugin, but it can be kinda tricky so it might be a little while. For the time being I can suggest adding https://forums.alliedmods.net/showthread.php?t=182086 and you can disable/enable the plugin with 1 console command and change map.

For map collections, I'm not sure what you mean. I don't see why you'd ever really want to "disable" using the workshop. I'd suggest making your own workshop collection and add whatever you want so you have full control.
__________________

Last edited by splewis; 06-10-2014 at 22:28.
splewis is offline