Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Stickies (https://postpacific.mmorpg-game.online/forumdisplay.php?f=44)
-   -   [Share]L2Book, online informer (https://postpacific.mmorpg-game.online/showthread.php?t=8035)

hel 10.07.2007 21:27

[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. :D

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
L2Book0.2beta.zip — 14104 байт

Ra1n0 11.07.2007 00:40

Great Work!thx for share..

PS: Good coding style ;)

Guaresnay 11.07.2007 05:14

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 =/

madar 11.07.2007 05:50

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

hel 11.07.2007 09:50

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 байт

madar 11.07.2007 09:57

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

hel 11.07.2007 10:21

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.

olmer2002 11.07.2007 13:55

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

KOC2000 11.07.2007 15:10

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.

Guaresnay 11.07.2007 16:41

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)

hel 11.07.2007 17:51

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. :\

Guaresnay 11.07.2007 18:29

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.

madar 11.07.2007 19:02

Quote:

Originally Posted by Guaresnay (Post 91560)
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 :|

hel 11.07.2007 19:23

Quote:

Originally Posted by Guaresnay (Post 91576)
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.

Guaresnay 11.07.2007 20:48

Quote:

Originally Posted by madar (Post 91581)
tried it with 80M, 128M, 256M, 512M, 1024M, 2048M and 4096M :|

Weird, really weird =/

hel 13.07.2007 11:57

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. :)

Forcer 13.07.2007 16:59

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?

hel 13.07.2007 19:16

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.

Guaresnay 13.07.2007 20:42

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.

hel 13.07.2007 22:30

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?

SImon 10.08.2007 02:18

Nice ^^ hehehe

emanuel 10.08.2007 06:48

Quote:

Originally Posted by hel (Post 91736)
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 ? :((

hel 10.08.2007 12:07

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. :)

emanuel 10.08.2007 13:47

Quote:

Originally Posted by hel (Post 94242)
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 байт

hel 11.08.2007 13:18

err, that's not fileedit format, as i can remember.
try setting is_l2asm to 0.

emanuel 11.08.2007 16:20

Quote:

Originally Posted by hel (Post 94350)
err, that's not fileedit format, as i can remember.
try setting is_l2asm to 0.

Ok now i decrypt the files with Alzeck's Pack for is_l2asm = 1 , same errors
and with Remo-Pack ( is_l2asm = 0 ) same errors :
Quote:

warning: 13186 ([effect_for_valakas]) without name. Skipped.
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
.....
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
Incorrect integer value: '' for column 'ismagic' at row 1
I have tried all the programs for decrypt l2 dat files :happy4: :
L2 FileEdit, Alzeck's Pack, Remo-Pack


At this url you can find all the files ( files from system decrypted with Remo-Pack ) . Please try this in your web server, if you have time, of course. Dont know if the errors are from my web server or mysql server.
Thx hel

KOC2000 11.08.2007 22:13

Project is great, I'm waiting for more fixes and unicode support as I posted before.
thanx.

hel 13.08.2007 07:21

emanuel:
I have tested it with your scripts, and has seen some minor warnings. i don't get any "incorrect integer value" errors. i think you must edit some system parameters. go to control panel, regional and language parameters, and change float numbers delimeter to ".".


All times are GMT. The time now is 23:18.