Topic: Improving the AI
GunChleoc![]() |
Posted at:
2020-01-03, 14:15 UTC+1.0
Run utils/fix_formatting.py. You will need to have clang-format installed for that to work. Let us know if it's a problem on your system and we'll loosen the requirement in the CI pipeline. Busy indexing nil values ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-02-07, 09:45 UTC+1.0
Hi, I just realized in the code that we don't use the attribute kLogRefiner anymore i the AI code. This got obsolete perhaps by the basic economy concept anyway. So I think we could savely remove this property from the code, as we don't necessarily have it in the new tribes and faked something there. ![]() ![]() |
Tibor |
Posted at:
2020-02-07, 09:48 UTC+1.0
If the attribute is not used, no need to have it defined... ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-02-07, 09:57 UTC+1.0
Although I am pretty sure about my analysis I'd like you to confirm this is not needed. I could take care of the change then if you want. ![]() ![]() |
Tibor |
Posted at:
2020-02-07, 10:13 UTC+1.0
From my head I'am not able to say it, but if you dont see it in the code, then for sure it will be OK to delete from enum ![]() ![]() |
GunChleoc![]() |
Posted at:
2020-02-07, 10:31 UTC+1.0
kLogRefiner is not used any more, we can get rid of it. Good catch Delete TribeDescr::refinedlog_ + related functions too, and the Lua table entries.
Edited:
2020-02-07, 10:32 UTC+1.0
Busy indexing nil values ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-02-07, 10:49 UTC+1.0
that is not that easy as it is still used in some parts of the code So this needs to be analyzed first. ![]() ![]() |
GunChleoc![]() |
Posted at:
2020-02-07, 10:52 UTC+1.0
I know the code well and can take care of it. Busy indexing nil values ![]() ![]() |
GunChleoc![]() |
Posted at:
2020-02-07, 10:56 UTC+1.0
Actually, tribe_->refinedlog() is still being used, so it has to stay. For example:
Busy indexing nil values ![]() ![]() |
hessenfarmer![]() |
Posted at:
2020-02-07, 17:53 UTC+1.0
Found another probably unused property. ![]() ![]() |