Rain World

Rain World

Visible ID
Can't name creatures with negative IDs.
Well, you can, but you need to paste it in.
< >
Showing 1-3 of 3 comments
Fish  [developer] 8 May @ 3:32pm 
Interesting. I've double checked on my end and was able to verify that the textbox itself doesn't like non-numeric input, including hyphens. The code I'm responsible for doesn't outlaw negative numbers, as you seem to corroborate. I think this is something caused by the underlying typing of the variable that stores the value of the text box, which I've made to be an integer (which includes negative numbers). The built-in textbox just probably doesn't consider e.g. "-" to be correct per its validation rules.

I'm pretty sure I can work around this limitation by changing the type to string, though I'll need to adjust (or at least check) some of the surrounding logic to accommodate that. If I don't get back to this by this weekend, feel free to post here again to remind me about it.
Originally posted by Fish:
Interesting. I've double checked on my end and was able to verify that the textbox itself doesn't like non-numeric input, including hyphens. The code I'm responsible for doesn't outlaw negative numbers, as you seem to corroborate. I think this is something caused by the underlying typing of the variable that stores the value of the text box, which I've made to be an integer (which includes negative numbers). The built-in textbox just probably doesn't consider e.g. "-" to be correct per its validation rules.

I'm pretty sure I can work around this limitation by changing the type to string, though I'll need to adjust (or at least check) some of the surrounding logic to accommodate that. If I don't get back to this by this weekend, feel free to post here again to remind me about it.

reminder
Fish  [developer] 6 Jun @ 10:53pm 
The mod is updated for this now. Please let me know if you encounter any unexpected behavior as a result of this. The real quick "it works!" testing I did seems to suggest that there shouldn't be side effects from allowing negative IDs in the fields, but it could be the case that weirdness could still occur.
< >
Showing 1-3 of 3 comments
Per page: 1530 50