Page 1 of 1

Default settings file not found when launching from debugger

Posted: 25 Apr 2017, 09:11
by PlutonicOverkill
I managed to get OpenMW compiled using Visual Studio 2015, but when I try and launch it or OpenMW-CS from the debugger, they exit with the error: "No default settings file found! Make sure the file "openmw-cs.cfg" was properly installed." However, when launching them from outside of Visual Studio, this error does not occur, although OpenMW triggers a debug assertion in ESM::Script::loadSCVR() due to mStringTableSize being 0, where I am able to resume from the debugger. Does anyone know what could be causing this issue?

Re: Default settings file not found when launching from debu

Posted: 25 Apr 2017, 16:18
by AnyOldName3
I'm assuming you've used the script to set up your development environment instead of doing everything by hand. If so, then I don't think it sets up absolutely everything correctly. You might have to tweak the setting in the attached screenshot:
Untitled.png

Re: Default settings file not found when launching from debu

Posted: 26 Apr 2017, 04:25
by PlutonicOverkill
Thanks, I found that changing it to $(OutDir) worked. Half the time when I change a project property in VS I wonder why it doesn't change anything, then find I set it in the wrong configuration. :roll:

Re: Default settings file not found when launching from debu

Posted: 02 May 2017, 09:28
by PlutonicOverkill
I'm having another build problem. Debug builds work fine, apart from being very slow, but release builds don't run due to osg.dll not being found. This is probably due to an incorrect directory configuration again, but I'm not sure which it might be.

Re: Default settings file not found when launching from debu

Posted: 02 May 2017, 14:53
by AnyOldName3
When you changed the setting last time, did you do it with 'All configurations' selected, or just 'Debug'? If the debug build can find osgd.dll, the release build should be able to find osg.dll

Re: Default settings file not found when launching from debu

Posted: 03 May 2017, 09:07
by PlutonicOverkill
Found the solution. The install script only copied over the dlls for debug builds, so the release folder was missing them. I fixed the problem by manually copying over all the dlls and cfgs and now everything works. Thanks for your help anyway!

Re: Default settings file not found when launching from debu

Posted: 03 May 2017, 20:57
by AnyOldName3
Ah, there's a reason for that. You're supposed to run the script a second time in a different mode, as it only creates one configuration at once, and Debug is the default.

Re: Default settings file not found when launching from debu

Posted: 04 May 2017, 06:02
by PlutonicOverkill
Oops, didn't realise that. Well, at least everything works now.

Re: Default settings file not found when launching from debu

Posted: 05 May 2017, 07:27
by PlutonicOverkill
Sorry to be a nuisance, but it looks like the build script's currently broken, at least in Release mode. Both http://ffmpeg.zeranoe.com/builds/win64/ ... n64-dev.7z and http://ffmpeg.zeranoe.com/builds/win64/ ... -shared.7z just lead to 404s. Changing "3.0.1" to "master" seems to fix it.

Re: Default settings file not found when launching from debu

Posted: 05 May 2017, 13:27
by AnyOldName3
I assume you mean 'latest' when you say 'master'? Either way, I'm guessing that the reason it doesn't link to that already is that Ace (the guy who maintains the script) decided it was safer to use a release than a random git revision. It's probably worth making a pull request changing it to 3.2.4, as there's no way to argue that it isn't an improvement. It might also be worth starting a discussion with someone other than me as to whether it's better to link to the 'latest' version.