Author Topic: Could a 2nd program edit the demo file while it's being played???  (Read 3092 times)

Garble

  • Boss
  • ****
  • Posts: 104
  • Shy Weirdo
Please forgive me if this is a stupid question, as I'm barely computer literate enough to follow simply instructions and have never been able to actually compose code.

I'm seeing a lot of really innovative ways of manipulating and creating new demorecord files to produce desired results and it got me wondering...

If a clever code-monkey made a program that edits the demorecord file while that same demorecord played (like say, changing the coordinates of the camera) would the demo player be able to accept the changes?

If so, you could run a demorecording of Atlas Park and apear to fly around by changing the camera position. You might even be able to set it so your Player is always located in front of the camera so it would actually look like you were flying around.

Is this even remotely possible?

goodtime

  • Boss
  • ****
  • Posts: 170
    • my videos
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #1 on: April 26, 2013, 11:55:51 PM »
If you're just looking to fly around, hit F2 during a demo.   You'll go into spectator mode and can fly around with WASD keys & mouselook.   If you use the CameraMan app it will adjust your flying speed.   Be aware that items (clickable doors, etc), NPCs and non-team heroes are only drawn within a certain distance of the recording player (the one marked as player in the demo).    So the zones tend to be empty and a little sad.  :(   

Hitting the P key will pause the action and FX, which gives a demo a weird Matrix-y feel to zooming around.

eabrace

  • Titan Moderator
  • Elite Boss
  • *****
  • Posts: 4,292
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #2 on: April 27, 2013, 12:01:16 AM »
You can edit a demofile while it's playing back, but the new code won't be loaded until you restart the demo player.
Titan Twitter broadcasting at 5.000 mWh and growing.
Titan Facebook

Paragon Wiki admin
I was once being interviewed by Barbara Walters...In between two of the segments she asked me..."But what would you do if the doctor gave you only six months to live?" I said, "Type faster." - Isaac Asimov

TimtheEnchanter

  • Elite Boss
  • *****
  • Posts: 1,466
  • There are some who call me... Tim?
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #3 on: April 27, 2013, 01:34:33 AM »
Yeah that would be a very nice feature. Having to reload the entire program is very wasteful. Technically there's no reason it shouldn't be possible to do though. The program seems to load demos in much the same way it did maps during actual gameplay.

The Fifth Horseman

  • Elite Boss
  • *****
  • Posts: 961
  • Outside known realities.
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #4 on: April 27, 2013, 10:06:58 AM »
As I recall, a while ago Codewalker confirmed that the demo file is read once and only once.
We were heroes. We were villains. At the end of the world we all fought as one. It's what we did that defines us.
The end occurred pretty much as we predicted: all servers redlining until midnight... and then no servers to go around.

Somewhere beyond time and space, if you look hard you might find a flash of silver trailing crimson: a lone lost Spartan on his way home.

Garble

  • Boss
  • ****
  • Posts: 104
  • Shy Weirdo
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #5 on: April 27, 2013, 08:11:37 PM »
Ah. I kinda figured if it were that easy someone would have thought of it already.

But cool to know you can already change camera angles. Now if I could just figure out how to play demos on my Mac...

TimtheEnchanter

  • Elite Boss
  • *****
  • Posts: 1,466
  • There are some who call me... Tim?
Re: Could a 2nd program edit the demo file while it's being played???
« Reply #6 on: April 27, 2013, 11:51:03 PM »
As I recall, a while ago Codewalker confirmed that the demo file is read once and only once.

I know that, I just don't see a reason why there wouldn't be a way to force it to re-read. Or better yet, a console command that instructs it to load a different demofile. Then you could use it to reload the current one, or load a different one. All without closing the program for no good reason.