It first looks for the Dota 2 directory followed by the addon directory. If it can't find the addon directory, it creates one. Also added some comments and improved the style consistency. I removed the need for a ranonce variable. Now it just checks if the dota 2 user config setting has been set. I think the welcome information and label can go on the home screen or on a splashscreen while loading. Also consider making the dota 2 directory setting part of the installer setup for WorldSmith. If there is anything you don't like, let me know why.
It first looks for the Dota 2 directory followed by the addon directory. If it can't find the addon directory, it creates one. Also added some comments and improved the style consistency. I removed the need for a ranonce variable. Now it just checks if the dota 2 user config setting has been set. I think the welcome information and label can go on the home screen or on a splashscreen while loading. Also consider making the dota 2 directory setting part of the installer setup for WorldSmith. If there is anything you don't like, let me know why.