Mercurial > traipse
comparison orpg/tools/InterParse.py @ 30:8e77f169f324 ornery-orc
Traipse 'OpenRPG' {100219-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 (Patch-1)
New Features:
New custom welcome message for servers.
Fixes:
Fix to InterParse which caused Unknowns to break
Fix to a URL reference in mplay_server
Fix to metaserver.cache Template and outdated Meta URLs
author | sirebral |
---|---|
date | Fri, 19 Feb 2010 19:10:25 -0600 |
parents | ff154cf3350c |
children | fc48380f0c9f |
comparison
equal
deleted
inserted
replaced
29:df1387bdbad9 | 30:8e77f169f324 |
---|---|
75 matches = reg.findall(s) | 75 matches = reg.findall(s) |
76 for i in xrange(0,len(matches)): | 76 for i in xrange(0,len(matches)): |
77 lb = "Replace '?' with: " | 77 lb = "Replace '?' with: " |
78 if len(matches[i][0]): | 78 if len(matches[i][0]): |
79 lb = matches[i][1] + "?: " | 79 lb = matches[i][1] + "?: " |
80 dlg = TextEntryDialog(self, lb, "Missing Value?") | 80 dlg = TextEntryDialog(component.get('chat'), lb, "Missing Value?") |
81 dlg.SetValue('') | 81 dlg.SetValue('') |
82 if matches[i][0] != '': | 82 if matches[i][0] != '': |
83 dlg.SetTitle("Enter Value for " + matches[i][1]) | 83 dlg.SetTitle("Enter Value for " + matches[i][1]) |
84 if dlg.ShowModal() == ID_OK: newstr = dlg.GetValue() | 84 if dlg.ShowModal() == ID_OK: newstr = dlg.GetValue() |
85 if newstr == '': newstr = '0' | 85 if newstr == '': newstr = '0' |
206 return 'Invalid Grid Reference!' | 206 return 'Invalid Grid Reference!' |
207 cell = tuple(path[step].strip('(').strip(')').split(',')) | 207 cell = tuple(path[step].strip('(').strip(')').split(',')) |
208 grid = node.find('grid') | 208 grid = node.find('grid') |
209 rows = grid.findall('row') | 209 rows = grid.findall('row') |
210 col = rows[int(self.Dice(cell[0]))-1].findall('cell') | 210 col = rows[int(self.Dice(cell[0]))-1].findall('cell') |
211 try: s = self.NodeParent(col[int(self.Dice(cell[1]))-1].text, node.get('map')) or 'No Cell Data' | |
212 except: s = 'Invalid Grid Reference!' | |
211 try: s = self.NodeMap(col[int(self.Dice(cell[1]))-1].text, node) or 'No Cell Data' | 213 try: s = self.NodeMap(col[int(self.Dice(cell[1]))-1].text, node) or 'No Cell Data' |
212 except: s = 'Invalid Grid Reference!' | 214 except: s = 'Invalid Grid Reference!' |
213 return s | 215 return s |
214 | 216 |
215 def resolve_cust_loop(self, node, path, step, depth): | 217 def resolve_cust_loop(self, node, path, step, depth): |