-
Notifications
You must be signed in to change notification settings - Fork 47
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
Optimize weapon and vehicle kustom #13
Conversation
I've got some irregularities here when comparing with the old specifier:
There are also a lot of failed or wrong matches with your vehicle kustom specifer. However, I can't get them all listed, as there seem to be multiple "array index out of bound" errors (one of them being caused by the |
Some weapons was renamed (dildo's, mac, missle, etc). I use values from the wiki this names is more pretty. |
I've hit another invalid array access at index
You should also expect spaces in the string passed to the kustom specifier functions, as this
As of now the kustom specifier will only take everything until the delimiter character, but this behavior will change to be more in line with the string specifier (see issue #7). |
As I say before: some of names was changed to right values from the wiki. |
I've completely rewritten both of these now using Levenshtein distance comparisons. But if you have more suggestions on how to improve them please do suggest them. |
Optimize weapon and vehicle kustom search algorithm to find the item by part of their name.
This not going through all loop with checking every string. This checks only strings witch starts with the same symbol.