![]() |
[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 байт |
Great Work!thx for share..
PS: Good coding style ;) |
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 =/ |
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 |
I'm using PHP 5.1.6 with Apache 2.2.1 (AppServ 2.5.7).
Quote:
if anyone want, i'm sharing my php.ini. Вложения из исходного сообщения (сами файлы в копии отсутствуют): php.ini-hel.zip — 14761 байт |
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 |
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.
|
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 |
Thank you hel.
I'm getting alot of errors installing the database.. npcs install:- Code:
Incorrect integer value: '' for column 'itemid' at row 1Also, 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. |
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) |
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, 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:
PHP Code:
|
Quote:
|
Quote:
i'll fix it. |
Quote:
|
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. :) |
Hmm...i can't install into SQL.
I do all correct by readme, but... Quote:
Etc etc...in results - DB created, but empty. What's wrong? |
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. |
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. |
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 |
Nice ^^ hehehe
|
Quote:
at NPCs INSTALL: Quote:
Quote:
Quote:
Quote:
npcdata.txt, skilldata.txt, skillacquire.txt, itemdata.txt, item_pch.txt are from Storm Pack. What is my problem ? :(( |
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. :) |
Quote:
Sorry dont want to take your time with my problem but your script is great . Thx. Вложения из исходного сообщения (сами файлы в копии отсутствуют): hel.txt — 2095 байт |
err, that's not fileedit format, as i can remember.
try setting is_l2asm to 0. |
| All times are GMT. The time now is 15:26. |