Chaosforge Forum

  • March 29, 2024, 00:28
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Mortem backup filename should be more descriptive and sortable  (Read 5824 times)

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert

Currently the mortems are copied to the mortem directory and named according to the following format:

Code: [Select]
[DD-MM-YYYY H-M-S] NAME.txt
It is my belief that the naming format should be more descriptive and useful, including the following modifications:
  • Follow the YYYY-MM-DD date format
  • Always use two-digit 24h time
  • Include the difficulty
  • Include the game type (normal or challenge)
  • Include the game outcome (level reached (two digits) or victory type)
The proposed changes will make the mortem archive searcheable, sortable and generally more convenient.

Examples:

Code: [Select]
2010-03-17 22-34-17 E-Normal-St1 Simon.txt
2010-05-07 02-41-05 N-Normal-15 Simon.txt
2010-07-13 12-03-24 H-AoMr-Pt1 YourName.txt
2010-11-20 14-50-22 U-Ao100-02 HisName.txt
2010-12-31 23-59-59 N!-AoPc-Pt1 SomeName.txt
Logged

ChaoticJosh

  • Sergeant Major
  • *
  • Offline Offline
  • Posts: 141
    • View Profile

Besides that it makes the file names really long, I like it!
Logged

ZZ

  • AliensRL Beta Tester
  • Lieutenant Colonel
  • *
  • Offline Offline
  • Posts: 469
    • View Profile

DD-MM-YYYY is European standart and should not be changed due to the different nationalities of the players.
Exact time is useless. Seconds are the most useless.
As for the rest, it's nice to have the more detailed description because right now I have difficulties checking my Mortems.
Also good idea make this  changeable in the .ini file.
And crazy idea - make mortems assessable from the HoF table if not deleted.
And this is NOT a bug, this is a feature request.
« Last Edit: March 18, 2010, 07:24 by ZZ »
Logged
Put a chainsaw in my coffin. If I go to Hell, I'll need to do some cleaning there.

yaflhdztioxo

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile

I would assume YYYY-MM-DD was suggested so that mortems will be in order.  The format depends on your regional settings; if dates on your computer are in YYYY-MM-DD format then the mortems follow that.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/

You can always choose sort by date in your favourite file manager :> (hint, hint!)
Logged
at your service,
Kornel Kisielewicz

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert

And this is NOT a bug, this is a feature request.

It was originally thought as "a bug" in that "it makes something broken or unusable", but apparently has grown past the original concept. My apologies. May the moderators move it as they see appropriate.

I will settle on the option to define the format and level of descriptiveness in the .ini file. This may actually be the better way to solve this (although it might be non-obvious to implement).

EDIT: In the mean time, i slapped together a Linux shell script to do just that. Link: http://forum.chaosforge.org/index.php/topic,2904.0.html
« Last Edit: March 18, 2010, 17:04 by Simon-v »
Logged

Malek Deneith

  • Grand Inquisitor Emeritus
  • Grand Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1256
    • View Profile

Moved to feature requests, because it most likely does count as such. That being said I agree with Simon - having ability to configure how the mortem files are named would be nice.
Logged
Inquisition - saving your soul, one bolter shell at a time.
Spoiler: "Hackmaster Kills" (click to show/hide)

UltimateChaos

  • Elder
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 95
  • Arch-Vile Mjr. General
    • View Profile
Re: Mortem backup filename should be more descriptive and sortable
« Reply #7 on: August 27, 2010, 02:01 »

This absolutely has my vote, it's pretty difficult to sort through, especially if all your runs of a specific challenge all have the same character name.  (Almost all of my AoPc challenges are named Ghandi)
Logged
[22/22/19/7/3]
Just completed Strongman Gold ^_^

Kg

  • Captain
  • *
  • Offline Offline
  • Posts: 261
    • View Profile
    • Celestial Horizon
Re: Mortem backup filename should be more descriptive and sortable
« Reply #8 on: August 27, 2010, 02:47 »

Also I vote for mortems being accessible from HoF page. Maybe they should be stored in some single *.wad or whatever file with option of exporting selected mortems to *.txt files. You could think also of some improvements for this, like automatic *.txt generation of YAVP mortems (but they're always included in *.wad file so you can check them whenever you want - maybe it should be scores.wad to avoid problems.. or maybe even make a one single file to contain scores and info player).
Logged
Hell Baron 2nd Lieutenant
[22|11|4|0|0]
Latest: Eagerness Bronze

rchandra

  • Elder
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 359
    • View Profile
Re: Mortem backup filename should be more descriptive and sortable
« Reply #9 on: August 27, 2010, 03:51 »

I'd just like to say that the script above is very handy, I've been using it with some small modifications.
Logged
0.9.9.1-4: Arch-Vile Br. General [25/25/17/5/1]
0.9.9.5-7: Hell Baron Major [ 21 16 12 4 1 0 ]

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Mortem backup filename should be more descriptive and sortable
« Reply #10 on: August 27, 2010, 07:53 »

I'd just like to say that the script above is very handy, I've been using it with some small modifications.

Do share!
Logged

rchandra

  • Elder
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 359
    • View Profile
Re: Mortem backup filename should be more descriptive and sortable
« Reply #11 on: August 27, 2010, 08:45 »

nothing significant, just personal preference & cygwin stuff:
-changed the second difficulty to M instead of N, matching the in-game and differentiating more from N!
-AoP -> AoPu for my own clarity
-expanded Pt/St/Fw to PartialWin/StdWin/FullWin
-for some reason the $endlevel wasn't working for me, possibly something different under cygwin - it is a long messy line with lots of quotes etc., changed it to use head and tail (hardcoded to get the 6th line) and that worked.  testing on the command line, each part of the command worked but the whole pipe did not.
-the fix for notepad under windows wasn't needed for me (and would cause an "unfix"), again I think because cygwin handles the \r\n automagically.

I'll attach it anyway.
Logged
0.9.9.1-4: Arch-Vile Br. General [25/25/17/5/1]
0.9.9.5-7: Hell Baron Major [ 21 16 12 4 1 0 ]

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Mortem backup filename should be more descriptive and sortable
« Reply #12 on: August 27, 2010, 12:10 »

I've adapted some of the tweaks (M for Medium, Pu for Purity and `tr -cd`) into the original script. I assume the cygwin implementation of grep is different than in my distribution.

I can't for the love of Torvalds figure out why `tr -cd` works, but it does.

Since the script thread is locked, i'm attaching it here.
Logged
Pages: [1]