replay last 20 seconds

You think of something which could be added to TA3D post here! /
Vous pensez à quelque chose que l'on pourrait ajouter à TA3D, postez ici!
Post Reply
xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

replay last 20 seconds

Post by xpoy » Mon Mar 29, 2010 10:01 pm

I aware this is a interesting and useful thing
Just replay the last every commander's dead 20 seconds as that commader' camera view.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: replay last 20 seconds

Post by zuzuf » Mon Mar 29, 2010 10:24 pm

That's quite difficult to do because you have to record the game state continuously which can be quite memory consuming and you'll get plenty of network synchronization errors.
=>;-D Penguin Powered

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: replay last 20 seconds

Post by xpoy » Mon Mar 29, 2010 10:47 pm

I know, but a recorder is must tho /:^}....
Maybe we could save the pos of units as this for per seconds.

Code: Select all

typedef struct tagstu_UnitState_Save
{
    int i_Armor;
    int i_CurrentAction;

    union
    {    
            int i_XPosOffset;
            struct 
            {
                  short int is_XPosOffsetDelay;
                  short int is_YPosOffsetDelay;
            };
    };
} stu_UnitState_Save;
typedef struct tagstu_First_UnitState_Save
{
    UnitState stu_UnitState;
    int i_YPosOffset;
};
Like a 0x1000 size array, able to save (0x1000- 0x10)/ = 0x154, total 0x155 units state.
It work as a array that include very similar data, which eazly to compress to small size. But maybe save player's order is better way, and save once units states per 5 or 10 seconds for sync.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: replay last 20 seconds

Post by zuzuf » Tue Mar 30, 2010 5:44 am

It would not work as the engine contains lots of informations that cannot be dumped that way like unit scripts states (saved games don't save it, the engine just restart all scripts that were started but it implies a small change in unit's animation for a few seconds).

I was thinking to record network sync data which could be replayed by connecting to a fake server which would send sync orders and by preventing user from giving orders to its units.
=>;-D Penguin Powered

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: replay last 20 seconds

Post by xpoy » Thu Apr 01, 2010 2:14 am

yours better /:^}!!!
It can be plugin, I mean a plugin for the recorder, which maybe also support TAdemo....

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: replay last 20 seconds

Post by zuzuf » Thu Apr 01, 2010 11:28 am

Unfortunately, TA3D's network protocol is very likely to be different from OTA's one and it's probably not compatible at all as well as other internal stuffs (OTA is based on integers, TA3D uses floats, time steps are different, etc ...) which reduces the possibility of an common interface somewhere.
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: replay last 20 seconds

Post by Balthazar » Thu Apr 01, 2010 3:25 pm

xpoy wrote:yours better /:^}!!!
It can be plugin, I mean a plugin for the recorder, which maybe also support TAdemo....
It`s impossible.

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: replay last 20 seconds

Post by xpoy » Fri Apr 02, 2010 4:54 am

What I think is this:
replay like 2 AI playing same as the demo's record
so the proctal can be pack to a intereface...
maybe.. but maybe spac for the ota-releated

DOT
Posts: 151
Joined: Sat Sep 19, 2009 11:56 am

Re: replay last 20 seconds

Post by DOT » Fri Apr 02, 2010 7:01 am

Maybe it starts recording by checking how much health he has left and how much dps he takes
and that it checks if he has atleast somewhere enough turrets/units to prevent its commander to die if not
it makes record of it is that maybe possible?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: replay last 20 seconds

Post by zuzuf » Fri Apr 02, 2010 8:20 am

Analyzing the game this way is far too complex, the overhead would be noticeable and it would not even solve the problem because of the difficulty of recording the game in order to replay it while the engine is still running (there is only one copy of the game data in RAM, so there would be a conflict in multiplayer).
=>;-D Penguin Powered

xpoy
Posts: 669
Joined: Mon Sep 22, 2008 3:55 am

Re: replay last 20 seconds

Post by xpoy » Sun Apr 04, 2010 11:01 am

well.
I think AI also need much intereface upgrude, which also can use in this.
What AI is not just the enemy AI, it also like a drama AI, a game AI, etc.

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests