Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map package demos #10

Open
hemebond opened this issue Dec 29, 2019 · 5 comments
Open

Map package demos #10

hemebond opened this issue Dec 29, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@hemebond
Copy link
Owner

Allow users to upload demos for a particular map package (not map listing).

demo:
  skill: 1-4
  protocol: e.g., 666
  modified: https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations
  length: https://en.wikipedia.org/wiki/ISO_8601#Durations
  video: URL
  file: demo file
@hemebond hemebond added the enhancement New feature or request label Dec 29, 2019
@hemebond hemebond self-assigned this Dec 29, 2019
@hemebond
Copy link
Owner Author

Using vgio it's possible to get some information about the demo by reading the messages:

In [22]: d.message_blocks[0].messages                                                                    
Out[22]: 
[<quake.dem.ServerInfo at 0x7f9b41f4bba0>,
 <quake.dem.CdTrack at 0x7f9b4258d668>,
 <quake.dem.SetView at 0x7f9b4384d108>,
 <quake.dem.SignOnNum at 0x7f9b41b22c18>]

In [23]: d.message_blocks[0].messages[0]                                                                 
Out[23]: <quake.dem.ServerInfo at 0x7f9b41f4bba0>

In [24]: d.message_blocks[0].messages[0].protocol_version                                                
Out[24]: 15

In [25]: d.message_blocks[0].messages[0].map_name                                                        
Out[25]: 'the Necropolis'

In [26]: d.message_blocks[0].messages[0].models                                                          
Out[26]: 
('maps/e1m3.bsp',
 '*1',

Get the run-time from the very last instance of quake.dem.Time, e.g.:

In [19]: d.message_blocks[-2].messages                                                                   
Out[19]: 
[<quake.dem.Time at 0x7f9b417d8678>,
 <quake.dem.ClientData at 0x7f9b4177c0e8>,
...
In [20]: d.message_blocks[-2].messages[0].time                                                           
Out[20]: 75.7555923461914

Only thing missing would be the skill level.

@SpiritQuaddicted
Copy link

focus focus focus! i actually have a tool by one of the sda guys that will give us lots of precious information about those files but that is FAR out of scope for the moment! that's all the awesome stuff that can be added once the site is in a usable state. ;)

@SpiritQuaddicted
Copy link

Please restrict upload to archives (zip, rar, 7z, dz). Plain .dem files are very bloated for modern mods because of particles and other eye-candy being included.

@negke
Copy link

negke commented Apr 3, 2020

Tbh, this is something I don't consider worthwhile. The demo upload feature wasn't used much at all before, and I'd rather have no demos at all than people uploading crappy playthroughs that can just as well be hosted elsewhere (and posted in the comments if desired). This is not essential for the archival of the maps themselves.

@SpiritQuaddicted
Copy link

And demos would just be another type of files that could be part of the whole repository. Using some kind of references they could be linked to their maps and vice-versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants