Write an Morrowind.ini to openmw.cfg converter

Everything about development and the OpenMW source code.
XseuguhX
Posts: 8
Joined: 25 Dec 2011, 17:28

Re: Write an Morrowind.ini to openmw.cfg converter

Post by XseuguhX » 27 Dec 2011, 10:53

Understood. Let's do that way !

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Write an Morrowind.ini to openmw.cfg converter

Post by Zini » 08 Jan 2012, 16:35

I see your task has been flagged as in progress (with progress at 40%). But I don't see any commits from you on github.

XseuguhX
Posts: 8
Joined: 25 Dec 2011, 17:28

Re: Write an Morrowind.ini to openmw.cfg converter

Post by XseuguhX » 17 Jan 2012, 21:22

Sorry for answer so late. I didn't see your reply.
In fact, I fight with github and with my computer to set me up a development environment. But I promise that when it will work, I will upload changes. For now, I continue my work, as you can see on the task's page.

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Write an Morrowind.ini to openmw.cfg converter

Post by Zini » 17 Jan 2012, 21:49

It would be better to sort out your problems first. Being able to use github and having a working development environment are kinda prerequisites for developing OpenMW. And github is definitely not something you should have to fight with. But no hurry! We moved your task to 0.13.0, which means you have a lot more time.

swick
Posts: 96
Joined: 06 Aug 2011, 13:00

Re: Write an Morrowind.ini to openmw.cfg converter

Post by swick » 30 Mar 2012, 16:22

Since there is no progress on the task I would like to take it. Did anything change? Is there something new?

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Write an Morrowind.ini to openmw.cfg converter

Post by Zini » 30 Mar 2012, 16:38

Don't think so, but I also don't feel like reading through the whole thread again.

To sum it up again:

- command line tool (use boost program options); new applications in the apps/ directory
- read in Morrowind.ini file (get location from command line argument)
- read in openmw.cfg file (get location from command line argument)
- replace those settings in openmw.cfg file that are available in Morrowind.ini
- add a command line option to exclude master/plugin settings (or exclude them by default and add an option to include them)
- write out resulting openmw.cfg file
- Morrowind.ini settings that are not available in openmw.cfg should be ignored for now, but it should be made easy to add them later
- some Morrowind.ini settings will never be added to openmw.cfg
- the setting names in Morrowing.ini and openmw.cfg don't necessarily match

I assigned the task to you. I also might have some interesting follow up tasks for you, that might suite your skill level. But we can talk about that during 0.15.0.

User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Write an Morrowind.ini to openmw.cfg converter

Post by scrawl » 30 Mar 2012, 16:43

While you're at it, you could read the weather settings in Morrowind.ini instead of hardcoding them in WeatherManager

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Write an Morrowind.ini to openmw.cfg converter

Post by Zini » 30 Mar 2012, 16:45

That is one of the follow up tasks I mentioned. There are a few twists to consider though. We will get to that when the basic importer is working.

swick
Posts: 96
Joined: 06 Aug 2011, 13:00

Re: Write an Morrowind.ini to openmw.cfg converter

Post by swick » 30 Mar 2012, 17:38

is there some documentation for the ini and the cfg file syntax?

User avatar
Zini
Posts: 5536
Joined: 06 Aug 2011, 15:16

Re: Write an Morrowind.ini to openmw.cfg converter

Post by Zini » 30 Mar 2012, 17:49

Morrowind.ini: just your standard Windows ini file. Google should bring something up.

OpenMW.cfg: One setting per line.

Key=Value

# indicates a comment

Post Reply