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

engine_i686 ( SV_AddToResourceList )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-18-2012 , 11:12   engine_i686 ( SV_AddToResourceList )
Reply With Quote #1

How to add resources? ( Sounds ( weapons reload ),txt files ( messages weaponlist ) )

It is not considered as a limit 512
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2012 , 13:48   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #2

It's unrelated to what you want do. This function is related to custom.hpk which is used to store other players logos in.
__________________
Arkshine is offline
Old 10-18-2012, 14:33
Bos93
This message has been deleted by Bos93.
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-18-2012 , 14:40   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #3

Arkshine,what the function pecache list, where I can add resources?
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2012 , 14:44   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #4

precache_*() natives.

If you question is how to avoid to hit limit of 512 items per type of files ( model/sprites, sounds and generic ), even if it's technically possible to increase it, there is no practical way. So, you should stop trying something you won't find.
__________________
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-18-2012 , 15:06   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #5

I know that there is a function with PrecacheList, where you can add some resources, who are d-loaded by the client on connect from the HTTP server, I just want to to reduce sound/spritte count
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2012 , 15:21   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #6

Precaching is NOT about ONLY sending a file to the client.
__________________

Last edited by Arkshine; 10-18-2012 at 15:22.
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-18-2012 , 15:33   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #7

What do you mean?
__________________

Last edited by Bos93; 10-18-2012 at 15:34.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-18-2012 , 15:50   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #8

A resource file is parsed in order to retrieve informations stored and is loaded into memory. The file is sent to the client because both client/server need to load in memory such informations.
__________________
Arkshine is offline
Brian-__-
Member
Join Date: Jan 2010
Old 10-19-2012 , 12:35   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #9

I think he has 512 limit precache problem but some sound file is unnecessary for precaching ( client_cmd(id, "spk ..."); ), I think he is asking how to make the client download these files without precaching

Last edited by Brian-__-; 10-19-2012 at 12:37.
Brian-__- is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-19-2012 , 13:01   Re: engine_i686 ( SV_AddToResourceList )
Reply With Quote #10

Brian-__-,yes.
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
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 05:49.


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