Importing Terrain into omwgame

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

Re: Importing Terrain into omwgame

Post by cc9cii »

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: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a »

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: 523
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii »

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: 5538
Joined: 06 Aug 2011, 15:16

Re: Importing Terrain into omwgame

Post by Zini »

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: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a »

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: 523
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii »

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: 523
Joined: 28 Mar 2013, 04:01

Re: Importing Terrain into omwgame

Post by cc9cii »

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: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: Importing Terrain into omwgame

Post by psi29a »

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: 5538
Joined: 06 Aug 2011, 15:16

Re: Importing Terrain into omwgame

Post by Zini »

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