View Issue Details

IDProjectCategoryView StatusLast Update
0006380Dwarf FortressDwarf Mode -- Buildings, Machinespublic2014-08-01 11:08
ReporterQuietust Assigned ToToady One  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version0.34.11 
Fixed in Version0.40.05 
Summary0006380: Wind strength constant on smaller worlds?
DescriptionLittle proper information is available on the behavior of windmills in Dwarf Fortress, so I attempted to analyze the code behind determining wind strength and found what appears to be a bug.

When wind strength is calculated, it first determines X/Y strength based on the current time of day (and based on region properties), then it further adjusts the Y strength based on your latitude. The latitude variance has special cases for each world height (17, 33, 65, 129, and 257) to scale them to the range of 0-256, but if the world height is found to be less than 129 (i.e. any POCKET, SMALLER, or SMALL worlds), it simply ignores the latitude and uses a static wind strength of 3 (instead of varying values between -20 and +25).
TagsNo tags attached.

Activities

Quietust

2013-10-02 14:36

reporter   ~0024152

Last edited: 2014-05-22 12:35

Doing some further examining, I've tested several worlds and have been unable to locate any regions which have morning/evening winds - it's possible that although windmills contain logic to handle them, the game never actually generates them in the world to begin with (or they're generated dynamically during gameplay, and I was only analyzing them after worldgen).

Quietust

2013-10-21 10:17

reporter   ~0024170

The logic for scaling latitude to fit the 0-256 range appears to have been added in version 0.31 (with the same problem for small worlds), as it was not present in 0.28.181.40d.

Quietust

2014-08-01 06:03

reporter   ~0028078

This appears to be fixed in version 0.40.05 - the wind strength function no longer has a special case for height<129.

user11

2014-08-01 11:08

  ~0028086

Thanks for the update!

Issue History

Date Modified Username Field Change
2013-10-02 13:57 Quietust New Issue
2013-10-02 14:36 Quietust Note Added: 0024152
2013-10-21 10:17 Quietust Note Added: 0024170
2014-03-19 17:40 user6 Tag Attached: Fixed in 0.34.12?
2014-05-22 12:35 Quietust Note Edited: 0024152
2014-07-07 22:23 user6 Tag Renamed Fixed in 0.34.12? => Fixed in 0.40.01?
2014-08-01 06:03 Quietust Note Added: 0028078
2014-08-01 11:08 user11 Note Added: 0028086
2014-08-01 11:08 user11 Status new => resolved
2014-08-01 11:08 user11 Fixed in Version => 0.40.05
2014-08-01 11:08 user11 Resolution open => fixed
2014-08-01 11:08 user11 Assigned To => Toady One
2014-08-01 11:08 user11 Tag Detached: Fixed in 0.40.01?