Opened 3 years ago

Closed 3 years ago

#6317 closed defect (fixed)

Can't use fields

Reported by: givensga Owned by: Freagarach
Priority: Must Have Milestone: Alpha 26
Component: Simulation Keywords:
Cc: Patch: Phab:D4263

Description

In the Nile River (4) there appear to be fields already created. When I task villagers (male or female) to use them, they go to the middle of the field with hoe over their shoulders and then immediately come back empty handed. It may be my fault, but I have tried everything I can think of. It appears that the AI is also not using them. Alpha 25.

Attachments (2)

nan.png (237.8 KB ) - added by Langbart 3 years ago.
infinity.png (255.1 KB ) - added by Langbart 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Langbart, 3 years ago

Yes, can confirm your issue. When you toggle the option Display selection state in the Developer overlay (Alt+D) and select the field you can see the food amount has a NaN (Not a Number) value.

The fields that you construct yourself have an Infinity value.

Hopefully easy to fix, thanks for the report.

by Langbart, 3 years ago

Attachment: nan.png added

by Langbart, 3 years ago

Attachment: infinity.png added

comment:2 by Langbart, 3 years ago

The issue can be noticed for the first time with changeset [24963].

comment:3 by Freagarach, 3 years ago

Component: Core engineSimulation
Owner: set to Freagarach
Patch: Phab:D4263
Priority: Should HaveMust Have

Thanks for the report!

comment:4 by Freagarach, 3 years ago

Resolution: fixed
Status: newclosed

In 25912:

Fix renaming fields losing the ability to be gathered.

Introduced in r24963 / rP24963.
The problem was trying to set the amount to Infinity by substracting Infinity from it.

Differential revision: https://code.wildfiregames.com/D4263
Tested by: @Langbart
Fixes: #6317

Note: See TracTickets for help on using tickets.