forbidden-memories-coding / fmscrambler

Yu-Gi-Oh! Forbidden Memories Randomizer Tool
MIT License
17 stars 8 forks source link

Program crashes if the seed field is blank upon randomisation #5

Closed GenericMadScientist closed 6 years ago

GenericMadScientist commented 7 years ago

Similarly, leading 0s in the seed field also cause a crash upon randomisation.

GenericMadScientist commented 7 years ago

I can also crash it by putting text in said field. I'm unable to type it in directly, but I can paste in what I want it seems. Although it still gets truncated to nine characters.

duke1102 commented 7 years ago

Okay, for leading 0s there is no check in yet to prevent those. The way Seeds work is by giving it a 32 bit Integer value.

With the textfield validation I have to do some more research, right now it uses a simple regular expression to check if the input is a number whenever you type something in. I also set the max limit of characters to 9.