Musicserver XML-Mapper for (X)ASECO driven servers

This forum is dedicated to the Aseco/Rasp 2 server records and control script by Flo and Assembler Maniac. Announcements and issues can be discussed in this forum.

Moderators: Flo, f*ckfish, Assembler Maniac, TM-Patrol

Post Reply
bartschatten
highway camper
highway camper
Posts: 3
Joined: 28 Apr 2010 06:11
Owned TM-games: TMU

Musicserver XML-Mapper for (X)ASECO driven servers

Post by bartschatten » 28 Apr 2010 10:15

It is incredibly annoying, for each piece of music that you want to publish to the server to hand-write an entry. Since I'm too lazy as a programmer, n-times to make copy & paste, I've written a small tool, which diminishes me this work. The XML Mapper!

How does the mapper work?
In very simple three steps:
  1. Open the directory where the ogg or mux files are located (The mapper only read this file types).
    If necessary. rename of the XML node. But in 99.9% of cases this is not necessary!
  2. Reading the directory contents
  3. Export file
The completed XML can now easily inserted into the Musicserver.xml.

Screenshots and download are available here:
http://noob.becos.net/wp-content/mybb/s ... php?tid=54

Paris69
speedy pilot
speedy pilot
Posts: 381
Joined: 05 Apr 2006 20:50
Contact:

Re: Musicserver XML-Mapper for (X)ASECO driven servers

Post by Paris69 » 28 Apr 2010 10:25

we need register to view screenshot and download?

bartschatten
highway camper
highway camper
Posts: 3
Joined: 28 Apr 2010 06:11
Owned TM-games: TMU

Re: Musicserver XML-Mapper for (X)ASECO driven servers

Post by bartschatten » 28 Apr 2010 14:17

Paris69 wrote:we need register to view screenshot and download?
Hi,

sorry about that! I changed the permissions in that thread. It's now possible without register.

/Bart

Paris69
speedy pilot
speedy pilot
Posts: 381
Joined: 05 Apr 2006 20:50
Contact:

Re: Musicserver XML-Mapper for (X)ASECO driven servers

Post by Paris69 » 28 Apr 2010 15:39

some time ago, i "wrote" (or ~copy) similar thing .. but in php to use it direct on server, where oggs (or muxs) are.

Code: Select all

<?php
echo '<head>';
echo '</head>';
echo '<body>';

// find all oggs
function listogg ($curpath) {
    $pocet = 0;
    $dir = dir($curpath);
    while ($file = $dir->read()) {
        if($file != "." && $file != "..") {
            if (is_dir($curpath.$file)) {
                                listogg($curpath.$file."/");
            } else {
$extension = substr($file, -4, 4);
if($extension == ".ogg"){
  echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<song>WRITE/SUBPATH/IFNEEDED/'.$file.'</song></br>';
$pocet++;
}
            }
        }
    }
    $dir->close();
    return;
}

$startpath = ".";
listogg($startpath);

echo '</body>';
?>

Post Reply