Incidencia #42594

Units on Rally-point GOTO don't show 'G' icon for goto status

Abrir Fecha: 2021-07-02 09:50 Última actualización: 2022-02-07 15:31

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

When a unit is sent on GOTO because of a city rally point, if the GOTO dest_tile is more than one turn away, the unit will not show in the client with a 'G' to indicate it is still under an active not-yet-completed GOTO order.

Brief investigation of the issue discovered that the separate goto_tile field is not being set when a unit begins executing the movement of its rally point order.

Ticket History (3/6 Histories)

2021-07-02 09:50 Updated by: lexxie9952
  • New Ticket "Units on Rally-point GOTO don't show 'G' icon for goto status" created
2021-07-05 13:41 Updated by: lexxie9952
Comentario

Fixed here: https://github.com/Lexxie9952/fcw.org-server/commit/329cba20b8a214a502e677de29a57cbe19ab7950

Adding dest_tile to rally points and rally packets fixes this AND lets clients know and report the city's rally point. Note: there is a FIXME comment in there for servers who don't want to add the dest_tile field. In there is a previous and working hacky-patch that fixes some issues without adding the dest_tile. However, that means they can't set the punit->goto_tile correctly though, which will surely make issues. The commit as it currently stands, resolves all issues.

Feel free to cherry pick. If alternate solution implemented please notify me. Thanks

NOTE: Changes network protocol but not savegame compat.

2021-10-12 04:38 Updated by: cazfi
Comentario

I haven't investigated closely, but noticed that 'G' shows all right when rally point is used. I don't think it's deducted from goto_tile, anyway.

2021-10-19 01:38 Updated by: None
Comentario

Reply To cazfi

I haven't investigated closely, but noticed that 'G' shows all right when rally point is used. I don't think it's deducted from goto_tile, anyway.

Which client?

I don't know about "not deducted from goto_tile, anyway".

Perhaps FCW clients figure out when to show a GOTO differently.

I don't understand how a client is supposed to represent things properly represent a unit going to a rally point if it has no way of knowing the destination.

2022-02-07 15:22 Updated by: cazfi
Comentario

Reply To cazfi

I don't think it's deducted from goto_tile, anyway.

This has no handling different from other activity icons; comes from unit's ACTIVITY_GOTO activity.

2022-02-07 15:31 Updated by: cazfi
Comentario

Can't reproduce failure to set goto_tile, either, when the actual goto starts.

Attachment File List

No attachments

Editar

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