Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: dfhack script to show dfhack version string  (Read 2230 times)

Bo-Rufus CMVII

  • Bay Watcher
    • View Profile
dfhack script to show dfhack version string
« on: February 27, 2014, 08:27:28 pm »

Put it in dfhack/scripts/ and add it to the top or bottom of your dfhack.init, and it will display the dfhack version number every time you start it.

Tested with dfhack r3 on Windows and Linux.  Hopefully works with other releases...

show-dfhack-version.lua -
Code: [Select]
-- Prints current dfhack version string.
-- Version 1.0

dfhack.color(nil)
print("dfhack version " .. dfhack.VERSION)
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: dfhack script to show dfhack version string
« Reply #1 on: February 28, 2014, 12:53:26 am »

Why do you do this?:

Code: [Select]
dfhack.color(nil)
I don't think there's going to be much problem with non-default colors being around unless someone for some reason changes the console color and forgets to change it back.