Announcement

Collapse
No announcement yet.

Extracting music from Nexuiz .pk3 files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Extracting music from Nexuiz .pk3 files

    Hello everyone of Kubuntu Forums!

    Mitt namn är David. I'll do a proper introduction soon enough, there's a question that's been on my mind.

    I started playing Nexuiz a few days ago, and alot of the maps have really, really good electronic music playing on them. I'm wondering how I could go about getting those files from the .pk3 map files? I've been told that .pk3 is just a .zip, but I can't figure out how to open them as such.

    Thanks!

    #2
    Re: Extracting music from Nexuiz .pk3 files

    I'm wondering how I could go about getting those files from the .pk3 map files? I've been told that .pk3 is just a .zip, but I can't figure out how to open them as such.
    Check:

    man file
    NAME
    file - determine file type

    SYNOPSIS

    file [-bchikLnNprsvz ] [--mime-type ] [--mime-encoding ] [-f -file ... -namefile ] [-F -file ... -separator ] [-m -file ... -magicfiles ] file
    file -C [-m -file ... -magicfile ]
    file [--help ]

    DESCRIPTION

    file tests each argument in an attempt to classify it. There are three sets of tests, performed in this order: filesystem tests, magic tests, and language tests. The first test that succeeds causes the file type to be printed.

    => with a test file (renamed zip)

    Konsole:
    Code:
    file Test.pk3
    Test.pk3: Zip archive data, at least v2.0 to extract

    Unpack

    man unzip
    NAME
    unzip - list, test and extract compressed files in a ZIP archive

    SYNOPSIS
    unzip [-Z] [-cflptTuvz[abjnoqsCKLMVWX$/:]] file[.zip] [file(s) . . .] [-x xfile(s) . . .] [-d exdir]

    DESCRIPTION
    unzip will list, test, or extract files from a ZIP archive, commonly found on MS-DOS systems.
    Konsole:
    Code:
    unzip Test.pk3
    Archive: Test.pk3
    inflating: Test.txt

    There are lot of front-ends: ark (archive utility for KDE) , xarchiver (GTK+ frontend for most used compression formats), xarchive (GTK frontend for most used compression tools), ...


    ...and with the > Nexuiz (> Ubuntu/nexuiz-music), music.pk3:

    $ file music.pk3
    music.pk3: Zip archive data, at least v1.0 to extract
    and
    $ unzip music.pk3
    Archive: music.pk3
    creating: sound/
    creating: sound/cdtracks/
    inflating: sound/cdtracks/track003.ogg
    inflating: sound/cdtracks/thunder.ogg
    inflating: sound/cdtracks/track006.ogg
    inflating: sound/cdtracks/track002.ogg
    inflating: sound/cdtracks/track008.ogg
    inflating: sound/cdtracks/track007.ogg
    inflating: sound/cdtracks/track004.ogg
    inflating: sound/cdtracks/track005.ogg
    inflating: sound/cdtracks/track009.ogg
    inflating: sound/cdtracks/track001.ogg
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment

    Working...
    X