Marlamin / wow.tools.local

Locally runnable version of the wow.tools website and some of its features
MIT License
97 stars 26 forks source link

Config.json is generating an error. #2

Closed mcfardo907 closed 1 year ago

mcfardo907 commented 1 year ago

I changed the file location for my wow installation in "config.json," after I got An error.

" config.json reading, make sure it is valid. Application will be unable to load correctly. Error message: Failed to load configuration from file 'D:\Documents\Release-win-x64\config.json'."

The program will run because of it.

Marlamin commented 1 year ago

Make sure slashes are pointing the right way: /

mcfardo907 commented 1 year ago

The slashed are going the right way. Does the folder for this program need to be in a specific directory? Here's the contents of config.json. { "config": { "definitionDir": "WoWDBDefs/definitions", "dbcFolder": "dbcs", "listfileURL": "https://github.com/wowdev/wow-listfile/raw/master/community-listfile.csv", "tactKeyURL": "https://github.com/wowdev/TACTKeys/raw/master/WoW.txt", "wowFolder": "C:/program files (x86)/battle.net/wow ", "wowProduct": "wow", "region": "eu", "locale": "enUS" } }

Marlamin commented 1 year ago

There's a space after the folder before the " so make sure that isn't there and if it's pointing to the folder that has a Data folder, a.build.info file and one or more subfolders like _retail_ or _ptr_ it should be fine.

mcfardo907 commented 1 year ago

I got past that hurdle, now I am getting. Exception initializing CASC: Access to the path 'D:\Documents\Release-win-x64 001\TactKey.csv' is denied.

Marlamin commented 1 year ago

Not sure what to do about that, maybe something is blocking write access to that folder/file, try adding the folder as an exclusion to whatever virus scanner you're using.

mcfardo907 commented 1 year ago

Thanks for your help. I am sure that this will get ironed out.

Marlamin commented 1 year ago

Let me know if you manage to get it working or not, worst case scenario I can add some debug statements or make it skip that part if it fails (although that will cause other issues down the line).

mcfardo907 commented 1 year ago

I would like to figure out, why its denying access.

Marlamin commented 1 year ago

Try this

https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26.

mcfardo907 commented 1 year ago

I changed the permission settings. Fixed the previous issue. I am getting this one now.

Unhandled exception. System.UnauthorizedAccessException: Access to the path 'D:\Documents\Release-win-x64 001\manifests\10.0.5.48526.txt' is denied. I unclicked "read only," in the security settings, but checked it again, and it . I move the folder to another drive, will update and see if that is a fix or workaround.

mcfardo907 commented 1 year ago

Transferring to the other drive fixed those errors, but now it's hanging after info: Microsoft.Hosting.Lifetime[0] Content root path: C:\Release-win-x64 001 I let it run to see if it's something that takes a while. Got up this morning, and it's still hanging there.

Marlamin commented 1 year ago

It might just be done, see if there is a localhost URL mentioned that you can browse to in your browser (as readme says).

mcfardo907 commented 1 year ago

It might just be done, see if there is a localhost URL mentioned that you can browse to in your browser (as readme says).

I can browse it. Here's a screenshot. 8cd283710d632771991d783e26591cd9 I'll go back to the instructions and see what I have to do next. Thank you again for helping me out.

Marlamin commented 1 year ago

Cool!