Thanks for the insight guys. I ended up wrapping a CConsolePanel in another dialog, intercepting the toggleconsole command and using that instead. Seems to be working well, the downside being that you lose any console history written before it's instantiated.
A few notes for anyone interested: The engine creates a CConsolePanel (or something just like it) inside a panel named "GameConsole", which is similar but maybe different from the CConsoleDialog in the VGUI lib we get. The GameConsole seems to handle the pausing behavior and can't be changed. I tried stealing the ConsolePanel from it and setting it up with a parent I could control using the ipanel interface. This mostly worked, except that I couldn't get the input textbox to focus without the original GameConsole being active. If this worked reliably, it might be the better solution, since you retain history and don't have the (small?) overhead of an extra console. Of course, it would be even nicer if there was an option to change the engine behavior in the first place :) Thanks again for the replies. -Martin On Thu, Sep 30, 2010 at 8:28 PM, Tony "omega" Sergi <omegal...@gmail.com>wrote: > So long as it's in singleplayer (maxplayers <2) whenever the console is > visible it is forcibly paused, and there is absolutely no way around it as > a > mod. > The only 2 solutions are to either a) accept that it pauses and move on or > b) you -can- set maxplayers to 2 to make it multiplayer instead of > singleplayer, however that will probably break the game's networking, and > make it not smooth anymore. > > tough choice? :) > -Tony > > > On Fri, Oct 1, 2010 at 9:16 AM, Adam "amckern" McKern <amck...@yahoo.com > >wrote: > > > You can always build your code on the multilayer code base? > > > > -------- > > Owner Nigredo Studios http://www.nigredostudios.com > > > > --- On Fri, 1/10/10, James Pizzurro <ja...@agentredproductions.com> > wrote: > > > > From: James Pizzurro <ja...@agentredproductions.com> > > Subject: Re: [hlcoders] Prevent pause during open dev console? > > To: "Discussion of Half-Life Programming" < > hlcoders@list.valvesoftware.com > > > > > Received: Friday, 1 October, 2010, 7:10 AM > > > > If I remember correctly, when the game is paused, at least one of the > > things > > that happens is host_timescale is set to 0. I'm not sure what could be > done > > about this though because it is all probably handled in > > the inaccessible parts of the engine. > > > > On Thu, Sep 30, 2010 at 5:04 PM, Martin Smith <marti...@gmail.com> > wrote: > > > > > Still no luck, but thank you also for the feedback. > > > > > > On Thu, Sep 30, 2010 at 4:39 PM, Tom Edwards <t_edwa...@btinternet.com > > > >wrote: > > > > > > > You can run unpause (or perhaps it's pause again, as a toggle) while > > > > inside the console. It's probably possible to bind a key that does > both > > > > things at once. > > > > > > > > > > > > On 30/09/2010 7:18, Martin Smith wrote: > > > > > > > >> Hey list, > > > >> > > > >> By default, when the engine receives a toggleconsole command in a > > > >> single-player game, the game is paused until the console is closed. > > I'd > > > >> like > > > >> to allow use of the dev console while a simulation continues > running. > > > Can > > > >> anyone think of a way to prevent this from happening? > > > >> > > > >> I guess the alternative is intercepting the command, and trying to > run > > > the > > > >> console dialog from the Client DLL. > > > >> > > > >> Thanks! > > > >> > > > >> Martin > > > >> _______________________________________________ > > > >> To unsubscribe, edit your list preferences, or view the list > archives, > > > >> please visit: > > > >> http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > >> > > > >> > > > >> > > > > _______________________________________________ > > > > To unsubscribe, edit your list preferences, or view the list > archives, > > > > please visit: > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > -- > -Tony > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders