PDA

View Full Version : [TOOL] Skillacquire.txt to MSSQL Importer and PHP editor!


MoSs
23.08.2005, 02:44
* deleted by MoSs*

sorry could not upload anything else...

MoSs
23.08.2005, 02:47
Here is a screenshot
(tried to attach it but the forum does not let me :( )
http://www.lineage2.gr/saeditor.jpg

SoaPy
23.08.2005, 03:00
nice job moss, this php script looks really nice

archonus
23.08.2005, 03:50
OMG really nice job !!

flakka
23.08.2005, 04:31
Wow, nice job! :) I'm sure everyone will make good use of this.

JC.Paradox
23.08.2005, 06:20
it doesn't work....

Fatal error: Call to undefined function mb_convert_encoding() in c:\Inetpub\wwwroot\L2ASP\skills\import.php on line 36



but i'm using IIS.... how to make it work ???

MoSs
23.08.2005, 06:28
Hmm you should read the first post more carefully

edit your php.ini file, you need to enable mbstrings (multibyte strings)
find this:
;extension=php_mbstring.dll
and uncomment it (remove this ; )

MoSs
23.08.2005, 07:12
Well it just occured to me, I can make a version of this without the need of MSSQL
but the drawback will be execution time, every time you reload the page, the skillacquire.txt will have to be parsed which slowes down things,
plus every time you edit or add something will be even slower cause first
it will need to generate the file, then reload it.

What do you think? Should I even bother making a version without MSSQL?

MoSs
23.08.2005, 07:46
OMG I feel so stupid, the first version I uploaded had major haste problems! I kind of quick edit it before posting it but I did not see if it worked.

Version 1 will NOT work, major problems!

Download v0.2 (first post!) and delete the first version (if you got it)
I also added some stuff:
- When editing or saving a skill, leading or trailing spaces will be removed.
- When filtering for a certain level, the helper skill list on the right will auto scroll to the selected level!

Have fun!

archy
23.08.2005, 07:56
Why not just make it parse the skillacquire from the info on official website? :-)

Wouldnt even be that hard

CubAfull
23.08.2005, 08:37
O.O really nice job men, i give u some cash ;)

Adelaide
23.08.2005, 09:19
MoSs your is a really good job.

Tell me if the error below is my fault as I fear it is : Notice: Undefined index: skill_name in C:\Inetpub\wwwroot\saeditor\import.php on line 102

Notice: Undefined index: get_lv in C:\Inetpub\wwwroot\saeditor\import.php on line 103

Notice: Undefined index: lv_up_sp in C:\Inetpub\wwwroot\saeditor\import.php on line 104

Notice: Undefined index: auto_get in C:\Inetpub\wwwroot\saeditor\import.php on line 105

Notice: Undefined index: item_needed in C:\Inetpub\wwwroot\saeditor\import.php on line 106

Warning: mssql_query() [function.mssql-query]: message: Line 1: Incorrect syntax near '('. (severity 15) in C:\Inetpub\wwwroot\saeditor\import.php on line 106

Warning: mssql_query() [function.mssql-query]: Query failed in C:\Inetpub\wwwroot\saeditor\import.php on line 106

I suppose that using Apache or IIS ... at the end of the day shouldnt create this problems.
Thank

toolpunk
23.08.2005, 09:23
woot nice.
its pretty useful. thx a lot...
donatin sum cash ;)

MoSs
23.08.2005, 09:24
Most probable reason is that your skillacquire file has either syntax errors, or unknown values... It has to do with the contents of the file for sure.
As I said in the first post, the importer does not do error checking and is not tolerant to syntax errors...

It looks like the script was unable to create one of the tables, that stores the info for each class, that's the reason for the unknown index notices...


Here try it with this one... syntax error free!

Adelaide
23.08.2005, 09:45
I've checked our files and the difference is [comment] , rather than the original [?? ?]

Thanks not it worked. :D

MoSs
23.08.2005, 10:23
well actually the problem is elsewere the comments does not affect the importer, have in mind that the original skillacquire that i had, had chinese comments like that /* [?? ????] */ and were imported just fine :)

wton
23.08.2005, 11:56
it does not work for my: (, this error leaves

http://img355.imageshack.us/img355/7356/phpini23je.jpg

MoSs
23.08.2005, 12:20
install the full package of php win32
sorry i will not provide support for php installations www.php.net has everything you need...

archonus
23.08.2005, 12:32
im getting this error :
url : http://localhost/skill/import.php

Error inserting class_name

archonus
23.08.2005, 12:38
im using ur skillacquire in unicode format and i renamed it to : skillacquire.original.txt

wton
23.08.2005, 13:04
thanks..

MoSs
Posted: Tue Aug 23, 2005 8:20 pm Post subject:

--------------------------------------------------------------------------------

install the full package of php win32
sorry i will not provide support for php installations www.php.net has everything you need...



but :(....


http://img154.imageshack.us/img154/9732/phpini37wr.jpg

no work, :```(

MoSs
23.08.2005, 21:15
read the php manual on how to install php extensions...
I am not gonna say it again I WILL NOT PROVIDE PHP INSTALATION INSTRUCTIONS

wton
23.08.2005, 23:44
ok thanks ;)

archonus
24.08.2005, 01:00
Moss what about my problem? can u helpme? any idea?

MoSs
24.08.2005, 03:20
and once again your skillacquire.txt probably has some systax errors... in order to try the editor use the one i attached some posts below the first one

archonus
24.08.2005, 04:09
im using urs lols

MoSs
24.08.2005, 05:11
hmmm! thats weird!
well did you create a new database in your mssql? or did you just try to run the import script?

you have to create a database, by default in config.php is skillacquire

archonus
24.08.2005, 12:20
i know , i create same name database , is in same sql than l2server so sql is working , and the php skillscript is in the same webserver than my webpage so its working php too , i try to run import and that error comes.
can u add me to msn ? megalanparty@hotmail.com
txs