Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Drag-Drop a Policy Over Another #4883

Closed
tkrypton opened this issue Mar 10, 2024 · 3 comments
Closed

Can't Drag-Drop a Policy Over Another #4883

tkrypton opened this issue Mar 10, 2024 · 3 comments
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game. component:internal The Issue/PR deals with any project component that has no explicit `component` label. status:invalid The Issue is not classified as a formal valid Issue report or applicable PR.

Comments

@tkrypton
Copy link

  • FreeOrion Version: v0.5
  • Operating System: Linux, Devuan daedalus (Debian 12 without systemd)
  • Graphic card used: [AMD/ATI] RV710 [Radeon HD 4350/4550]
  • Fetched as
    • Compiled from source

Hi,

apologies if this is a known bug, but I haven't found it - neither as open nor as closed issue:

Either I'm too stupid or policy adaption on Linux is broken. I can choose and adapt a policy when it is the first one of it's type by drag & drop just fine, but I can't replace it this way. I've tried to double click the policy I want to adapt, but that did not work either. The ones I've adapted first are staying active.

I would appreciate pointers to the code which handling that part of the UI, maybe I'll be able to debug it,

CU,
Uli

@tkrypton tkrypton added the category:bug The Issue/PR describes or solves a perceived malfunction within the game. label Mar 10, 2024
@Vezzra Vezzra added the component:internal The Issue/PR deals with any project component that has no explicit `component` label. label Mar 10, 2024
@agrrr3
Copy link
Contributor

agrrr3 commented Mar 11, 2024 via email

@geoffthemedio
Copy link
Member

geoffthemedio commented Mar 11, 2024

Due to how policies can have dependencies, replacing in a slot is reasonably not supported. Rather, one needs to free a slot and put a policy into it, so there is no ambiguity about what happens when replacing. eg. if I drop a policy onto another policy that it has as a prerequisite or exclusion, should that work? what if there is a cost dependence on the order of doing it? what if there are also other free slots that could have been used; should it act as if they were? etc.

Relevant code:
https://github.com/freeorion/freeorion/blob/master/Empire/Empire.cpp#L155
https://github.com/freeorion/freeorion/blob/master/UI/GovernmentWnd.cpp

@tkrypton
Copy link
Author

OK, understood. Yes, I can confirm that removing a policy and then filling the empty slot again does indeed work. Wasn't obvious to me and I havn't found any help text about it except in the quick play guide, which only mentions double clicking.

I think it would be just fine as it is with a help text popping up when double clicking on a policy would not apply it.

Just my 0.02 €,
CU,
Uli

@geoffthemedio geoffthemedio changed the title Policy adaption on Linux broken? Can't Drag-Drop a Policy Over Another Mar 13, 2024
@geoffthemedio geoffthemedio added the status:invalid The Issue is not classified as a formal valid Issue report or applicable PR. label Mar 13, 2024
@Vezzra Vezzra added this to the Gateway to the Void milestone Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game. component:internal The Issue/PR deals with any project component that has no explicit `component` label. status:invalid The Issue is not classified as a formal valid Issue report or applicable PR.
Projects
None yet
Development

No branches or pull requests

4 participants