General > AdrenalineX Development

Replays

(1/7) > >>

[MAF]mooman:
Here's my proposal for replays. I know it'd be quite a big project but having a recording of every race would be extremely useful in so many ways.




Recording
5 seconds before everyone starts racing, start a new bot recording for each of them. as soon as they've finished, stop the recording. assign every recording an ID and display it after a race finishes like this:
mooman finished 11th (+4.22) (RID: 000F4E)
(i suggest using letters and numbers for the ID since they use less space)

once the recordings made i'm pretty sure pod could make a plugin that moves 000F4E.rec to the right folder.


For sorting the recordings i think we should have a mysql database, the fields being:

* RID: already mentioned this
* Player: who raced the race
* IP of player: might seem a bit pointless but not everyone registers an account so this'd help us ban IPs when we play back the recording and see them speedhacking
* Time in seconds: this should be obvious
* Name of race: this too
* Skin ID of player: probably the most pointless but if you're going to replay a race, might as well make it as realistic as possible
* Car colour IDs: also pointless but i don't see why not
* Date: Date and time of the raceIf you can think of any more, just add them here.


Searching
So we've got our recordings, but what good is that if you can't find the one you want? That's where the website comes in. I can easily make a search like this:



Playback
There'll be 10 slots reserved for "playback bots". If you want to watch a recording just do /replay (ID). One of the 10 bots will start the race. I don't see any reason why in spectating mode (which the viewer will be in, watching the bot) there can't be all the racing stuff like checkpoints that disappear when the bot goes through them, a timer and all the race info at the top.


That's my idea, I hope you all like it  :)

[FSR]Ush:
For how long are the replays saved on the mysql database? Or what's the maximum of records that could be stored?

And about the search, how to replay them? You gonna stream the replays on the server only or are they also possible to play on the forum("the internet")?

And I need to say this sounds like the best idea in many many months.

[MAF]mooman:
The MySQL database would use very little space. The actual recordings would use a lot more so I'm not too sure what we could do about them. Maybe have them in zip files and temporarily extract them to watch them? this'd need another plugin of course


--- Quote from: [FSR]Ush on December 14, 2009, 09:55:13 pm ---And about the search, how to replay them? You gonna stream the replays on the server only or are they also possible to play on the forum("the internet")?
--- End quote ---
Unfortunately, they can only be played back on the server. It's not all bad though. Didn't record a race the first time? Play it back on the server with fraps on.

--- Quote from: [FSR]Ush on December 14, 2009, 09:55:13 pm ---And I need to say this sounds like the best idea in many many months.

--- End quote ---
thanks :)

[FSR]Ush:
In oneworld the 10 bots wouldn't be a problem, neither would it be a problem in normal racing. But what about TT, you can only record 10 people? And in normal and one world races, it's only able to focus on 10 players? While sometimes there are 30 players online?

[MAF]mooman:
no, there's no limit on recording (if there is, i'm not aware of it). but bots use 1 slot each. when playing back a race you'd only be able to see one person. so if me and you raced, you can watch both of us but not at the same time.

If someone accuses someone of ramming, I'm guessing it would be possible to have a double replay which shows 2 people's recordings at the same time but that'd use 2 player slots so it'd have to be used sparingly

Navigation

[0] Message Index

[#] Next page

Go to full version