Ticket #41992

Document what 'disabled' means in an enabler

Open Date: 2021-04-12 18:38 Last Update: 2021-05-05 17:17

Reporter:
Owner:
Type:
Status:
Closed
Component:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Accepted
File:
1

Details

Document what the disabled field in an action enabler is for.

Ticket History (3/6 Histories)

2021-04-12 18:38 Updated by: kvilhaugsvik
  • New Ticket "Document what 'disabled' means in an enabler" created
2021-04-12 18:48 Updated by: kvilhaugsvik
2021-04-16 16:39 Updated by: kvilhaugsvik
  • Status Update from Open to Closed
2021-05-04 17:37 Updated by: cazfi
Comment

I'm not sure if the text added here is correct or wrong, but based on it I assumed enabler.disabled to act like .ruledit_disabled for other structs. It does not, but also ruleset loading (both ruleset.c and rscompat.c) may set it in addition to ruledit.

Are these ruleset loading time disabled enablers still used at game run time? (the comment added here claims that only rulesave cares about 'disabled'). For the other 'ruledit_disabled' the logic is that they are ever set only inside ruledit - never when actually running the game, and thus we don't need to check against it at game run time (standard iterations do not).

2021-05-05 17:17 Updated by: None
Comment

Reply To cazfi

I'm not sure if the text added here is correct or wrong, but based on it I assumed enabler.disabled to act like .ruledit_disabled for other structs. It does not, but also ruleset loading (both ruleset.c and rscompat.c) may set it in addition to ruledit.

Ruleset loading will only set it in compatibility mode and when purging(/cleaning) unused entities, so it should be ruledit and freeciv-ruleup only. That is unless someone added support for playing rulesets from the previous version to the server while I didn't pay attention.

Are these ruleset loading time disabled enablers still used at game run time?

I could add a step that deletes them if you have plans to add ruleset compatibility and/or purging support to the server.

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login