10 posts / 0 new
Last post
ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
[Tutorial] Converting Tamriel Rebuilt v20.02 for Morroblivion v065

 

Description:

This tutorial will take you step-by-step through the process of using ModExporter to to generate a version of Tamriel Rebuilt that is compatible with Morroblivion v065.  ModExporter is a modified version of OpenMW-CS which allows users to load Morrowind ESP-based mods and then export them into a format that is compatible with Morroblivion. It will search for modded mesh/texture asset files and export them to a Morroblivion compatible format as well.  Any original Morrowind assets from the retail game will not be exported to Morroblivion.  Instead, most of these dependencies will be redirected to an alternative Oblivion or Morroblivion-made asset.

ModExporter does not yet do a 100% perfect conversion of Tamriel Rebuilt. However, many simple fetch quests will work out-of-the-box. More complex quests will need custom script modifications to work in Morroblivion.
 

Requirements:

 

Installation and Preparation (10-20 minutes):

1. Install Morrowind GOTY, Tamriel Data and Tamriel Rebuilt.  TIP: don't forget to register the BSAs by adding the lines "Archive 2=PT_Data.bsa" and "Archive 3=TR_Data.bsa" to the [Archives] section of the Morrowind.ini file.

2. Install OpenMW 0.45 and import the Morrowind Settings so that OpenMW can use the Tamriel Rebuilt mod.  TIP:  You MUST use version 0.45 instead of a later version.  Install OpenMW to "C:\OpenMW 0.45" instead of the default "Program Files" folder.  You can then use this version separately from any other version of OpenMW.  If the Import Morrowind Settings wizard does not run, then you should click the "Run Installation Wizard" button on the Settings tab of the OpenMW Launcher.  Select your master file, which is the Morrowind.esm found in the "Morrowind\Data Files\" folder.

3. Install Oblivion + Morroblivion v065.  TIP: Oblivion should be installed outside of the "Program Files" folder.  If you are using the Steam version of Oblivion, then you may have to move the entire Steam installation outside of "Program Files".  Make sure you install OBSE properly since it is not a regular Oblivion mod.  If you have the Steam version of Oblivion, then you must launch from the Steam Client's "Play" button.

4. Install GIMP files.  Install to "C:\GIMP28" instead of the default "Program Files" folder.  Install the GIMP plugin EXE files to "C:\GIMP28\lib\gimp\2.0\plug-ins"; this includes "normalmap.exe" and "dds.exe".  The Normalmap plugin also contains 3 DLLs: "glew32.dll", "libgdkglext-win32-1.0-0.dll", and "libgtkglext-win32-1.0-0.dll".  All 3 DLLs should be moved to the "C:\GIMP28\bin" folder.  Make sure you can start GIMP and open a DDS file.

5. Install Blender/PyFFI files.  FIRST: Install Python 2.6.6 (32-bit) before anything else.  Let it install in "C:\Python26".  Then, install Blender 2.49b into "C:\Blender249b".  TIP: Make sure you select "Use the installation directory (ie location chosen to install blender.exe)" when asked where you wish to install Blender's user data files.  If you chose something else, then you will have to uninstall Blender and start over.  Install PyFII 2.1.11, the installer will automatically detect Python 2.6 and Blender folders. The installation folder for the PyFFI files is not important but you could install it into "C:\PyFFI2111" just to be consistent with previous steps.  Finally, install the Blender NIF Scripts, again, the install will automatically detect the blender folder.

6. Install Modexporter 2020-June-29.  Extract the contents of the Modexporter 7zip archive into the OpenMW root folder.

7. Configure Installation and Destination folders.  Run the "start modexporter.bat" file.  The first time it is run, you will see the message "Creating "settings.bat" file...".  When you see the message "Press any key to continue . . .", close the window by pressing the "X" in the upper right corner.  Now find the "settings.bat" file, and right-click and select Edit.  Modify PYTHONEXE line to point to where you installed Python 2.6.6 ("C:\Python26\python.exe").  Modify GIMPEXE line to where you installed GIMP 2.8.22 ("C:\GIMP28\bin\gimp-console-2.8.exe").  Modify the BLENDEREXE line to where you installed Blender 2.49b ("C:\Blender249b\blender.exe").  If you have at least 10 GB of disk space on your C: drive, then you can leave the MODEXPORTER_OUTPUTROOT line alone and it will place the Resources generated by modexporter in "C:\Oblivion.output".  If you would like to use another hard drive, then you can change the drive letter from "C:" to something else like "D:".  The "Oblivion.output" will be automatically added on and is hardcoded into the scripts.  You can not change it.

Now open the Morroblivion.ini file in the "C:\OpenMW 0.45" folder.  Change the Morrowind line to point to your installation folder for Morrowind.  Make sure you put the "\" at the end of the folder name.  The Oblivion line is actually the destination folder for output files and not the actual game folder.  This needs to exactly be the drive letter you chose in the settings.bat file plus the string "\Oblivion.output\", example: "C:\Oblivion.output\" or "D:\Oblivion.output\".  If you try to name it something else then you will break the Mesh processing stage.

Now create the destination folder that you specified in the above step: "C:\Oblivion.output\".  Within this folder, create another folder named "Data".  If these folders already exist, then make sure they are completely empty.

You are now ready to generate the game files to play Tamriel Rebuilt in Morroblivion v065.

 

Building the ESPs (10-20 minutes):

0. Make sure all other programs such as games, web-browsers, etc. are all closed.  ModExporter requires a LOT of resources and will use all available CPU cores. 

1. Run the "start modexporter.bat" file.  It will display the folder paths to wherever you configured the settings.bat file in the step above.  Now press any key and it will start the modexporter executable to generate the Morroblivion-compatible ESP files.

2. When the OpenMW-CS window appears, select "Edit A Content File".  Then select Morrowind.esm from the drop down menu.  Put a checkmark next to the Tamriel_Data.esm file.  Click Open.  Once the "Tamriel_Data.omwaddon" window appears, select File->Export ESM from the menu bar.  Navigate to the "C:\Oblivion.output\Data\" folder or wherever you specified the output destination.  The saved filename should be "Tamriel_Data.esp".  Click Save.  Wait for the export process to complete.  You should see the message "[Tamriel Data] EXPORT COMPLETED!" in the console window.  Do NOT close any windows yet.

3. Select File->Open from the menu bar.  Select "Morrowind.esm" from the drop-down and then put a checkmark next to TR_Mainland.esm.  Click Open.  Wait for the "TR_Mainland.omwaddon" window to load.  TIP: Close the "Tamriel_Data.omwaddon" window while you are waiting for the "TR_Mainland.omwaddon" to load, in order to free up memory and avoid confusion.  Do NOT close the console window, or you will abort the entire modexporter process.)  When the "TR_Mainland.omwaddon" window appears, select "File->Export ESM from its menu bar.  Navigate to "C:\Oblivion.output\Data" and click Save.  Wait for the export process to complete.  You should see the message "[TR_Mainland] EXPORT COMPLETED!".  Do not close any windows yet.

4. Select File->Open from the menu bar.  Select "Morrowind.esm" from the drop-down, and put a checkmark next to "TR_Preview.esp".  Wait for the "TR_Preview.omwaddon" window to load.  Close the "TR_Mainland.omwaddon" window while you are waiting.  When the "TR_Preview.omwaddon" window appears, select Export-ESM from the menu bar.  Navigate to "C:\Oblivion.output\Data" and click Save.  Wait for the message "[TR_Preview] EXPORT COMPLETED!".  Then close the "TR_Preview.omwaddon" window.

 

Building the Mesh and Texture Resources (2-4 hours):

This step has been integrated into the above process of building the ESPs.

1. The modexporter console window will now show the message "Press any key to start Texture conversion and processing."  Press any key to begin the GIMP processing stage.  Multiple threads will be spawned to process all the texture files in parallel.  One thread for each logical CPU core.  There will be many DEBUG messages displayed.  They may be hard to read since each thread is writing messages simultaneously to the console window.  Each texture file will be checked for proper DDS formatting and converted if necessary.  If Normalmaps exist, they will be processed for Oblivion engine compatibility.  If Normalmaps don't exist, then a new normalmap will be generated based on the original texture.  Wait until you see the message "Jobs Completed". 

2. Press any key to start Mesh conversion and processing. This stage will also spawn separate threads for each logical CPU core.  This stage will first try to convert meshes using the original NIFConverter (NIF_conv.exe) tool.  If this fails, then it will fallback to using the slower but more compatible blender-python conversion system.  After the mesh is converted with either NIFConverter or Blender-Python, it will then be automatically post-processed using the PyFFI NIFOptimize scripts.  Wait until you see the message "Jobs Completed".  You can then press any key to close the modexporter console window.

 

Packaging and Installing Mod:

1. Select the 3 ESPs: "Tamriel_Data.esp", "TR_Mainland.esp" and "TR_Preview.esp" and package them into a single 7zip file and name it Tamriel_Rebuilt_ESP.7z.  Install it using a mod manager into Oblivion.

2. Select the "Textures" and "Meshes" folders and package them into a single 7zip file and name it "Tamriel_Rebuilt_Resources.7z".  Install it using a mod manager into Obilvion.

3. Install the Mods-for-ModExporter archive using a mod manager into Oblivion.

4. Using a mod manager, move the "Morrowind_Compatibility_Layer.esp" above all the Tamriel Rebuilt generated ESPs.  Then move "Tamriel_Data.esp" directly below that.  Then move "TR_Mainland.esp" directly below "Tamriel_Data.esp".  Then move "TR_Preview.esp" directly below "TR_Mainland.esp".  Now move TR2002_Facelift.esp below the previous files.  TR_MapMarkers_And_Transport.esp can actually go anywhere, but you might as well move it below Facelift for easier organization.

5. Generate Distant Lands and Distant Objects using TES4LL and TES4LODGen.

6. Install a Tamriel Rebuilt worlmap mod.  Move the worldmap mod to the bottom of the load order.

You are now done.  Go ahead and launch Morroblivion to enjoy the extended worldspace of Tamriel Rebuilt!  More mods to enable missing quests and dialogs will be coming in the future.

 

Edited by: ponyrider0 on 06/30/2020 - 16:40
ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
Frequently Asked Questions:

Frequently Asked Questions:

 

1. Do I need to convert the Tamriel Rebuilt v20.02 Hotfix?

No.  The hotfix currently does not make any functional changes for the final modexporter output.  In the future, I will try to develop some of my own hotfixes specifically for the Morrobilvion-based conversion.

2. What about the TR_Factions and TR_Travels ESP files?

They are currently not supported.  The "TR_MapMarkers_And_Transport.esp" file from Mods-for-Modexporter will provide fast-travel markers that are accessible from the start of the game.

3. How do I improve the framerate in OldEbonheart?

Try reducing the Actor, Item, and Object slider settings in the Video Options menu.  If you use Oblivion Reloaded, these settings will automatically be changed by that mod's framerate manager, so you just need to set a desired target framerate.

 

Meljuk
Meljuk's picture
Offline
Last seen: 3 days 19 hours ago
Joined: 06/30/2020 - 03:31
Karma: 4
Was the ModExporter made

Was the ModExporter made specifically for Tamriel Rebuilt, or can I convert other mods too?

Edit: There are still many missing meshes, even though I did everything according to your tutorial and not all doors are linked to their respective Interiors. Some are, but not all of them.

ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
Meljuk wrote:

Meljuk wrote:

Was the ModExporter made specifically for Tamriel Rebuilt, or can I convert other mods too?

Edit: There are still many missing meshes, even though I did everything according to your tutorial and not all doors are linked to their respective Interiors. Some are, but not all of them.

ModExporter was made specifically with the goal of creating Tamriel Rebuilt for Morroblivion, but it will work for other mods too.  Please read the documentation to use it for other mods.

Regarding missing meshes, some meshes are not correctly converted yet due to NIF file specific complexity or unsupported block types.  Other missing meshes still refer to original Morrowind assets which are not yet 100% redirected to Morroblivion assets.  In older areas of Tamriel Rebuilt such as Firewatch, this should be about 5-10%.  However, in the preview areas of Tamriel Rebuilt such as near Baan Malur, this rate is much higher, especially when 4-5 meshes are trees or boulders which are repeated several thousand times to create a forest or cliff face.

However, another reason for you to have missing meshes is because you may have incorrectly configured modexporter.  If the mesh conversion stage took less than 30 minutes to complete, then this is almost 100% likely to be due to incorrectly installed software.  Please post a few screenshots of the exterior areas of Firewatch and I will let you know if your setup is broken.

Regarding doors, I disabled most processing of doors and other non-static objects in TR_Preview due to complaints of instability.  You can use "#doors" to try to enable door processing in TR_Preview.  Or you could copy all TR_Mainland options to TR_Preview.  This may increase crashes.  In TR_Mainland, there are 1-5% of doors that are unlinked or linked to the wrong location due to a bug which I have not yet tracked down.  If you are finding areas of TR_Mainland where more than this percentage of doors is unlinked then please post the exact door referenceID and baseobjectID and I will try to figure out what is wrong.  Thanks.

I am still in the process of writing and updating several more guides and tutorials for using and configuring ModExporter to customize it for specific mods.  You can check for updates and read through the older,  outdated guides here: https://www.patreon.com/ponyrider0?filters[tag]=modexporter

Meljuk
Meljuk's picture
Offline
Last seen: 3 days 19 hours ago
Joined: 06/30/2020 - 03:31
Karma: 4
Here are some missing Mesh

Here are some missing Mesh Screenshots, I specifically picked Images with missing Meshes, but some areas don't have any meshes missing. How do know if my current area is from Mainland or Preview?

ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
Meljuk wrote:

Meljuk wrote:

Here are some missing Mesh Screenshots, I specifically picked Images with missing Meshes, but some areas don't have any meshes missing.

Thanks, those screenshots are in the exact spots I needed to see.  The city gates are converting successfully, but the missing mesh at the center of town in Firewatch should be a well.  It looks like one of your mesh processing pathways is working but the other is not.  I suspect it is the blender-python pathway that is broken.  The NIFConverter pathway is the first-line converter.  When it fails, the Blender-Pathway should take over.

The missing meshes behind the gates are known issues.  They are construction bars from Vanilla Morrowind, but there is no direct equivalent in Oblivion or Morroblivion.  I have an older TR_Fixes mod which replaces them with a kind of similar mesh, but I have not updated that mod to work with v20.02 yet.

Open Blender and verify that you can import and export a file of type NetImmerse/Gamebryo (.nif).  Make sure you are using the version of blender that was supplied in the tutorial link.  If you have other versions of blender or python installed, then they may be interfering with environment settings and default paths.  Post your "modexporter_blender_error.log" which will be generated in the OpenMW/ModExporter root folder.

Quote:

How do know if my current area is from Mainland or Preview?

The easiest way is to follow the development news at Tamriel Rebuilt website.  Here is a working map that was up to date as of several months ago:

 

Meljuk
Meljuk's picture
Offline
Last seen: 3 days 19 hours ago
Joined: 06/30/2020 - 03:31
Karma: 4
Yes, I can Import and Export

Yes, I can Import and Export .nifs in Blender, and I'm using 2.49b. The error log repeats the line "No handlers could be found for logger "pyffi.toaster"" over and over again with nothing else in it.

ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
Meljuk wrote:

Meljuk wrote:

Yes, I can Import and Export .nifs in Blender, and I'm using 2.49b. The error log repeats the line "No handlers could be found for logger "pyffi.toaster"" over and over again with nothing else in it.

Your blender-python pathway setup is definitely broken.  I don't know if blender is launching successfully or if the built-in python interpreter is not initializing correctly or if the conversion script is failing or all of the above.  Unfortunately, I don't have an easy way to help you debug the issue at the moment.  The best advice I can give you is to delete the "Nif_conv.exe" to force everything to fallback to the blender-pathway.  Then open the "modexporter_blender_main.py" and go to line 49:

CPU_COUNT = multiprocessing.cpu_count()

change this line to:

CPU_COUNT = 1

This will force single-thread processing.  Then try to watch the console messages in real-time during the mesh processing stage to see if you can figure out what error is being output by blender.  EDIT: If you could post a video of that output or several screenshots, that might be helpful.

dasoffertorium
dasoffertorium's picture
Offline
Last seen: 14 hours 54 min ago
Joined: 07/05/2020 - 02:21
Karma: 2
Hi,

Hi,

i have missing mashes too. Sorry i cant upload Pictures at this time.

Here are my Error Log:

https://pastebin.com/uYPpdrce

can anybody send me the missing mashes?

And i cant generate the LOD correctly. I dont have the ground in Mainland and Preview. Tes4all and TesLodgen runs without error. Have i miss something? I use the applications and Versions from your Tutorial.

Thanks for your work.

Bye

ponyrider0
ponyrider0's picture
Member
Offline
Last seen: 19 hours 25 min ago
Joined: 07/22/2016 - 05:01
Karma: 1122
dasoffertorium wrote:

dasoffertorium wrote:

Hi,

i have missing mashes too. Sorry i cant upload Pictures at this time.

Here are my Error Log:

https://pastebin.com/uYPpdrce

can anybody send me the missing mashes?

And i cant generate the LOD correctly. I dont have the ground in Mainland and Preview. Tes4all and TesLodgen runs without error. Have i miss something? I use the applications and Versions from your Tutorial.

Thanks for your work.

Bye

Hello, if your modexporter_blender_error.log is only 9 lines long, then your Blender-Python pathway is aborting too early.  Are you using a CPU with 8 logical cores (4 core/8 threads)?  This would suggest that each thread is immediately aborting after processing the first file in their job queue.  One thread tried to perform a post-processing step but failed.  Your NIF_Conv.exe stage is probably completely failing.  Check the C:\OpenMW 0.45\Morroblivion.ini file and make sure that it is pointing to the proper Morrowind folder with a "\" at the end of the line and a correctly set Oblivion.output destination folder.  Sorry, but no one can give you the converted meshes since we do not have permission to distribute the converted Tamriel Rebuilt / Tamriel Data texture/mesh art assets produced by modexporter.

I do not know what you mean by "I dont have the ground in Mainland and Preview."  Do you mean that all ground meshes are completely missing and you are in the water?  Or do you mean that you are standing on dry land correctly and it is just the Distant Lands / distant terrain that is missing?  Try the nobsa version of the Tamriel Rebuilt DistantLOD mod: https://morroblivion.com/forums/morroblivion-mod-releases/relwip-tamriel-rebuilt-distantlod

If you are running the latest TES4Edit renamed to TES4LODGen, and it is still aborting with an error, then your load-order is probably broken and needs to be sorted with a mod-manager. 

Good luck.