Raised This Month: $52 Target: $400
 13% 

[CS:GO] Simple CSGO Map


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Plugin ID:
4713
Plugin Version:
0.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Simple CSGO Map is a plugin that allows a server website to display a live minimap of the game in progress.
    Old 07-07-2015 , 04:37   [CS:GO] Simple CSGO Map
    Reply With Quote #1

    Simple CSGO Map is a plugin that allows a server website to display a live minimap of the game in progress.

    Simple CSGO Map is in ALPHA. It currently only supports de_dust2 and up to 14 players.

    The databases.cfg file needs to be updated or you can copy the included one.
    Databases.cfg:
    "render"
    {
    "driver" "default"
    "host" "localhost"
    "database" "steam"
    "user" "root"
    "pass" ""
    //"timeout" "0"
    "port" "3306"
    }

    Required server install:
    sudo apt-get install apache2
    sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
    sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
    sudo apt-get install php5-gd
    sudo apt-get install freetype*






    Attached Files
    File Type: zip simplecsgomap0.0.0.zip (432.5 KB, 81 views)
    File Type: zip simplecsgomap0.0.1.zip (432.2 KB, 162 views)
    __________________

    Last edited by Puppetmaster; 07-08-2015 at 05:03. Reason: Added version 0.0.1
    Puppetmaster is offline
    FakeNinja
    Junior Member
    Join Date: Feb 2014
    Old 07-08-2015 , 11:16   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #2

    Cool plugin! It feels like it takes a lot of performance though.
    FakeNinja is offline
    Puppetmaster
    Senior Member
    Join Date: Jun 2015
    Location: Probably at a computer.
    Old 07-08-2015 , 19:39   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #3

    Quote:
    Originally Posted by FakeNinja View Post
    Cool plugin! It feels like it takes a lot of performance though.
    Not too much, it uses a few KB of memory and does all its work in threads so that it does not cause lag. It updates up to 10 player locations per second maximum and if it detects that it might be about to cause lag it slows itself down.

    The GD library render in apache uses around 1% of my servers single core CPU per person watching the render so on a real server it would probably not be noticeable even with a few hundred people watching.
    __________________
    Puppetmaster is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 07-15-2015 , 14:07   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #4

    Mmm a bit like https://forums.alliedmods.net/showth...77#post1686977, but cool nonetheless.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    insanityNL
    Junior Member
    Join Date: Jun 2012
    Old 05-01-2016 , 09:06   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #5

    Wow, this looks like a great plugin ^^
    Any updates regarding functionality and if it supports all regular CS GO maps?
    insanityNL is offline
    Deathknife
    Senior Member
    Join Date: Aug 2014
    Old 05-01-2016 , 14:25   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #6

    Love the idea. From a quick look, it would be a good idea to use Low priority querying, with that you can easily bump up the player limit.
    PHP Code:
    char asyncQuery1[1000];//holders for threaded queries
    char asyncQuery2[1000];
    char asyncQuery3[1000];
    char asyncQuery4[1000];
    char asyncQuery5[1000];
    char asyncQuery6[1000];
    char asyncQuery7[1000];
    char asyncQuery8[1000];
    char asyncQuery9[1000];
    char asyncQuery10[1000];
    char asyncQuery11[1000];
    char asyncQuery12[1000];
    char asyncQuery13[1000];
    char asyncQuery14[1000]; 
    Why? It would have been much easier to use arrays, for example
    PHP Code:
    char asyncQuery[15][1000]; 
    or even better, an ArrayList.

    I would also suggest you to use SteamWorks. Considering it already needs web server this shouldn't be much of a hassle. You can easily pack all players in one request, and then insert into MySQL from php. Gets rid of any player limits, and much faster. (I'm pretty sure SourceMod has a limit of 50 MySQL queries a second, so anything above 50ish players wouldn't be possible to update a second).
    Deathknife is offline
    irepz
    Senior Member
    Join Date: Mar 2013
    Location: France
    Old 05-03-2016 , 08:16   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #7

    Nice idea !

    Do you think to add more maps soon ?
    __________________
    irepz is offline
    Puppetmaster
    Senior Member
    Join Date: Jun 2015
    Location: Probably at a computer.
    Old 05-05-2016 , 05:53   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #8

    Quote:
    Originally Posted by irepz View Post
    Nice idea !

    Do you think to add more maps soon ?
    Depends on how much interest people have in its development.
    __________________
    Puppetmaster is offline
    shtspk
    Junior Member
    Join Date: Dec 2015
    Old 07-05-2016 , 16:03   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #9

    get thoose errors

    Quote:
    L 07/05/2016 - 1116: [SM] Native "SQL_FastQuery" reported: Invalid database Handle 0 (error: 4)
    L 07/05/2016 - 1116: [SM] Displaying call stack trace for plugin "simplecsgomap.smx":
    L 07/05/2016 - 1116: [SM] [0] Line 130, simplecsgomap.sp::newDB()
    L 07/05/2016 - 1116: [SM] [1] Line 61, simplecsgomap.sp::OnPluginStart()
    L 07/05/2016 - 1116: [SM] Plugin encountered error 25: Call was aborted
    any ideia? running linux waaclive server
    shtspk is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 07-05-2016 , 22:58   Re: [CS:GO] Simple CSGO Map
    Reply With Quote #10

    Quote:
    sudo apt-get install apache2
    sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
    sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
    sudo apt-get install php5-gd
    sudo apt-get install freetype*
    are nginx and php7.0-fpm a problem?
    __________________
    retired

    Last edited by shavit; 07-05-2016 at 22:58.
    shavit is offline
    Reply


    Thread Tools
    Display Modes

    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 23:09.


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