Thanks a lot. I've managed to convert them all, but they need cleanup. I'm 
writing a script for that (see below).

For example, the converted pingus file contains entrances/entrances, 
exits/exits which Pingus does not have. Pingus only knows about exits/ and 
entrances/. Currently this is the script I have to convert the XML version 1 
files to XML version 2, then to Pingus file format. 



for f in ./*.xml
echo "$f"
filename=$(basename "$f")
xsltproc pingusv1tov2.xsl "$f" > "xml-converted/$filename.xml"
ruby xml2sexpr.rb "xml-converted/$filename.xml" "$filename.pingus" > 

#Replace a few odd occurences with valid ones so that Pingus recognises them
sed -i -- 's/entrances\/entrances/entrances/g' *.pingus
sed -i -- 's/liquids\/Liquid/liquids/g' *.pingus
sed -i -- 's/exits\/exits/exits/g' *.pingus
sed -i -- 's/textures\/textures/textures/g' *.pingus

 What's the difference between Pingus format level 2 and Pingus format level 3?

Kind regards,
Geoffrey De Belie

---- On wo, 10 aug 2016 20:49:47 +0200 Ingo Ruhnke <>wrote 

 > On Wed, Aug 10, 2016 at 6:55 PM, Geoffrey De Belie 
 > <> wrote: 
 > > I wonder if there exists a tool to convert the (old) XML level format to 
 > > the 
 > > new pingus format? 
 > There are two scripts that you need to use in succession. 
 > The first one updates the .xml from version 1 to version 2: 
 > The second one then converts the .xml to the current .pingus format: 
 > I haven't touched the scripts in quite some years, so not sure if they 
 > still work. If in doubt, send the levels to the mailing list and I'll 
 > see what I can do. 
 > --  
 > Blog: 
 > JabberID: 
 > ICQ:      59461927 

Pingus-Devel mailing list

Reply via email to