[Freeciv-tickets] [freeciv] #45889: Send initial counter values to client

Back to archive index
OSDN Ticket System norep****@osdn*****
Tue Jun 27 00:06:20 JST 2023


#45889: Send initial counter values to client

  Open Date: 2022-10-17 20:08
Last Update: 2023-06-27 00:06

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/45889
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45889

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2023-06-27 00:06 Updated by: lachu

Comment:

Reply To cazfi
Reply To lachu
@cazfi.
I will look if it is real necessary, but I probably allocates counters inside routine creating city (both on client and server). As far, as I remember, default value of counter (not initial for city) was send in ruleset packet.

Yes, memory is allocated when the city is created, and the client knows the default counter value. What it currently does not know after connecting to the server is the counter's current value, until there's a change to it.
Hi. I do not read whole ticket. I see (on main), when city was built, counter values are send to client. Should I wrote some more generic approach? Current only sends city counter's value, but packet definition are tied to cities. I can write generic code, but we must take care about entity kind city/unit/player/world inside procedure sending these values, so it does not makes sense (in my opinion).

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.2.0
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

City counter value updates are sent to client by #45429, but we will need to send also initial values, e.g., when a client reconnects, or game has been loaded from a saved game. Basically when ever full city info gets sent to the client for the first time (note, that if it makes implementation easier; it should be ok to "send" them to the delta protocol layer unconditionally when ever full city info gets sent. Delta protocol would notice itself if there's nothing to update/send)

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/45889
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45889



More information about the Freeciv-tickets mailing list
Back to archive index