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

Weird problem with transparency option in Object builder

BugaS

Donżuan
Joined
Mar 12, 2009
Messages
1,219
Reaction score
9
Location
NYC
Hello guys!

I've got a big problem with my spr and dat. When i choose and compile my sprites with transparency option, then I've got (in game too!):
d596fa23d7b114b9med.png

How to fix it?
 
For RME you need Tibia.otfi (check RME github)

For the client, have you updated your server otb?
 
Hello guys!

I've got a big problem with my spr and dat. When i choose and compile my sprites with transparency option, then I've got (in game too!):
d596fa23d7b114b9med.png

How to fix it?

Create an file called Tibia.otfi and place it at the same path of Tibia.spr and Tibia.dat in which your RME uses.

The content of Tibia.otfi should be that:

Code:
DatSpr
  extended: true
  transparency: true
  frame-durations: true
  frame-groups: true

* Note: DO NOT use tab in the content of Tibia.otfi. It should use 2 white spaces at left of extended, transparency, frame-durations and frame-groups as above.

If you still have problems, try set extended, frame-durations and/or frame-groups to false, until you find one group that works for you.

---

For the client, open the file otclient\modules\client\client.lua.
Find the function init().
At the bottom of this function (still within it), place the following content:

Lua:
  -- Alpha channel on sprites
  g_game.enableFeature(GameSpritesAlphaChannel)

It will be something like that:

Lua:
function init()
  ... -- Code above that you won't change

  -- Alpha channel on sprites
  g_game.enableFeature(GameSpritesAlphaChannel)
end
 
Last edited:
Back
Top