待辦事項 #41992

Document what 'disabled' means in an enabler

啟用日期: 2021-04-12 18:38 最後更新: 2021-05-05 17:17

回報者:
負責人:
類型:
狀態:
關閉
元件:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
Accepted
檔案:
1

細節

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
  • 狀態 Update from 開啟 to 關閉
2021-05-04 17:37 Updated by: 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.

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
評語

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.

編輯

Please login to add comment to this ticket » 登入