Importing Terrain into omwgame

Involved development of the OpenMW construction set.
User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii » 30 Jul 2015, 10:24

Steps:

1. Run OpenCS
2. Click "Create A New Game"
3. Type a name e.g. newgame
4. File->Save newgame.omwgame
5. Exit

6. Run OpenCS
7. Click "Edit A Content File"
8. Click "Select a game file..." drop down
9. Choose newgame.omwgame
10. Check OpenMW.esp
11. Make some modification
12. File->Save newgame.omwgame (NOTE: this should have been OpenMW.omwaddon)

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

Re: Importing Terrain into omwgame

Post by psi29a » 30 Jul 2015, 17:14

Can someone verify that this is a valid esp file and not an esm?

https://dl.dropboxusercontent.com/u/396 ... annwyn.esp

Does it also have all the correct land records?

The reason I ask is that I have a process worked out and the results look pretty good in OpenMW.

1) Create heightmap: 1024x1024
2) Use TESAnnwyn (works on linux, osx and win) to create an esp from the heightmap.

From here, I can open it up in OpenMW-CS to convert it to an omwaddon file. I assume the merge tool will merge esm/esp/omwgame/omwaddon into each other?

Example:

Code: Select all

./tesannwyn -T 3 -x -4 -y -4 -t 1 -h -512  ~/testHM.bmp 
Usage: ./tesannwyn [options] filename

filename: The image filename you want to import or ESP/ESM to export.

-T (3 or 4): Import/Export a TES3 or TES4 texture placement map a BMP called tesannwyn-vtex3.bmp.
-x (num): The Bottom-Left cell X co-ordinate will start here (default 0).
-y (num): The Bottom-Left cell Y co-ordinate will start here (default 0).
-h (num): Offset height of land by this number of game units.
-s (num): Scale land height by this number (floating point allowed).
-l (num,num): Limit all imported height to within these lower,upper limits (e.g. -2048,32768).
-o (num-num): Do not import land whose land is all between these heights (e.g. -2048 or -4096-1024).
-g: Draw square cell sized grids on all image exports.
-t (num/FormID): Texture the entire landscape in a texture number (TES3) or texture FormID (TES4).

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

Re: Importing Terrain into omwgame

Post by cc9cii » 31 Jul 2015, 01:19

An esp is just an esm with a different suffix...

Anyway, that file has 256 land records and 256 cells. Just a flat land, though, is that what it is meant to be?

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

Re: Importing Terrain into omwgame

Post by Zini » 31 Jul 2015, 07:51

cc9cii wrote:Steps:

1. Run OpenCS
2. Click "Create A New Game"
3. Type a name e.g. newgame
4. File->Save newgame.omwgame
5. Exit

6. Run OpenCS
7. Click "Edit A Content File"
8. Click "Select a game file..." drop down
9. Choose newgame.omwgame
10. Check OpenMW.esp
11. Make some modification
12. File->Save newgame.omwgame (NOTE: this should have been OpenMW.omwaddon)
Can not replicate that. Failing at step #10. The OpenMW.esp file is not listed for me.

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

Re: Importing Terrain into omwgame

Post by psi29a » 31 Jul 2015, 08:31

cc9cii wrote:An esp is just an esm with a different suffix...

Anyway, that file has 256 land records and 256 cells. Just a flat land, though, is that what it is meant to be?
Weird, when loaded into OpenMW here I get 3 large islands, the rest is water. Granted, there aren't any large hills/mountains.

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

Re: Importing Terrain into omwgame

Post by cc9cii » 31 Jul 2015, 11:02

Zini wrote: Can not replicate that. Failing at step #10. The OpenMW.esp file is not listed for me.
Just to check - are you using http://www.mindwerks.net/wp-content/upl ... esm.tar.gz renamed as OpenMW.esp? If you've not renamed it then it won't show up.

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

Re: Importing Terrain into omwgame

Post by cc9cii » 31 Jul 2015, 11:04

psi29a wrote: Weird, when loaded into OpenMW here I get 3 large islands, the rest is water. Granted, there aren't any large hills/mountains.
How are you loading that? (you can't just load the esp, so you must be loading it with something else)

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

Re: Importing Terrain into omwgame

Post by psi29a » 31 Jul 2015, 12:57

content=openmw-template.omwgame
content=tesannwyn.esp
content=Skins.omwaddon

In that order.

tesannwyn.esp is a newly created esp file from tesannwyn tool from the original bmp file.
screenshot016.png

The OpenMW.esm (renamed later to island.esp so it would show up in the list) file was created by Greendogo a long time ago, it is based off the original bmp file that he modified to have a hill. He also did other things using the original CS tool.

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

Re: Importing Terrain into omwgame

Post by Zini » 01 Aug 2015, 09:42

Okay, the renaming did it. Sorry. Must have missed that.

Well, crap. ContentSelector is broken. It returns the files in the wrong order.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests