(Vibrant) Terrain Flats

A curated forum for compatible and maintained mods. Users are unable to create new topics in this forum but can reply to existing topics. Please message a moderator to have your mod moved into this forum area.
User avatar
BadLuckBurt
Posts: 568
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Vibrant) Terrain Flats

Post by BadLuckBurt »

jman0war wrote: Wed May 06, 2020 4:03 pm Hmm okay.
So where are these tools supposed to show up in Unity?
In the top menu bar where that File Edit GameObject stuff is but they wont show if you still have those errors
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

User avatar
jman0war
Posts: 310
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: (Vibrant) Terrain Flats

Post by jman0war »

Ok thanks for your help.
I have some progress at least.
I purged Unity again, and redownloaded Daggerfall Unity Master and now i have "Daggerfall Tools" on the top menu.
So that's progress.

Looking at LypyL tutorials i'm not getting any .dfmod file when i "Save Mod settings to a File".
viewtopic.php?f=22&t=277

In the tutorial he says:
"For the purposes of these tutorials, please make sure you're starting with the Setup scene, and the ModManager object is in the scene. If you don't have the ModManager in the scene, create a new game object and add the ModManager as a component to it"
Should I be doing this?
I don't have an option for a Setup scene, there is a "Basic Scene" available in Assets/Scenes maybe that's it?
In that scene i can add a GameObject, but there's no "ModManager" object and i'm not finding it under components.
Is this required?
----
click the Save Mod File button, and then expand the Files drop down - you should see one file listed, something like Assets\ModBuilder\emptyexample.dfmod.json - these file stores all the information used to build your mod, and can be used by the mod builder window to update or change existing mods.
In my Unity i don't have Assets\ModBuilder, i can manually create a folder under Assets but this is looking like a red flag to me.

Any advice?
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files

User avatar
BadLuckBurt
Posts: 568
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Vibrant) Terrain Flats

Post by BadLuckBurt »

I think this flow has changed a lot since that tutorial was written. Or at least it's different from what I do:

I've never added a ModManager object to the scene, don't think that's necessary anymore. I put the source of my mods in the following folder:

Code: Select all

Assets\Game\Mods
Each mod in it's own folder ofcourse. When you save the mod settings, it creates a dfmod.json file in the folder you select, f.e. Assets\Game\Mods\MyMod. This file only contains the info to set up the Mod Builder window in Unity.

You can copy all the files you want to include in the mod to that folder too and organize them in subfolders if you wish. I usually mimick the StreamingAssets folder structure.

To actually add files to the mod after you've copied them over:

With the Mod Builder window open, switch to Project in the bottom of Unity's window and navigate to the files, select the files you want to add and click the Add Selected Asset(s) button.

When that's done, click the SET button in the Build Path section, this will let you select the target folder to generate the .dfmod file in. It doesn't really matter which folder you select, just remember the location.

I usually build my mods in a subfolder of:

Code: Select all

Assets\Untracked\ModBuilder
With everything set up, click the Build Mod button and if all is well, you should end up with a .dfmod in the folder you selected in the Build Path section.

I can do a longer explanation with screenshots later if needed.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

User avatar
jman0war
Posts: 310
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: (Vibrant) Terrain Flats

Post by jman0war »

Ok thanks, i've made some progress but the .dfmod file is only 4kb so there's nothing in it.
Cut the top off that image so re-uploading:

Image
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files

User avatar
BadLuckBurt
Posts: 568
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Vibrant) Terrain Flats

Post by BadLuckBurt »

I have to go do some stuff first but could you post the dfmod.json file?

Everything looks OK at first glance although I avoid spaces in my folder paths and try to keep them as short as possible. Not sure if there's a limit in how long the entire path can be but it's a possibility.

It's also worth to check the Console tab after you built the mod, if anything failed it might show up there.

When I get back I'll take a look at the dfmod.json and see if there's anything wrong.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

User avatar
jman0war
Posts: 310
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: (Vibrant) Terrain Flats

Post by jman0war »

Here's that file, it's 22kb
https://1drv.ms/u/s!An4TIiBt2x9fmiTX6XU ... j?e=IBhHn7

Maybe i did something wrong as i see files in:
...daggerfall-unity-master\Assets\Game\Mods
VibrantTerrainFlats.dfmod.json
VibrantTerrainFlats.dfmod.json.meta
VibrantTerrainFlats.meta

And then i have my intended project folder:
...daggerfall-unity-master\Assets\Game\Mods\VibrantTerrainFlats
Inside are folders
StandaloneLinux
StandaloneOSX
StandaloneWindows
and .meta files for each.
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files

User avatar
BadLuckBurt
Posts: 568
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Vibrant) Terrain Flats

Post by BadLuckBurt »

Did you check the Console messages after trying to build the mod?

The dfmod.json looks fine to me so I'm not sure what's going on. I downloaded the zip file from your original OP and created a mod from those files successfully.

I've uploaded the mod setup here: https://mega.nz/file/FBlTQRZB#w9cHZE8AQ ... xsj9bYCRnM

If you unzip the archive, you'll get a folder 'VibrantTerrainFlats'. Put that folder in Assets\Game\Mods then go to the Mod Builder window, click Open Existing Mod Settings and open the VibrantTerrainFlats.dfmod.json. You should be able to click Build Mod right away, if that doesn't work there is probably something wrong with your setup and you should definitely check in the Console if there's any messages related to the build attempt.

The one thing I added was a script to register the mod, not entirely sure if that's necessary. The other thing I had to do was enable Read / Write on all textures in Unity Inspector. When you select a texture in Project, you'll see a bunch of options appears in the right-hand pane, one of them is Read / Write, if you add any new textures, make sure that box is ticked.

And you can find the DFMOD files I built here: https://mega.nz/file/9VlxTZoI#lamagniMM ... L2NC_v5lpw

Unzipping this archive will create 3 folders, 'StandaloneWindows', 'StandaloneLinux' and 'StandaloneOSX'. I don't think you need platform specific dfmods, that's only necessary for specific code things. Dropping the dfmod file from there into StreamingAssets\Mods of your DFU installation should load the flats up in-game no problem.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

User avatar
jman0war
Posts: 310
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: (Vibrant) Terrain Flats

Post by jman0war »

You are right, when i Build mod there are errors in the Console.
But the .dfmod file you created works so i'll use it.

Is Unity usually this pernicky or am i just lucky?

Anyway thanks SO MUCH for your assistance here, i would have given it up without your help.
8-)
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files

User avatar
BadLuckBurt
Posts: 568
Joined: Sun Nov 05, 2017 8:30 pm

Re: (Vibrant) Terrain Flats

Post by BadLuckBurt »

jman0war wrote: Thu May 07, 2020 3:00 pm You are right, when i Build mod there are errors in the Console.
But the .dfmod file you created works so i'll use it.

Is Unity usually this pernicky or am i just lucky?

Anyway thanks SO MUCH for your assistance here, i would have given it up without your help.
8-)
You're welcome. If you post the errors, we can probably figure out what's going on, without them I can't really say what's wrong.
Daggerfall Unity on UESP: https://en.uesp.net/w/index.php?title=T ... fall_Unity
Daggerfall Unity on Nexus Mods: https://www.nexusmods.com/daggerfallunity
My github repositories with mostly DFU related stuff: https://github.com/BadLuckBurt

User avatar
jman0war
Posts: 310
Joined: Fri Jan 22, 2016 2:41 am
Contact:

Re: (Vibrant) Terrain Flats

Post by jman0war »

Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files

Post Reply