Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null returns caused to SoundAPI whilst using AdvancedCompany #130

Open
Aeniema opened this issue Feb 21, 2024 · 4 comments
Open

Null returns caused to SoundAPI whilst using AdvancedCompany #130

Aeniema opened this issue Feb 21, 2024 · 4 comments

Comments

@Aeniema
Copy link

Aeniema commented Feb 21, 2024

Whilst AC is on with loaforcsSoundAPI, SoundAPI returns nulls.
image

Bongo :3 In discord is loaforcsSoundAPI creator. <3 I've tagged you in the thread.

@Aeniema
Copy link
Author

Aeniema commented Feb 21, 2024

image

With debugging to show what SoundAPI is accessing for reference.

@Aeniema
Copy link
Author

Aeniema commented Feb 21, 2024

@FluffyFishGames Wondering if maybe the AC items could cause the SoundAPI to return empty? Like the headets, flippers etc? Catch you soooon :D

@LoafOrc
Copy link

LoafOrc commented Feb 22, 2024

hello, the error advanced company is causing in sound API is the following line in this file:

if (source.playOnAwake && source.enabled) {
                source.Play();

so while I haven't looked at ac's code yet this is my best guess:
you are most likely creating an audiosource, then destroying it from awake or at least before start.

this is probably fixable from soundapi's side but you probably should look into that because doing that isn't the smartest idea.

again haven't looked at an ac code so it could be a different issue

@LoafOrc
Copy link

LoafOrc commented Feb 22, 2024

happens on the following audiosources, what are you doing to these?
image

@Aeniema Aeniema changed the title Null returns causes to SoundAPI whilst using AdvancedCompany Null returns caused to SoundAPI whilst using AdvancedCompany Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants