• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

AAC Znote Problem with outfits

omaraboud

New Member
Joined
Jul 19, 2014
Messages
25
Reaction score
3
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.
 

Jpstafe

Member
Joined
Aug 8, 2011
Messages
223
Reaction score
23
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:
OP
OP
omaraboud

omaraboud

New Member
Joined
Jul 19, 2014
Messages
25
Reaction score
3
Unfortunately, the problem is everywhere, not just in the sms shop. Also in highscores. The Path is set right. Anyone?
 

Jpstafe

Member
Joined
Aug 8, 2011
Messages
223
Reaction score
23
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
 

Gesior.pl

Mega Noob&LOL 2012
Senator
Premium User
Joined
Sep 18, 2007
Messages
2,864
Solutions
92
Reaction score
3,057
Location
Poland
GitHub
gesior
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.
 
OP
OP
omaraboud

omaraboud

New Member
Joined
Jul 19, 2014
Messages
25
Reaction score
3
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
 
Top