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

AAC Znote Problem with outfits

omaraboud

Member
Joined
Jul 19, 2014
Messages
38
Reaction score
6
Location
Iraq
Hi guys! So I have a problem, i used Tibia Outfit Images Generator (https://outfit-images.ots.me/) downloaded outfits and I put them into my htdocs folder, I set the image
'imageServer' => 'outfit\animoutfit.php' but I still don't have my outfits. I checked the link to image and when I put the link into my browser I got this error.
Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in C:\xampp\htdocs\outfit\libs\outfitter.php:141 Stack trace: #0 C:\xampp\htdocs\outfit\animoutfit.php(85): Outfitter->outfit(280, 0, 0, 0, 0, 0, 0, 3, 1) #1 {main} thrown in C:\xampp\htdocs\outfit\libs\outfitter.php on line 141

Also I tried to set 'imageServer' => 'outfit\outfit.php' but still can't get any outfit, but at least I dont have any erors.
 
i have a similar problem but in linux in windows it works okey i searched for inspect and this is what is displaying
<img src="//layout/shop/2160.gif" alt="img"> as you can see there are two slashes in front of layout
but in config.php i have this
Lua:
// If useDB is set to true, player can shop in-game as well using Znote Lua shop system plugin.
    $config['shop'] = array(
        'enabled' => true,
        'loginToView' => false, // Do user need to login to see the shop offers?
        'enableShopConfirmation' => true, // Verify that user wants to buy with popup
        'useDB' => false, // Fetch offers from database, or the below config array
        'showImage' => true,
        'imageServer' => 'layout/shop',
        'imageType' => 'gif',
    );


how to fix that?

ok i got it
the problem was at shop,php
change this //<?php echo $config['shop']
to this <?php echo $config['shop'] fixed
 
Last edited:
i have an strange issue the images are displayed correctly in windows but not in linux. In windows images work properly there no problem, the problem is in linux. I noticed that some of the images generated using gesior images generator, like mounts for example, does not generate template.png images. This is not a problem in windows, but it looks like in linux it is. Don't know if this is the cause of the problem. But have not seen anything else that might be causing the difficulty. Have somebody face this before? is there a bypass or hack in order to resolve this?
win linux.png
 
@omaraboud

Have you tried with / and with \ in the link folder?

Exemple:

/images/outfit/

\images\outfit\
Yup, tried every combination. Still same, checked everything hundred times. I guess I am the exception, because for now I'm testing everything on windows and it's not working. @Znote maybe you can come up with something?
 
Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng()
This error means that you do not have php-gd extension enabled in webserver/PHP config. gd is extension to manipulate images - required by outfit generator.
 
This error means that you do not have php-gd extension enabled in webserver/PHP config. gd is extension to manipulate images - required by outfit generator.
Gesior Thank You so much mate! It's working now. Problem solved
 
Back
Top