Difference between revisions of "Inkscape-dev"

From X-Moto
Jump to: navigation, search
Line 11: Line 11:
 
See [http://wiki.inkscape.org/wiki/index.php/WorkingWithSVN Inkscape svn] to get Inkscape source code and [http://wiki.inkscape.org/wiki/index.php/Category:Developer_Documentation Inkscape developper documentation] to compile it.
 
See [http://wiki.inkscape.org/wiki/index.php/WorkingWithSVN Inkscape svn] to get Inkscape source code and [http://wiki.inkscape.org/wiki/index.php/Category:Developer_Documentation Inkscape developper documentation] to compile it.
  
Svg made with previous version of svg2lvl (0.2.0) are not compatible with this version of svg2lvl.
+
Svg made with the 0.2.0 version of svg2lvl are not compatible with this developement version of svg2lvl.
  
 
=Required softwares =
 
=Required softwares =
  
* [http://www.inkscape.org/ Inkscape] (svn version)
+
* [http://www.inkscape.org/ Inkscape] (0.45 or later or svn version)
* [http://www.python.org/ Python] (>= 2.4)
+
* [http://www.python.org/ Python] (>= 2.3)
 
* Svg2lvl converter and inkscape extension from cvs
 
* Svg2lvl converter and inkscape extension from cvs
 
  $ cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P svg2lvl/
 
  $ cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P svg2lvl/
Line 49: Line 49:
 
== Windows 2000 & XP ==
 
== 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.
+
Copy all the files from cvs into the C:\Documents And Settings\<USER>\Applications Data\Inkscape\extensions\ directory.
 
 
(The bug is not corrected yet in the developpement version of Inkscape)
 
  
 
Then, you can launch inkscape.
 
Then, you can launch inkscape.
Line 57: Line 55:
 
= TODO =
 
= 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 textures in Inkscape. DONE
 
* show xmoto sprites in Inkscape. IN PROGRESS
 
* 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
 
* 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
 
* create an automatic installation for Unix and Windows. TODO
 
+
* allow inkscape to open .lvl files. IN PROGRESS
Showing the textures and sprites into inkscape will not be available in the next version of svg2lvl, wait for the next next one.
 

Revision as of 18:39, 5 January 2007

Català - Español


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.

Svg made with the 0.2.0 version of svg2lvl are not compatible with this developement version of svg2lvl.

Required softwares

  • Inkscape (0.45 or later or svn version)
  • Python (>= 2.3)
  • Svg2lvl converter and inkscape extension from cvs
$ cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P 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/svg2lvl/
$ mkdir -p ~/.inkscape/extensions/
$ cp -rf * ~/.inkscape/extensions/

Then, you can launch inkscape.

MacosX

You have to install PyXML. See http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Enabling_python_effects 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 inkex.py and bezmisc.py files, answer no)

Then, you can launch inkscape.

Windows 2000 & XP

Copy all the files from cvs into the C:\Documents And Settings\<USER>\Applications Data\Inkscape\extensions\ directory.

Then, you can launch inkscape.

TODO

  • show xmoto textures in Inkscape. DONE
  • show xmoto sprites in Inkscape. IN PROGRESS
  • allow xmoto to update texture informations when new textures are downloaded by xmoto. IN PROGRESS
  • create an automatic installation for Unix and Windows. TODO
  • allow inkscape to open .lvl files. IN PROGRESS