Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [40d, 40d12] Renaming folder before choosing a region causes crash  (Read 697 times)

namako

  • Escaped Lunatic
    • View Profile

I discovered this by creating a world and renaming the folder, and trying to play without restarting dwarf fortress. I presume the game doesn't actually re-check the existence of region folders before it tries to open them.

Reproduction:

1. Create a world.
2. Rename (or delete works too) the world folder from 'regionx' to something else in the data/save directory
3. Try to start a game.

It says 'importing world...' for a variable amount of time before crashing, bringing up an error box:

Microsoft Visual C++ Runtime Library
Runtime Error!
[application directory]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


The region works fine once DF is restarted.
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: [40d, 40d12] Renaming folder before choosing a region causes crash
« Reply #1 on: June 28, 2009, 11:29:56 am »

I think you can work around this. Make sure DF is at the title screen before you re-name the folder.

You will get this error every time if DF shows the old name. I seem to recall managing to get DF to refresh the names without actually exiting... might've been by loading another save and quiting.

Personally, I wouldn't call this a "bug". Generally you shouldn't mess with files in program X's folder while it's running. ;D On the other hand, I immagine it'd be easy to fix.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

namako

  • Escaped Lunatic
    • View Profile
Re: [40d, 40d12] Renaming folder before choosing a region causes crash
« Reply #2 on: June 28, 2009, 12:40:41 pm »

I've probably got used to messing around with saved games while still running the game that makes them.

I suppose it's just a bit of a user-friendliness thing, and DF has loads of that! ;D

I don't know if I should have mentioned it, but the first time I saw this, the game hung and brought everything else down with it (a couple of firefox windows, media player, notepad, explorer, steam, msm...). It was about a minute before ctrl-alt-delete brought up the task manager, and everything was 'Not Responding', and nothing wanted to die.
I suspect that was just spurious though, since I couldn't reproduce anything quite so dramatic.

I'll just have to be more careful cleaning out my saves in the future.
Logged

Sowelu

  • Bay Watcher
  • I am offishially a penguin.
    • View Profile
Re: [40d, 40d12] Renaming folder before choosing a region causes crash
« Reply #3 on: June 29, 2009, 01:01:54 pm »

Why would you DO that?!

Okay, it should handle it, but it doesn't need to handle it more gracefully than kick you back to the 'load saved game' menu when you choose a bad one...
Logged
Some things were made for one thing, for me / that one thing is the sea~
His servers are going to be powered by goat blood and moonlight.
Oh, a biomass/24 hour solar facility. How green!