From X-Moto
Revision as of 22:39, 2 January 2007 by The only dude (talk | contribs)
Jump to: navigation, search

Català - Español

Documentation for the developpement version of svg2lvl


This version of svg2lvl is not stable and not fully tested, but you can test it anyway. It requires Inkscape functionnalities that will be available in the next version of Inkscape, so to test this svg2lvl version, you have to compile Inkscape from source.

See Inkscape svn to get Inkscape source code and Inkscape developper documentation to compile it.

Svg made with previous version of svg2lvl (0.2.0) are not compatible with this version of svg2lvl.

Required softwares

  • Inkscape (svn version)
  • Python (>= 2.4)
  • Svg2lvl converter and inkscape extension from cvs
$ cvs -z3 co -P svg2lvl/


You have to install the svg2lvl inkscape extension.


We suppose that you have do the checkout into ~/xmoto-cvs/

$ cd ~/xmoto-cvs/svg2lvl/
$ mkdir -p ~/.inkscape/extensions/
$ cp -rf * ~/.inkscape/extensions/

Then, you can launch inkscape.


You have to install PyXML. See for an howto.

Then, install svg2lvl the same way as under GNU/Linux.

Windows 95 & 98

Copy all the file from the cvs into the share/extensions/ directory of the inkscape installation. (It will ask if you want to override the and files, answer no)

Then, you can launch inkscape.

Windows 2000 & XP

With the next version of Inkscape, you will be able to put svg2lvl files into the C:\Documents And Settings\<USER>\Applications Data\Inkscape\extensions\ directory, but because of a bug with Inkscape, you have to put the svg2lvl files in the same place that with Windows 95 & 98.

(The bug is not corrected yet in the developpement version of Inkscape)

Then, you can launch inkscape.


  • change the way xmoto properties are handled in inkscape objects label. DONE
  • fix the xmoto level size. DONE
  • show xmoto textures in Inkscape. DONE
  • show xmoto sprites in Inkscape. IN PROGRESS
  • use list of value in extensions windows. DONE
  • allow xmoto to update texture informations when new textures are downloaded by xmoto. IN PROGRESS
  • change the way inkscape object style is handled by svg2lvl extensions. DONE
  • create an automatic installation for Unix and Windows. TODO

Showing the textures and sprites into inkscape will not be available in the next version of svg2lvl, wait for the next next one.