• 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!

ERROR TRANSPARENCY

kotz

New Member
Joined
Nov 11, 2010
Messages
17
Reaction score
1
I use otClient 0.6.6 and have this error:

invalid thing type client id 481 in category 0

my thing.otml:

Code:
items
  481
    opacity:0.7
    full-ground:false

part of source print a error:

Code:
constThingTypePtr&ThingTypeManager::getThingType(uint16 id,ThingCategory category){
    if(category >=ThingLastCategory|| id >= m_thingTypes[category].size()){
        g_logger.error(stdext::format("invalid thing type client id %d in category %d", id, category));
        return m_nullThingType;
    }
    return m_thingTypes[category][id];}

Help me please :\
 
I tried that way to make transparency sprites but I wasn't able to make it work.

So I did it like this aswell and it worked.

1. You must to enable the feature in the OTC. In modules/game_things/things.lua, add this line here
Code:
g_game.enableFeature(GameSpritesAlphaChannel)

2. Open your files in the Object Builder, use Save As, select the "transparency" option.

3. Change the opacity/transparency of the sprites you want in a image editor, then import them to the ObjectBuilder.

4. Once you've done all these steps uncheck the flag "fullground".

You're done, the sprites you've edited should now be transparent.
 
Back
Top