September 18, 2025, 04:01:14 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: [1]

Author Topic: [Request] Replays as non-host  (Read 1168 times)

GG2RBY

  • Guest
[Request] Replays as non-host
« on: December 06, 2013, 06:58:37 am »

Hi

So a while back (more than a year and half ago I believe) there used to be a mod that, if you hosted with it, the host could download replays of a match. What makes replays different from normal pov recording such as camtasia/hypercam is that
  • Everything is "recorded", not only your pov, so you can see what happened on the other side of the map while you were doing something. This means that the replay can be rewatched in gg2 so you can record a sequence from multiple pov's.
  • The hud isn't shown and neither or plugins. This is way more enjoyable to watch in gg2's case than someone's cluttered pov.
  • Replays can be shared. If someone wants to recast a match they don't have to rely on the recording of another person, they can just rewatch the raw replay and look at parts they find interesting.
This is what makes it so appealing for video creation. It will be a lot easier to record gameplay/ create enjoyable gg2casts, which mght attract more video creators.

I realize this may vary well be impossible or pretty hard to code, but is this possible as a server plugin? Say, pressing (button) after you died saves a replay of the events that happened during the match while you were alive, basically TF2 replays. If you're a spectator and you do this when the scoreboard is shown, it saves the entire match.
« Last Edit: December 06, 2013, 07:03:15 am by RBY »
Logged

GG2RBY

  • Guest
Re: [Request] Replays as non-host
« Reply #1 on: December 08, 2013, 01:08:54 am »

anyone?
Logged

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4864
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: [Request] Replays as non-host
« Reply #2 on: December 08, 2013, 01:21:53 am »

no one knows how lol
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12519
  • Another one --
Re: [Request] Replays as non-host
« Reply #3 on: December 08, 2013, 01:35:54 am »

no one knows how lol
if you don't have anything worthwhile to say. .. . ...
« Last Edit: August 31, 2025, 05:06:34 pm by MedO »
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

RebelINS

  • Martial Expert
  • *
  • Karma: 400
  • Offline Offline
  • Posts: 6789
  • I am a rising contender, confident to win.
Re: [Request] Replays as non-host
« Reply #4 on: December 08, 2013, 01:41:50 am »

no one knows how lol
if you don't have anything worthwhile to say. .. . ...
his post count would be in the single digits
give him a break
« Last Edit: August 31, 2025, 05:06:55 pm by MedO »
Logged

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4864
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: [Request] Replays as non-host
« Reply #5 on: December 08, 2013, 02:05:47 am »

no one knows how lol
if you don't have anything worthwhile to say. .. . ...
his post count would be in the single digits
give him a break
i am having trouble deciding whether to laugh at this or feel offended by this
« Last Edit: August 31, 2025, 05:07:01 pm by MedO »
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6409
  • Developer
Re: [Request] Replays as non-host
« Reply #6 on: December 08, 2013, 03:13:09 am »

Having been the person who made the replay mod, I'll leave what I remember:

It's actually much easier than it would look like as the game already tries to convert the game state into a byte string and vis-versa for networking, so all that's really needed is to fork and store the stream of bytes sent every frame. This is easiest on the server, I have not implemented it on the client as the client never receives something en masse, it calls for data piecewise. It should still be possible in theory by modifying the receiveMessage function (or whatever it's called).
Displaying a replay is done by taking a client and hacking the receiveMessage function to take all data from the file. The client then automatically converts that into a game, and simple locking to TEAM_SPECTATOR prevents the watcher from influencing the game, and also removes HUDs etc. Fast-forward can be done by raising the game fps.
It's also necessary to be able to separate different frames of input so that the client doesn't "receive" everything in one frame. I did this with a length-prefixing, maybe there's a better and more stable way.
« Last Edit: December 08, 2013, 03:13:34 am by Orpheon »
Logged
Pages: [1]
 

Page created in 0.046 seconds with 32 queries.