ruff_hi
Live 4ever! Or die trying
leave it with me - I think I have the code mostly there.
The '-a' files was an attempt by me to get our BUG option screens multi-language. It didn't work but (as per usual), I didn't know what was wrong. I uploaded the files hoping that EmpFool could fix my error.·Imhotep·;6724492 said:Edfit: How do I get rev 606 ? I've downloaded the svn files, but those were the option files with the -a appendix. Renaming and copying them to my Customassets folder left me with no game interface. I reverted and it again says 603...
If it works as advertisedThat all sounds perfect.![]()
Can do - but it has to be tied to an event. Any suggestions? Game save would seem obvious but if you have auto save, then you would get a dump every turn.·Imhotep·;6726275 said:I've another suggestion for the logger. Can you include an option to write the battle stats always to the log ? Sometimes I forget to hit Alt-B after my turnset, so it would be neat if one could enable that once and for all.
How? I thought it might be something like that - I dropped my XML tags into other areas (ie BUG Flashing hit about the options screen instead of the 'hit enter') and it worked.Edit: I love Civ. The reason it's not looking up the text/hover correctly is that the translator isn't initialized with the XML until after the BUG options stuff loads. Problem solved.
class Option(object):
"Holds the metadata for a single option"
def __init__(self, name, section, key, default, title, tooltip, dirtyBit=None):
if (name is not None):
self.name = name
else:
self.name = self.section + "_" + self.key
self.section = section
self.key = key
self.default = default
[b]self.xmlKey = "TXT_KEY_BUG_OPT_" + self.name.upper()[/b]
[b]self.title = None[/b]
[b]self.tooltip = None[/b]
self.dirtyBit = dirtyBit
...
def getTitle(self):
[b]if not self.title:
self.title = localText.getText(self.xmlKey + "_TEXT", ())[/b]
return self.title
def getTooltip(self):
[b]if not self.tooltip:
self.tooltip = localText.getText(self.xmlKey + "_HOVER", ())[/b]
return self.tooltip
Cool.Did you fix your SVN problems, or would you like me to commit the changes for you?
I'm getting the Trade Route Base Profit error with BUG . . .