Author Topic: Mcmmo flatfile overhauled  (Read 4330 times)

1cec0ld

  • Frozen Hearted Admin
  • Professor
  • Fighting Blaine
  • *****
  • Posts: 3084
  • Friendliness: 94
  • Who am I to judge others?
  • Pokemon Team: Typhlosion, Espeon, Aerodactyl, Glalie, Jolteon, Mew the HM Slave
Mcmmo flatfile overhauled
« on: November 25, 2012, 04:59:07 pm »
Every player that had 0 powerlevel, new and old, regardless of exp, no longer exists in the mcmmo flatfile. 3698 entries out of 10396: gone.
No longer will we have to deal with mcmmo glitching up because the file is too big. I have learned Regex, and it is my bitch for searching and replacing text files such as mcmmo's ugly-as-hell flatfile.

^\w*:0::\w*:\w*:0:\w*:0:0:0:0:0:0:0:0:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*::0:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*:0:\w*:\r\n
and
^\w*:0::\w*:\w*:0:\w*:0:0:0:0:0:0:0:0:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*::0:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*:\w*:0:\w*:\w*:\r\n

Both gone from the file.
Want to learn what that means?
http://www.regular-expressions.info/
Start reading.

Ad...

Z4X3R

  • Raiding TeamRocket in Celadon
  • *
  • Posts: 708
  • Friendliness: 0
  • we really out here
Re: Mcmmo flatfile overhauled
« Reply #1 on: November 25, 2012, 05:01:32 pm »
I was #1 on /mctop earlier today :D


1cec0ld

  • Frozen Hearted Admin
  • Professor
  • Fighting Blaine
  • *****
  • Posts: 3084
  • Friendliness: 94
  • Who am I to judge others?
  • Pokemon Team: Typhlosion, Espeon, Aerodactyl, Glalie, Jolteon, Mew the HM Slave
Re: Mcmmo flatfile overhauled
« Reply #2 on: November 25, 2012, 05:03:02 pm »
I was #1 on /mctop earlier today :D

That was when Hex did it, not knowing exactly what I wanted, he used the same method to remove everyone with 0 levels AND 0 exp, so he didn't catch as many people as mine did.

Tactic

  • Ninja
  • Professor Assistant
  • Underground Passage-Vertical
  • ****
  • Posts: 282
  • Friendliness: 14
Re: Mcmmo flatfile overhauled
« Reply #3 on: November 26, 2012, 12:03:15 am »
Rare candied for all your hard work.