SoundUtils.applyPropertiesFromId sets SoundId value twice if given a table.

Aperta Adatta ai principianti
#860 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
lua
Ambito
game-dev

Direzione di ricerca

Trova SoundUtils.applyPropertiesFromId e segui la gestione della tabella descritta nell’issue. Controlla i test o gli esempi correlati a SoundUtils.playFromId e LoopedSoundPlayer, quindi riproduci il problema con un SoundId numerico in Roblox Studio. Il lavoro è completato quando l’ID dell’asset convertito è il valore assegnato e l’errore non si verifica più.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug
If SoundUtils.applyPropertiesFromId is given a table, it converts the table's SoundId value to a rbxassetid and sets the Sound's SoundId property to that, then sets it again using the original, unconverted value. If the original value was a number, this results in an error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a script that creates and plays sound with SoundUtils, passing a table as an argument. Make sure the table's SoundId value is a number. SoundUtils.playFromId and LoopedSoundPlayer both work for this.
  2. Test in Studio
  3. See error in output and Sound instance with a number in the SoundId property.

Expected behavior
The SoundId should use the converted value.

Lingua principale
Lua
Stelle
632
Fork
148
Merge medio
15h 41m
PR unite (30g)
13

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Quenty/NevermoreEngine

Tutte le issue di Quenty/NevermoreEngine

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.