Bay 12 Games Forum

Please login or register.

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

Author Topic: [DFHack script] load-screen  (Read 4153 times)

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [DFHack script] load-screen
« Reply #15 on: June 07, 2014, 03:10:30 pm »

It's not finished yet, but it should work regardless of the platform or DFHack version.
Neat. :) I'll wait. :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

palu

  • Bay Watcher
    • View Profile
Re: [DFHack script] load-screen
« Reply #16 on: June 20, 2014, 11:56:54 am »

Do I need to put anything in the dfhack.init for this to work?
Logged
Hmph, palu showing off that reading-the-instructions superpower.
The internet encourages thoughtful, intelligent discussion and if you disagree I hate you.

lethosor

  • Bay Watcher
    • View Profile
Re: [DFHack script] load-screen
« Reply #17 on: June 20, 2014, 12:03:34 pm »

You need to run "load-screen" (assuming you're using the Lua script). Adding that to dfhack.init should work.
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.

salithus

  • Bay Watcher
  • gottagofast
    • View Profile
Re: [DFHack script] load-screen
« Reply #18 on: September 14, 2014, 01:10:16 pm »

In that build we've been talking about - my backups are being generated as "regionX-YYYYY-MM-DD" (year, month, day from the dwarf calendar) instead of the spr/sum/aut/win that your script looks for. Would it be possible to instead check for something like this:

Code: [Select]
function load_screen:is_backup(folder_name)
    parts = folder_name:split('-')
    if #parts >= 2 and
        is_save(parts[0]) then
        return true
    else
        return false
    end
end

with the is_save being...some...sort of check to see if that folder is an existing save?
Logged

lethosor

  • Bay Watcher
    • View Profile
Re: [DFHack script] load-screen
« Reply #19 on: September 14, 2014, 01:14:57 pm »

Ah, did the backup folder format change? I haven't enabled automatic backups in 0.40.xx yet, so I hadn't noticed. Thanks for letting me know.
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.

lethosor

  • Bay Watcher
    • View Profile
Re: [DFHack script] load-screen
« Reply #20 on: September 18, 2014, 04:16:13 pm »

I've created a consolidated thread for my scripts, so I'll lock this thread.

I (hopefully) fixed the problem with backups in v0.8.1. (The version number is arbitrary, since I only recently began versioning some of my scripts. You can get the latest version here.)
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.
Pages: 1 [2]