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

Managing the downloads table


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Senior Member
Join Date: Nov 2017
Location: Ukraine
Old 02-13-2019 , 22:30   Managing the downloads table
Reply With Quote #1

Hi,

How to add items to downloads table for specific client?

Is it safe to remove items from downloads table OnMapStart() after several seconds delay? Does all already connected clients will have a time to receive info about list of files they need to download in that case?

The main purpose is reducing the number of files required for clients to download at once based on the number of maps each individual client played, e.g. no files - on first join.

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D1 Spartan Witch //^.^\\ server
Dragokas is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-14-2019 , 05:12   Re: Managing the downloads table
Reply With Quote #2

Clients don't download files they already have, so I'm not sure what the point of this is.
__________________
Am I back? Well, we'll see.
Powerlord is offline
Dragokas
Senior Member
Join Date: Nov 2017
Location: Ukraine
Old 02-14-2019 , 05:20   Re: Managing the downloads table
Reply With Quote #3

I'm speaking about files the clients is not have yet.

AddFileToDownloadsTable()
I need additional argument - client.

The goal is minimizing the time for downloading.
Anyway, you don't need to know my goal to answer my question. It's too many time too explain everyhting in details.
Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D1 Spartan Witch //^.^\\ server
Dragokas is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-14-2019 , 10:00   Re: Managing the downloads table
Reply With Quote #4

Quote:
Originally Posted by Dragokas View Post
Is it safe to remove items from downloads table OnMapStart() after several seconds delay?
You can't remove individual items from stringtables.
__________________
asherkin is offline
Dragokas
Senior Member
Join Date: Nov 2017
Location: Ukraine
Old 02-14-2019 , 10:10   Re: Managing the downloads table
Reply With Quote #5

I mean if I remove string table item at the same time when somebody still downloading file, can this entail some kind of conflict?

Ok, anyway, it's better I will wait until all clients become fully in-game rather than making delay after OnMapStart. So, they are guaranteed to download the file.
Sorry, that I disturbed you.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D1 Spartan Witch //^.^\\ server
Dragokas 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 14:09.


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