Difference between revisions of "Inkscape-dev"

From X-Moto
Jump to: navigation, search
(TODO)
 
(69 intermediate revisions by 6 users not shown)
Line 2: Line 2:
  
 
----
 
----
=Documentation for the developpement version of svg2lvl=
+
=Documentation for the developpement version of Inksmoto Level Editor=
 
----
 
----
  
 
=Disclaimer=
 
=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.
+
This version of Inksmoto Level Editor is not stable and not fully tested, but you can test it anyway.
  
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.
+
=Required softwares =
  
Svg made with previous version of svg2lvl (0.2.0) are not compatible with this version of svg2lvl.
+
The next version of Inksmoto will require Inkscape 0.46 or 0.47 This version of Inkscape no longer uses python-xml, but lxml instead. PyGtk is now needed instead of Tk. And python too (don't know the minimum required version required, but Inkscape 0.46 is packaged with python 2.5).
 +
*inkscape
 +
*python
 +
*python-lxml
 +
*python-gtk2
 +
*libglade2-0
  
=Required softwares =
+
=Installation on Linux =
 +
 
 +
==Installation of the prerequisites==
 +
 
 +
For example on a debian/ubuntu:
 +
sudo apt-get install inkscape python python-lxml python-gtk2 libglade2-0
 +
 
 +
==Using the svn==
 +
 
 +
run:
 +
sudo apt-get install subversion
 +
mkdir ~/.inkscape
 +
cd ~/.inkscape
 +
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions
 +
 
 +
for newer versions of inkscape using xdg basedirs (e.g. Inkscape 0.47):
 +
sudo apt-get install subversion
 +
mkdir ~/.config/inkscape
 +
cd ~/.config/inkscape
 +
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions
 +
 
 +
=Installation on Windows=
 +
 
 +
== General ==
 +
There is another way to get it too, this one illustartes the way to get it with Tortoise SVN so that you can easily update to the newest version.
 +
 
 +
== Things needed ==
 +
You need:
 +
* Microsoft Windows
 +
* Tortoise SVN (or another svn program, I like tortoise best)
 +
* patience... (not really)
 +
* Latest official Inksmoto and Inkscape installed
 +
 
 +
== Step 1. Get Tortoise SVN ==
 +
Download the installer here: [http://tortoisesvn.net/downloads Tortoise SVN] Install it.
 +
 
 +
== Step 2. Checkout ==
 +
Make sure that you remove the old inksmoto files from the extensions folder before proceeding.
 +
Go to your Inkscape installation directory and there to the share folder, for example:
 +
*"C:\Program Files\Inkscape\share\"
 +
Then Right-Click the extensions folder to see the context menu of windows, you should see the tortoise svn and a button which says: "SVN Check out...".
 +
* URL of repository: svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions/
 +
* Checkout directory: [install dir]\share\extensions
 +
Click Ok. Wait... It will download all the files needed and then you are done. Just open inkscape and voila.
 +
 
 +
== Step 3. Testing ==
 +
Open Inkscape and begin testing and developing. voila!
 +
 
 +
=Installation on Mac OS X=
 +
 
 +
There is a way to get the svn of Inksmoto for Mac OS X.
 +
 
 +
==Required software==
 +
 
 +
*Apple's Mac OS X
 +
*MacPorts
 +
*Inkscape
 +
*Subversion(MacPort's Port)
  
* [http://www.inkscape.org/ Inkscape] (svn version)
+
==Downloading and installing MacPorts==
* [http://www.python.org/ 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 =
+
Download the right version of MacPorts for your Mac OS X version.
  
You have to install the svg2lvl inkscape extension.
+
*Mac OS X 10.4 Tiger: https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.4-Tiger.dmg
  
== GNU/Linux ==
+
*Mac OS X 10.5 Leopard: https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.5-Leopard.dmg
  
We suppose that you have do the checkout into ~/xmoto-cvs/
+
*Mac OS X 10.6 Snow Leopard: https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.6-SnowLeopard.pkg
  
$ cd ~/xmoto-cvs/svg2lvl/
+
*Mac OS X 10.7 Lion: https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.7-Lion.pkg
$ mkdir -p ~/.inkscape/extensions/
 
$ cp -rf * ~/.inkscape/extensions/
 
  
Then, you can launch inkscape.
+
*Mac OS X 10.8 Mountain Lion: https://distfiles.macports.org/MacPorts/MacPorts-2.1.3-10.8-MountainLion.pkg
  
== MacosX ==
+
==Installing Subversion==
  
You have to install PyXML. See http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX#Enabling_python_effects for an howto.
+
After installing MacPorts, open up Terminal.app, and type in:
  
Then, install svg2lvl the same way as under GNU/Linux.
+
sudo port install subversion
  
== Windows 95 & 98 ==
+
After its done, to make sure subversion is working, type in:
  
Copy all the file from the cvs into the share/extensions/ directory of the inkscape installation.
+
svn
(It will ask if you want to override the inkex.py and bezmisc.py files, answer no)
 
  
Then, you can launch inkscape.
+
Your terminal window should look like this, if it works properly:
  
== Windows 2000 & XP ==
+
DarkSeph22:~ WeatherGameMan97$ svn
 +
Type 'svn help' for usage.
  
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.
+
==Getting the svn of Inksmoto==
  
(The bug is not corrected yet in the developpement version of Inkscape)
+
Type in the URL repository, then the full path of where you want the files to go, like this:
  
Then, you can launch inkscape.
+
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions /Users/your username/Applications/Inkscape.app/Contents/Resources/extensions
  
= TODO =
+
Once its all done, open up Inkscape and begin testing.
  
* change the way xmoto properties are handled in inkscape objects label. DONE
+
=Inksmoto-dev Bug Tracker=
* 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.
+
You can see the progress of the developement in the bug tracker:
 +
[http://todo.xmoto.tuxfamily.org/index.php?project=2 Inksmoto-dev Bug Tracker]

Latest revision as of 17:03, 11 June 2013

Català - Español


Documentation for the developpement version of Inksmoto Level Editor


Disclaimer

This version of Inksmoto Level Editor is not stable and not fully tested, but you can test it anyway.

Required softwares

The next version of Inksmoto will require Inkscape 0.46 or 0.47 This version of Inkscape no longer uses python-xml, but lxml instead. PyGtk is now needed instead of Tk. And python too (don't know the minimum required version required, but Inkscape 0.46 is packaged with python 2.5).

  • inkscape
  • python
  • python-lxml
  • python-gtk2
  • libglade2-0

Installation on Linux

Installation of the prerequisites

For example on a debian/ubuntu:

sudo apt-get install inkscape python python-lxml python-gtk2 libglade2-0

Using the svn

run:

sudo apt-get install subversion
mkdir ~/.inkscape
cd ~/.inkscape
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions

for newer versions of inkscape using xdg basedirs (e.g. Inkscape 0.47):

sudo apt-get install subversion
mkdir ~/.config/inkscape
cd ~/.config/inkscape
svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions

Installation on Windows

General

There is another way to get it too, this one illustartes the way to get it with Tortoise SVN so that you can easily update to the newest version.

Things needed

You need:

  • Microsoft Windows
  • Tortoise SVN (or another svn program, I like tortoise best)
  • patience... (not really)
  • Latest official Inksmoto and Inkscape installed

Step 1. Get Tortoise SVN

Download the installer here: Tortoise SVN Install it.

Step 2. Checkout

Make sure that you remove the old inksmoto files from the extensions folder before proceeding. Go to your Inkscape installation directory and there to the share folder, for example:

  • "C:\Program Files\Inkscape\share\"

Then Right-Click the extensions folder to see the context menu of windows, you should see the tortoise svn and a button which says: "SVN Check out...".

Click Ok. Wait... It will download all the files needed and then you are done. Just open inkscape and voila.

Step 3. Testing

Open Inkscape and begin testing and developing. voila!

Installation on Mac OS X

There is a way to get the svn of Inksmoto for Mac OS X.

Required software

  • Apple's Mac OS X
  • MacPorts
  • Inkscape
  • Subversion(MacPort's Port)

Downloading and installing MacPorts

Download the right version of MacPorts for your Mac OS X version.

Installing Subversion

After installing MacPorts, open up Terminal.app, and type in:

sudo port install subversion

After its done, to make sure subversion is working, type in:

svn

Your terminal window should look like this, if it works properly:

DarkSeph22:~ WeatherGameMan97$ svn
Type 'svn help' for usage.

Getting the svn of Inksmoto

Type in the URL repository, then the full path of where you want the files to go, like this:

svn co svn://svn.tuxfamily.org/svnroot/xmoto/svg2lvl/trunk/extensions /Users/your username/Applications/Inkscape.app/Contents/Resources/extensions

Once its all done, open up Inkscape and begin testing.

Inksmoto-dev Bug Tracker

You can see the progress of the developement in the bug tracker: Inksmoto-dev Bug Tracker