Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: Single-player Freeciv notices
Home

[Freeciv-Dev] Re: Single-player Freeciv notices

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Ross W. Wetmore" <rwetmore@xxxxxxxxxxxx>
Cc: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>, Freeciv Developers List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Single-player Freeciv notices
From: Stepan Roh <stepan@xxxxxxxx>
Date: Wed, 15 Jan 2003 10:31:45 +0100 (CET)


On Tue, 14 Jan 2003, Ross W. Wetmore wrote:

> At 12:35 PM 03/01/14 +0100, Stepan Roh wrote:
> >> >> - after dimplomat/spy investigates the city, it should be possible to
> >> >> reopen that city window in the same turn without spy entering the city
> >> >> again
> >> >
> >> >This would require that we save the state that the spy saw. If we
> >> >however save this we can also add a "show last spy report for city"
> >> >button. This would also work for reports collected 10 turns ago and
> >> >across savegames and so on. Looks like a nice task for attributes.
> >>
> >> Nonsense, it just means setting a per player bit that gets reset at the
> >> end-of-turn and is checked before opening the city display.
> >
> >But what about savegames?
> >
> >Have a nice day.
> >
> >Stepan Roh
>
> If I am correct the initial request was to be able to reopen a city window
> that a spy revealed during that turn. That just takes a bit per player
> per city. The spy action sets it and launches the city display, but the
> player can then launch the city display as long as the bit is still set.
>
> If you want to extend this to a savegame/loadgame and continue the turn
> (which is a useful cheat technique), and still have the bit set then it
> just needs to be written out as part of the city save data.
>
> Saving an entire spy report, or copy of the city information to an
> attribute block so you keep this for 10 turns is probably overkill
> for the initial request and certainly not a requirement. It is also a
> lot more complicated as many pieces of attribute information need to be
> saved and reloaded into something that the city display can use, or you
> would need to write a new attributes display. It probably wouldn't
> happen, and if it did it would be a duplication and waste of effort.
>
> Adding a bitstring to the current city, whether saved or not is relatively
> painless in comparison, eminently doable and does the basic job just fine
> :-).
>
> Or did I misunderstand the initial request?

Problem: turn starts, spy investigates city, game is saved, server quits,
server starts, game is loaded, I want to open the already investigated
city report, turn ends

Will it work?

Have a nice day.

Stepan Roh



[Prev in Thread] Current Thread [Next in Thread]