State changes discrepancy in lsl-luau vs mono

Aberta
#111 1 comentário 0 reações 1 responsável Ver no GitHub

@HaroldCindy já está trabalhando nisso.

Desde 4/11/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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

Linguagem predominante
C++
Estrelas
25
Forks
14
Merge médio
1d 4h
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de secondlife/slua

Todas as issues de secondlife/slua

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.