Inkscape-dev

From X-Moto
Revision as of 09:23, 20 October 2006 by The only dude (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Documentation for the developpement version of svg2lvl


Disclaimer

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.

By the way, the developpement version has only be tested under Linux. So, it may not work at all under other operating systems.

Required softwares

  • Inkscape (svn version)
  • Python (>= 2.4)
  • Svg2lvl converter and inkscape extension from cvs
$ cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P xmoto/tools/svg2lvl/

Pre-requesites

You have to install the svg2lvl inkscape extension.

GNU/Linux

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

$ cd ~/xmoto-cvs/xmoto/tools/svg2lvl/
$ mkdir -p ~/.inkscape/extensions/textures/
$ cp *.inx *.py ~/.inkscape/extensions/
$ cp textures/*.jpg ~/.inkscape/extensions/textures/
$ ln -s /usr/share/inkscape/extensions/bezmisc.py ~/.inkscape/extensions/bezmisc.py
$ ln -s /usr/share/inkscape/extensions/inkex.py ~/.inkscape/extensions/inkex.py
$ ln -s /usr/share/inkscape/extensions/embedimage.py ~/.inkscape/extensions/embedimage.py

Then, you can launch inkscape.

Test if the installation is ok

  • Check in the 'Effects' menu that there is an entry 'X-moto'
  • Do 'Save as...' (Shift-Ctrl-S), and check that you can select the 'X-Moto Level (*.lvl)' file format.

If the installation is not ok, please go to the IRC so we can help you find out why it failed.

TODO

  • 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. IN PROGESS