HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Feature #885765
openUpdate and improve metaknowledge.c
10%
Description
Many requirement types are not supported by functionality of this file. Probably we need a switch
-based code here. Maybe some things need correction (e.g. "Building", "Local" req is set by the actor and is always knowable, is there such a building in the city, is not the business of this functionality). I'll supply some patch for 2.6 a bit later. In the newer versions, we should make more use of this module (for fair AI behaviour and some client-to-server requests).
Files
Related issues
Updated by Alexandro Ignatiev over 4 years ago
- File 0002-Backport-player_tile_city_id_get-interface-function.patch 0002-Backport-player_tile_city_id_get-interface-function.patch added
This patch should be added to 2.6 version as a basic one for mine. It is not that important when the functionality is used for actions only and the actions are performed to seen cities, but in aphilosophical sence it's necessary.
Updated by Alexandro Ignatiev over 4 years ago
- File 0001-Improve-metaknowledge-functionality.patch 0001-Improve-metaknowledge-functionality.patch added
This is the main 2.6 patch, seems to work at my client. (I needed it for further server tweaks but maybe it won't be bad in the main branch.)
Updated by Marko Lindqvist almost 4 years ago
- Sprint/Milestone changed from 2.6.3 to 2.6.4
Updated by Marko Lindqvist almost 4 years ago
- Assignee set to Sveinung Kvilhaugsvik
Updated by Sveinung Kvilhaugsvik almost 4 years ago
Marko Lindqvist wrote:
Any comment on this, Sveinung?
This was on my list of stuff that I either can do myself when I have a little limited time window for Freeciv or give as a "you are now good enough to do a real task in a real project" task to some friend I'm teaching C. I therefore didn't notice the attached patch when you assigned it to me.
Thank you for pointing it out, Marko. Sorry about the delay, Alexandro. I'll try to get it reviewed soon.
Updated by Sveinung Kvilhaugsvik almost 4 years ago
Overall impression is good.
Needs a rebase. (Sorry about the late review)
I suggest (but don't require) splitting out the different things you do in different patches. So moving is_effect_val_known() is in one patch, convertingn to switch is one, adding more meta knowledge another, etc. A good rule of thumb is that you start a sentence in the commit message with "Also" you should probably split the patch.
Updated by Alexandro Ignatiev almost 4 years ago
Hooh, splitting patches is not that fun as writing them... Well, let me try.
Updated by Sveinung Kvilhaugsvik almost 4 years ago
Alexandro Ignatiev wrote:
Hooh, splitting patches is not that fun as writing them...
Would the fact that you then will have more patches showing up under your name in OpenHub and GitHub help to motivate you?
Well, let me try.
You didn't upload anything yet, right? Just making sure that your new patch(es) hasn't been eaten by a bug.
Updated by Alexandro Ignatiev almost 4 years ago
Sveinung Kvilhaugsvik wrote:
You didn't upload anything yet, right? Just making sure that your new patch(es) hasn't been eaten by a bug.
Latest my patch on this topic was 6 months ago.
Updated by Sveinung Kvilhaugsvik over 3 years ago
- Related to Feature #922369: Metaknowledge for surviving tech requirements added
Updated by Sveinung Kvilhaugsvik over 3 years ago
A correction to your current patch: Surviving tech reqs with the range "World" are visible to everyone. I added an explanation why in Feature #922369 I wished your clean up that changes stuff to use switch already had landed while I wrote it.
Updated by Marko Lindqvist over 3 years ago
- Sprint/Milestone changed from 2.6.4 to 2.6.5
Updated by Marko Lindqvist over 3 years ago
Any progress on this? We might go to code-freeze before 2.6.5 relatively soon (in a couple of weeks, not months)
Updated by Marko Lindqvist over 3 years ago
- Sprint/Milestone changed from 2.6.5 to 2.6.6
Updated by Marko Lindqvist almost 3 years ago
- Sprint/Milestone changed from 2.6.6 to 3.0.1
Updated by Marko Lindqvist over 2 years ago
- Sprint/Milestone changed from 3.0.1 to 3.0.2
Updated by Marko Lindqvist over 2 years ago
- Sprint/Milestone changed from 3.0.2 to 3.0.3
Updated by Marko Lindqvist over 2 years ago
- Sprint/Milestone changed from 3.0.3 to 3.0.4
Updated by Marko Lindqvist about 2 years ago
- Assignee changed from Sveinung Kvilhaugsvik to Alexandro Ignatiev
- Sprint/Milestone changed from 3.0.4 to 3.0.5
Updated by Marko Lindqvist almost 2 years ago
- Sprint/Milestone changed from 3.0.5 to 3.0.6
Updated by Marko Lindqvist almost 2 years ago
- Sprint/Milestone changed from 3.0.6 to 3.0.7
Updated by Marko Lindqvist over 1 year ago
- Sprint/Milestone changed from 3.0.7 to 3.0.8
Updated by Marko Lindqvist 8 months ago
- Sprint/Milestone changed from 3.0.8 to 3.1.1