Code Monkey home page Code Monkey logo

Comments (6)

WPMGPRoSToTeMa avatar WPMGPRoSToTeMa commented on May 28, 2024 2

@OZone998 you can use PrecacheGeneric for sounds that are played via SendAudio/"spk"/"speak" etc, but not via EmitSound/EmitAmbientSound/SVC_SOUND/SVC_SPAWNSTATICSOUND. Also you can use PrecacheGeneric for player models.
Generic precache is already extended to max resource count (4096).

P.S. Really you can't use all resource count, because netchan is limited to 64KB and it will not be able to send SVC_RESOURCELIST with 4096 resources.

from rehlds.

Arkshine avatar Arkshine commented on May 28, 2024

You can't do that unless the client is updated as well, I guess.

from rehlds.

WPMGPRoSToTeMa avatar WPMGPRoSToTeMa commented on May 28, 2024

Resource type?

from rehlds.

TheDoctor0 avatar TheDoctor0 commented on May 28, 2024

Well, probabably there is a way to do it without client modification: https://forums.alliedmods.net/showthread.php?t=200826
Of course noew it's not compatible with ReHLDS, but there is source code.

from rehlds.

Arkshine avatar Arkshine commented on May 28, 2024

@OZone998 It's unrelated to the 512 precache limit. This modules is essentially management of sv_downloadurl and unlock limit of 1280 items you can send on a client, which I think has been increased in reHLDS to 4092 (?).

from rehlds.

TheDoctor0 avatar TheDoctor0 commented on May 28, 2024

It can reduce number of sound in precache, so it could help in some way.
Yeah, I saw that in pull #161. Unfortunately server with current version of ReHLDS is still crashing when resources exceed 512 limit.

There is an example from ZombieMod server:
ERROR : Host_Error: PF_precache_sound_I: Sound "debris/bustconcrete2.wav" failed to precache because the item count is over the 512 limit.
Normally I am using unprecacher, so it won't happen - for now. But adding few models = crash.

from rehlds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.