Raised This Month: $7 Target: $400
 1% 

Solved [CSGO] Link bot replays across servers [$200+]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 12-27-2017 , 06:05   [CSGO] Link bot replays across servers [$200+]
Reply With Quote #1

Hello I am looking for a method to link bot/demo replays across servers for surf. Symlink is an easy option but won't exactly work because the replays need to be linked across different hosts which are not on the same box.

Both servers are windows. I have full access to my dedicated server while the other server that I need linked is hosted by company with ftp access.

Will pay nicely to anyone who wants to help and will appreciate anyone's feedback on the best method of doing this Offering $200


Thanks

Last edited by wolvez04; 04-26-2018 at 09:06.
wolvez04 is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 01-02-2018 , 07:49   Re: [CSGO] Link bot replays across servers - paying
Reply With Quote #2

You can easily broke-fix it with an active rsync in the directories, however there are bound to be segmentations problems when transfering whilst the map is loading the replay and vice-versa. You'd have to setup active listeners on both servers and communicate server to server. Pretty hefty job, but rsync is the easiest tbh /shrug
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 01-02-2018 , 12:34   Re: [CSGO] Link bot replays across servers - paying
Reply With Quote #3

Note to whoever takes this request:
If OP uses my timer plugin, the following natives exist -
Code:
/**
 * Reloads a specific replay into the replay bot cache.
 * Note: Not guaranteed to work with legacy replay bots.
 *
 * @param style						Replay style.
 * @param track						Replay track.
 * @param restart					Restart the playback of the replay bot if it's playing?
 * @param path						Path to the replay file. Use `BuildPath(Path_SM, ...)` to generate one. Leave as empty to use default.
 * @return							Was the replay loaded?
 */
native bool Shavit_ReloadReplay(int style, int track, bool restart, char[] path = "");

/**
 * Reloads all of the replays for the map.
 * Note: Not guaranteed to work with legacy replay bots.
 *
 * @param restart					Restart the playback of the replay bots?
 * @return							Amount of loaded replays.
 */
native int Shavit_ReloadReplays(bool restart);
__________________
retired
shavit is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 01-03-2018 , 12:11   Re: [CSGO] Link bot replays across servers - paying
Reply With Quote #4

Quote:
Originally Posted by OSWO View Post
You can easily broke-fix it with an active rsync in the directories, however there are bound to be segmentations problems when transfering whilst the map is loading the replay and vice-versa. You'd have to setup active listeners on both servers and communicate server to server. Pretty hefty job, but rsync is the easiest tbh /shrug
Thanks for the information. I doubt anyone will take this job on
wolvez04 is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 01-03-2018 , 12:12   Re: [CSGO] Link bot replays across servers - paying
Reply With Quote #5

Quote:
Originally Posted by shavit View Post
Note to whoever takes this request:
If OP uses my timer plugin, the following natives exist -
Code:
/**
 * Reloads a specific replay into the replay bot cache.
 * Note: Not guaranteed to work with legacy replay bots.
 *
 * @param style						Replay style.
 * @param track						Replay track.
 * @param restart					Restart the playback of the replay bot if it's playing?
 * @param path						Path to the replay file. Use `BuildPath(Path_SM, ...)` to generate one. Leave as empty to use default.
 * @return							Was the replay loaded?
 */
native bool Shavit_ReloadReplay(int style, int track, bool restart, char[] path = "");

/**
 * Reloads all of the replays for the map.
 * Note: Not guaranteed to work with legacy replay bots.
 *
 * @param restart					Restart the playback of the replay bots?
 * @return							Amount of loaded replays.
 */
native int Shavit_ReloadReplays(bool restart);
Currently using cksurf
wolvez04 is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 02-25-2018 , 17:50   Re: [CSGO] Link bot replays across servers [$150+]
Reply With Quote #6

Offering $200usd+
wolvez04 is offline
zwetch
Senior Member
Join Date: Aug 2015
Location: South Africa
Old 04-25-2018 , 04:41   Re: [CSGO] Link bot replays across servers [$200+]
Reply With Quote #7

Just link the replays folder to each server, so all servers use the same folder. (ftp access is not good enough for this u need remote access with alot of permissions)

Make sure replays folder is a different location (example E:\CSGO\Servers\Replays) then link this folder to each server in the directory its needed to be. (E:\CSGO\Servers\Surf Beginner\csgo\addons\sourcemod\data\replays)

Linked folder will look like this:

To much effort to ecplain how to link. (you can use google for that)
__________________
https://forums.alliedmods.net/signaturepics/sigpic262740_1.gif

Last edited by zwetch; 04-25-2018 at 04:44.
zwetch is offline
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 04-25-2018 , 05:08   Re: [CSGO] Link bot replays across servers [$200+]
Reply With Quote #8

Quote:
Originally Posted by zwetch View Post
Just link the replays folder to each server, so all servers use the same folder. (ftp access is not good enough for this u need remote access with alot of permissions)

Make sure replays folder is a different location (example E:\CSGO\Servers\Replays) then link this folder to each server in the directory its needed to be. (E:\CSGO\Servers\Surf Beginner\csgo\addons\sourcemod\data\replays)

Linked folder will look like this:

To much effort to ecplain how to link. (you can use google for that)
This will not work if cs:go servers are on multiple different hosts. The phrase for this procedure is called "symbolic link", where all replay folders are symbolically linked to one main one. As stated before this can cause segmentation errors if multiple servers are on the same map and replays are being overwritten by multiple servers at once, very rare to occur, but on a new map with 0 records this can cause issues.
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 04-25-2018 , 23:12   Re: [CSGO] Link bot replays across servers [$200+]
Reply With Quote #9

I'm interested in this, and I have some idea of how to do this.
Can you post a link of cksurf you use in your server?
There are too many edited version of cksurf on Github. (nikooo777's cksurf, fluffyst's Surftimer ...etc)
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118

Last edited by rogeraabbccdd; 04-25-2018 at 23:14.
rogeraabbccdd is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 04-26-2018 , 09:06   Re: [CSGO] Link bot replays across servers [$200+]
Reply With Quote #10

Quote:
Originally Posted by rogeraabbccdd View Post
I'm interested in this, and I have some idea of how to do this.
Can you post a link of cksurf you use in your server?
There are too many edited version of cksurf on Github. (nikooo777's cksurf, fluffyst's Surftimer ...etc)
Sorry no need, as someone has already made this for me
__________________
Hiring developers of all sorts for small or big jobs.
Paying nicely. Just PM for any available jobs.

wolvez04 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 02:07.


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