Author Topic: Simple gamestat.txt request  (Read 2355 times)

0 Members and 2 Guests are viewing this topic.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Simple gamestat.txt request
« on: August 08, 2007, 08:28:54 pm »
Can't each player get a 5th line with its id?
« Last Edit: August 08, 2007, 08:31:02 pm by mar77a »

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Simple gamestat.txt request
« Reply #1 on: August 08, 2007, 10:44:27 pm »
Nope that would break existing programs that parse it

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Simple gamestat.txt request
« Reply #2 on: August 09, 2007, 04:31:52 am »
Most programs that parse it also parse the killlogs. So they need to be rewritten anyhow.
As far as my programs are concerned, you can change whatever you want to the format.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Simple gamestat.txt request
« Reply #3 on: August 10, 2007, 09:19:10 pm »
Most programs that parse it also parse the killlogs. So they need to be rewritten anyhow.
As far as my programs are concerned, you can change whatever you want to the format.

Grtz, DePhille
why do they need to be rewritten?

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Simple gamestat.txt request
« Reply #4 on: August 11, 2007, 05:17:04 am »
The programs that parse killogs do not recognise "Selfkill" as a weapon. They also search for diffrent filename patterns (KillLog-###.txt instead of the new format with the date.). It's not a big hassle to change it, but changing the gamestat.txt parser isn't a big hassle either.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Simple gamestat.txt request
« Reply #5 on: August 11, 2007, 12:16:20 pm »
Dephille, I really don't like your logic :P  You've said things like this in another thread, and it just isn't how programmers should think.  Neither of those things are complete program-killers, and many programs have already been rewritten to deal with them.  Some programs could also have 100% worked with both of those from the start (by scanning files in a directory, not looking sequentially, and by not having hard-coded values but normalizing them into the database as it gathers more data)

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Simple gamestat.txt request
« Reply #6 on: August 11, 2007, 08:35:08 pm »
Sorry for that Bricks.
I could've better used the verb 'modified' instead of 'rewritten' probably. Ofcourse, none of these changes requires a program to be rewritten from scratch, but they do require small modifications in order to work 100%. Also, not all programs need to be modified, but most of them do. However, those are usually small modifications ;).

PS: My personal view is that there isn't a way programmers should think. Programmers should always try to think outside the box. But that doesn't matter :P.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Simple gamestat.txt request
« Reply #7 on: August 11, 2007, 08:57:34 pm »
Sure, but there are such things as "best practices."

Best practice says you don't make changes that break stuff if you can help it at all

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Simple gamestat.txt request
« Reply #8 on: August 12, 2007, 04:27:06 am »
That's where I disagree a bit.
If the changes are worth the effort of updating the respective programs (which aren't that many in our case), I support the changes. And in this case, it'd open a nice amount of possibilities for new applications so I support the changes. That was mainly my contribution to this post; that the changes are worth the hassle for me.

PS: I hope didn't use any improper verb this time ;).

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Simple gamestat.txt request
« Reply #9 on: August 12, 2007, 04:59:35 am »
In response to mar77a's original request, you might as well just fetch and parse REFRESH for that data, since you then get pretty much everything you'd find in gamestat.txt anyway.  Additionally, when the day comes that REFRESHX is finalized, you'll have a ton more data to play with (we'll have so many awesome fan apps and server mods when that is done!)