From Post-Apocalyptic RPG wiki
- Status: Completely free feature-limited version; All versions are available for free when working on a Open Source project. Be sure to select Open Source under Discounts.
- Home: here
- Platforms: Windows, Linux, OS X
- Remember to make sure your whitespace setup matches our Coding standards and best practices. You can do this via Edit -> Preferences -> Editor -> Indentation. It is also a good idea, to add the Indentation tool to some of the helper windows in the IDE.
- To make running the code easier, you should set the "run.py" script as the Main Debug File. In this way, run.py will allways be executed when you hit Debug, regardless of which project file is opened. You can set this via Debug -> Set Current as Main Debug File.
- Status: Free
- Home: http://www.eclipse.org/
- Platforms: Windows, Linux, Mac
- Install an Eclipse platform:
- Grab the Eclipse Classic download at http://www.eclipse.org/downloads/ (the other Eclipse platforms probably work just as well, but these instructions assume you're using the Classic Eclipse platform).
- Alternatively, if you're on Linux you may be able to install Eclipse through your package manager.
- Setup a Python development environment in Eclipse by installing the PyDev plugin:
- Fire up Eclipse and open the plugin installation window via the Help > Install New Software... menu option.
- Click the "Add" button at the top-right of the window and enter the PyDev update site url (http://pydev.org/updates as of this writing of this wiki article).
- Select the "PyDev" feature and press next at the bottom of the window; follow the instructions to install the plugin (you may have to restart Eclipse).
- After PyDev is installed open up the Eclipse preferences windows via the Window > Preferences... menu and setup your Python interpreter; instructions for how to do this can be found on the PyDev site.
- Create a Eclipse project for PARPG:
- If you want Eclipse to act as your SVN client you can install the Subversive or Subclipse Eclipse plugins; then, just create a new remote SVN project as documented in Development_tools#Subversive_and_Subclipse.
- If you'd rather use an external SVN client then you just have to create a new PyDev project in your Eclipse workspace and point it to your PARPG SVN checkout. Be sure to deselect the "create a 'src' directory..." option in the new PyDev project wizard, since PARPG stores its sources in the games/scripts subdirectory.
- Configure the PyDev project properties:
- Go to Project > Properties... and select the "PyDev - PYTHONPATH" section.
- Under the "Source Folders" tab remove any default source folder paths and add the "game" subfolder under the PARPG checkout.
- Hit the "Force restore internal info" button to update the source paths in your Eclipse project.
You should now have everything setup to work with PARPG! If you've never used Eclipse before it might take a while to get used to it as Eclipse has a lot of functionality and a steep learning curve, but PyDev is one of the best free Python development environments around so its well worth the effort.
- Status: Free as in freedom.
- Homepage here.
- Manual here.
- Platforms: Virtually all; Unix/Linux, Windows, OSX.
- If you don't get syntax highlighting, make sure you have python-mode installed. Otherwise you can do
or at runtime
- Remember to make sure your whitespace setup matches our Coding standards and best practices. Add the following to your .emacs file:
(setq indent-tabs-mode nil) (setq c-basic-offset 4)
or alternatively at runtime (per buffer)
M-x set-variable RET indent-tabs-mode RET nil M-x set-variable RET c-basic-offset RET 4
- In your .vimrc you can set the following:
syntax on # enable syntax highlighting when possible set et # don't insert literal tabs, use spaces. set ts=4 # tabs count for 4 spaces set tw=78 # wrap at 78 charactes set shiftwidth=4 # number of spaces to use for an indent or dedent (>>, <<)