w23 / OpenSource

Load Source games maps as combined meshes correctly positioned relative to each other
Do What The F*ck You Want To Public License
154 stars 16 forks source link

Make a fly-by based on a speedrun #8

Open w23 opened 11 years ago

w23 commented 11 years ago

To achieve that one would need to parse *.dem files, extract player positions and play them. Some sad facts:

  1. There is no publicly available specs on GoldSrc (most speedruns are made playing original HL, not Source) *.dem format that look legit.
  2. Source *.dem format (https://developer.valvesoftware.com/wiki/DEM_Format) suggests that the file itself contains just network packets, and common sense tells me that those should contain only player commands (input) and not much else. If this is right, then there's no way to extract player position without implementing the rest of the engine. Oh my! (However, Source SDK sources contain DEM parser that suggests that there really is a way to extract just a player position without processing actual input, but I went no further in my preliminary investigation)
Triang3l commented 11 years ago

You can safely skip non-movement commands by skipping their length.

GoldSrc demo format shouldn't be very different from Quake's one.

w23 commented 11 years ago

That would be the best way to do it, but I still have to figure out the DEM format, which I believe is rather different from Quake. I've recently stumbled upon Xash3D (http://hlfx.ru/forum/showthread.php?s=&threadid=3729), an open source GoldSrc clone, also made by our соотечественник. When I get some time for this project, I think I'll look into that.

w23 commented 6 years ago

dem format references: