Jump to content

Recommended Posts

So I'm making a modded character that has a few new Weapons, but the Big Portrait and dropped item textures stopped working at some point and I have no idea what caused it. I've been trying to play around with them for a while to fix them, but it either does nothing or crashes the game. 

The file path for my Big Portrait is here

image.png.7cb40109d5b1487e6e41111117df7e06.png

The xml file looks like:

<Atlas><Texture filename="virren.tex" /><Elements><Element name="virren.tex" u1="0.0009765625" u2="0.9580078125" v1="0.36181640625" v2="0.99951171875" /></Elements></Atlas>

And in my mod main file, under assets, it looks like this:

    Asset( "IMAGE", "bigportraits/virren.tex" ),
    Asset( "ATLAS", "bigportraits/virren.xml" ),

My weapons are also not showing up when dropped on the ground, but I know they are still there because I can pick them up with the spacebar. I have no idea what's causing this. I think I'm pointing to the anim file in the prefab, but maybe I missed something. This looks the same for both blades. I also linked both blade prefab files (hopefully) because they seemed too large to place in this post as text to me.

.image.png.b425c728f4a83f2f7d110e8842887793.png

The scml looks like this

<?xml version="1.0" encoding="UTF-8"?>
<spriter_data scml_version="1.0" generator="BrashMonkey Spriter" generator_version="b5">
    <folder id="0" name="grassblade">
        <file id="0" name="grassblade/grassblade.png" width="128" height="256" pivot_x="0" pivot_y="1"/>
    </folder>
    <entity id="0" name="grassblade">
        <animation id="0" name="idle" length="1000">
            <mainline>
                <key id="0">
                    <object_ref id="0" name="grassblade" folder="0" file="0" abs_x="0.648437" abs_y="0.8125" abs_pivot_x="0.585161" abs_pivot_y="0.149546" abs_angle="360" abs_scale_x="1" abs_scale_y="1" abs_a="1" timeline="0" key="0" z_index="0"/>
                </key>
            </mainline>
            <timeline id="0" name="grassblade">
                <key id="0" spin="0">
                    <object folder="0" file="0" x="0.648437" y="0.8125" pivot_x="0.585161" pivot_y="0.149546"/>
                </key>
            </timeline>
        </animation>
    </entity>
</spriter_data>

This links to my mod on the workshop, if you want to take a closer look at it in it's entirety. https://steamcommunity.com/sharedfiles/filedetails/?id=2434602805

forestblade.lua grassblade.lua

If you have problems with pictures and the like, you can have a look at the client log, there you can find valuable information as to why it's knot working.

For example, your Big Portrait procudes this error upon putting the mouse on the portrait:

ERROR!     virren_none    is not a valid portrait file for    virren    virren_none    

You started implementing the skin_api. so it probably has something to do with this.

As for your grass blade, you wrote 

anim:SetBank("spear_wathgrithr")

but you need to change it to

anim:SetBank("grassblade")

as that is your bank.

 

Edited by Monti18
wrote mod instead of log
  • Like 1

I was able to fix my dropped items and portraits not showing up, thanks :3

I just changed virren.tex/.scml to being virren_none and it seems to work now.

But one more question, where do I see these error messages? I didn't see them when I opened the console in game. Is it a mod I download, or is there an error text dump somewhere?

That's nice to hear!

Sorry i wrote client mod but I meant client log! You can find it at Documents\Klei\DoNotStarveTogether\client_log.txt, it's the log output of the client.

You also have a server log, this is the output of the server if you have a world with caves, you can find it at Documents\Klei\DoNotStarveTogether\[yourid]\Cluster_[number]\Master\server_log.txt

If you have a world without caves, the server log output is also in the client log, as your client is also the server.

 

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...