• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Invalid thing type client id error

poe6man3

Member
Joined
Aug 6, 2020
Messages
52
Reaction score
9
I have to create this thread cause im going insane i have 0 clues why this is not working, im using otcv8

I wanted for example add opacity to character outfit to test the reading from otml file before creating custom stuff and when putting


Lua:
creatures:
  1090:
    opacity: 0.5

in game im getting this error

i have transparency enables and did everything in ob to enable transparency

Can somebody give me a clue why is this happening
 
OP
OP
P

poe6man3

Member
Joined
Aug 6, 2020
Messages
52
Reaction score
9
Spend another day trying figure this shit out and all i know it breakes when assigning the things that are inside unserializeOtml

C++:
void ThingType::unserializeOtml(const OTMLNodePtr& node)
{
    for(const OTMLNodePtr& node2 : node->children()) {
        if(node2->tag() == "opacity")
            m_opacity = node2->value<float>();
        else if(node2->tag() == "notprewalkable")
            m_attribs.set(ThingAttrNotPreWalkable, node2->value<bool>());
        else if(node2->tag() == "image")
            m_customImage = node2->value();
        else if(node2->tag() == "full-ground") {
            if(node2->value<bool>())
                m_attribs.set(ThingAttrFullGround, true);
            else
                m_attribs.remove(ThingAttrFullGround);
        }
    }
}


and thats what i come up with and cant just break the wall after setting the opacity


Lua:
Inside otml

creatures <- so far working good
  1090 <- also should be working good also checked if client reading correct outfit id and it is correct
    opacity: 0.5 and it breaks in that moment no matter which type im gonna put here which are defined in unserializeOtml its just breaks always

if somebody can throw some ideas where that breaks that will help my soul and iq which is getting insanely low

also tried with items instead of creatures same errors
 
Top