comparison orpg/gametree/gametree.py @ 130:d54e1328dbb1 alpha

Traipse Alpha 'OpenRPG' {091003-02} 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 (Cleaning up for 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!! Dead Node Children, not that's a O O -v-v- Happy Halloween!
author sirebral
date Tue, 03 Nov 2009 21:06:03 -0600
parents 43ad912b7c17
children fe4dc5817d5e
comparison
equal deleted inserted replaced
129:43ad912b7c17 130:d54e1328dbb1
111 self.last_save_dir = dir_struct["user"] 111 self.last_save_dir = dir_struct["user"]
112 112
113 #Create tree from default if it does not exist 113 #Create tree from default if it does not exist
114 validate.config_file("tree.xml","default_tree.xml") 114 validate.config_file("tree.xml","default_tree.xml")
115 component.add("tree", self) 115 component.add("tree", self)
116
116 #build tree 117 #build tree
117 self.root = self.AddRoot("Game Tree",self.icons['gear']) 118 self.root = self.AddRoot("Game Tree", self.icons['gear'])
118 self.was_labeling = 0 119 self.was_labeling = 0
119 self.rename_flag = 0 120 self.rename_flag = 0
120 self.image_cache = {} 121 self.image_cache = {}
121 logger.debug("Exit game_tree") 122 logger.debug("Exit game_tree")
122 123
287 logger.exception(traceback.format_exc()) 288 logger.exception(traceback.format_exc())
288 wx.MessageBox("Corrupt Tree!\nYour game tree is being regenerated. To\nsalvage a recent version of your gametree\nexit OpenRPG and copy the lastgood.xml\nfile in your myfiles directory\nto "+filename+ "\nin your myfiles directory.\nlastgood.xml WILL BE OVERWRITTEN NEXT TIME YOU RUN OPENRPG.") 289 wx.MessageBox("Corrupt Tree!\nYour game tree is being regenerated. To\nsalvage a recent version of your gametree\nexit OpenRPG and copy the lastgood.xml\nfile in your myfiles directory\nto "+filename+ "\nin your myfiles directory.\nlastgood.xml WILL BE OVERWRITTEN NEXT TIME YOU RUN OPENRPG.")
289 os.rename(filename,filename+".corrupt") 290 os.rename(filename,filename+".corrupt")
290 validate.config_file("tree.xml","default_tree.xml") 291 validate.config_file("tree.xml","default_tree.xml")
291 self.load_tree(error=1) 292 self.load_tree(error=1)
292
293 293
294 def build_std_menu(self, obj=None): 294 def build_std_menu(self, obj=None):
295 # build useful menu 295 # build useful menu
296 useful_menu = wx.Menu() 296 useful_menu = wx.Menu()
297 useful_menu.Append(STD_MENU_NODE_USEFUL,"Use&ful") 297 useful_menu.Append(STD_MENU_NODE_USEFUL,"Use&ful")