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

OpenTibia Items and outfits images generator for website

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,955
Solutions
98
Reaction score
3,351
Location
Poland
GitHub
gesior
I've posted this software some time ago on Discussion board ( Another OT Item editor (otb, dat, spr) in TypeScript (https://otland.net/threads/another-ot-item-editor-otb-dat-spr-in-typescript.266949/page-2) ), but I think Tools is better board for this.

This is Open Tibia Library - based on OTClient, TFS and some other dat/spr/otb editing tools - written in TypeScript.

I've added there scripts to generate items and outfits images like in this thread:
but now you can do it on website! You don't have to install/download/compile anything.

Version 0.1.0 - this version loads outfits idle animation (and movement animation too).
Tested on 8.60, 9.60 and 10.98.

ITEM IMAGES GENERATOR
On item images page you can choose, if you want all items or only pickable:

OUTFIT IMAGES GENERATOR
On outfit images page you can choose, if you want to load idle animation (for outfits that support it):

You can also download it all and run offline on your PC:
 

Attachments

  • open-tibia-library-0.1.0-dist.zip
    284.3 KB · Views: 189 · VirusTotal
Last edited:
I was trying to export 860 outfits and came across with this error.

Edit: it works using the offline version.
devss.png
 
it accept extended tibia.dat/spr? i tried but nothing happens when i click in load files
What are extended dat/spr?
Dat with attributes from other tibia version or just extra items? It should try with extra items without any problems. Try it again now.
 
What are extended dat/spr?
Dat with attributes from other tibia version or just extra items? It should try with extra items without any problems. Try it again now.
because in 8.6 tibia limit sprites are 65536 sprites, if u mark extended sprites u can use 16.777.216‬ something like this
 
I followed every step but the site still cant load the images.


Capturar.PNG

Capturar2.PNG

NOTE: animated outfits works just fine.
 
I followed every step but the site still cant load the images.


View attachment 46508

View attachment 46509

NOTE: animated outfits works just fine.
I think it's related to 2 protocols declared in URL:
src=http://https://
Post automatically merged:

because in 8.6 tibia limit sprites are 65536 sprites, if u mark extended sprites u can use 16.777.216‬ something like this
@roriscrave
Made new version with possibility to enable extended sprites for old tibia versions:
Thread is waiting for approval.

All my hosts are updated to support 'extended sprites'.

Item images:

Item images with all frames in one image (PNG):

Convert PNG to GIF and make it animate:

Outfit images:

All files:
 
Last edited:
Is there any way to make custom outfits? The SRC generated wants the full head=, body=, addons= etc, but my custom outfit only has an ID + direction

Edit: Fixed it, but images are a bit big, but whatever :D

1609328181730.png
 
Last edited:
Is there any way to make custom outfits? The SRC generated wants the full head=, body=, addons= etc, but my custom outfit only has an ID + direction

Edit: Fixed it, but images are a bit big, but whatever :D

View attachment 53180
To make it looks good on website. You must add there 'if' that will resize 32x32 images to 64x64 - just add transparent 32px on top and 32px left on left side.
 
my custom items looks nice in website,but how i can addons?i don't understand.Thanks
 

Attachments

Hello

I used that on my own host but all feet colors appear white.
 
Yeah... :)
Code:
$feet = 0;
if (isset($_GET['feet'])) {
    $addons = (int)$_GET['feet'];
}
After last update, it takes feet color and set it as addon. I will update it next week on git.
 
Yeah... :)
Code:
$feet = 0;
if (isset($_GET['feet'])) {
    $addons = (int)$_GET['feet'];
}
After last update, it takes feet color and set it as addon. I will update it next week on git.
That’s it 👍 i changed to $feet and worked fine.
I revised the whole files but didn’t notice it.
 
When open animoutfit.php get error:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in D:\xampp\htdocs\images\outfit_gen\libs\gifCreator.php on line 132

and when open outfit.php get warrning:

Warning: Undefined array key 1 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 4 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 3 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 8 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 9 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 2 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 6 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33
FILE SYSTEM CACHE GENERATED
Animation frames count in loaded outfits:array(7) { [1]=> int(829) [4]=> int(12) [3]=> int(11) [8]=> int(31) [9]=> int(9) [2]=> int(7) [6]=> int(4) }

any information what's is wrong?
Post automatically merged:

When open animoutfit.php get error:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in D:\xampp\htdocs\images\outfit_gen\libs\gifCreator.php on line 132

and when open outfit.php get warrning:

Warning: Undefined array key 1 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 4 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 3 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 8 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 9 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 2 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33

Warning
: Undefined array key 6 in D:\xampp\htdocs\images\outfit_gen\cacheGenerator.php on line 33
FILE SYSTEM CACHE GENERATED
Animation frames count in loaded outfits:array(7) { [1]=> int(829) [4]=> int(12) [3]=> int(11) [8]=> int(31) [9]=> int(9) [2]=> int(7) [6]=> int(4) }

any information what's is wrong?
 
any information what's is wrong?
There is new version 0.1.4 with PHP 8.0 support:

You don't have to download it from link above. You can just use this site to generate images:
It will generate .zip with outfits PNG images and all PHP files included (version 0.1.4).

About that message:
FILE SYSTEM CACHE GENERATED
Animation frames count in loaded outfits:array(7) { [1]=> int(829) [4]=> int(12) [3]=> int(11) [8]=> int(31) [9]=> int(9) [2]=> int(7) [6]=> int(4) }
It's fine. It should appear when you visit outfit.php file for first time. It will create file cache.generated.txt, so after page refresh, it should generate outfit image.
 
Hi again,
I am just wondering why the animation is like that?


If the feet color changed it will work like it should but if not it will use old animation i had. It use the old animation only if the feet is 0
Post automatically merged:

Hi again,
I am just wondering why the animation is like that?


If the feet color changed it will work like it should but if not it will use old animation i had. It use the old animation only if the feet is 0
Nvm needed to clear browser cache
 
Last edited:
Back
Top