devel/infinite-sky-probe¶
Tool for attempting in-game reproduction of issue #254: sky z-levels created by
infinite-sky periodically disappearing again down to the level of the
highest construction, causing cave-ins.
Warning
This tool fabricates completed constructions and forces cave-column recomputation. It can cave-in or otherwise corrupt your fort. Only use it on a disposable save.
Usage:
statusPrint the current map z-level state:
z_count/z_count_block, the highest construction z-level, whether the top-level map blocks are allocated, and the state of the cave-column bookkeeping flags that are suspected to be involved in the issue.add <n>Add n sky z-levels via the real
infinite-skyplugin command.tower [--pos x,y,z] [--top z] [--platform]Fabricate a completed construction tower: a column of pillar walls, the implied “top of wall” floor on top, and the matching
df.constructionrecords (this is the same end state the game produces when a dwarf finishes a construction job). If--posis not given, the keyboard cursor position is used; if it has no z component, building starts at the ground surface found at that x,y. The tower is built up to--top(default: one z-level below the current map ceiling, leaving one empty sky level like the game normally expects).--platformadditionally lays constructed floors adjacent to the top of the tower, mimicking the “constructions in progress near the top” scenario from the issue report.pokeForce the suspected trigger: set the world
process_columnsflag and mark every map block columnUPDATE_CAVE_COLUMNS, which is what the game sets when construction changes require cave-column recomputation.watch [frames]Monitor
z_count/z_count_block, the construction list, the cave-column flags, andCAVE_COLLAPSEreports once per frame for the given number of frames (default 20000; at ~100 FPS that is a few minutes). The game is unpaused while watching and the pause state is restored afterwards. Any decrease in z-levels is reported loudly: that means issue #254 has been reproduced.run [frames] [--levels n] [--enable]Run the full reproduction sequence:
status, optionallyadd nsky levels, optionallyenable infinite-sky(reproduces the “construction monitoring” variant of the report),tower --platform,poke,watch.stopStop a running
watchearly.