Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Init option to log the current date  (Read 785 times)

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Init option to log the current date
« on: July 02, 2014, 09:16:51 pm »

I'm currently being plagued by an intermittent crash issue, and it would be really, really nice to be able to open up the gamelog and see what the last date was. Sometimes you don't get any obvious precipitating event, and I would find it useful to know roughly how much time I have between reload and recrash. Compulsively saving every RL minute or so is no fun at all.

Further options could be to have a choice of displaying it as an announcement, and a choice of whether it's daily, weekly, or monthly.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Init option to log the current date
« Reply #1 on: July 02, 2014, 09:43:12 pm »

I think it would be handy to have an option to put launch, load and save times into the game's error log.  Something simple like

02jul2014 22:25:09 Session start
02jul2014 22:25:31 Load region1, "The Dimensions of Peril" 18 Granite, 257 - Fortress mode
02jul2014 22:57:00 Save region1, "The Dimensions of Peril" 1 Hematite, 257 - Fortress mode (seasonal autosave)
02jul2014 22:58:11 Abandon region1, "The Dimensions of Peril" 9 Hematite, 257 - Fortress mode (succumb to invasion)
02jul2014 23:00:05 Generate region2, "The Cyclopean Realm" (2 rejections)
02jul2014 23:18:25 Generate region3, "The Eternal World" (4 rejections)
02jul2014 23:38:13 Generate region4, "The Land of Wonder" (6 rejections, aborted by player)
02jul2014 23:51:32 Generate region5, "The World of Land" (1 rejection)
03jul2014 00:22:45 Generate region6, "The Realm of Adventure" (3 rejections)

Of course, the current error messages would still appear at the appropriate points in the log.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

lethosor

  • Bay Watcher
    • View Profile
Re: Init option to log the current date
« Reply #2 on: July 03, 2014, 09:15:58 am »

Some of that is already logged in gamelog.txt
Logged
DFHack - Dwarf Manipulator (Lua) - DF Wiki talk

There was a typo in the siegers' campfire code. When the fires went out, so did the game.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Init option to log the current date
« Reply #3 on: July 03, 2014, 12:18:46 pm »

Some of that is already logged in gamelog.txt
Yes, but neither the error log nor the game log has any timestamping at all.  A timestamp on each entry would be workable, but a smidgen of context would help in troubleshooting mods/tools.  I can see the argument for keeping the error log clean of non-error events, but timestamps would really really help.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

smjjames

  • Bay Watcher
    • View Profile
Re: Init option to log the current date
« Reply #4 on: October 30, 2014, 01:08:37 pm »

+1 to this and for adding timestamps to the errorlog.

I know it's a several month old necro, but since a thread already exists.....
Logged