Since LE cant fix it. i made chatgpt fix your coding for sound bug

like i said gave chatgpt the code and it fixed it.// Attach once on spawn
public class PetSfx : MonoBehaviour
{
[EventRef] public string IdleEvent;
StudioEventEmitter _idle;

void Awake()
{
    _idle = gameObject.AddComponent<StudioEventEmitter>();
    _idle.Event = IdleEvent;
    _idle.AllowFadeout = true;        // important for clean stop
    _idle.TriggerOnce = false;
    _idle.StopEvent = EmitterGameEvent.None;
}

void OnEnable()  { _idle.Play(); }
void OnDisable() { _idle.Stop(); }    // calls fadeout if AllowFadeout
void OnDestroy() { _idle.Stop(); RuntimeManager.DetachInstanceFromGameObject(_idle.EventInstance); }

}
static readonly Dictionary<string, (float lastTime, int active)> Gate = new();
const float MinInterval = 0.15f;
const int MaxInstances = 3;

public static void RateLimitedOneShot(string eventPath, Vector3 pos)
{
var now = Time.unscaledTime;
var key = eventPath;
var state = Gate.TryGetValue(key, out var s) ? s : (0f, 0);

if ((now - state.lastTime) < MinInterval || state.active >= MaxInstances)
    return;

state.lastTime = now;
state.active++;
Gate[key] = state;

var inst = RuntimeManager.CreateInstance(eventPath);
inst.set3DAttributes(RuntimeUtils.To3DAttributes(pos));
inst.start();
inst.release(); // schedules release after playback

// decrement active a moment later
RuntimeManager.StudioSystem.scheduleDSP(0, 0); // or use a callback to decrement on STOPPED

}
now if your fucking team would

Yes, because ChatGPT is all knowing and knows LE’s code and what is causing the issue. Tell me you’re not a programmer without telling me you’re not a programmer. :roll_eyes:

It’s not a general issue that happens with everyone. It’s a specific issue that happens with a few people. That means it’s related to something they’re doing with the system sound that is having issues with your system.

Best way to fix it is to send bug reports, not be passive aggressive. And certainly not trusting that ChatGPT knows how to fix code it isn’t even aware of.

1 Like

yeah actually i am> thanks though. Ive been at their chops with this fix since alpha launch 4 years ago. ive done nothing but send bug reports. they wont acknowledge it at all. it’s been a problem for 4 years yet they wont fix it

and before you say it’s the pc. i have 4 pc’s 2 all intel and 2 all amd all the same problem. so it’s coding

It’s always coding. But it’s also always the system.
If this was an issue that everyone had (like the stash issues), then you could say it’s just coding. But this is an issue that only happens to a few people. The majority of people don’t have this issue and never had.

So it’s likely simply some obscure interaction that is hard to pinpoint and/or debug. If you’re a developer you should be aware of that. Sometimes issues only happen on a few clients for some obscure reason.
Quite a common occurrence when you have such a wide variety of hardware/software/drivers all affecting your code.

4 different pc"s? with 100k more in forums lol? not the pc. it’s coding. like i said 4 different pc’s in the house 2 all amd and 2 all intel. all of them have this problem. it’s coding and i’ve said that and sent to them multiple time with coding to correct it. so if they all of sudden decide to use it after 4 years it will be amazing

Since you likely installed them all, you likely installed them similarly. It could even be some software issue that is causing it because of something you installed.

Yes, more people have this bug in the game than there are people playing. :roll_eyes:

Most people don’t have this bug. In fact, there hasn’t been a thread about it for a long time. So it clearly can’t affect that many people.
It seems to be more prevalent this season, so it’s likely something they changed. Some of it seems to be related to MTX (so not related to your issue at all, because that was happening since before them).

So yes, if it were simply coding, then everyone would be having this issue. When it clearly isn’t true.
It’s the way the code is executed which isn’t sitting right with a few computers for some reason.

Which doesn’t mean it’s not on them to fix it. Because it is. But these issues are notoriously hard to figure out.
I once had a game that blue screened my pc constantly. It was the only game that did this. I eventually got lucky and figured out that it was a multi-usb hub that was causing it and it stopped happening when connected to a different USB port.

Was it the devs fault or the coding that they didn’t predict this situation?

You’re just angry and wanting to lash out, but that doesn’t make you right.

look at the forums. there’s 100k+ having this problem ive done all there “fixes” along with all the other people in forums. I know how computers work and how to remedy common problems. this does not do it. again it’s coding. if this many problem are having this problem it;'s a big deal. but LE wont comment on it nor will they put it in their common bugs known in their page

There aren’t even 100k people in the forums altogether, let alone with this problem.
This issue was almost never reported before this season. The issues from this season don’t seem to be the same ones you have. There are at most a few dozen reporting it this season and they all seem to be related to pet MTX.

Before this season, I can’t find a single complaint about this issue since launch.
So maybe you should be the one looking at the forums more closely.

Again, I can understand you’re frustrated. It’s annoying to want to play a game and not be able to. But being hugely hyperbolic and passive aggressive doesn’t really help your case.

so you haven’t looked since 2021 for the alphas just say that. if you cant research correctly dont reply :slight_smile:

No, I didn’t look for something that no one has complained in 2 years. If people complained about it 4 years ago and they don’t complain about it now, that means they’re not having this issue anymore (or they left).
It also means that barely anyone (if any) of the 250k players at launch had this issue, because some would complain about it.

So no, you definitely can’t say that 100k+ players have this issue without sounding extremely hyperbolic. Especially when there aren’t even 100k players playing this season. It’s like saying that 20 billion people on this planet have webbed fingers.

1 Like

You’ve never been to Norfolk. That’s probably a bit on the low side…

1 Like

just say you didnt look lol. because that response shows it :slight_smile:

I did look. I searched for sound bug and sound issues and there isn’t a single mention of your problem since the 1.0 launch. I didn’t bother looking further back because it’s not relevant. If no one complains about something like this for 2 years, then it’s not a global issue.

As I said, there are only complaints this season and they’re related to pet MTX. No one else seems to have your issue since the launch.

I think it’s you that actually didn’t look and didn’t realize that you’re the only one with this problem.

yet it is back to 2021 lol. stop lying here let me link it for you since you like to lie because you’re to fucking lazy to look for anything :slight_smile:

No-sound bug FOUND and SOLVED (workaround) oh shit it’s like google is free and easy to use hmmmm

imagine having all the info in the world at your finger tips and being a moron and not using it :slight_smile:

You seem to have some reading or comprehension issues.
I said I looked as far back as the game launch last year.
Because a bug that hasn’t been complained about in 2 years isn’t a bug that people are having.
This is bug that only you are having and maybe a dozen other people.

Does that help to understand? A 2021 thread about a single person having an issue isn’t relevant. And it certainly is very very far from “100k+”.
As I said before, you’re angry and frustrated and so you’re being hyperbolic and a drama queen. Honestly, your attitude makes it very hard to sympathize with your issue.

game has been out in alpha since 2021 like i said. it seems like you cant comprehend what you read. first comment said that. if you have trouble with comprehension my wife is a 3rd grade teacher certified in reading and comprehension. i can get you free lessons. seems like you need them

1 Like

Yes, it’s been out since 2021. And it also had a lot of bugs that have never happened since, or happened only to a couple of people.

It doesn’t change the fact that the problem you have is something that is happening to only you and no one else has complained about it in more than 2 years.

Also, the post you linked doesn’t seem to have anything to do with your issue. That link is about LE assuming a different sound source when you have monitors with speakers and thus having no sound. There was nothing there about it crashing every 20 minutes like you have.
So not even that post is relevant for your very specific issue that no one else seems to have.

Or, maybe your issue is simply the same everyone else is having this season alone, and that didn’t have it in the previous seasons, and it’s related to the pet MTX bug. Which is solved by unequipping the pet.

Either way, it’s not a “long standing bug that 100k+ people have”. Whichever way you want to slice it, you’re not right about this.