Topic: WorkareaInfo size 4 fatal exception
Kontorotsui![]() Topic Opener |
Posted at: 2023-08-23, 17:16
Hello, I am getting this:
This never happened in previous builds. It seems to happen only with wells and only when I try to select it for building, as soon as the pointer touches the picture, this is triggered. I'm using a modified "europeans" tribe, modified from the one made available as extension. I tried to change radius but I get the same error. The relevant program is this:
![]() ![]() |
Nordfriese![]() |
Posted at: 2023-08-23, 17:30
The problem is that the workarea rendering code assumes that no building will have more than 3 work area circles. If a building has lot of enhancement stages with different work area sizes as with Europeans, then this limit might be exceeded and the workarea cannot be rendered. So such buildings should currently be avoided. Relevant code is in ![]() ![]() |
Kontorotsui![]() Topic Opener |
Posted at: 2023-08-24, 09:00
Thanks, that is a pretty clear explanation. It is pretty reasonable too. I did a test, if I do a 6 stage building, 2 with radius 1, 2 with radius 2, 2 with radius 3, it works. Provided the different radius are max 3, there can be any stage. Edited: 2023-08-24, 09:55
![]() ![]() |