Megalith does not work

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Megalith does not work

#1 Post by ThinkSome »

I built one at my homeworld in the 19th game and switched it from industry to research.

turn 213: it showed target RP = 58, current RP = 8.
turn 214: current RP = 12.

It should get 58 RP immidiately.

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Megalith does not work

#2 Post by Oberlus »

Maybe it is because of the priorities:

The effect is at priority LATE_AFTER_ALL_TARGET_MAX_METERS_PRIORITY. I don't see other effects at that priority that could mess with this one.

Later than that we have:
FOCUS_CHANGE_PENALTY_PRIORITY
METER_OVERRIDE_PRIORITY
CONCENTRATION_CAMP_PRIORITY
END_CLEANUP_PRIORITY

Maybe it is the effect at FOCUS_CHANGE_PENALTY_PRIORITY?
Try using METER_OVERRIDE_PRIORITY for the Megalith?

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Megalith does not work

#3 Post by Geoff the Medio »

Does it work after another turn?

wobbly
Cosmic Dragon
Posts: 1880
Joined: Thu Oct 10, 2013 6:48 pm

Re: Megalith does not work

#4 Post by wobbly »

Geoff the Medio wrote: Tue May 10, 2022 9:51 am Does it work after another turn?
It did not.

TS mentioned this, it's just buried somewhere in the game thread.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Megalith does not work

#5 Post by Geoff the Medio »

Does changing the effect priority help?

User avatar
Oberlus
Cosmic Dragon
Posts: 5715
Joined: Mon Apr 10, 2017 4:25 pm

Re: Megalith does not work

#6 Post by Oberlus »

Geoff the Medio wrote: Tue May 10, 2022 10:50 am Does changing the effect priority help?
I didn't get to test it yet.

Post Reply