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.
  
By the way, the developpement version has only be tested under Linux. So, it may not work at all under other operating systems.
+
Svg made with previous version of svg2lvl (0.2.0) are not compatible with this version of svg2lvl.
  
 
=Required softwares =
 
=Required softwares =
Line 18: Line 18:
 
* [http://www.python.org/ Python] (>= 2.4)
 
* [http://www.python.org/ Python] (>= 2.4)
 
* 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 xmoto/tools/svg2lvl/
+
  $ cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P svg2lvl/
  
 
= Pre-requesites =
 
= Pre-requesites =
Line 24: Line 24:
 
You have to install the svg2lvl inkscape extension.
 
You have to install the svg2lvl inkscape extension.
  
== GNU/Linux ==
+
== GNU/Linux & MacosX ==
  
 
We suppose that you have do the checkout into ~/xmoto-cvs/
 
We suppose that you have do the checkout into ~/xmoto-cvs/
  
  $ cd ~/xmoto-cvs/xmoto/tools/svg2lvl/
+
  $ cd ~/xmoto-cvs/svg2lvl/
  $ mkdir -p ~/.inkscape/extensions/textures/
+
  $ mkdir -p ~/.inkscape/extensions/
  $ cp *.inx *.py ~/.inkscape/extensions/
+
  $ cp -rf * ~/.inkscape/extensions/
$ cp textures/*.jpg ~/.inkscape/extensions/textures/
+
 
$ ln -s /usr/share/inkscape/extensions/bezmisc.py ~/.inkscape/extensions/bezmisc.py
+
Then, you can launch inkscape.
$ ln -s /usr/share/inkscape/extensions/inkex.py ~/.inkscape/extensions/inkex.py
+
 
$ ln -s /usr/share/inkscape/extensions/embedimage.py ~/.inkscape/extensions/embedimage.py
+
== 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 ==
 +
 
 +
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.
 
Then, you can launch inkscape.
Line 46: Line 57:
 
* use list of value in extensions windows. DONE
 
* 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. IN PROGESS
+
* 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
 +
 +
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 22:02, 2 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 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 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P svg2lvl/

Pre-requesites

You have to install the svg2lvl inkscape extension.

GNU/Linux & MacosX

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.

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

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.

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. 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.