Raised This Month: $51 Target: $400
 12% 

SourceTV2D for CS:S & CS:GO (and possibly other source games)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Crytiqal
Junior Member
Join Date: Jan 2013
Plugin ID:
3552
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Live radarmap overview via webbrowser
    Old 03-02-2013 , 08:00   SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #1

    SourceTV2D

    A live radarmap view between webbrowsers and gameservers.



    Introduction:
    SourceTV2D is a plugin that makes it possible to view the ingame radar map live through a webbrowser displaying all currently active players, their healthbars, names, player positions as well as killmessages and scoreboard, originally created by Peace-Maker for CS:S. This post is to help other people how to get this plugin working for their (other) gameservers. If people have any additions to this plugin (tv_delay or automatic scaling and positioning of the radarmap in the browser perhaps?) please feel free to post them in this thread.

    Requirements:
    Extensions:
    Compiling dependencies:
    Source codes:
    • websocket.sp
    • websocket_sourcetv2d.sp

    Website files:
    • sourcetv2d.zip

    Installation:
    • Download the latest metamod (snapshot) and install into your addons folder.
    • Download the latest sourcemod (snapshot) and install into your addons folder.
    • Download the latest socket extension (attachment or url) and install into your addons folder.
    • Download the compiling dependancy files (.inc) and place them in:
      ../addons/sourcemod/scripting/include/ (socket.inc should already be present if you extracted socket_3.0.1.zip correctly)
    • Download the source codes (.sp) and place them in:
      ../addons/sourcemod/scripting/
    • Run compile.exe inside ../addons/sourcemod/scripting/
      It should now compile all the .sp files into the ../addons/sourcemod/scripting/compiled/ folder.
    • Open ../addons/sourcemod/scripting/compiled/ folder and copy websocket.smx and websocket_sourcetv2d.smx and place inside ../addons/sourcemod/plugins/ folder.

    If you follow these steps correctly you will have sourcetv2d working for either CS:S or CS:GO (this possibly works for other srcds.exe games aswell but is not tested) depending which game you used when compiling.

    To connect to the sourcetv2d you have to extract the sourcetv2d.zip to a website and edit the ip and port number in the index.html to your gameservers ip and tv_port accordingly.

    In the webfolder:
    Have a radarmap image in .jpg format with the name of the map.
    Have a .txt file with the name of the map in which you have to specify the scale and x/y offset and x/y flip to match the ingame coordinates.

    For example:
    ../sourcetv2d/maps/cstrike/<mapname>.jpg
    ../sourcetv2d/maps/cstrike/<mapname>.txt

    ../sourcetv2d/maps/csgo/<mapname>.jpg
    ../sourcetv2d/maps/csgo/<mapname>.txt

    ../sourcetv2d/maps/csgo/workshop/<mapid>/<mapname>.jpg
    ../sourcetv2d/maps/csgo/workshop/<mapid>/<mapname>.txt

    ============================================= ==
    ../sourcetv2d/maps/csgo/de_dust.jpg
    ../sourcetv2d/maps/csgo/de_dust.txt
    Quote:
    {
    "xoffset": 2800,
    "yoffset": 4080,
    "flipx": 0,
    "flipy": 1,
    "scale": 6
    }
    Working preview:
    http://www.team-aero.org/e107_esports/sourcetv2d/27104 - CS:GO (Cannot connect when server is idle because the tv is then also inactive)
    http://www.team-aero.org/e107_esports/sourcetv2d/27119 - CS:S

    Acknowledgements:
    The source code is created by Peace-Maker originally made for CS:S. I slightly altered the sourcecode so that it is possible to run sourcetv2d for multiple gameservers with a variable tv_port, and figured out how to compile it for CS:GO. The port is based on the tv_port variable of the gameserver. If you don't spawn a TV server then the sourcetv2d won't become active. I did this so that you can run multiple sourcetv2d for each gameserver instead of having a static port in the compiled code, aswell as not having it spawn a sourcetv2d if you don't wish to spawn a tv.

    Credits:
    • SfPlayer - socket extension
    • Peace-Maker - sourcetv2d for CS:S (sourcecode)
    • Peace-Maker - SHA-1 include
    • SirLamer - Base64 include
    (I hope I gave credit where credit is due, otherwise please correct me)
    Attached Files
    File Type: zip socket_3.0.1.zip (633.2 KB, 346 views)
    File Type: inc socket.inc (16.5 KB, 528 views)
    File Type: inc base64.inc (8.6 KB, 519 views)
    File Type: inc sha1.inc (8.4 KB, 490 views)
    File Type: inc websocket.inc (6.2 KB, 486 views)
    File Type: sp Get Plugin or Get Source (websocket.sp - 560 views - 42.9 KB)
    File Type: sp Get Plugin or Get Source (websocket_sourcetv2d.sp - 544 views - 20.3 KB)
    File Type: zip sourcetv2d.zip (561.5 KB, 574 views)

    Last edited by Crytiqal; 03-06-2013 at 07:05. Reason: required attachments added
    Crytiqal is offline
    Crytiqal
    Junior Member
    Join Date: Jan 2013
    Old 03-02-2013 , 09:50   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #2

    ~Reserved~

    Last edited by Crytiqal; 03-05-2013 at 19:43.
    Crytiqal is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 03-02-2013 , 18:11   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #3

    10/10 Great work!
    Sreaper is offline
    bkuhles109
    Member
    Join Date: Oct 2011
    Old 03-02-2013 , 23:06   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #4

    sooo cool!!!
    bkuhles109 is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 03-03-2013 , 09:45   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #5

    how to make maps?
    Despirator is offline
    angel635
    Senior Member
    Join Date: Apr 2011
    Old 03-03-2013 , 11:45   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #6

    hi Crytiqal

    .smx en piece jointe?
    angel635 is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 03-03-2013 , 11:49   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #7

    i asked how to make those images of the maps
    Despirator is offline
    Crytiqal
    Junior Member
    Join Date: Jan 2013
    Old 03-03-2013 , 11:54   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #8

    Quote:
    Originally Posted by angel635 View Post
    hi Crytiqal

    .smx en piece jointe?
    I have no idea what you mean, is that french? ;)
    You have to compile the .smx files yourself. If you follow the steps it's really simple.

    Quote:
    Originally Posted by Despirator View Post
    i asked how to make those images of the maps
    I have a radarmap package for all the official CSGO maps, found via google, which I can upload. Im sure those images can be found in the game files somewhere or on the internet.

    Last edited by Crytiqal; 03-03-2013 at 11:58.
    Crytiqal is offline
    angel635
    Senior Member
    Join Date: Apr 2011
    Old 03-03-2013 , 12:49   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #9

    Quote:
    Originally Posted by Crytiqal View Post
    I have no idea what you mean, is that french? ;)
    You have to compile the .smx files yourself. If you follow the steps it's really simple.

    is that french? ;) : YES ^^

    You have to compile the .smx files yourself : I do not know decompile ^^

    Sorry for language ^^

    Last edited by angel635; 03-03-2013 at 12:50.
    angel635 is offline
    bkuhles109
    Member
    Join Date: Oct 2011
    Old 03-05-2013 , 15:16   Re: SourceTV2D for CS:S & CS:GO (and possibly other source games)
    Reply With Quote #10

    idk how to edit the html ?
    bkuhles109 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 20:29.


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