[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - No CSQC in demo playback

No CSQC in demo playback

Discuss CSQC related programming.

Moderator: InsideQC Admins

No CSQC in demo playback

Postby frag.machine » Sat May 31, 2014 3:26 pm

So I was recording a new video for my WIP isometric view RPG thingie when I suddenly noticed that my CSQC HUD wasn't visible during demo playback. :?
Is there any way to fix/overcome that ? I am using Darkplaces, BTW.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: No CSQC in demo playback

Postby Max_Salivan » Sat May 31, 2014 8:27 pm

Sorry for my english :)
Max_Salivan
 
Posts: 96
Joined: Thu Dec 15, 2011 1:00 pm

Re: No CSQC in demo playback

Postby Supa » Sat May 31, 2014 11:03 pm

Which version of Darkplaces are you using? It should roll the csprogs into the demo so that it can display in the first place, and given that I've recorded involving CSQC HUDs I'd be worried if it broke recently.
User avatar
Supa
 
Posts: 164
Joined: Tue Oct 26, 2004 8:10 am

Re: No CSQC in demo playback

Postby frag.machine » Sun Jun 01, 2014 1:47 am

@Max_Salivan: not sure if I got it. How am I supposed to use this isdemo() builtin during demo playback ?

@Supa: I am using darkplacesengine20140507.

This is weird, because after posting I realized that CSQC actually seems to run during demo playback, but only stuff printed with drawstring() is rendered.
I have some code using drawpic() but this just renders during normal gameplay.
I thought this could be because I wasn't calling precache_pic () during CSQC_Init(), but this didn't work either.

/me reads the whole HUD code again
Hmm... I am using CSQC_InputEvent() to toggle the inventory on/off (using the key "I").
Thus, makes sense if the inventory don't show up during playback (the key press isn't captured by the demo).

/me runs the demo and hits the "I" key; inventory magically appears!

Well...
Image

:)
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: No CSQC in demo playback

Postby goldenboy » Sun Jun 01, 2014 4:30 pm

So I guess to get CSQC GUIs working in demos, one would need to send every input event to the server, then have the server poke csqc via multicast() or whatever the Darkplaces equivalent is to run the code that was meant to get triggered by that input event.

A roundtrip.

Or is there an easier way?
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Re: No CSQC in demo playback

Postby leileilol » Sun Jun 01, 2014 10:35 pm

Engineside, implementing a non-required accompanying clientdemo format which runs the CSQC code (but leaves out the file functions)?
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: No CSQC in demo playback

Postby Spike » Mon Jun 02, 2014 4:04 am

do the roundtrip as a stat or something, and only use it if isdemo(). give up on mouse cursor positions.
I guess the engine could provide an 'onplayback(string command)' builtin or something, but meh...
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: No CSQC in demo playback

Postby goldenboy » Mon Jun 02, 2014 6:02 pm

Before you spend any time writing some builtin for that, just disable the console unless in developer mode. Let people use FRAPS. Problem solved.

The only thing demos are useful for is playtesting, IMO.
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Re: No CSQC in demo playback

Postby Spike » Mon Jun 02, 2014 6:13 pm

and quake-done-quick... a mapper's nightmare. :P
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: No CSQC in demo playback

Postby Spirit » Tue Jun 03, 2014 8:27 am

And intro videos and cutscenes.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1037
Joined: Sat Nov 20, 2004 9:00 pm

Re: No CSQC in demo playback

Postby Spike » Tue Jun 03, 2014 10:49 am

I'm not sure how its useful for random uis to appear during intros and cutscenes... If really needed you could always just temporarily add a stuffcmd in the ssqc for when it was recorded.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: No CSQC in demo playback

Postby frag.machine » Tue Jun 03, 2014 11:25 am

IMHO at least in the case of UI's I don't see the point in changes, I solved my problem just hitting the keys when required during playback. However, since CSQC is advertised as complete enough to one even implement a full game using only it, it's a bit disappointing to find out client side events are completely ignored by demos. I'd consider the possibility of recording such events (if a game is using CSQC the author is already willing to break compatibility anyway).
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: No CSQC in demo playback

Postby ceriux » Tue Jun 03, 2014 5:44 pm

i personally would rather just get a little more creative with my demos. maybe disable ALL hud and everything during the demo and do some kind of atmospheric scene similar to half-life 2.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: No CSQC in demo playback

Postby frag.machine » Tue Jun 03, 2014 11:57 pm

@ceriux: the main objective behind the video was show off a CSQC HUD... :)
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2120
Joined: Sat Nov 25, 2006 1:49 pm

Re: No CSQC in demo playback

Postby ceriux » Thu Jun 05, 2014 4:21 am

oh , oh well then. i personally agree though the csqc replace what you see in a demo.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA


Return to CSQC Programming

Who is online

Users browsing this forum: No registered users and 2 guests