Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 23.08.2005, 02:44   #1
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default [TOOL] Skillacquire.txt to MSSQL Importer and PHP editor!

* deleted by MoSs*

sorry could not upload anything else...
MoSs is offline  
Old 23.08.2005, 02:47   #2
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

Here is a screenshot
(tried to attach it but the forum does not let me )
MoSs is offline  
Old 23.08.2005, 03:00   #3
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

nice job moss, this php script looks really nice
SoaPy is offline  
Old 23.08.2005, 03:50   #4
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

OMG really nice job !!
archonus is offline  
Old 23.08.2005, 04:31   #5
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Wow, nice job! I'm sure everyone will make good use of this.
flakka is offline  
Old 23.08.2005, 06:20   #6
JC.Paradox
Архивный участник
 
Join Date: Apr 2005
Posts: 17
Default

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 ???
JC.Paradox is offline  
Old 23.08.2005, 06:28   #7
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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 is offline  
Old 23.08.2005, 07:12   #8
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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 is offline  
Old 23.08.2005, 07:46   #9
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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!
MoSs is offline  
Old 23.08.2005, 07:56   #10
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

Why not just make it parse the skillacquire from the info on official website? :-)

Wouldnt even be that hard
archy is offline  
Old 23.08.2005, 08:37   #11
CubAfull
Архивный участник
 
Join Date: Aug 2005
Posts: 119
Default

O.O really nice job men, i give u some cash
CubAfull is offline  
Old 23.08.2005, 09:19   #12
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

MoSs your is a really good job.

Tell me if the error below is my fault as I fear it is :
Code:
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
Adelaide is offline  
Old 23.08.2005, 09:23   #13
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

woot nice.
its pretty useful. thx a lot...
donatin sum cash
toolpunk is offline  
Old 23.08.2005, 09:24   #14
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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!
MoSs is offline  
Old 23.08.2005, 09:45   #15
Adelaide
Архивный участник
 
Join Date: Jun 2005
Posts: 82
Default

I've checked our files and the difference is [comment] , rather than the original [?? ?]

Thanks not it worked.
Adelaide is offline  
Old 23.08.2005, 10:23   #16
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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
MoSs is offline  
Old 23.08.2005, 11:56   #17
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

it does not work for my: (, this error leaves

wton is offline  
Old 23.08.2005, 12:20   #18
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

install the full package of php win32
sorry i will not provide support for php installations www.php.net has everything you need...
MoSs is offline  
Old 23.08.2005, 12:32   #19
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

im getting this error :
url : http://localhost/skill/import.php

Code:
Error inserting class_name
archonus is offline  
Old 23.08.2005, 12:38   #20
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

im using ur skillacquire in unicode format and i renamed it to : skillacquire.original.txt
archonus is offline  
Old 23.08.2005, 13:04   #21
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

thanks..

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




no work, :```(
wton is offline  
Old 23.08.2005, 21:15   #22
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

read the php manual on how to install php extensions...
I am not gonna say it again I WILL NOT PROVIDE PHP INSTALATION INSTRUCTIONS
MoSs is offline  
Old 23.08.2005, 23:44   #23
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

ok thanks
wton is offline  
Old 24.08.2005, 01:00   #24
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

Moss what about my problem? can u helpme? any idea?
archonus is offline  
Old 24.08.2005, 03:20   #25
MoSs
Архивный участник
 
Join Date: Jul 2005
Posts: 108
Default

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
MoSs is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 18:08.