Announcement

Collapse
No announcement yet.

Darkplaces questions (cvars, logfile)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Darkplaces questions (cvars, logfile)

    Okay, i'm working on this max/msp patch which will interact with the game to add trippy audio and video effects based on events of the game. Currently it reads the game logfile to get info about basic game events like items picked up, and uses keystrokes bound to game parameters to affect the graphics.

    It works with Fitzquake at the moment, but ideally I want to get it working with Darkplaces... to do this I need to know if some things are possible:

    1. my patch works by reading qconsole.log in max/msp, when you run Quake with -condebug. In darkplaces, this doesn't seem to produce the text logfile though, so i assume it either writes it somewhere else, or you need to run the game with a different parameter?

    2. the way my patch works means that ideally I need to use a command such as that works in fitzquake to increment a variable when typed into the quake console. For example:
    "inc fov 1"
    increases the fov by 1 (so if it were already 90, it sets it to 91 rather than setting it to 1). I haven't been able to find a comparable command in Darkplaces yet?

    3. inputing these :

    v_colour_white_r 0
    v_colour_white_g 0
    v_colour_white_b 0
    v_colour_black_r 1
    v_colour_black_g 1
    v_colour_black_b 1

    does not actually make black values white and white values black. the black values turn white but the white values will not turn black. is there any way to get this to work properly, so for example you could create a 'negative image'?


    Any tips appreciated!

  • #2
    re: the first question, i just re-read =peg='s reply from my other post and realised you can do this with aliases. although if there were an "inc" command or similar that would be easier...

    Comment


    • #3
      think i've answered question 1. for myself with log_file cvar...

      in fact it does work with -condebug. problem is max-msp can't see it, it's as though darkplaces is preventing access while quake is running
      Last edited by genfu; 02-12-2009, 05:47 PM.

      Comment


      • #4
        short video of the patch so far with the latest version of fitzquake:

        http://www.loadsavedelete.com/g/stomatch_quake.avi

        Comment

        Working...
        X