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

Logic types set in a register do not change the appropriate value on a property #33

Open
QuinnMcKown opened this issue Jul 15, 2024 · 1 comment

Comments

@QuinnMcKown
Copy link

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.

@Traineratwot
Copy link
Member

Wow, I didn't know it worked like that :) I will fix it but not soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants