Modding Tutorials
- jman0war
- Posts: 315
- Joined: Fri Jan 22, 2016 2:41 am
- Contact:
Re: Modding Tutorials
I started looking at this, but in my DaggerfallUnityStartup.unity... under Assets/Resources i don't have Flats or Models, i only have Fonts,Screens,Songs.
Did i miss something, are those folders i should be making?
Did i miss something, are those folders i should be making?
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Modding Tutorials
I ended up using a struct of constants. It's not too bad IMO.LypyL wrote:It's ugly, but I get around it by just using constants.
Code: Select all
public struct Climate
{
public const int
None = 0,
Ocean = 223,
Desert = 224,
Desert2 = 225,
Mountain = 226,
Swamp = 227,
Swamp2 = 228,
Desert3 = 229,
Mountain2 = 230,
Temperate = 231,
Temperate2 = 232;
}
if (intValue == Climate.Temperate)
/* ... */
- jman0war
- Posts: 315
- Joined: Fri Jan 22, 2016 2:41 am
- Contact:
Re: Modding Tutorials
How did you insert that tree flat from this post?
viewtopic.php?f=14&t=432#p3732
I'm not trying to actually release a mod, i just need to see some of these trees in-game for quality control.
There's a couple things i need to figure out, like should the edge be smoothed more, should it be feathered, should it have a thin black edge, is there too much hue saturation, do they need to be lighted up or darkened?
So i'm not sure if i should just put these trees on a flat plane and import as model at this point?
viewtopic.php?f=14&t=432#p3732
I'm not trying to actually release a mod, i just need to see some of these trees in-game for quality control.
There's a couple things i need to figure out, like should the edge be smoothed more, should it be feathered, should it have a thin black edge, is there too much hue saturation, do they need to be lighted up or darkened?
So i'm not sure if i should just put these trees on a flat plane and import as model at this point?
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files
- LypyL
- Posts: 512
- Joined: Sun Mar 22, 2015 3:48 am
Re: Modding Tutorials
Nice! I considered adding a pseudo-enum like class to get around this limitation. If it becomes a larger issue in the future I probably will.TheLacus wrote: I ended up using a struct of constants. It's not too bad IMO.
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Modding Tutorials
You only need to put a .png image inside the StreamingAssets\Textures folder, you need to use the unity editor to compile the latest version of the code only because i made some changes after the latest official build has been released.jman0war wrote:How did you insert that tree flat from this post?
viewtopic.php?f=14&t=432#p3732
I'm not trying to actually release a mod, i just need to see some of these trees in-game for quality control.
There's a couple things i need to figure out, like should the edge be smoothed more, should it be feathered, should it have a thin black edge, is there too much hue saturation, do they need to be lighted up or darkened?
So i'm not sure if i should just put these trees on a flat plane and import as model at this point?
Just name your file correctly and place it inside DaggerfallUnity_Data\StreamingAssets\Textures. I explained here that this should be archive_record-0.png.
- jman0war
- Posts: 315
- Joined: Fri Jan 22, 2016 2:41 am
- Contact:
Re: Modding Tutorials
Ok i believe i have my files the right dir and naming convention, unity created a .meta file after each one.TheLacus wrote:You only need to put a .png image inside the StreamingAssets\Textures folder, you need to use the unity editor to compile the latest version of the code only because i made some changes after the latest official build has been released.
Just name your file correctly and place it inside DaggerfallUnity_Data\StreamingAssets\Textures. I explained here that this should be archive_record-0.png.
https://1drv.ms/i/s!An4TIiBt2x9fgR7kB87sht1doDiW
They show up in the lower unity window, but the textures aren't in game.
Even when i start a new game.
Also, in Unity, the textures don't display as thumbnail correctly, is that an indication of a problem?
https://1drv.ms/i/s!An4TIiBt2x9fgR0OlIKa3YvB9ttn
You mention "you need to use the unity editor to compile the latest version of the code only because i made some changes after the latest official build has been released".
So is that under Dagger Tools -> Source Compiler?
If i go there and try "Add File" it's looking for .cs file, is that something i should be downloading now?
Sorry for the hassle
Actually i did find the Compile bit.
Got my 'mod' to appear in the game startup menu, but i still don't see my textures in game.
https://1drv.ms/i/s!An4TIiBt2x9fgR8Pby-920R9nPzp
So i've obviously missed something.
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Modding Tutorials
StremingAssets/Textures/510_2-0.png, not StremingAssets/Textures/510/510_2-0.pngjman0war wrote:Ok i believe i have my files the right dir and naming convention, unity created a .meta file after each one.
https://1drv.ms/i/s!An4TIiBt2x9fgR7kB87sht1doDiW
They show up in the lower unity window, but the textures aren't in game.
Even when i start a new game.
Also, in Unity, the textures don't display as thumbnail correctly, is that an indication of a problem?
https://1drv.ms/i/s!An4TIiBt2x9fgR0OlIKa3YvB9ttn
You can use the StreamingAssets folder you see in the editor or the one in the same folder as the *.exe, the result is the same.
You don't need to create a mod. Normally, you would only place the textures inside the folder on disk, without doing anything else. You only need the unity editor because the code to import exteriors billboards is not yet in the released game, if you downloaded the project from github recently you're fine.jman0war wrote: You mention "you need to use the unity editor to compile the latest version of the code only because i made some changes after the latest official build has been released".
So is that under Dagger Tools -> Source Compiler?
If i go there and try "Add File" it's looking for .cs file, is that something i should be downloading now?
Sorry for the hassle
Actually i did find the Compile bit.
Got my 'mod' to appear in the game startup menu, but i still don't see my textures in game.
https://1drv.ms/i/s!An4TIiBt2x9fgR8Pby-920R9nPzp
So i've obviously missed something.
- Interkarma
- Posts: 7253
- Joined: Sun Mar 22, 2015 1:51 am
Re: Modding Tutorials
I'll get those builds update today, after I merge your latest PR.TheLacus wrote: You don't need to create a mod. Normally, you would only place the textures inside the folder on disk, without doing anything else. You only need the unity editor because the code to import exteriors billboards is not yet in the released game, if you downloaded the project from github recently you're fine.
- jman0war
- Posts: 315
- Joined: Fri Jan 22, 2016 2:41 am
- Contact:
Re: Modding Tutorials
No joy on trees in game.
I pulled down a fresh copy from GitHub.
Have my files in the StreamingAssets\Textures directory.
Started a new char, travel out to the mountains where these 510 trees grow, tried Worthgarian and DragonTail, but i only see the vanilla flats.
Are you sure just placing the files into that folder would be enough?
Like, how does the game know to replace vanilla PNG with the ones in the Texture dir?
Shouldn't i have to like, assign these textures to some object?
I pulled down a fresh copy from GitHub.
Have my files in the StreamingAssets\Textures directory.
Started a new char, travel out to the mountains where these 510 trees grow, tried Worthgarian and DragonTail, but i only see the vanilla flats.
Are you sure just placing the files into that folder would be enough?
Like, how does the game know to replace vanilla PNG with the ones in the Texture dir?
Shouldn't i have to like, assign these textures to some object?
Find my Vibrant Terrain Flats mod at Nexusmods: https://www.nexusmods.com/daggerfalluni ... ?tab=files