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

[GESIOR2012] Item Images Installation/Update

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,964
Solutions
99
Reaction score
3,374
Location
Poland
GitHub
gesior
It's tutorial for Gesior 2012 account maker, not old one.

Images are not included to account maker, because acc. maker can work without them and they take much space on HDD [you can see them in 'shopsystem.php' and on page with player informations 'characters.php'].

Read tutorial for your system (on which you host):

1. Windows
0. What will you need?
- installed account maker

1. Go site: http://item-images.ots.me/
Download items pack for client that your ots use (or for newer client if there is no pack for your version)


2. Go to account maker folder (for example: C:\xampp\htdocs )
Unpack it to (with WinZip, WinRAR, 7Zip etc.) folder 'images'. If it asks 'do you want to replace?' press 'yes to all':
items2.PNG


3. Done! You can remove items_images_xxx.zip file.

2. Linux
0. What will you need?
- Putty ( http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe ) or other access to Linux console
- installed account maker

In my example I will show how to install images for account maker installed in folder /var/www/

1. Login in linux on user that got access to account maker folder (root?)
2. Go site [home pc]: http://item-images.ots.me/
Find items pack for client that your ots use (or for newer client if there is no pack for your version) and copy link to it:

It can be for example: http://item-images.ots.me/items_images_960.zip

3. Type in linux console:
Enter website 'images' folder, for most website servers it's:
cd /var/www/images
Then:
wget "HERE_LINK_TO_IMAGES_ZIP_FILE" -O items.zip, for me:
wget "http://item-images.ots.me/items_images_960.zip" -O items.zip
Wait few seconds, it will download file. When it let you again type commands type:
unzip items.zip
If it shows error like 'command unzip is unknown' then type:
apt-get install zip
and again:
unzip items.zip
If it asks 'do you want to replace?', type letter to replace 'All'. On my linux it was [A]ll, so I typed A
then type:
rm items.zip
4. Done! You installed/updated items!
 
Last edited:
Hmm sorry but how can i download it :( because i didn't download anything from github before.
 
Where do i see if that works? cuz even if i add an item in the shop it wont show up, ill get like 0 errors in console. Also it wont import it to the Column on database. Even if i add an item manualy in the column nothing happens.
 
Why brs can't access ots.me? lol
Some of them got problem with routing (probably) to ots.me IP.
I don't know why. It's hosted on one of biggest website hosting clusters in europe [handle up to 2.000.000 HTTP requests per second]. Maybe their subnets are banned, because of too many DDoS or hack attempts? :p
 
you dont have to do this you can just go to your gesior2012 folder than config folder open the file config.php with Notepad++ search for the line
Code:
$config['site']['item_images_url'] = 'http://item-images.ots.me/960/';
and change the link
Code:
http://item-images.ots.me/960/
for your client version or a higher versior.
you can get the links here :http://item-images.ots.me/
or use
Code:
http://item-images.ots.me/1081/
/\ its the latest

sorry for my english =D
 
Hey I got problem because some of items in my ots have different ID so for example --> I add donate staff with ID 12228 to shop and the image is door not that item. so how can I change link of items from url to my home folder ? After change to home folder I will change name of gif for correct. THX
 
Back
Top