Modding Tutorials: Asset-Injection

Discuss modding questions and implementation details.
User avatar
TheLacus
Posts: 626
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by TheLacus » Mon Sep 18, 2017 6:21 pm

Climate variations

Daggerfall uses the same models in different regions applying different textures according to climate and season. When importing custom models we can replicate this behaviour with different prefabs.

The game first try to import the prefab using with the following nomenclature.

Code: Select all

ID_Desert
ID_MountainSummer
ID_MountainWinter
ID_SwampSummer
ID_SwampWinter
ID_TemperateSummer
ID_TemperateWinter
If it's not present, it loads the generic prefab.

Code: Select all

ID
Tipically a mod includes all climate variations or a single generic model but some liberty can be taken.
  • Example 1
    mod 1 wrote:1001
    1001_TemperateSummer
    1001_TemperateSummer is used in temperate regions during summer season, 1001 in all other situations.
  • Example 2
    mod 1 wrote:2001
    mod 2 wrote:2001
    The game use always, and only, 2001 from mod 2.
  • Example 3
    mod 1 wrote:123
    mod 2 wrote:123_TemperateSummer
    123_TemperateWinter
    Models from mod 2 are used in temperate regions, model from mod 1 is used in all other situations.

User avatar
Luzur
Posts: 14
Joined: Sat Sep 02, 2017 11:26 am

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Luzur » Sat Oct 07, 2017 1:24 pm

Oh, btw, anyoen having any plans on adding sound tot he human enemies? like some sort of yell or grunt or something? always found it odd that they are totally silent.
"Load the muskets"

User avatar
Jay_H
Posts: 1436
Joined: Tue Aug 25, 2015 1:54 am

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Jay_H » Sat Oct 07, 2017 5:14 pm

I think it's both functional and immersive. Tigers, bears, and spiders are too dumb to not announce their presence to their enemy, but humans are smarter than that. Some of my biggest surprises playing Daggerfall were that I would be trying to bash open a door or something, and suddenly I'm getting attacked by some sneaky Thief who got the jump on me :)
Check out the Daggerfall Unity mod page on ModDB.

I rarely read instructions well the first time. Tell me to re-read them. I'll do it.

User avatar
Luzur
Posts: 14
Joined: Sat Sep 02, 2017 11:26 am

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Luzur » Sat Oct 07, 2017 6:08 pm

Jay_H wrote:I think it's both functional and immersive. Tigers, bears, and spiders are too dumb to not announce their presence to their enemy, but humans are smarter than that. Some of my biggest surprises playing Daggerfall were that I would be trying to bash open a door or something, and suddenly I'm getting attacked by some sneaky Thief who got the jump on me :)
Yeah, for surprise moments sure, but they dont even make a sound when hit or dying, that gotta require massive ninja silence discipline.
"Load the muskets"

User avatar
Channel1
Posts: 86
Joined: Mon Sep 18, 2017 9:16 pm

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Channel1 » Sun Oct 08, 2017 8:59 am

The_Lacus
Would it be possible to allow custom heightmaps in DF Unity, I am specifically referring to this forum post. According to Nystul this would require a fair amount of work to implement as a mod, and is most likely beyond his skills. I was wondering if you were planning to implement the Illiac Bay's heightmap as a moddable part of the game at any point, and if there would be any chance at all that you could implement water maps. I do realize that the second part is almost certainly not going to happen, but the first part seems reasonable enough, at least to me (I don't have any programing knowledge). :)

Also, sorry if this is not the correct place to contact you.

User avatar
Nystul
Posts: 1122
Joined: Mon Mar 23, 2015 8:31 am

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Nystul » Sun Oct 08, 2017 12:52 pm

Implementing a custom heightmap is possible, I did this already in my far terrain mod (procedurally improving original heightmap)

Not sure where you read that I can't do it. I think you misinterpreted one of my posts, I am not able to extend the far terrain too much than what is possible already.

Custom heightmap from heightmap data is of course also possible, but if not done correctly it won't work with far terrain and will break it. I know how to do it correctly, but will finish talk functionality first before spending time on custom height map.

User avatar
Channel1
Posts: 86
Joined: Mon Sep 18, 2017 9:16 pm

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by Channel1 » Sun Oct 08, 2017 8:54 pm

Nystul wrote:Implementing a custom heightmap is possible, I did this already in my far terrain mod (procedurally improving original heightmap)

Not sure where you read that I can't do it. I think you misinterpreted one of my posts, I am not able to extend the far terrain too much than what is possible already.

Custom heightmap from heightmap data is of course also possible, but if not done correctly it won't work with far terrain and will break it. I know how to do it correctly, but will finish talk functionality first before spending time on custom height map.
Did I misunderstand? Sorry. That's good though. :D

EpicSpellsword404
Posts: 48
Joined: Mon Sep 21, 2015 12:26 am

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by EpicSpellsword404 » Fri Oct 13, 2017 11:36 pm

Maybe it's just me but I thought human enemies make quiet footstep sounds in vanilla DF

User avatar
TheLacus
Posts: 626
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by TheLacus » Tue Dec 19, 2017 5:45 pm

Some bugs kindly reported by King of Worms.

resolved
requires additional work
todo
comment
King of Worms wrote:SUMARIZATION OF INCORECT "IMG" SCALING I FOUND:
- CHAR02I1.IMG - character creation menu, its the "up and down" arrow to add/detract the main skills like STR AGIFixed.

- CHAR05I1.IMG - this appears in setting up the reflexes speed in char creation when you select a option like high/avarage Fixed.

- all nine SCBG00I0.IMG to SCBG08I0.IMG characters backgrounds are misaligned by few pixels, more precisely
they need to be few pixels bigger in width - it seems to me like its missing ONE PIXEL VERTICAL COLUMN in a 320*200 resolution
01.jpg
or u can see the problem here, left column is missing and u cän see blue colour beneath https://i.imgur.com/RfnflTR.png
Works as intended, same as vanilla. Issue with core game?

- "Inventory (problems with the scale of the masked areas)."
INVE00I0.IMG
INVE01I0.IMG
INVE02I0.IMG
INVE05I0.IMG

Fixed.

- "Foot/Horse/cart/Ship panel (scaling issues)"Fixed.
MOVE00I0.IMG Fixed.
MOVE01I0.IMG Fixed.

-World Map (doesn't work in game) - TRAV0I00.IMG and maybe TRAV0I01.IMG Not Implemented, ImgFile.LoadPalette().
-Local Map (doesn't work in game) - 51 screens called FMAPxxxx.IMG

- Option panel / control config - CNFG00I0.IMG Fixed.

- All 32 BODY IMAGES (BODY00I0.IMG .........)
when upscaled they appear just like a few horizontal lines ingame
Not implemented, requires special handling.


SUMARIZATION OF INCORECT "TEXTURE" BEHAVIOR I FOUND:

Weapons:
Archives 233 and 234 - does not appear ingame

Clothing:
Eight Archives (235 to 242) - does not appear ingame

Armor:
Eight Archives (245 to 252) - does not appear ingame

Ingredients:
Archive 254 - does not appear ingame

SUMARIZATION OF INCORECT "CIF" BEHAVIOR I FOUND:
Faces do not appear in game. Thats 16 archives 8 male 8 female. Named FACExxxx.cif
That is - if they should be placed in streaming assets in a CIF subdirectory and named for example "FACE02I0_3-0.CIF" (while actually being PNG like the rest of the files)
Works as intended, folder is StreamingAssets\Textures\CifRci. See http://www.dfworkshop.net/projects/dagg ... /textures/
Last edited by TheLacus on Mon Mar 26, 2018 9:06 pm, edited 8 times in total.
If you are interested in creating mods for Daggerfall Unity you can find the documentation here.

User avatar
King of Worms
Posts: 640
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow
Contact:

Re: [GUIDE] Mesh, Texture and Sound replacement

Post by King of Worms » Tue Dec 19, 2017 7:26 pm

Thanks for transfer to a correct section and your time to react to it.

2x Small notice:

1) "SCBG08I0.IMG characters backgrounds are misaligned" - might be in a original game as well, true.

I Found workaround and that is by altering the INFO00I0.IMG file and deleting those pixels from there. Early working version is this for example, but it can be made more perfectly. https://files.fm/u/p2vaafff#_ in other screens like the inventory this problem is not so noticeable so I have not dealt with it yet.

2) Ad the "incorrect CIF behavior" - thanks for a link, made it work. But I need to report that the upscaled heads behave in a same manner as upscalled bodies = horizontal lines. On the other hand, upscaled bag works ok.
02.jpg
02.jpg (182.97 KiB) Viewed 1794 times
Thank you

Post Reply