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

銃弾管理で稀にエラーが発生する #40

Closed
Gakuto1112 opened this issue Mar 1, 2024 · 1 comment
Closed

銃弾管理で稀にエラーが発生する #40

Gakuto1112 opened this issue Mar 1, 2024 · 1 comment
Assignees
Labels
base feature This issue or pull request is related to avatar base features bug Something isn't working

Comments

@Gakuto1112
Copy link
Owner

不具合概要

銃弾(アバターを使用するプレイヤーが発射した矢)を読み込む際に、稀にエラーが発生する。

scripts.bullet:11 attempt to perform arithmetic __sub on nil and number
stack traceback:
  scripts.bullet:11: in function <scripts.bullet:8>
script:
  arrowTable[arrowUUID] = arrowTable[arrowUUID] - 1

エラーから推測するに、発射した矢を管理するテーブルに存在しない矢を処理しようとした際に起こったエラーだと考える。この処理は、銃弾の発射音を再生するために行っている。

予期される動作

上記のエラーが発生しないこと。

再現方法

再現方法不明

@Gakuto1112 Gakuto1112 added bug Something isn't working base feature This issue or pull request is related to avatar base features labels Mar 1, 2024
@Gakuto1112 Gakuto1112 mentioned this issue Mar 6, 2024
6 tasks
@Gakuto1112 Gakuto1112 self-assigned this Mar 6, 2024
@Gakuto1112
Copy link
Owner Author

#41 において、武器の射撃音や煙パーティクルの出現方法を変更した。これに伴い、bullet.luaが不要になり削除したため、必然的にこの課題を解決した。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base feature This issue or pull request is related to avatar base features bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant