Author Topic: FoZStats 1.2.0 .:. Update!  (Read 6968 times)

0 Members and 1 Guest are viewing this topic.

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: FoZStats 1.1.12 Alpha Release
« Reply #20 on: December 14, 2007, 01:31:34 am »
Hmm. nicknames with ` will produce SQL problems.
Fight! Win! Prevail!

Offline FoZ

  • Major(1)
  • Posts: 13
Re: FoZStats 1.1.12 Alpha Release
« Reply #21 on: December 15, 2007, 03:08:23 pm »
Fixed Fixed and fixed.
Fixed the archiving problem by writing my own version of php's addslashes.
fixed a bug in the weapon stats display that displayed stats for weapon 3 twice in a row, skipping #17 (steyr)
Updated default skin, it looks neater now.

spoilers for next version:
working playername search box.
fully usable html skinning, currently only allows you to use the default FoZed profile
automatic uploading of your own stats, along with a Statsimage script, preview:
« Last Edit: December 15, 2007, 06:39:58 pm by FoZ »

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: FoZStats 1.1.12 Alpha Release
« Reply #22 on: December 15, 2007, 03:23:36 pm »
Make sure it is compliant with the forum rules.

Offline FoZ

  • Major(1)
  • Posts: 13
Re: FoZStats 1.1.12 Alpha Release
« Reply #23 on: December 15, 2007, 04:02:41 pm »
that is just a draft, i asked sin to make it smaller but he insists that everything around him must be large... idk why...

ps. sin has a small peepee

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: FoZStats 1.2.0 .:. Update!
« Reply #24 on: December 21, 2007, 02:26:29 am »
Great! You fixed the VERY slow archiving. How did you do it? e.g. how were you reading the files, and how do you read them now?

This is some 400-700 times faster. :D

Edit: Memory consumption. :| Takes over 250MB of RAM after archiving, while "Dumping buffer" for few minutes. It seems that longer I let it run, more it eats the RAM. Strange, since log files only take up some 15MB of diskspace.
It also keeps CPU usage quite high. 2.6GHz Athlon64 X2 goes around 50% for another core for every few seconds. I wonder what my old 1GHz Duron would like about that.

No offense, but right now this seems to be the most inefficient program I have seen so far, ever. But I believe it is just a bad way of doing things. But hey, this is great opportunity to learn to optimize your code better, so I am more than eager to get the new version, just to see the progress you have made. :)
« Last Edit: December 21, 2007, 02:44:44 am by Clawbug »
Fight! Win! Prevail!

Offline FoZ

  • Major(1)
  • Posts: 13
Re: FoZStats 1.2.0 .:. Update!
« Reply #25 on: December 21, 2007, 04:49:00 pm »
Well, its built differently than it acts, i made the buffer 5,000,000 lines long as default, and sortof forgot to code a user input for this option, im working on it, will probably be up tonight or tomorrow.

ps - thanks for the honesty.

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: FoZStats 1.2.0 .:. Update!
« Reply #26 on: December 22, 2007, 08:30:54 am »
Well, obviously it somehow duplicates the data over and over again. Dumping buffer at least isn't surely wworking as it should. It would take AGES for it to dump that buffer. I run out of ram before it can finish it. :P
Fight! Win! Prevail!

Offline Therier

  • Soldier
  • **
  • Posts: 102
Re: FoZStats 1.2.0 .:. Update!
« Reply #27 on: August 21, 2008, 06:24:12 am »
Both links are broken.