Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 21.02.2007, 22:45   #1
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default [SHARE] L2 In Game Glossrary v1.3 (Generates based on your server/client files)

the system was nearly finished and this is what and how it does what it does. if you have updates just post them for others all in all this is nice system. This is my final act with lineage 2 most likely so enjoy.

ok this system will generate 15,000+ htmls that you will add to your lineage 2 html directory. its broken down into sub folders so the server wont cache them incase you update they will update live as well as the server can not cache that many more files with the current amount of htms in the html dir.

the server code only allows for just over 4kb(8kb unicode) sized htm files or else it wont display the htm to the user and will buffer overflow(will not crash a server no worries). if somebody would hex this in the server code then you could obviously make nicer htm files using this system however it currently tries to limit all the files generated to this maximum size.

Whats this do?
--------------------------------------------------------------------------------
1) Generates new recipe looks for all dwarf recipes
2) Generates glossary for recipes for all characters
3) Generates glossary for mobs with drop/spoil percentages
4) Generates glossary for items with all stats/descriptions/quest


Directories:
--------------------------------------------------------------------------------
base/ -- consist of 4 types of files which only 3 you will need to use
base/client -- where you put your decrypted client files for your version of lineage 2
base/server -- where you put your lineage 2 server data files
base/glossary -- once generated you copy all files in here to your lineage 2 server html directory
base/html -- this is where you modify the templates for the glossary output
base/db -- the system is part of a much larger database however you only need 2 tables for this the script is here


Requirements:
--------------------------------------------------------------------------------
1) some kind of sql server (default is mssql)
2) php version 5 with database support
3) 120 MB of Free RAM (yes its alot of processing)
4) a pretty fast cpu hehe
5) between 2 and 10 minutes of bordom
if (this.age >= state.law.drinking_age) { this.getBeer(); } else { this.stareAtScree(); }


Files:
--------------------------------------------------------------------------------
class*.* -- class file you wont need to read
create*.* -- code that create physical files on the hard drive
import*.* -- code that inserts data from files to sql
**NOTE: Ver2 type imports require a db row that is manually added with the id 0 with any default data
data*.* -- a file with array data for quick reference cache


Steps:
--------------------------------------------------------------------------------
after you copy the required client and server data in the directories you can run
createPhPIconArray.php which will create dataItemIcons.php

once you create a new database called "l2serverDB" you can open databasecontroller.php
and put in the appropriate login info to access that database. it also needs
read access to your "lin2world".

there are 3 tables in "lin2world" that it gets information from which are data_item,
ItemData, data_npc... these are generated by useing your cache server to import
your server files to your "lin2world" database and are used to calculate item drop
information and item stat information.

after all this data is prepped and ready to go you can just run the createGlossary.php which
will start outputing all the html files in the glossary sub directory. It will overwrite
and allready existing files however will not delete old files!

UPDATES v1.2
INFO) Also you will need to add a way to access the glossary a simple link from an existing npc htm
will work just add... <a action="link glossary/glossary.htm">Glossary</a> to one of them.

1) Fixed problem with fixed glossary browse files glossary.htm/ recipes.htm/ items.htm/ mobs.htm
2) Corrected included file name from itemsIconDB.php to dataItemIcons.php
3) Added .bat file for createPhPIconArray.php

UPDATES v1.3
1) Removed reference to formcontroller.php
2) Included newer fucntions to databasecontroller.php used by some scripts

Things that need to be done:
--------------------------------------------------------------------------------
1) add a browse by letter htms for mobs by name
2) add a browse by letter htms for items by name
3) add skill library with class skill trees and train cost
4) hex l2server so it can accept larger htm files even if its just 4kb(8kb unicode) more!!! <- anybody???
5) if we can get larger file size for htm then we can provide glossary crosslinking between htms(which is really cool)
as it is now we can barely show you all the information in one page...

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
browse.jpg — 84847 байт
glossary.jpg — 55981 байт
index.jpg — 54684 байт
recipe.jpg — 80747 байт
glossary.rar — 769584 байт
duante is offline  
Old 22.02.2007, 06:43   #2
evern
Архивный участник
 
Join Date: Jul 2006
Posts: 46
Default

marvellous!! thankiew very much!! will try it now
evern is offline  
Old 22.02.2007, 08:21   #3
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

Can you show any screenshot of how exactly looks like ?
Mark20 is offline  
Old 22.02.2007, 20:52   #4
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

ver 1.2 added pictures of the glossary as well
duante is offline  
Old 23.02.2007, 19:39   #5
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Thank you for sharing your work
Firedaemon is offline  
Old 24.02.2007, 15:47   #6
YakudZe
Архивный участник
 
Join Date: Dec 2006
Posts: 205
Default

Php version 5.x necessarily?
YakudZe is offline  
Old 26.02.2007, 06:42   #7
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

COOL.. thanx
KOC2000 is offline  
Old 05.03.2007, 19:58   #8
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

i only work with php 5 so im not sure if its php 4 compatible if you get an error in php 4 i could suggest some changes
duante is offline  
Old 06.03.2007, 13:24   #9
olmer2002
Архивный участник
 
Join Date: Feb 2006
Posts: 153
Default

hmm, where is formcontroller.php file?
Code:
include("databasecontroller.php");
include("formcontroller.php");
this code from importClientItemname-eVer2.php file

im couldn't test u tools,because formcontroller.php file not found =(
olmer2002 is offline  
Old 06.03.2007, 16:59   #10
ivasik
Архивный участник
 
Join Date: Feb 2006
Posts: 7
Default

nice. thnx
ivasik is offline  
Old 09.03.2007, 01:18   #11
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

Why its too complex? It can be done without any php/mssql or server side.. just modify L2text html client files and make another help..
rodier is offline  
Old 09.03.2007, 19:11   #12
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by olmer2002 View Post
hmm, where is formcontroller.php file?
Code:
include("databasecontroller.php");
include("formcontroller.php");
this code from importClientItemname-eVer2.php file

im couldn't test u tools,because formcontroller.php file not found =(
fixed in new download update x.x
duante is offline  
Old 09.03.2007, 19:13   #13
duante
Архивный участник
 
Join Date: Aug 2005
Posts: 36
Default

Quote:
Originally Posted by rodier View Post
Why its too complex? It can be done without any php/mssql or server side.. just modify L2text html client files and make another help..
well if its that easy just do it and share it.

on another note the system makes it so all the rates and drops are generated for YOUR server specifically which is why you need server side files. granted you could do it without mssql but if you read this system was part of a larger system that did other things.
duante is offline  
Old 09.03.2007, 22:32   #14
olmer2002
Архивный участник
 
Join Date: Feb 2006
Posts: 153
Default

Quote:
Originally Posted by duante View Post
fixed in new download update 1.3
mmm,this
Code:
include formcontroller.php
to be contained in importClientItemname-eVer2.php file.

you realy fixed all scripts from your tools? =)
olmer2002 is offline  
Old 14.03.2007, 08:27   #15
olmer2002
Архивный участник
 
Join Date: Feb 2006
Posts: 153
Default

im sorry,im found function makeInsertQuery in databasecontroller.php file,but string include formcontroller.php in importClientItemname-eVer2.php should be removed ,оtherwise php interpreter will return a mistake at execution php scripts.
olmer2002 is offline  
Old 15.03.2007, 16:46   #16
evern
Архивный участник
 
Join Date: Jul 2006
Posts: 46
Default

can you share your php folder please? or tell me what ext do you use? my php seems weird, i have to change <? to <?php for createPhPIconArray and createGlossary for it to run, but it still return errors
evern is offline  
Old 14.04.2007, 17:48   #17
Ranma12
Архивный участник
 
Join Date: Nov 2006
Posts: 7
Default

Quote:
Originally Posted by duante View Post
there are 3 tables in "lin2world" that it gets information from which are data_item, ItemData, data_npc... these are generated by useing your cache server to import your server files to your "lin2world" database and are used to calculate item drop information and item stat information.
how can I create data_npc and data_item tables? I cant find them in db. Only ItemData is there. Thx for answer.
Ranma12 is offline  
Old 06.05.2007, 05:29   #18
asus_kpo
Архивный участник
 
Join Date: Sep 2005
Posts: 8
Default

good work!!
asus_kpo is offline  
Old 24.06.2007, 14:07   #19
Fileburner
Архивный участник
 
Join Date: Jun 2006
Posts: 8
Default

nice thanx for sharing
Fileburner is offline  
Old 03.07.2007, 08:41   #20
emanuel
Архивный участник
 
Join Date: May 2007
Posts: 86
Default

give the all sql database , with all imports ?!
emanuel is offline  
Old 03.07.2007, 13:37   #21
olmer2002
Архивный участник
 
Join Date: Feb 2006
Posts: 153
Default

Scripts do not contain any filters, therefore full import is impossible
olmer2002 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:32.