Bay 12 Games Forum

Dwarf Fortress => DF Bug Reports => Topic started by: namako on June 28, 2009, 06:32:01 am

Title: [40d, 40d12] Renaming folder before choosing a region causes crash
Post by: namako on June 28, 2009, 06:32:01 am
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.
Title: Re: [40d, 40d12] Renaming folder before choosing a region causes crash
Post by: SolarShado 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.
Title: Re: [40d, 40d12] Renaming folder before choosing a region causes crash
Post by: namako 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.
Title: Re: [40d, 40d12] Renaming folder before choosing a region causes crash
Post by: Sowelu 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...