Modding Tutorials: Asset-Injection

Discuss modding questions and implementation details.
Post Reply
User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Modding Tutorials: Asset-Injection

Post by Interkarma »

Yep, that sounds right to me. :)

User avatar
Kamer
Posts: 583
Joined: Mon Mar 05, 2018 9:26 pm

Re: Modding Tutorials: Asset-Injection

Post by Kamer »

Interkarma wrote: Tue May 29, 2018 8:35 pm Yep, that sounds right to me. :)
On the Texture page on DFU home, it says:

"Texture replacement for billboards support animations (you can have as many frames as you want, even more or less than vanilla) and emission maps."

Is this possible for all types or only billboard characters? If only possible with billboards, are we going to see any added support for everyone else?

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Modding Tutorials: Asset-Injection

Post by Interkarma »

I was not responding to you, Kamer. I was responding to TheLacus' question to me.

User avatar
Kamer
Posts: 583
Joined: Mon Mar 05, 2018 9:26 pm

Re: Modding Tutorials: Asset-Injection

Post by Kamer »

I was asking a question. It just quoted for some reason.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Modding Tutorials: Asset-Injection

Post by Interkarma »

I'll leave that question for TheLacus to answer then, as he's the architect of all the texture injection and mod systems.

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

Re: Modding Tutorials: Asset-Injection

Post by TheLacus »

Kamer wrote: Tue May 29, 2018 10:16 pm
Interkarma wrote: Tue May 29, 2018 8:35 pm Yep, that sounds right to me. :)
On the Texture page on DFU home, it says:

"Texture replacement for billboards support animations (you can have as many frames as you want, even more or less than vanilla) and emission maps."

Is this possible for all types or only billboard characters? If only possible with billboards, are we going to see any added support for everyone else?
If first frame is found in loose files, all other sequential frames are imported and cycled for animation. The idea was to keep things simple and make it just work, without worrying about situations like missing frames. Said that, there is a number of different implementations for different purposes, for example trees are added to an atlas with original textures and they are never animated.

Reading again the quote on npcs, i see is a bit confusing and i apologize for that. I'm going to reword the paragraph to make it clear that base support is for 1:1 replacement with some minor helpers, like mesh scaling to fit different ratios without stretching.
Inserting additional frames without affecting resulting animation frequency (for example to have smoother animations) or even add new interations for wandering npcs, etc., would require some considerations for different implementations and optimizations, and is probably more suited for a script mod rather than support in core.

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

Re: Modding Tutorials: Asset-Injection

Post by TheLacus »

Since Daggerfall Unity has reached the final stage of pre-alpha development, i thought it was worth to write out some considerations on mods support aspects that can be improved for a more stable release. You can find them on first page. Unfortunately i don't have much free time to work on Daggerfall these days, but i'll try to focus on fixing bugs, smoothing and improve existing features. If you have some suggestion or issues wich you can't find on the list, feel free to write here. Please don't quote the entire post. :)

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Modding Tutorials: Asset-Injection

Post by Interkarma »

Thanks for all that feedback, TheLacus! Like yourself, I'm looking forward to seeing where the mod system can go in the long tail stage of the game. Even if it doesn't get much better than now, it's still an incredible value add to the game.

You've done a tremendous job in all of this. You somehow worked around a constantly expanding codebase and kept everything ticking with practically zero issues. I watched the injection get more refined over time and its become a major system all to itself.

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

Re: Modding Tutorials: Asset-Injection

Post by King of Worms »

Hi, thanks for a lot of fixes, thing I really miss now is:

-World Map - TRAV0I00.IMG and maybe TRAV0I01.IMG Not Implemented, ImgFile.LoadPalette().
-Local Map - 51 screens called FMAPxxxx.IMG

and Ive noticed that there is a missing part (stays vanila eventho the whole picture is modded) in this img (highlighted in red)
CNFG00IO IMG.jpg
CNFG00IO IMG.jpg (878.83 KiB) Viewed 4723 times
Thank you!

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

Re: Modding Tutorials: Asset-Injection

Post by TheLacus »

King of Worms wrote: Thu Jul 26, 2018 11:31 am and Ive noticed that there is a missing part (stays vanila eventho the whole picture is modded) in this img (highlighted in red)

CNFG00IO IMG.jpg
Do you still have issues with this image? The texture is actually CNFG00I1, which is drawn on top of CNFG00I0.

Post Reply