I think that's mostly habit from writing batch files far too much. Honestly it might just be that I hate typing local before each declaration, which is why I prefer doing it as part of a "list". You kinda just get used to reading it to the point it's easy to read, though I'm sure it's painful for other people that try to interpret what your script is doing. So the huge amount of single line variable declarations I'll probably bring down to small lists in a grouped format like what you're saying. For the rest of the script the reason is actually to assist in readability. As counter-intuitive as that sounds. Basically my thinking is that it's easier to read a function with many variable changes when they aren't making your code blocks longer than they would be with many multi-line variable declarations.Tex wrote:What's you're reasoning behind your variable declaration stye?
So I've got my reasons but they probably aren't very convincing lol.
Well I'm open to different methods. That might be faster/easier than reading/reassigning a bunch of tables on each loop.Tex wrote:I'm thinking you could write out matching keys and hashes two matching files
Current lua script and all used filesTex wrote:Also do you have your initial hash grab from lng files > hashList.txt function?
dictList backups are copies of the english dictionary and lng word lists. Lng word list is a lowercase scrape of all words used in LangIds and Values.
lang_dictionary - Backup.txt is a copy of the last collection entries, even though there is a current backup text file because I'm paranoid about experimenting with my script and it blanking both dictList.txt and its backup copy.
edit: lol damn it Tex, you had a completely legitimate point about it being better to write it in a way that's easy to read and understand. I fixed the count bug while adding in a bunch of comments and multi-line variable declarations for readability. I don't even know what I changed to fix it. It just works now .
edit2: updated link again. Exe is in it now. Working version of script with bruteForce function put back in. New entries will appear at the bottom of newDict.txt.