You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TLDR: when using a batch instruction like sbn with a logic type stored in a register, the prop of a device shows the r2: 1 as opposed to Mode: 1
When using a instruction like sbn it is possible to store the logic type into a register as an integer, rather than using the named value. It looks like
move r0 LogicType.On
sb d0 r0 1
rather than
sb d0 On 1
I was using this method to set the logic values of an array of structures, specifically all door types for an airlock script. When running the script in this simulator the name of the property is taken as the exact name provided in the instruction. Whereas in the actual game if a register is provided it will use the value of the register in place of a named constant.
The text was updated successfully, but these errors were encountered:
TLDR: when using a batch instruction like
sbn
with a logic type stored in a register, the prop of a device shows ther2: 1
as opposed toMode: 1
When using a instruction like
sbn
it is possible to store the logic type into a register as an integer, rather than using the named value. It looks likerather than
I was using this method to set the logic values of an array of structures, specifically all door types for an airlock script. When running the script in this simulator the name of the property is taken as the exact name provided in the instruction. Whereas in the actual game if a register is provided it will use the value of the register in place of a named constant.
The text was updated successfully, but these errors were encountered: