Open botanicvelious opened 11 months ago
1, 2 and 3 are expected. OE as of now is working with single root directory for everything, same as vanilla did. There were multiple talks in the past to use platform-specific directories for our stuff instead. Like user's documents directory on windows, ~/.openenroth on linux and so on, but no concrete decisions were made.
Currently OE determines root path like this:
I tried to initiate talk couple of times in the past about removing registry path step entirely as it is more harmful than useful in my opinion but it also lead nowhere.
4 Is also expected as write access permissions to program files directories was available only on XP and prior by default. Vanilla will fail just as well, maybe not crash but you won't be able to save. Run exe with administrator permissions or fix your permissions for this folder. Or don't install vanilla to program files. That's bad practice anyway. 5 That's because when you run GameTest from MSVC's debug routines you are not using cmake, but running exe directly. So you need to manually specify arguments and env variables in launch.vs.json, same as for normal game executable. Something like this should do a trick:
"configurations": [
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "OpenEnroth_GameTest.exe (test\\Bin\\GameTest\\Debug\\OpenEnroth_GameTest.exe)",
"name": "OpenEnroth_GameTest.exe (test\\Bin\\GameTest\\Debug\\OpenEnroth_GameTest.exe)",
"env": {
"OPENENROTH_MM7_PATH": "d:\\Games\\mm7\\"
},
"args": [
"--test-path ../test_data/data",
"--renderer null"
]
}
If you want to run through cmake you should manually go to Class View, right click on GameTest or GameTest_NullRenderer and select desired variant to run in Debug option.
oh I totally understand vanilla did it, vanilla came out before any of these possible issues existed and imo making things easier on users is a good thing.
for #5 id say have a fallback location it reads from
Latest nightly build on windows 10, using original cd's not gog version
Running the x86 version requires copying the "shaders" folder to "C:\Program Files (x86)\3DO\Might and Magic VII\" should just auto detect the shaders folder in the local folder
Running the x64 version requires copying the data to the "current directory" and does not use the install path https://i.imgur.com/TmdNZB1.png
should probably store the openenroth.ini in the local directory if it cant write to data directory as C:\Program Files (x86)\ is write protected. Currently it just says
Couldn't save config file 'C:\Program Files (x86)\3DO\Might and Magic VII\/openenroth.ini'
would be better if it cant save it saves the config to the current directory as a fallbackwhen starting a newgame with the data in programfiles you get a crash
Running GameTest inside MSVC throws an error however it works when using ninja