Mercurial > traipse_dev
comparison start_server.py @ 135:dcf4fbe09b70 beta
Traipse Beta 'OpenRPG' {091010-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on
code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to
offer more advanced features and enhance the productivity of the user.
Update Summary (Beta)
Added Bookmarks
Fix to Remote Admin Commands
Minor fix to text based Server
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Added 'boot' command to remote admin
Added confirmation window for sent nodes
Minor changes to allow for portability to an OpenSUSE linux OS
Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG
Zoom Mouse plugin added
Images added to Plugin UI
Switching to Element Tree
Map efficiency, from FlexiRPG
Added Status Bar to Update Manager
default_manifest.xml renamed to default_upmana.xml
Cleaner clode for saved repositories
New TrueDebug Class in orpg_log (See documentation for usage)
Mercurial's hgweb folder is ported to upmana
**Pretty important update that can help remove thousands of dead children from your gametree.
**Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and
look for dead children!!
**New Gamtree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!!
author | sirebral |
---|---|
date | Tue, 10 Nov 2009 14:11:28 -0600 |
parents | f24c6e431a15 |
children |
comparison
equal
deleted
inserted
replaced
101:394ebb3b6a0f | 135:dcf4fbe09b70 |
---|---|
4 import sys | 4 import sys |
5 import time | 5 import time |
6 import gc | 6 import gc |
7 import getopt | 7 import getopt |
8 import traceback | 8 import traceback |
9 | |
9 | 10 |
10 # Simple usuage text for request via help or command line errors | 11 # Simple usuage text for request via help or command line errors |
11 def usage( retValue ): | 12 def usage( retValue ): |
12 print "\nUsage: \n[-d --directory directory] - Directory of where to load config files\n" + \ | 13 print "\nUsage: \n[-d --directory directory] - Directory of where to load config files\n" + \ |
13 "[-n Server Name]\n" + \ | 14 "[-n Server Name]\n" + \ |
19 "Where -p is used to request meta registration. If -p is given, the boot\n" + \ | 20 "Where -p is used to request meta registration. If -p is given, the boot\n" + \ |
20 "password and server name MUST be provided. If no options are given, user\n" + \ | 21 "password and server name MUST be provided. If no options are given, user\n" + \ |
21 "will be prompted for information.\n\n" | 22 "will be prompted for information.\n\n" |
22 sys.exit( retValue ) | 23 sys.exit( retValue ) |
23 | 24 |
24 HG = os.environ["HG"] | |
25 | |
26 import pyver | |
27 pyver.checkPyVersion() | |
28 | |
29 os.system(HG + ' pull "http://hg.assembla.com/traipse"') | |
30 os.system(HG + ' update') | |
31 | 25 |
32 import orpg.networking.mplay_server | 26 import orpg.networking.mplay_server |
33 import orpg.networking.meta_server_lib | 27 import orpg.networking.meta_server_lib |
34 | 28 |
35 if __name__ == '__main__': | 29 print __name__ |
30 if __name__ == '__main__' or __name__ == 'start_server': | |
36 gc.set_debug(gc.DEBUG_UNCOLLECTABLE) | 31 gc.set_debug(gc.DEBUG_UNCOLLECTABLE) |
37 gc.enable() | 32 gc.enable() |
38 | 33 |
39 orpg_server = orpg.networking.mplay_server.mplay_server() | 34 orpg_server = orpg.networking.mplay_server.mplay_server() |
40 lobby_boot_pwd = orpg_server.boot_pwd | 35 lobby_boot_pwd = orpg_server.boot_pwd |
41 server_directory = orpg_server.userPath | 36 server_directory = orpg_server.userPath |
42 server_reg = orpg_server.reg | 37 server_reg = orpg_server.be_registered |
43 server_name = orpg_server.name | 38 server_name = orpg_server.serverName |
44 manualStart = False | 39 manualStart = False |
45 | 40 |
46 # See if we have command line arguments in need of processing | 41 # See if we have command line arguments in need of processing |
47 try: | 42 try: |
48 (opts, args) = getopt.getopt( sys.argv[1:], "n:phml:m:d:", ["help","manual","directory="] ) | 43 (opts, args) = getopt.getopt( sys.argv[1:], "n:phml:m:d:", ["help","manual","directory="] ) |
73 print | 68 print |
74 usage( 1 ) | 69 usage( 1 ) |
75 | 70 |
76 | 71 |
77 # start server! | 72 # start server! |
78 orpg_server.name = server_name | 73 orpg_server.serverName = server_name |
79 orpg_server.reg = server_reg | 74 orpg_server.be_registered = server_reg |
80 orpg_server.boot_pwd = lobby_boot_pwd | 75 orpg_server.boot_pwd = lobby_boot_pwd |
81 orpg_server.userPath = server_directory | 76 orpg_server.userPath = server_directory |
82 orpg_server.remoteadmin = 1 | 77 orpg_server.remoteadmin = 1 |
83 | 78 |
84 if not manualStart: | 79 if not manualStart: |