Importing Terrain into omwgame

Involved development of the OpenMW construction set.
User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Importing Terrain into omwgame

Post by psi29a » 27 Jul 2015, 23:31

I've hit a bit blocker in the openmw-template project, namely terrain. There is currently no way to do that in the editor as it is.

However, with TESAnnwyn I can create an esp file with terrain data. I can use the launcher to use the openmw-template.omwgame as the content and add the esp as a mod, I get my terrain and walk around on the beach.

If I use openmw-cs, I select openmw-template.omwgame and check my openmw.esp file and I get view the cells which is quite nice. I then modify something, literally anything, a script for example, then save... and I no longer see openmw-template.omwgame in my list content files if I go to run openmw-cs again. I can longer open it with openmw-cs nor do I see it anymore in the openmw-launcher.

Any idea as to what is going on?

Here are the files: https://dl.dropboxusercontent.com/u/396 ... me.tar.bz2
original and the corrupted file.

A followup question, can we have the ability to "import" terrain from an esm/esp file? I would love to overwrite any existing cells (interior and exterior) in an omwgame file with the contents of another esm/esp/omwaddon file. This would work best until we had some real terrain tools in openmw-cs. Good idea?

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a » 28 Jul 2015, 06:45

Some more info,

I was hoping that perhaps the data was somehow merged, at least for cell 0,0.

I created 0,0 and room in the omwgame, saved, then opened with my esp file which looked like it "modified" the 0,0 entry.

The file is here:
http://www.mindwerks.net/wp-content/upl ... esm.tar.gz

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

Re: Importing Terrain into omwgame

Post by Zini » 28 Jul 2015, 07:40

I replied to you via email, but maybe we should continue the discussion here instead.
A followup question, can we have the ability to "import" terrain from an esm/esp file? I would love to overwrite any existing cells (interior and exterior) in an omwgame file with the contents of another esm/esp/omwaddon file. This would work best until we had some real terrain tools in openmw-cs. Good idea?
That would be the merge tool, which is still on my todo list (essential for projects like Redemption). Maybe I should put the local variable work I am currently doing on hold and start with the merge tool instead. That will take a bit though. Its not a trivial task. Plenty of special cases to consider, unfortunately.

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

Re: Importing Terrain into omwgame

Post by Zini » 28 Jul 2015, 07:53

A possible intermediate solution would be to try TESAME (if you can get it running). I think that would require temporarily rename the omwgame file to an esm file and I am not actually sure if TESAME will eat OpenMW-CS files. But might be worth a try, if you don't want to wait for the merge feature.

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a » 28 Jul 2015, 09:23

Is the tool Linux based? Would another option be to convert the esm/esp to an omwaddon?

It isn't urgent, but it does block having anything to do with terrain, at getting it into the omwgame.

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

Re: Importing Terrain into omwgame

Post by Zini » 28 Jul 2015, 15:50

Windows only, unfortunately. No idea if it runs under WINE.

Another option would be to do all your remaining work in addons for now and then merge them into the game file, once the merge tool is ready.

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a » 28 Jul 2015, 15:57

Zini wrote:Windows only, unfortunately. No idea if it runs under WINE.

Another option would be to do all your remaining work in addons for now and then merge them into the game file, once the merge tool is ready.
I'm taking this route now, so we should be OK for now. Give it a try:
https://github.com/OpenMW/openmw-templa ... late-0.2.0
./openmw --start="Town, Centre" --skip-menu

Is this a set of features? Are they being tracked yet?

1) Allow merge of esm/esp/omwaddon into omwgame.
2) Import of terrain into omwgame (I recommend libgdal[1] since it supports almost every known heightmap format known to man: 226 formats).
3) Allow working with terrain in OpenMW.


[1] http://www.gdal.org/

User avatar
psi29a
Posts: 3452
Joined: 29 Sep 2011, 10:13
Github profile: https://github.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a » 28 Jul 2015, 23:42

There is one bug though right Zini & cc9cii?

That if you select your omwgame file from the dropdown list, then check the box next to your omwaddon (or esp) then hit save... then the next time you open up OpenMW-CS, your omwgame is no longer in the dropdown list.

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii » 29 Jul 2015, 04:10

Both OpenMW.esm and island.omwaddon are missing LAND records (I also checked with a binary editor and counted them). Do you have the original file that has the missing records?

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii » 29 Jul 2015, 05:20

Try this one (note: can't add cell 9,0 for some reason)
Attachments
openmw-template.7z
(637.5 KiB) Downloaded 113 times

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests