State changes discrepancy in lsl-luau vs mono

オープン
#111 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@HaroldCindy がすでに取り組んでいます。

2026年11月4日 から。

評価

この issue はまだ評価されていません。

説明

Something about the way lsl-luau handles state changes differs from Mono.

It appears like the state is changed immediately instead of after the whole event is handled.

Take this test script:


integer screwthisimout()

{

    if (TRUE) state other;

    return 13;

}

default

{

    state_entry()

    {

        integer r = screwthisimout();

        llOwnerSay("after state change, r=" + (string)r);

    }

}

state other

{

    state_entry()

    {

        llOwnerSay("entered state other");

    }

}

In mono, you see both llOwnerSay printed, State_Entry fully finished, the output is:


after state change, r=0

entered state other

in lsl-luau, state_entry doesn't get to finish and only outputs:


entered state other

Tested on the latest 2026-07-24 luau channel

https://secondlife.canny.io/admin/feedback/slua-alpha/p/state-changes-discrepancy-in-lsl-luau-vs-mono

主要言語
C++
スター
25
フォーク
14
平均マージ
1日 4時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

secondlife/slua のほかの issue

secondlife/slua の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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