This is a set of PHP scripts that will parse character files. The included driver will parse all character files in a specified server vault and insert them into a mySQL database.
Posted by Sphax at 2005-08-03 19:21:42 Voted 9.00 on 08/03/05
Sorry for my error ! It's great but it's slow too... _________________________ Aventuriers de Troy - French module in the great World of Troy with Lanfeust and co ! Link
Posted by Sphax at 2005-08-03 18:29:03 Voted 9.00 on 08/03/05
Greate job ! Not 10 because you don't say the fields for the database table... ^^ _________________________ Aventuriers de Troy - French module in the great World of Troy with Lanfeust and co ! Link
Posted by Sphax at 2005-08-03 18:27:53 Voted 9.00 on 08/03/05
Whats ares the fields required in the table of the database ? Great job ! _________________________ Aventuriers de Troy - French module in the great World of Troy with Lanfeust and co ! Link
Posted by Sphax at 2005-08-03 18:27:23 Voted 9.00 on 08/03/05
Whats ares the fields required in the table of the database ? Great job ! _________________________ Aventuriers de Troy - French module in the great World of Troy with Lanfeust and co ! Link
This is a compilation of the old system into a single score. There were 1 that made this score of 7 then rounded to 7.
Posted by Spoonster ( ..xxx.xxx ) at 2003-06-27 01:00:00
Well i changed the options in php.ini when it ran out of memory in the first try at 8m, if there is anyway you could contact me out of this forum to help remedy this situation it would be appreciated, as this script looks really nice.
Posted by Enigma ( ..xxx.xxx ) at 2003-06-26 19:42:00
The problem with re-encoding files is the quantity of references that are attached to any one item. There are some relationships I don't understand so could get wrong easily if I tried to write a re-encoder.
I haven't had any memory problems when running it myself. I've left the php.ini setting at the default 8MB cap on memory usage which it doesn't seem to have exceeded ever.
All my tests have been done on the following systems:
Server:
AMD Athlon 1800+
1.25 GB PC2700 DDR SDRAM
RedHat Linux 7.3
PHP 4.3.2
MySQL 3.23.54 (4.x has too many problems with PHP for me to use)
Apache 2.0.46
Development System:
G4 550 Mhz
512 MB RAM
Mac OS X 10.2.6
PHP 4.3.2
MySQL 3.23.54
Apache 2.0.46
While monitoring CPU usage on my server, it also seems to yield to other processes if they need. It only uses the idle CPU power (which is typically around 95%).
Posted by Spoonster ( ..xxx.xxx ) at 2003-06-26 12:56:00
Just wondering, is it supposed to take 128 megs of ram then die?
Parsing character 1 peramthorrer.bic
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40 bytes) in
htdocs/charparser/charreader.php on line 347
Posted by Nathraiben ( ..xxx.xxx ) at 2003-06-22 06:18:00
Wuah, didn't try it so far, but as long at it does just half of what you've stated here, this looks great ^_^
But, uhm... *getting greedy again* ;) ... is there any chance you could script the whole procedure backwards, making it possible to create / change a character via PHP?
That would be really cool, although writing a .bic file's content into a database is already a giant leap forward to what I was looking for ^_^
Posted by Enigma ( ..xxx.xxx ) at 2003-06-19 20:07:00
It inserts the results from the parser. It creates the specified table, creates the insert statement, and runs it.
However, this is only a sample driver. With a little php knowledge, it can be used to do anything with the returned data.
Posted by Gamergeek ( ..xxx.xxx ) at 2003-06-18 22:22:00
So uhh.. exactly what is it inserting?
You must be Logged In to post comments in this section.