Works perfectly now, thanks!
In the meantime I have another problem which I now also think might be a bug (though I'm probably just doing something wrong). I was beginning to try some basic things with the dialogue controller in order to eventually add the example dialogue to the demo and this kept popping up:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\fife\extensions\fife_timer.py", line 125, in updateEvent
self._callback()
File "C:\Python27\lib\site-packages\fife\extensions\pychan\tools.py", line 83, in real_callback
callback(*args,**kwargs)
File "C:\Python27\lib\site-packages\fife\extensions\pychan\events.py", line 164, in delayed_f
f( event )
File "C:\Python27\lib\site-packages\fife\extensions\pychan\events.py", line 327, in captured_f
tools.applyOnlySuitable(self_ref().callbacks[group_name][event_name],event=event,widget=self_ref().widget_ref())
File "C:\Python27\lib\site-packages\fife\extensions\pychan\tools.py", line 60, in applyOnlySuitable
return func(*args,**kwargs)
File "C:\Program Files (x86)\FIFE\demos\fiferpg demo\demo_game_scene.py", line 101, in <lambda>
'talkButton' : lambda: self.onTalkButtonPress(player, entity),
File "C:\Program Files (x86)\FIFE\demos\fiferpg demo\demo_game_scene.py", line 167, in onTalkButtonPress
dlg = DialogueController(world, application, "dialogue/example.yaml")
File "C:\Python27\lib\site-packages\fife_rpg\dialogue.py", line 223, in __init__
self.dialogue = Dialogue(self.application.world, dialogue)
File "C:\Python27\lib\site-packages\fife_rpg\dialogue.py", line 81, in __init__
self.create_sections(sections_data)
File "C:\Python27\lib\site-packages\fife_rpg\dialogue.py", line 183, in create_sections
section = self.create_section(section_data)
File "C:\Python27\lib\site-packages\fife_rpg\dialogue.py", line 172, in create_section
section.text = _(section.text).format(**variables)
File "C:\Python27\lib\site-packages\bGrease\entity.py", line 90, in __getattr__
component = getattr(self.world.components, name)
AttributeError: 'ComponentParts' object has no attribute 'description'
upon pressing the talk button in the context menu like so:
def onTalkButtonPress(self):
application = self.gamecontroller.application
world = application.world
dlg = DialogueController(world, application, "dialogue/example.yaml")
dlg.select_response("no_introduce")
print dlg.current_section.text