Issue with Moments Illustrations

Käpt'n Zur See

Chieftain
Joined
Mar 17, 2022
Messages
8
Hi,
I've been having issues with the Moments Illustratrions for my unique unit and improvement.
I tried stealing some code from other mods too, so I don't see any issues in this illustrations table:
Code:
INSERT INTO MomentIllustrations
        (MomentIllustrationType,                     MomentDataType,                GameDataType,                        Texture)
VALUES    ('MOMENT_ILLUSTRATION_UNIQUE_UNIT',         'MOMENT_DATA_UNIT',            'UNIT_MORGANA_CAR',                    'MOMENT_MORGANA_CAR.dds'),
        ('MOMENT_ILLUSTRATION_UNIQUE_IMPROVEMENT',     'MOMENT_DATA_IMPROVEMENT',    'IMPROVEMENT_CAFE_LEBLANC',            'MOMENT_CAFE_LEBLANC.dds');

I have created the .tex files 2 times by now and I've tried to make it as close as possible to existing game files, like the one from the netherlands. Only difference is the number of mipmaps, which shouldn't be a problem(?).

Maybe related, I get two issues while building a solution every time that look like this:
Code:
EXEC(0,0): error asset: (UIErrorTexture)
EXEC(0,0): error asset: (UIErrorTexture)

Every texture works as intended, except the Moment Illustrations. The cooker.txt doesn't help me figure out what causes this, as it says something about the UILeader, which works perfectly fine. I included it in the files anyways. If you need any more files let me know.

Thank you very much in advance. I am out of ideas at this point.
 

Attachments

Do you have any XLP files with this config?
Code:
<m_ClassName text="UITexture"/>
<m_PackageName text="Icons"/>
    <m_Entries>
        <Element>

And with your moments defined there?

If you have that XLP and is not cooking, you need to add it to modart.xml
 
Thanks for the reply. I do have an entry like this with the moments defined in it. The same XLP includes Icons for the Leader Icon etc. and those are working perfectly fine. I've included the XLP and modart here but except mine saying UI/Icons instead of just Icons in the XLP it looks fine. The error persists even if I do change it to just icons.

I've been doing my modart with the generator whenever I change anything about my XLPs or artdefs, so it should be included.
 

Attachments

.
Did you create the Textures in the asset manager?

Yeah, all was done with the asset manager. I especially can't figure out where the EXEC issue comes from, as everything works, except the moment icons. I've done the same things for the moments pictures as well as the icons for the Civ for example.
 

Attachments

Thanks. I checked the Icon part in both the Icons.xlp and the modart. The xlp is the exact same, except the name of the texture.

I searched for "Icons" in the modart and found this difference in the modart. Yours says:
Code:
        <Element>
            <libraryName text="UITexture"/>
            <relativePackagePaths>
                <Element text="Icons"/>
                <Element text="UI/Icons.blp"/>
            </relativePackagePaths>
        </Element>

While mine looks a little bit different.

Code:
        <Element>
            <libraryName text="UITexture"/>
            <relativePackagePaths>
                <Element text="UI/Icons"/>
                <Element text="UILeaders"/>
            </relativePackagePaths>
        </Element>

What I've also been wondering, if I renamed my Icons.xlp to something else, would it know what to do with it? Because if I do I can't find a reference to the file name inside the modart but the icons (except the moment of course) still work.
 
I use the same name of XLP and package, don't know if helps. Try to see if your textures are well defined, I send you one of my moment's textures.
 

Attachments

I use the same name of XLP and package, don't know if helps.

I am not exactly sure what that means. Do you mean the EntryID and ObjectName in the XLP being the same? I named everything like the dds, so the tex and references in the XLP are all the same.

What I've also been wondering, if I renamed my Icons.xlp to something else, would it know what to do with it? Because if I do I can't find a reference to the file name inside the modart but the icons (except the moment of course) still work.
Any idea about this?

Also I started out using a template by MC (maconnolly) and I might DM him about it, as it had the same issue. I pretty much replaced all the actual files and code at this point but the issue somehow remained.
 
Back
Top Bottom