-
|
I'm toying around with the ioport fields in LUA. For a game ( I tried this:
This represents the DSW2 tag's Difficult field, which has a mask of 12. I was assuming the above method would change the field's value to 4. (Changing from "Normal" to "Hard" difficulty in this case). But it did not do anything. I did this in the printing out the port seemed to give me the correct object/table: Is there something I'm misunderstanding about how to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You need to set the Keep in mind a lot of games only read DIP switches on boot, so it may not take effect immediately anyway. |
Beta Was this translation helpful? Give feedback.
You need to set the
user_valueproperty to change the value of “configuration” fields (DIP switches, adjusters, machine configuration switches).set_valuechanges the temporary override value for “control” inputs.Keep in mind a lot of games only read DIP switches on boot, so it may not take effect immediately anyway.