Nope. Bypassing on presence of an ini file wouldn't work either, because the wizard also runs the ini importer. The whole situations is getting a bit confusing.
How about this: On launcher startup check if an ini import has happened before and if the answer is yes, bypass running the wizard on startup.
OpenMW Example Suite - Active Development Notice
Moderator: Example suite forum moderator
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: OpenMW Example Suite - Active Development Notice
I was just wondering where I can put a omwgame and its content if I was to package it up for say Debian. It can't be put into a user's directory. Where else can I put it that it will be found by OpenMW, CS and Launcher.Zini wrote:Is there any specific significance to the content directory? I am not opposed to add additional locations, but we already have default locations, both for global data and for per user data.
Another issue is that even if I have a morrowind.ini file and comment out everything having to to do with Morrowind (esm, including expansions) and fallbacks, if I open the launcher it will complain that Morrrowind wasn't found and ask to install it. This happens even if I have it setup to use the OpenMW-Template. OpenMW and the CS runs without a problem with the template, but the launcher complains and I have cancel it.
Can you duplicate this behaviour? It is kinda annoying as I don't want anything to do with Bethesda.
Speaking of not having anything to do with Bethesda, that also mean not referencing their trademarks... such as morrowind.ini.
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: OpenMW Example Suite - Active Development Notice
Attaching a screenshot showing an error that shouldn't happen.
Re: OpenMW Example Suite - Active Development Notice
From the global openmw.cfg file:I was just wondering where I can put a omwgame and its content if I was to package it up for say Debian. It can't be put into a user's directory. Where else can I put it that it will be found by OpenMW, CS and Launcher.
For Linux {MORROWIND_DATA_FILES is defined as ${DATADIR}/data, with DATADIR defined as ${GLOBAL_DATA_PATH}/openmw. GLOBAL_DATA_PATH is defined as ${DATAROOTDIR}/games/. And finally DATAROOTDIR is defined as ${CMAKE_INSTALL_PREFIX}/share. I hope we are sufficiently confused now.data=${MORROWIND_DATA_FILES}
For the error you are getting, that is apparently caused by this piece of code:
Code: Select all
// Check if the paths actually contain data files
foreach (const QString path, mGameSettings.getDataDirs()) {
QDir dir(path);
QStringList filters;
filters << "*.esp" << "*.esm" << "*.omwgame" << "*.omwaddon";
if (!dir.entryList(filters).isEmpty())
dataDirs.append(path);
}
if (dataDirs.isEmpty())
{
QMessageBox msgBox;
msgBox.setWindowTitle(tr("Error detecting Morrowind installation"));
msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Cancel);
msgBox.setText(tr("<br><b>Could not find the Data Files location</b><br><br> \
The directory containing the data files was not found."))
Regarding Morrowind.ini, we need the values from there. Of course we could try to set up suitable non-Bethesda default values in the global openmw.cfg file. I considered this option once. But I don't see an urgent need for it, because standalone content files created with newer version of OpenMW-CS (probably something 1.4 or 1.5-ish, very vague guess) won't require ini files anyway.
However if you intend to push for Bethesda-free content before we reach that point, I wouldn't object to such an enhancement.
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: OpenMW Example Suite - Active Development Notice
Hopefully you can reproduce the problem with the attached files.
<-- my configuration files, located in ~/.config/openmw
<-- my data files, located in ~/.local/share/openmw
In theory, everything should be there. openmw.cfg files things commented out that are Bethesda's and I only use omwgame and an esp file exported from tesanwynn.
openmw and openmw-cs will open just fine and do their thing, but openmw-launcher will complain with the error shown in the popup above.
As for shipping data in deb files for example, in the following directory:
/usr/share/games/openmw/
so my omwgame should show up in the launcher and cs if it is located here:
/usr/share/games/openmw/data/openmw-template.omwgame
?
If so, then great! I'll test it later.
As for de-Bethesda-izing files... I just don't want to have deal with installing Morrowind because it can't find morrowind.ini when all I want to do is play the template. I think this is a pretty important step.
<-- my configuration files, located in ~/.config/openmw
<-- my data files, located in ~/.local/share/openmw
In theory, everything should be there. openmw.cfg files things commented out that are Bethesda's and I only use omwgame and an esp file exported from tesanwynn.
openmw and openmw-cs will open just fine and do their thing, but openmw-launcher will complain with the error shown in the popup above.
As for shipping data in deb files for example, in the following directory:
/usr/share/games/openmw/
so my omwgame should show up in the launcher and cs if it is located here:
/usr/share/games/openmw/data/openmw-template.omwgame
?
If so, then great! I'll test it later.
As for de-Bethesda-izing files... I just don't want to have deal with installing Morrowind because it can't find morrowind.ini when all I want to do is play the template. I think this is a pretty important step.
Re: OpenMW Example Suite - Active Development Notice
Pretty busy with stuff at the moment, but I will try to test with your files later this week.
Yes, that should work.As for shipping data in deb files for example, in the following directory:
/usr/share/games/openmw/
so my omwgame should show up in the launcher and cs if it is located here:
/usr/share/games/openmw/data/openmw-template.omwgame
?
If so, then great! I'll test it later.
Yeah, the importance isn't really in question here. Its more a question about urgency.As for de-Bethesda-izing files... I just don't want to have deal with installing Morrowind because it can't find morrowind.ini when all I want to do is play the template. I think this is a pretty important step.
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: OpenMW Example Suite - Active Development Notice
OK... I tested further by putting everything necessary into
/usr/share/games/openmw/
Meaning that data/openmw-template.omwgame is in /usr/share/games/openmw/data/openmw-template.omwgame
and textures/tx_menubook_cancel_idles.dds is in /usr/share/games/openmw/data/textures/tx_menubook_cancel_idles.dds
and... openmw, openmw-cs and openmw-launcher see the files without a problem except for when something is missing. Then I get this:
I know this is a permission problem, already fixed it... but what is that (marker_error.nif)?
For the time being, can I just put an empty NIF there? What is that and what is it supposed to do? Should we not ship this by default with OpenMW?
/usr/share/games/openmw/
Meaning that data/openmw-template.omwgame is in /usr/share/games/openmw/data/openmw-template.omwgame
and textures/tx_menubook_cancel_idles.dds is in /usr/share/games/openmw/data/textures/tx_menubook_cancel_idles.dds
and... openmw, openmw-cs and openmw-launcher see the files without a problem except for when something is missing. Then I get this:
Code: Select all
Failed to load 'meshes/sky_clouds_01.nif': Failed to open '/usr/share/games/openmw/data/meshes/sky_clouds_01.nif' for reading: Permission denied, using marker_error.nif instead
Failed to start new game: Resource 'meshes/marker_error.nif' not found
For the time being, can I just put an empty NIF there? What is that and what is it supposed to do? Should we not ship this by default with OpenMW?
Re: OpenMW Example Suite - Active Development Notice
I believe marker_error.nif is a special mesh that is used in place of meshes that failed to load properly. It should be part of the default Morrowind mesh resources. A standalone game like the Example Suite should provide its own version of this mesh, preferable something visible.
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: OpenMW Example Suite - Active Development Notice
a 3d question mark ? in pink?
Can it be an OSG static file instead?
Can it be an OSG static file instead?
Re: OpenMW Example Suite - Active Development Notice
I guess so. I haven't looked at the OSG format code yet. Either try it out or ask scrawl.