• 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

I was trying to export 860 outfits and came across with this error.

Edit: it works using the offline version.
View attachment 45632
Hi, I'm trying to add the outfits to my website but the items don't load, yes they worked well but the outfits didn't, what could it be?
Post automatically merged:

up
 

Attachments

Last edited:
Hi, I'm trying to add the outfits to my website but the items don't load, yes they worked well but the outfits didn't, what could it be?
Post automatically merged:

up
http://www.vagosclub.cl/outfit/animoutfit.php?id=389 shows:
Code:
Outfit does not exist or file cache is not generated.
which means that PHP has no access to create new files in outfits folder. You host it on Windows, so you got to click right mouse button on folder outfits, open properties menu, unselect 'read-only' and click 'apply'. When it asks 'do it for all folders inside' click 'yes'.
 
http://www.vagosclub.cl/outfit/animoutfit.php?id=389 shows:
Code:
Outfit does not exist or file cache is not generated.
which means that PHP has no access to create new files in outfits folder. You host it on Windows, so you got to click right mouse button on folder outfits, open properties menu, unselect 'read-only' and click 'apply'. When it asks 'do it for all folders inside' click 'yes'.


Does it still work?

I'm trying to enter my spr and dat (online) and offline, and I'm getting an error.
 
Does it still work?

I'm trying to enter my spr and dat (online) and offline, and I'm getting an error.
Yes, but I stopped using it. If you use unique sprites or unique items, it's better not to do it since sprite thieves steal your images from that part. regards
 
Hi Gesior!

Many many thanks for what you doing!!!


Is it possible to host it on nginx rather than apache to make index of?
 
Hi Gesior!

Many many thanks for what you doing!!!


Is it possible to host it on nginx rather than apache to make index of?
My apache host:
My nginx host:

Files index is not blocked by web server configuration. In folder with images - if you downloaded .zip generated by me - are files index.htm and index.html to block index of images folder. You may have over 10k images in this folder. Listing them would generate heavy load on web server, especially on server with HDD, not SSD.
 
Hmm once i go into https://nobot.eloria.pl/out/outfits_anim/

I get its forbidden

I have generated it on your website like in a tutorial

I am using newest canary assets and need to update new outfits as your newest one is little bit older.

Maybe you don't mind updating yours to newest available assets or just give me a hint what i am doing wrong or which exatcly folder should i set it up in config.php, i tried main and outfits_anim with no success
 

Attachments

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:
Open Tibia Library 0.1.1 - based on OTClient, TFS and some other dat/spr/otb editing tools - written in TypeScript.

Changes:
  • added generator of all item animation frames to PNG - as one wide image
  • - stackable items 'stacks' are treated as animation frames
  • added PHP converter to change PNG with few animation frames into animated GIF
  • - it also converts normal item images from PNG to GIF (not animated)
  • added checkbox to enable 'extended sprites' (65k+) for old clients version (OTClient can load it)
  • refactored images generators code

ITEM IMAGES GENERATOR

On item images page you can choose, if you want all items or only pickable:
Item Image Generator - OpenTibiaLibrary (https://item-images.ots.me/generator/)


ANIMATED ITEM IMAGES GENERATOR - NEW!

On item images page you can choose, if you want all items or only pickable:
Item Image Frames Generator - OpenTibiaLibrary (https://item-images.ots.me/generator-animated-items/)

It generates all animation frames as one wide PNG images with number of frames in name of file.
You must convert it into animated GIFs using script (command line and website versions - your own PC/host, no ZIP size limits):
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/tree/master/tools/item-image-frames-to-animated-gif-converter)
or by using official host (can convert up to 20 MB ZIP at once - enought for 'only pickable' items):
PNG to GIF converter (https://item-images.ots.me/png-to-gif-converter/)


OUTFIT IMAGES GENERATOR

On outfit images page you can choose, if you want to load idle animation (for outfits that support it):
Outfit Image Generator - OpenTibiaLibrary (https://outfit-images.ots.me/generator/)

To host outfit images you need PHP files that will generate colors/addons/mounts on request:
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/tree/master/tools/colored-outfit-images-generator)


You can also download it all and run offline on your PC:
gesior/open-tibia-library (https://github.com/gesior/open-tibia-library/releases/tag/0.1.1)
Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in C:\xampp\htdocs\outfits\libs\outfitter.php:141 Stack trace: #0 C:\xampp\htdocs\outfits\animoutfit.php(85): Outfitter->outfit(128, 3, 123, 12, 23, 31, 0, 2, 1) #1 {main} thrown in C:\xampp\htdocs\outfits\libs\outfitter.php on line 141
 
Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in C:\xampp\htdocs\outfits\libs\outfitter.php:141 Stack trace: #0 C:\xampp\htdocs\outfits\animoutfit.php(85): Outfitter->outfit(128, 3, 123, 12, 23, 31, 0, 2, 1) #1 {main} thrown in C:\xampp\htdocs\outfits\libs\outfitter.php on line 141
You have to install PHP gd extension (it's graphics library used to generate outfit images).
Here is tutorial for XAMPP: https://phpandmysql.com/extras/enable-gd-for-xampp/
 
Back
Top