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

オープン 初心者向け
#860 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
lua
領域
game-dev

調査の方向性

SoundUtils.applyPropertiesFromIdを見つけ、issueで説明されているテーブルの処理を追ってください。SoundUtils.playFromIdとLoopedSoundPlayerに関連するテストや例を確認し、Roblox Studioで数値のSoundIdを使って再現してください。変換後のアセットIDが代入される値となり、エラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Lua
スター
632
フォーク
148
平均マージ
15時間 41分
マージ済み PR(30日)
13

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Quenty/NevermoreEngine のほかの issue

Quenty/NevermoreEngine の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。