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
If a key only consists of numbers, such as if a players name is "12345", when loading the json into lua, it will be parsed as a number, instead of a string, this can cause issues due to scripts using below, expecting it to be the string they saved, not being a number.
exampleTable[tostring("12345")] =true
This will break when you restart the server, as the libs will parse this as a number and not a string.
we may want to add a form of handler for this or look into a way to fix this.
The text was updated successfully, but these errors were encountered:
its a bandaid function to handle the number/string mismatch, the issue still exists in the lib level, however from what I can tell, CoreScripts shouldnt encounter it by default, its more likely to be issues on the custom scripter level
from what I could tell, it should be possible to teach dkjson to handle it, However its also slower and the most you could do is invert the issue where numbers you expect are a string
If a key only consists of numbers, such as if a players name is "12345", when loading the json into lua, it will be parsed as a number, instead of a string, this can cause issues due to scripts using below, expecting it to be the string they saved, not being a number.
This will break when you restart the server, as the libs will parse this as a number and not a string.
we may want to add a form of handler for this or look into a way to fix this.
The text was updated successfully, but these errors were encountered: