ASSS Questions - ?rec command BlueGoku - Mon Jul 18, 2005 8:36 pm Post subject: ?rec command
Any possibility of the next ASSS update including ball movement when displaying recorded games? It would definitely be a very cool feature for HZ. If not, our dev guys can probably take a look at the module and see if they can edit it to include it.
Btw, very nice work with that module, Grel. It may be a novelty, but it's a very, very nice feature and something that's been requested for a long time now. Kudos.
Mr Ekted - Mon Jul 18, 2005 9:06 pm Post subject:
The server doesn't know where the ball is except when initially passsed or caught. The client performs the physics to compute its location based on friction and bounces. As long as the server is SENDING the ball packets (ball id, timestamp, player id, pass coords), the client will display them.
BlueGoku - Mon Jul 18, 2005 9:26 pm Post subject:
It does however record where the ball is when passed or caught? Can't we just have the ?rec command assume that every time <player a> catches the ball he will hold on to it until he passes it away, and display that? I mean, it's already displaying player movement. Only problem I see is having not knowing where the puck will stop if it's shot away, since priit hasn't released the friction formula.
All we really need for HZ is the record to show where a player is when the ball is shot, to help CR/DC calls.
50% Packetloss - Mon Jul 18, 2005 10:26 pm Post subject:
Doesn't it already record ball packets? Thats all that module does, records packets and then resends them durring playback.
BlueGoku - Mon Jul 18, 2005 10:49 pm Post subject:
It doesn't display where the ball was when playing recordings.
Mr Ekted - Mon Jul 18, 2005 11:03 pm Post subject:
Aren't we talking about using Cont to view a recorded game in a special arena under ASSS? What's the problem?
Dr Brain - Mon Jul 18, 2005 11:53 pm Post subject:
I don't think the record module logs ball packets, brick packets or flag packets. To make it work, you would have to extend the module to handle at least the ball packets.
50% Packetloss - Tue Jul 19, 2005 2:33 am Post subject:
Yah, there probably shouldn't be a problem adding that in. Catid made that module?? Of all the modules, that one is one of my favorite.
Grelminar - Tue Jul 19, 2005 2:48 am Post subject:
I wrote record. I'm probably the only one who understands how it works well enough to extend it (it's sort of obtuse), although anyone is welcome to try.
The problem isn't just getting it to work: I came up with a really hacky solution (the "arena packet hook" stuff) that would make balls and flags "work" well enough for most purposes, but it had some major flaws. I have some ideas for a cleaner implementation, but haven't gotten around to working on them.
Specifically, I want to get the settings packet recorded in the game file, and restored properly during playback. And I want players entering an arena during playback to get correct flag/ball positions, correct KOTH crown information, existing bricks, etc. It would also be nice if you didn't have to have the current map set to the same map that was there during playback (not that the current implementation checks for this very well), which might even mean embedding the full map in the game file also.