Skip to content

Created a grass generation tutorial #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions mmw-content/guides/groundcover/grass-generation-tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: Grass Generation Tutorial
aliases:
tags:
description:
---

## About

> [!infobox|n-th]
>
> ## Grass Generation Tutorial
>
> > [!caption|center wfull txt-s]
> >
> > %%Insert Image%%
> > %%caption%%
> > %%[(image source)]()%%
>
> ### Tutorial Info
>
> | Type | Name |
> | --- | --- |
> | **Requirements** | [[tes3conv]] [[habasi]] [[mesh-gen]] [[the-lawnmower]] [[tes3cmd]] |
> | **Tutorial Files** | [[grass.ini]] |
>
> %% embed download link to tutorial files if applicable %%

### Goals

By the end of this tutorial, you should be able to:

1. Use [[habasi]] to make a merged esp of your whole load order
2. Use [[mesh-gen|Morrowind Groundcover Generator]] to generate a single grass plugin for all of Vvardenfell, Tamriel Rebuilt, and Project Cyrodiil
3. Use [[tes3conv]], [[the-lawnmower|Lawnmower]], and [[tes3cmd]] to automatically remove all clipping grass and cut down on file size

### Prerequisites

This tutorial expects that you using [[MGE-XE]] and [[mod-organizer-2|Mod Organizer 2]]. The end result can be used with [[OpenMW]], but this article will need to be updated with specific steps for anything that might be different.

* If you have an [[OpenMW]] installation, you MUST rename or move the [[OpenMW]] folder in My Documents during this process, or [[the-lawnmower|Lawnmower]] will ignore the directory it's in and try mow a grass file in the [[OpenMW]] folder that doesn't exist.
* Ensure you have Python 3.5 or later installed. You can find the latest Windows version [here](https://www.python.org/downloads/windows/).
* Download [[habasi]] and place the exe into your data files or override directory.
* Download [[tes3conv]] and place the exe into your data files or override directory.
* Download [[tes3cmd]] and place the exe into your data files or override directory.
* Download [[the-lawnmower|Lawnmower]] and place "lawnmower.py" and all three folders into your data files or override directory.
* Download [[mesh-gen|Morrowind Groundcover Generator]] and extract the folder itself (keep all the files in the folder) to your main Morrowind directory, where the main exe for the game is located. Afterwards, open the program dropdown in [[mod-organizer-2|Mod Organizer 2]] and click "Edit". Find the plus sign in the top left of the new window, then select "add from file". Navigate to the generator's exe and add it.
* Download [Aesthesia Groundcover](https://www.nexusmods.com/morrowind/mods/46377) and [Grass for Tamriel Rebuilt](https://www.nexusmods.com/morrowind/mods/54362) (download the Aesthesia version) and install them with [[mod-organizer-2|Mod Organizer 2]] as you would any other mod. Disable, rename, or delete all their esp files. You only need the textures and meshes from these mods.

---

## step 1

Navigate to your data files or override directory and create a blank .bat file. Open it and add the following line to it:
```
habasi -OB --force-dial-type --ignore-important-errors
```
You may optionally add a second line with `timeout 10` or another number if you want it to pause for X number of seconds before closing. Name the .bat file whatever you wish. Afterwards, open the program dropdown in [[mod-organizer-2|Mod Organizer 2]] and click "Edit". Find the plus sign in the top left of the new window, then select "add from file". Navigate to where you created your .bat file and add it.

Run the .bat file through [[mod-organizer-2|Mod Organizer 2]] and you will now have an enormous merged plugin of your entire loadorder.

==You are never to enable this for use in-game, as it will almost certainly be filled with errors.== This is only to be used for reference for programs in the next steps.

---

## step 2

Download this [[grass.ini]] and place it into your [[mesh-gen|Morrowind Groundcover Generator]] folder. You may rename it anything you want, if you wish.

Use the ini file I linked above and use the merged plugin you just made for the only thing in your load order. Alternatively, you can just add your entire load order, but since that won't be possible for the next step, it's quicker just to select a single file. Click the button to generate the grass.

## step 3

Navigate to your data files or override directory and create a blank .bat file. Open it and add the following line to it:
```
python3 lawnmower.py "MergedLoadOrder.esp" "Grass.esp" "Grass.esp"
tes3cmd delete --instance-match "Z\:-20000" Grass.esp
```
You may optionally add a second line with `timeout 10` or another number if you want it to pause for X number of seconds before closing. Name the .bat file whatever you wish. Afterwards, open the program dropdown in [[mod-organizer-2|Mod Organizer 2]] and click "Edit". Find the plus sign in the top left of the new window, then select "add from file". Navigate to where you created your .bat file and add it.

Run the .bat file through [[mod-organizer-2|Mod Organizer 2]]. The first line tells [[the-lawnmower|Lawnmower]] to "mow" the grass and clean it up so there's extremely reduced clipping into anything like buildings and other statics. This will take 30 minutes to an hour or more depending on the speed of your CPU. Unlike what [[the-lawnmower|Lawnmower]] says in the command line, it's not actually deleting the grass, but moving it to the lowest Z-level. The second line tells [[tes3cmd]] to actually delete that grass.

That's it! Now you can use the grass file as normal with MGE XE. Once again, this file will work just fine with OpenMW as well, the writer of this article is just unaware of the process.
---

## Further Reading

- [[the-lawnmower|Lawnmower]]
- [[habasi]]
- [[mesh-gen|Morrowind Groundcover Generator]]
Loading