Incidencia #41992

Document what 'disabled' means in an enabler

Abrir Fecha: 2021-04-12 18:38 Última actualización: 2021-05-05 17:17

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Accepted
Fichero:
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
  • Estado Update from Open to Cerrado
2021-05-04 17:37 Updated by: cazfi
Comentario

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
Comentario

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.

Editar

Please login to add comment to this ticket » Entrar