Heigvd / Wegas

A Web Game Authoring System coded in Java and Javascript for rapid development of serious games without programming skills.
https://wegas.albasim.ch
MIT License
28 stars 15 forks source link

Pre 2023.09 Scenario issues #1953

Closed TehAwol closed 7 months ago

TehAwol commented 7 months ago

When using certain old React scenarios (from before ~2023.09) several issues occur:

xgo-work commented 7 months ago

Tried with a very simple case with one variable incremented by a single trigger at game start.

xgo-work commented 7 months ago

When patching to a copy of the original scenario, the following diff happens

GameModel
Trigger Serialization TEST (3)
items
trigger1 - trigger1
dependencies
TransitionDependency:1017811:Afa53c
variableName
n
scope
SELF

TransitionDependency:1016671:WprkHk
variableName
n
scope
SELF

=> The TransitionDependency is adapted to the new variable, that seems correct, although a bit surprising. In the sense that the abstract dependency of a trigger to a variable should not vary from 2 identical copies of a scenario.

TehAwol commented 7 months ago

Closing issue.

Duplication error provoked by developer error