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

Defining sprite + dat file path

Dricky

New Member
Joined
Sep 14, 2013
Messages
11
Reaction score
0
Hello,

Does anyone know how I can define the sprite + dat file path in the source and not through things.lua?

PHP:
  file = g_resources.guessFilePath(file, "spr");

  m_spritesFile = g_resources.openFile(file);
  // cache file buffer to avoid lags from hard drive
  m_spritesFile->cache();

I'm pretty sure it's relating to this line in spritemanager.cpp

has anyone got an idea?
 
You can call
g_sprites.loadSpr("filename");
g_things.loadDat("filename");

anywhere in the sources.
 
Thanks for reply Summ

So, calling

g_sprites.loadSpr("tibia.spr");


would be correct?
 
Back
Top