Chaosforge Forum

  • April 19, 2024, 12:22
  • Welcome, Guest
Please login or register.



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

Author Topic: Separate "loss" and "win" mortem directories  (Read 5053 times)

grommile

  • Elder
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
  • mmm beer
    • View Profile
Separate "loss" and "win" mortem directories
« on: May 09, 2011, 14:05 »

Could we have "losing" mortems and "winning" mortems stashed in separate directories?
Logged
0.9.9.7: 22-15-10-0-0 22/43 62/67 (P 349, D 43/67) 36/40 (B19 A12 M5) Arch-Vile CPT

Armorer Platinum and Diamond should be abolished; the Dragonslayer taboo deserves every scrap of mockery it receives.

GrimmC

  • Guest
Re: Separate "loss" and "win" mortem directories
« Reply #1 on: May 09, 2011, 23:14 »

Yeah, I'd like to see this as well...given the largely disproportionate ratio between my wins & losses :P
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #2 on: May 09, 2011, 23:34 »

Somehow I think this falls under the "allow us to customise mortem file names" category.  I believe Simon-v has a script somewhere that does this, so you can actually semi-automatically do the sorting out of DoomRL itself.

Not sure if we want the additional code in DoomRL to handle this part which can be done in a not-so-painful manner manually.
Logged
I computed, therefore I was.

Sirdec

  • Elder
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 97
  • Lost Soul
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #3 on: May 10, 2011, 00:53 »

I would be happy with a config option.

SaveLosingMortem = true/false.

As the last played game mortem ends up in the DoomRl folder anyway, it is easy to keep track of interesting lost games.

Pretty sure this would only add a few lines of non-painfull coding.
Logged
Roguelikes beaten
DoomRL : a lot of wins, best one AoMr UV 100%
DCSS : 10 runer MdFi
AliensRL

s0ulman

  • Backer
  • Lance Corporal
  • *
  • *
  • Offline Offline
  • Posts: 25
  • Lost Soul
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #4 on: May 18, 2011, 04:10 »

SaveLosingMortem = true/false.

This would be really great. This or at least adding Win/Lose status to the name of the mortem file.
Also, am I the only one with loads of mortems of identically named characters? My imagination seems to be scarce of names.)
Logged
[24/21/11/2/0]
Arch-Vile Major

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #5 on: May 18, 2011, 06:14 »

This would be really great. This or at least adding Win/Lose status to the name of the mortem file.
Also, am I the only one with loads of mortems of identically named characters? My imagination seems to be scarce of names.)
Ah, that's why that renaming script is useful since it renames things according to the date/time as well as the mode, kill percentage, floor and win/lose status.

I can't find the link to the file offhand.
Logged
I computed, therefore I was.

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #6 on: May 18, 2011, 23:42 »

What are the odds of integrating that function into the main program?
Logged
v.997 [16/5/2/0/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: Separate "loss" and "win" mortem directories
« Reply #7 on: May 19, 2011, 07:16 »

What are the odds of integrating that function into the main program?
I, the author of the Smart Mortem Namer Script (found here: http://forum.chaosforge.org/index.php/topic,2904.0.html), tried talking Kornel into doing this for a very long time. After said very long time has passed, he finally implemented configurable date in mortem names, matching the scheme i was following since day one. Considering the above, i would say the odds are non-zero, but barely so. Some whining and convincing might do justice.

Incidentally, the script does not record the kill percentage, as i don't need such a statistic, but it could, quite easily. Would you like me to make said modifications, along with an option to turn it on or off?
Logged

s0ulman

  • Backer
  • Lance Corporal
  • *
  • *
  • Offline Offline
  • Posts: 25
  • Lost Soul
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #8 on: May 19, 2011, 07:36 »

Would you like me to make said modifications, along with an option to turn it on or off?
Totally yes, and thank you very much.
Logged
[24/21/11/2/0]
Arch-Vile Major

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Separate "loss" and "win" mortem directories
« Reply #9 on: May 19, 2011, 08:52 »

Done. The new option is off by default and is toggled by a variable in the script header.
Logged

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #10 on: May 20, 2011, 01:04 »

Anything like that script for those of us using bill gates' pile of $%#& OS?
Logged
v.997 [16/5/2/0/0]

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #11 on: May 20, 2011, 01:43 »

Anything like that script for those of us using bill gates' pile of $%#& OS?
I have a Python script that works on most things that have Python but it is mostly for my consumption than anything else.

If you'd like to have it, PM me and I'll get a copy to you.  It is unlikely to be as clean as what Simon-v has though.  ;-)
Logged
I computed, therefore I was.

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Separate "loss" and "win" mortem directories
« Reply #12 on: May 20, 2011, 02:19 »

I have a Python script that works on most things that have Python but it is mostly for my consumption than anything else.

If you'd like to have it, PM me and I'll get a copy to you.  It is unlikely to be as clean as what Simon-v has though.  ;-)
...Clean? Hahahahahahahahahahahahahahahahahahaha!

It's a pure, undiluted, 100% hack!

It uses shell scripting instead of Python due to two reasons: it requires less libraries, and it was made with the intention of being "simple", at the expense of being portable.

(I'd still like to see it, though.)

Anything like that script for those of us using bill gates' pile of $%#& OS?
You have several options, differing in severity factor.

1) Try asking Malek for a Windows shell port. I doubt he will want to do it, though: he said scripting for Windows is (figuratively) made of bricks and sandpaper. Or, find someone else who can do it and make him do it. Somehow.

2) Install cygwin, which, I hear, is a port of the UNIX shell for Windows. It could take some time getting used to.

2.5) Install Python and try thelaptop's variant. Hack it apart if you don't like how it works.

3) Get rid of your "pile of $%#& OS" as you call it, and install, say, Ubuntu, which is known in the Linux community under the mocking name "I Can't Believe It's Not Windows". It still isn't, though, and WILL take some time getting used to.

4) Pay or threaten Kornel into implementing the functionality in DoomRL.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #13 on: May 20, 2011, 02:26 »

Heheh.  You ask, you get.

No guarantees, warrantees etc.  There are at least 2 bugs in the code, particularly with date/time detection.  So, do yourself a favour and make sure it is easily disambiguated, i.e. use something like 23-Dec-2011 for example.
Logged
I computed, therefore I was.

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Separate "loss" and "win" mortem directories
« Reply #14 on: May 20, 2011, 03:29 »

1) Windows scripting is more like nailing jello to a tree, there are ways to do it but none of them are very good.

2) I've found cygwin to have stability issues in the past but it may be time to give it another shot.

3) My personal machine is already dual-booting win xp and backtrack 4 but I've found gaming under linux to be worse than windows scripting. (they cannot edit each other's partitions)


I think I'll end up using that python script but I still say the function should be folded into the main program.
Logged
v.997 [16/5/2/0/0]
Pages: [1]