Freeciv Forum Index Freeciv
'Cause civilization should be free!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Replay feature??
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Freeciv Forum Index -> Wishlist
View previous topic :: View next topic  
Author Message
Lachu



Joined: 13 Oct 2007
Posts: 96

PostPosted: Thu Dec 11, 2008 7:53 am    Post subject: Replay feature?? Reply with quote

I'm not a C hardcoder, but i would like to know what you think about this replay solution:
- We save replay file name, number of records stored in it, long of file and hash of file[0:long] .
- Any replay file have stored information about last save game attached to that replay.
- If player loads old save, then we compare save file name and file name stored in replay file. We can also only check replay file long. If the information are different, we create new replay file.
- All replay files can included any other replay file at top. We can have tree, where parent can have many children.

Replay file should have many stream(different for different data) or maybe events may be ordered chronological ?

Probably we need central databases to stored replay/game data?? If yes, we have way to display all game tree(with many universe) in replay feature. We have also way to export/import all game files. Idea with database are dirty, but maybe is good.

This maybe was first think, what I send to rt. I hope may solution will be good(and simple).
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Dec 11, 2008 10:13 am    Post subject: Reply with quote

It's should be moved to contribution.
Back to top
book



Joined: 05 Jul 2006
Posts: 761

PostPosted: Thu Dec 11, 2008 1:08 pm    Post subject: Reply with quote

The problem with implementing a replay feature is finding the
right balance between including "useful" information in the replay,
and preventing the space requirements from spiralling out of
control.

Anyway if you have a patch or would like to discuss the design,
the bug tracker would be a better place to do so. Also check for
previous tickets, chances are someone has already thought of
your idea and may have posted some useful information about
the implementation.
Back to top
View user's profile Send private message
guest
Guest





PostPosted: Sat Jan 17, 2009 11:01 am    Post subject: Reply with quote

I hope you figure out how to make replays work. It would be a great addition to the game.
Back to top
Munk



Joined: 01 Dec 2008
Posts: 137
Location: The Universe

PostPosted: Sat Jan 17, 2009 1:20 pm    Post subject: Reply with quote

guest wrote:
I hope you figure out how to make replays work. It would be a great addition to the game.


you mean a replay graphic like this?


_________________

My Freeciv Server
Back to top
View user's profile Send private message Visit poster's website
guest
Guest





PostPosted: Sat Jan 17, 2009 10:46 pm    Post subject: Reply with quote

I didn't know freeciv could do that (obviously!). Actually, I mean a replay to be watched in the client, like WC3 replays, for example. But thinking again, this can be pretty boring. Perhaps some more graphics, like those from Age of Empires, showing technologies, units, population, etc... could be more useful and would give the same information as a replay but in a much more compact way.
Back to top
Guest






PostPosted: Sun Jan 18, 2009 2:34 am    Post subject: Reply with quote

This feature are using log file? It's very bad way of course, but it can be sufficient for many people.
Back to top
Gorillaz



Joined: 05 Jan 2009
Posts: 215
Location: Behind you >=)

PostPosted: Sun Jan 18, 2009 5:47 am    Post subject: Reply with quote

But, how will I know if is a settler, worker, destroyer or a troop?
Back to top
View user's profile Send private message
markm



Joined: 17 May 2004
Posts: 369
Location: Halifax N.S. Canada

PostPosted: Sun Jan 18, 2009 6:15 am    Post subject: Reply with quote

Use a graphics format that permits per-pixel comments/fields so each pixel when clicked on can reference the specific portion of the specific savefile that led to inclusion of that pixel? Wink

-MarkM-
Back to top
View user's profile Send private message Visit poster's website
Munk



Joined: 01 Dec 2008
Posts: 137
Location: The Universe

PostPosted: Sun Jan 18, 2009 7:49 am    Post subject: Reply with quote

markm wrote:
Use a graphics format that permits per-pixel comments/fields so each pixel when clicked on can reference the specific portion of the specific savefile that led to inclusion of that pixel? Wink

-MarkM-


or simply draw slightly different 6x6 pixel icons for various sorts of units. My script differentiates between units and cities and can easily be modified to draw different icons for each kind of unit (given what differentiation can be expressed in 36 pixels).

Given that it's directly reading the savegame files, it could also easily be modified to generate running scores for each frame below the map, the same way it's generating the info line at the top. It's just a matter of adding lines to grab the relevant data and render it to the frame (or inserting that data into a database for rendering in other ways.)

_________________

My Freeciv Server
Back to top
View user's profile Send private message Visit poster's website
book



Joined: 05 Jul 2006
Posts: 761

PostPosted: Sun Jan 18, 2009 1:27 pm    Post subject: Reply with quote

Client side replay could be implemented by having the server
store extra data at the end of each turn. This data would be a
summary of the turn, for example a simplified representation of
the map (like the above image), and a set of data points about
some player attributes (e.g. population, science, gold, etc.) that
can later be assembled into a graph. At then end of a game,
clients could request this information from the server, and make
the graphs/animated images/etc in an approriate gui element.
Back to top
View user's profile Send private message
Gorillaz



Joined: 05 Jan 2009
Posts: 215
Location: Behind you >=)

PostPosted: Sun Jan 18, 2009 2:49 pm    Post subject: Reply with quote

When will you add add the traderoutes lines (like warclient) to the freeciv client, c'mon that will make easier the game! Very Happy
Back to top
View user's profile Send private message
book



Joined: 05 Jul 2006
Posts: 761

PostPosted: Sun Jan 18, 2009 3:24 pm    Post subject: Reply with quote

Ok ok... I'll make the patch. The thing is though, since it is a
feature I'm not sure it will be allowed into 2.1 (only bugfixes). I
guess I could spin the description as a "bugfix for the interface". Razz
Back to top
View user's profile Send private message
markm



Joined: 17 May 2004
Posts: 369
Location: Halifax N.S. Canada

PostPosted: Sun Jan 18, 2009 4:10 pm    Post subject: Reply with quote

Yeah but suppose not only that that works but you get exp for it? I'm not sure we want veteran spindoctors working on bugfixes (except to the spindoctor-tech code of course)... Wink

-MarkM-
Back to top
View user's profile Send private message Visit poster's website
book



Joined: 05 Jul 2006
Posts: 761

PostPosted: Sun Jan 18, 2009 8:26 pm    Post subject: Reply with quote

book wrote:
Ok ok... I'll make the patch. The thing is though, since it is a
feature I'm not sure it will be allowed into 2.1 (only bugfixes). I
guess I could spin the description as a "bugfix for the interface". Razz

Well I made the patches, they are here:

http://bugs.freeciv.org/Ticket/Display.html?id=40667
http://bugs.freeciv.org/Ticket/Display.html?id=40668

with the first being for 2.2 only, and the second a minimal 2.1
backport (because it would be time-consuming and annoying to
re-implement 40447 for 2.1).

If no bugs are found no devs complain about 40668, then I
suppose it could be in 2.1.9.

Attached are some screenshots from 2.2. Smile
Perhaps the green color could be replaced with something
more contrasting...



amplio_routes.jpg
 Description:
 Filesize:  246.34 KB
 Viewed:  382 Time(s)

amplio_routes.jpg



trident_routes.jpg
 Description:
 Filesize:  202.05 KB
 Viewed:  382 Time(s)

trident_routes.jpg


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Freeciv Forum Index -> Wishlist All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group