Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: 40d game locks up because of mass door constuction (reproducible save)  (Read 551 times)

HandOfCode

  • Bay Watcher
    • View Profile

I have a save file that guarantees a lockup and I know what is causing it (because I can recover it).

If you can use the file today one I can upload it to my website and give it to you that way as it's rather large.

The lockup has something to do with a mass placement of doors (39).  Not sure why but when I was placing the doors each time I finished placing a door (after selecting the door type) the game would freeze for a few seconds then resume (thought nothing of it).  I forgot why but I saved before unpausing and setting my dwarves to work on placing the doors (a few seconds before they start).  When I load the save and do not cancel all the doors the game will show something about the dwarves being unable to access the job site (which is a lie, I checked all my dwarves for them being stuck) an then freezes.  However if I load the game and cancel all the door constructions they game still broadcasts that message related to the doors and being unable to access the site and freezes but it only freezes for a few seconds and then resumes.  In the message log the "unable to access site" is repeated 4 times if I cancel all the doors.  Now in theory if I load the game and don't cancel the jobs it _should_ unfreeze eventually (assuming it's the "unaccessable" message that's causing it and I get 39 of them instead of 4) however I'm not feeling like waiting an hour to find out if it decides to unfreeze if I leave the jobs open (AFAIK the "unaccessable" message would loop for infinity thus freezing the game for infinity).
Logged

smjjames

  • Bay Watcher
    • View Profile

Maybe if you show us what exactly you were doing with the doors? I've done a mass door construction (as well as beds, tables, and chairs) without issues.

I usually get a construction cancelled for a few tables or chairs when I do it lunch table style (two tables in a single row with chairs on both sides), but that's just a case of many dwarves doing it at once and a few are bound to get in each others way. Just waiting for them to finish up and un-suspending it works fine.

What I'm saying is, that there may be something with the way you are doing it or the layout that is causing the pathing to cramp up.
Logged

HandOfCode

  • Bay Watcher
    • View Profile

Just putting doors on my room grid.

The grid has a central stair case that leads to all levels of the fort and is centered around that stair case.  each room is 3x3 tiles in 2x2 clusters in 2x2 clusters of those clusters (so 16 rooms per quadrant). The main hallways (direct hallways going NESW) are 3 tiles wide.  I try to place the door openings so they're as efficient as possible (shortest path to the stair case).  The pattern is appropriately mirrored and rotated in all 4 quadrants (for ex. all rooms that touch the main 3 tile hallways have the door opening directly facing the hallway).

I don't think it's an overly complex design.
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile

If you can use the file today one I can upload it to my website and give it to you that way as it's rather large.

He probably can't use it today.  The best place to upload it is the DF File Depot -- just upload it now so he can download it whenever.
Logged

HandOfCode

  • Bay Watcher
    • View Profile

Ah found the game log files.  Seems I was right about my theory about it running through all 39 jobs

`D079' Dastotezum, Peasant cancels Construct Building: Job item lost or destroyed.
x2
x3
x4
x5
x6
x7
x8
x9
x10
x11
x12
x13
x14
x15
x16
x17
x18
x19
x20
x21
x22
x23
x24
x25
x26
x27
x28
x29
x30
x31
x32
x33
x34
x35
x36
x37
x38
x39
The dwarves were unable to complete the rock Door.
x2
x3
x4
x5
x6
x7
x8
x9
x10
x11
x12
x13
x14
x15
Logged

Ethnar

  • Bay Watcher
    • View Profile

I noticed that on my version (40d12, graphics enabled, orcs mod) it also freezes for a second when placing door. The odd thing is none of the rest of furniture is causing such pause.
Logged

Eidalac

  • Bay Watcher
  • Ecchi Inside
    • View Profile
    • Facebook

Hrm.

May check your stocks menu.  A voice in my head tells me you managed to, somehow, place more doors than you have, which seems like it would cause a pretty bad case of DOES NOT COMPUTE.  Only other thing I can fathom is that something is breaking pathing to the area you have the doors stored, which, I think, would cause the 'Job item lost or destroyed' message.

I'm not at all sure why placing a door would/should/could cause a pause.  My fort is pretty much built for bad pathing and I've never had issues placing anything, so that's a mystery to me.
Logged
is he okay?
In the traditional sense of the word?  No, he's been dissolved in magma.