Git Product home page Git Product logo

Comments (5)

a1batross avatar a1batross commented on May 23, 2024

It's probably incorrect behavior.

Looks like engine tries to register sound after reslist, because "thinks" that your sound file as resource, is missing(RES_WASMISSING flag is set). Check CL_EstimateNeededResources call, in CL_ReadPackets.

from xash3d-fwgs.

noodlecollie avatar noodlecollie commented on May 23, 2024

OK, I've narrowed it down: it appears I was forgetting to precache a sound (gun pickup), so when the player spawned and picked up their first gun, this sound was sent in a sound message to the client so that it would be loaded. This caused cl.resourcesneeded to be non-empty, so sounds were registered again to pick up this non-precached sound. However, running sound registration again meant that all sounds from the previous registration were wiped from the list.

Obviously a simple fix would be to make sure the offending sound is precached. However, I'm still confused as to why forgetting to precache a sound would cause the rest of the correctly precached sounds to be discarded from the known SFX list. What would the best fix for that be?

from xash3d-fwgs.

a1batross avatar a1batross commented on May 23, 2024

@x6herbius

Precaching is very important thing in Quake. It helps engine build list of important files, which should be sent to client and preloaded(to avoid stutterring). So don't forget to precache your files.

However, Xash3D supports hot precaching. It's possible that hot precaching is broken with customization, which allows any client send it's files to server and server will share it to other players. It's hardly allowed only for custom decals though.

from xash3d-fwgs.

noodlecollie avatar noodlecollie commented on May 23, 2024

I guess my question is, should hot precaching be triggering a content registration if this wipes the list of previously registered content? Without knowing all that much about the intent behind the system, it seems to me like items that need hot precaching should be added to the end of the existing list, rather than causing a re-registration.

from xash3d-fwgs.

a1batross avatar a1batross commented on May 23, 2024

Was fixed way back in 2022 in 7013d44

from xash3d-fwgs.

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.