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

Managing the downloads table


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-13-2019 , 21: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. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-14-2019 , 04: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.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-14-2019 , 04: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. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-14-2019 , 09: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
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-14-2019 , 09: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. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 14:30.


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