# HG changeset patch # User Beliar # Date 1332248434 -3600 # Node ID daa87d01adb99a9d09dcfd4ffb0371d05163ce36 # Parent ae2b8aac429e3635b6b083a502533f4ea30e4b56 Moved parpg.py and settings-dist.xml from parpg-app to the bin directory. Removed outdated parpg.bat.in and parpg.sh.in files. diff -r ae2b8aac429e -r daa87d01adb9 bin/parpg.bat.in --- a/bin/parpg.bat.in Fri Mar 16 15:55:10 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -@ECHO OFF - -SET PYTHONPATH=%PYTHONPATH%;@PYTHONDIR@ -CD %~dp0 -@PYTHON@ -m parpg.main "@SYSCONFDIR@" %* diff -r ae2b8aac429e -r daa87d01adb9 bin/parpg.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/parpg.py Tue Mar 20 14:00:34 2012 +0100 @@ -0,0 +1,49 @@ +#!/usr/bin/env python +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +#TODO: Modularize this script +import sys +from optparse import OptionParser +from os import path + +usage = ('usage: %prog [options] ' + 'Example: python %prog .') + +parser = OptionParser(description='PARPG Launcher Script', usage=usage) +parser.add_option('-f', '--logfile', + help='Name of log file to save to') +parser.add_option('-l', '--loglevel', default='critical', + help='desired output level for log file') +parser.add_option('-p', '--fife-path', + help='Path to the fife module') +parser.add_option('-m', '--parpg-path', + help='Path to the parpg module') + +opts, args = parser.parse_args() + +try: + old_path = sys.path + if opts.parpg_path: + sys.path = [opts.parpg_path] + import parpg +except ImportError: + print("Could not import parpg module. Please install parpg or set the --parpg-path command line value") + parser.print_help() + sys.exit(1) +finally: + sys.path = old_path + + +from parpg.main import main +main(parser) diff -r ae2b8aac429e -r daa87d01adb9 bin/parpg.sh.in --- a/bin/parpg.sh.in Fri Mar 16 15:55:10 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/bash - -export PYTHONPATH=${PYTHONPATH}:"@PYTHONDIR@" -cd $(dirname $0) -"@PYTHON@" -m parpg.main "@SYSCONFDIR@" $@ diff -r ae2b8aac429e -r daa87d01adb9 bin/settings-dist.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/settings-dist.xml Tue Mar 20 14:00:34 2012 +0100 @@ -0,0 +1,43 @@ + + + + False + True + OpenGL + 800x600 + 0 + 5.0 + 1 + True + True + PARPG + data/gui/icons/window_icon.png + data/fonts/oldtypewriter.ttf + abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]" + 12 + controller + True + 1 + 0 + + + data + maps + maps.yaml + Mall + all_agents.yaml + objects + object_database.yaml + dialogue + quests + gui + cursors + cursor_plain.png + cursor_up.png + cursor_right.png + cursor_down.png + cursor_left.png + 1.0 + 1.0 + +