Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.07.2007, 21:27   #1
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default [Share]L2Book, online informer

Overview:
This is web-based Lineage2 informer 0.2 beta.
You need to install a database to get it working (it will be created automaticaly, just follow Readme.txt -> install section instructions).

in case, this script needed VERY much testing, it's unstable a bit, but in future i will fix it, now i need testers.

Changelog:
0.1 - First alpha version, for bugs testing.
0.2 - Beta version, a lot of bugs and mistakes was fixed. Language file edited a bit. addslashes() was a wrong escape symbols function for mysql queries, so i use the right function - mysql_escape_string(), after that i wasn't see any mistakes in showed results, but if you seen, report to forum. Final exp formula fixed, thanks again to Guaresnay. And installcore.class.php was rewritten a bit.

script contain basic security against sql-injections.
also it automaticaly convert files from unicode to ansi on the fly.
it has l2asm and l2clientdat formats support (i hope), just check config.php.
before running a script - read the readme.txt carefully!

i will wait for bug reports, ideas, optimization hints and also respects.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
L2Book0.2beta.zip — 14104 байт
hel is offline  
Old 11.07.2007, 00:40   #2
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

Great Work!thx for share..

PS: Good coding style
Ra1n0 is offline  
Old 11.07.2007, 05:14   #3
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

Awesome share hel!! Test in progress..
BTW I had some problems with installation, I had to set the memory size to 80mb in php.ini =/
Guaresnay is offline  
Old 11.07.2007, 05:50   #4
madar
Архивный участник
 
Join Date: Dec 2005
Posts: 156
Default

http://bugs.php.net/bug.php?id=39640

:EDIT

i tried the latest CVS and the latest stable from the download, tried to set up the max memory from 128 to 256MB but still having this issue :P
madar is offline  
Old 11.07.2007, 09:50   #5
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

I'm using PHP 5.1.6 with Apache 2.2.1 (AppServ 2.5.7).
Quote:
Originally Posted by my php.ini
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
:| and i got no any problems with memory. (error_reporting is fine...)
if anyone want, i'm sharing my php.ini.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
php.ini-hel.zip — 14761 байт
hel is offline  
Old 11.07.2007, 09:57   #6
madar
Архивный участник
 
Join Date: Dec 2005
Posts: 156
Default

im using latest xampp with updated (latest) apache + php

:EDIT

Code:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2769 bytes) in E:\--== WEB ===--\htdocs\informer\installcore.class.php on line 132
madar is offline  
Old 11.07.2007, 10:21   #7
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

every pack has it's own settings. i don't know what to do with it. there is need experimentation with ini files and other stuff. cause i don't have this error - i can't help. but i will get any hints about this, if anyone solve.
hel is offline  
Old 11.07.2007, 13:55   #8
olmer2002
Архивный участник
 
Join Date: Feb 2006
Posts: 153
Default

localhost
install with memory value=256MB in php.ini -> complete without error
iwork hosting undump informer_base and upload scripts (memory value=8Mb) -> all work without any errors

=) and no problem

OS win xp sp2 in localhost
OS freeBSD 6.1 in work hosting
php 5.2.2,mysql 5.x.xx
olmer2002 is offline  
Old 11.07.2007, 15:10   #9
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

Thank you hel.
I'm getting alot of errors installing the database..
npcs install:-
Code:
Incorrect integer value: '' for column 'itemid' at row 1
Incorrect integer value: 'can_be_attacked=0' for column 'undying' at row 1
Incorrect integer value: '' for column 'itemid' at row 1
Incorrect integer value: '' for column 'itemid' at row 1
Incorrect integer value: '' for column 'itemid' at row 1
and ALOT other incorrect integer values at items install,skills install and classes install.. I completed the install though, and it worked.

Also, Arabic names don't show correctly (I think converting from unicode to ansi does that), I wish there could be a solution for it..

Thanx so much.
KOC2000 is offline  
Old 11.07.2007, 16:41   #10
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

For all who have the memory error, try changing the allowed memory to 80M just for installation.
Code:
memory_limit = 80M ; Maximum amount of memory a script may consume (8MB)
Guaresnay is offline  
Old 11.07.2007, 17:51   #11
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

ok, i will rewrite some on install.php and will add config option for disable on the fly convertion. (you will have to manually convert it into ansi)
i think that my script doesn't support it correctly. on my computer i found many small bugs, but not so many as you.

i need some relax after alpha release and i will do it.

i can't figure, why while selecting values, " - " and " ' " symbol converts to strange symbol, like in dos encoding, and while selecting " * " it will not return a row... -_- it's very important error. because it will cause warnings and errors in queries.

i'm thinking, will ini_set('memory_limit','80M'); works, or not. :\
hel is offline  
Old 11.07.2007, 18:29   #12
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

hel, as I see ur not using the final exp formula that I sent you.. For a brown keltir it shows 1292 as the final exp.

Now it's..
PHP Code:
$npcexp=str_replace("exp=","",$el[28])*(str_replace("acquire_exp_rate=","",$el[5])^2); 
And it should be..
PHP Code:
$npcexp=str_replace("acquire_exp_rate=","",$el[5])*((str_replace("level=","",$el[4]))*(str_replace("level=","",$el[4]))); 
I think you are confused with the "exp" value in npcdata, it has nothing to do with the final exp value.
Guaresnay is offline  
Old 11.07.2007, 19:02   #13
madar
Архивный участник
 
Join Date: Dec 2005
Posts: 156
Default

Quote:
Originally Posted by Guaresnay View Post
For all who have the memory error, try changing the allowed memory to 80M just for installation.
Code:
memory_limit = 80M ; Maximum amount of memory a script may consume (8MB)
tried it with 80M, 128M, 256M, 512M, 1024M, 2048M and 4096M :|
madar is offline  
Old 11.07.2007, 19:23   #14
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Quote:
Originally Posted by Guaresnay View Post
hel, as I see ur not using the final exp formula that I sent you.. For a brown keltir it shows 1292 as the final exp.

I think you are confused with the "exp" value in npcdata, it has nothing to do with the final exp value.
thanks, i see where i do a mistake.
i'll fix it.
hel is offline  
Old 11.07.2007, 20:48   #15
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

Quote:
Originally Posted by madar View Post
tried it with 80M, 128M, 256M, 512M, 1024M, 2048M and 4096M :|
Weird, really weird =/
Guaresnay is offline  
Old 13.07.2007, 11:57   #16
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

try to set memory_limit=-1 in php.ini to disable it.
maybe in L2Book version 0.2 beta, ini_set('memory_limit','-1') will work. but i don't know, will that work at runtime, or not...

see first post, new version uploaded, it has many things overwritten, and a lot of bugs fixed. but of course it needs for beta testing.
hel is offline  
Old 13.07.2007, 16:59   #17
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

Hmm...i can't install into SQL.
I do all correct by readme, but...
Quote:
warning: 1 ([gremlin]) without name. Skipped.
warning: 2 ([rabbit]) without name. Skipped.
warning: 3 ([goblin]) without name. Skipped.
warning: 4 ([imp]) without name. Skipped.
warning: 5 ([imp_ribe]) without name. Skipped.
warning: 6 ([orc_archer]) without name. Skipped.
---------
warning: 3159 ([tears_of_unicorn]) have no name. Skipped.
warning: 3160 ([water_of_life]) have no name. Skipped.
warning: 3161 ([pure_mithril_ore]) have no name. Skipped.
warning: 3162 ([ant_soldier_acid]) have no name. Skipped.
warning: 3163 ([wyrms_talon1]) have no name. Skipped.

Etc etc...in results - DB created, but empty.
What's wrong?
Forcer is offline  
Old 13.07.2007, 19:16   #18
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

did you forget to place decoded npcname-e.txt into script folder?
what are you using for decoding dat files?
l2asm or l2clientdat?
if l2asm, then show me at least 2-3 lines from output txt.
i didn't tested my script with l2asm, cause i don't have encoded dat files and l2asm decoder, but only c4 decoded dat's by clientdat.
hel is offline  
Old 13.07.2007, 20:42   #19
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

Dunno if its my file editor or what but I had to change some index numbers for the l2asm way. i.e: it was taking one of the RGB colors for the npcname.
Could be a good idea if you include the versions of file editors that you used for testing.
Guaresnay is offline  
Old 13.07.2007, 22:30   #20
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

yes, there is need to change indexes of array for decoders compatibility.

"L2(CH4) dat files decoder [2nd Edition]"
(3.5.0.1 in product version and 3.0.1.9 in file version, don't know which is correct)
it has decoded files, this is what i'm using for script.
this is line from npcname-e
Code:
npc_begin	id=1	nickcolor=default	nick=[]	name=[Gremlin]	npc_end
anyone have problems with memory limit in new version?
hel is offline  
Old 10.08.2007, 02:18   #21
SImon
Архивный участник
 
Join Date: Apr 2006
Posts: 100
Default

Nice ^^ hehehe
SImon is offline  
Old 10.08.2007, 06:48   #22
emanuel
Архивный участник
 
Join Date: May 2007
Posts: 86
Default

Quote:
Originally Posted by hel View Post
yes, there is need to change indexes of array for decoders compatibility.

"L2(CH4) dat files decoder [2nd Edition]"
(3.5.0.1 in product version and 3.0.1.9 in file version, don't know which is correct)
it has decoded files, this is what i'm using for script.
this is line from npcname-e
Code:
npc_begin	id=1	nickcolor=default	nick=[]	name=[Gremlin]	npc_end
anyone have problems with memory limit in new version?
Some problems:

at NPCs INSTALL:

Quote:
warning: 5003 ([spirit_of_mirrors1]) without name. Skipped.
warning: 5004 ([spirit_of_mirrors2]) without name. Skipped.
warning: 5005 ([spirit_of_mirrors3]) without name. Skipped.
warning: 5016 ([nerkas]) without name. Skipped.
warning: 5017 ([plague_zombie]) without name. Skipped.
warning: 5020 ([varool_foulclaw]) without name. Skipped.
....
...
I`m using FileEdit for decrypt and i have write in config.php 1.

Quote:
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
Incorrect integer value: '' for column 'skill' at row 1
......
.....
This error - at page 4

Quote:
Incorrect integer value: '' for column 'ismagic' at row 1
Incorrect integer value: '' for column 'ismagic' at row 1
Incorrect integer value: '' for column 'ismagic' at row 1
Incorrect integer value: '' for column 'ismagic' at row 1
Incorrect integer value: '' for column 'ismagic' at row 1
......
......
this at skils install.

Quote:
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
Incorrect integer value: '' for column 'itemcount' at row 1
and this at classes install.

npcdata.txt, skilldata.txt, skillacquire.txt, itemdata.txt, item_pch.txt are from Storm Pack.

What is my problem ? (
emanuel is offline  
Old 10.08.2007, 12:07   #23
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

all problems is missing bugreports, all peoples here stays quiet and don't report anything, how i may fix it and grow up my informer? i was many ideas about this project, but noone interested.
ok. sorry for such words, for fix these problems i need small pieces generated by fileedit...
create an text document, and put 2-3 lines from npcname-e, itemname-e and skillname-e, then attach it in forum. it will help me understand, what a problem is it. and... thanks for bugreport.
hel is offline  
Old 10.08.2007, 13:47   #24
emanuel
Архивный участник
 
Join Date: May 2007
Posts: 86
Default

Quote:
Originally Posted by hel View Post
all problems is missing bugreports, all peoples here stays quiet and don't report anything, how i may fix it and grow up my informer? i was many ideas about this project, but noone interested.
ok. sorry for such words, for fix these problems i need small pieces generated by fileedit...
create an text document, and put 2-3 lines from npcname-e, itemname-e and skillname-e, then attach it in forum. it will help me understand, what a problem is it. and... thanks for bugreport.

Sorry dont want to take your time with my problem but your script is great .
Thx.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
hel.txt — 2095 байт
emanuel is offline  
Old 11.08.2007, 13:18   #25
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

err, that's not fileedit format, as i can remember.
try setting is_l2asm to 0.
hel 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 17:45.