Custom cd tracks for campaign levels

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Tue Apr 07, 2009 11:27 pm

  • I'm trying to make a single player campaign in which I want to use custom music for some levels rather then the normal cd track of the map. Normally I could accomplish that by writing 'cd loop X' in the levels mutators field, but it seems the tracks from mapinfo are loaded after the cvars specified in a campaign entry thus overwriting my command. Here's what I tried:

    "tdm","bloodprison","5","5","50","g_weapon_stay 1; cd loop 13","Level name","Bla bla bla..."

    I was wondering if there's any other cd command or cvar I could use there. So far the only cd sub-setting which might work seems to be 'cd remap', but I tried it and it doesn't have any effect. Is what I'm trying to do possible with the latest SVN? How could it be done?
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest

Wed Apr 08, 2009 6:30 am

  • No, this is not supported, and the campaign file's commands aren't even executed any more, but parsed by a QC based parser.

    Why not simply set the CD tracks of the maps to your taste?
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Apr 08, 2009 11:57 am

  • Wouldn't work... I want the campaign to have the same custom music for everyone I give it to (without any modified mapinfos) and only want the music to be different for given campaign levels, not the normal map.

    My real plan is actually making a more heavily modified campaign by writing other cvars in that field as well (such as the custom music, each level having its own start weapons and modified pickups, and other non-menu mutators). So far such things seem to work... I tried using 'bot_nofire 1' for a test and bots didn't fire in that level while starting a normal server made them fire correctly again :)

    Maybe a change could be made so the music from .mapinfo is loaded before the parsed cvars in campaigns, if that would be possible and wouldn't brake anything? This could allow per level custom music with 'cd loop' which I think would be a wonderful possibility for campaigns... for instance when people want to make special levels where a different song fits better then the one the map originally has.
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest

Wed Apr 08, 2009 3:05 pm

  • cd loop is a command, and campaigns can only set cvars.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Apr 08, 2009 4:19 pm

  • Right... that's something I didn't think of :? I'm guessing there isn't any settable cvar other then the cd commands to force a song so I'll have to go without for now.
    User avatar
    MirceaKitsune
    Keyboard killer
     
    Posts: 593
    Joined: Thu Aug 14, 2008 6:48 am
    Location: Romania - Bucharest



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest