General Category > Help and troubleshooting

TK-Remix Datasets gives wrong path, but the path looks correct

(1/1)

AKIRA_SAN:
Datasets gives wrong path, but the path looks correct. Can someone test it?
when run from the engine

when run from the mapeditor


Im using fifesvn rev 2292 with modified loader.py line 301 changed to print str(e)
tk-remix svn
svn co https://tkr.svn.sourceforge.net/svnroot/tkr tkr

AKIRA_SAN:
After fixing the first errors, thx to barra, a new ones come out. and now i cant start the mapeditor. Heres the new errors...

mapeditor

engine
In the first images the "Data" dir was missing , but now that it have the data dir it looks the same... Weve copy`ed the boy and the datasets from the island demo and they work.

AKIRA_SAN:
After latest tests on Windows and Linux shows the same error with the datsets etc ... animation.xml files an the tkr.xml map


--- Code: ---Controller: log: Engine initialize start
Controller: log: Engine settings validated
Controller: log: Creating event manager
Controller: log: Creating pools
Controller: log: Creating render backend
Controller: log: OpenGL Render backend created
Controller: log: Initializing render backend
Controller: log: Creating main screen
Controller: log: Main screen created
Controller: log: Constructing GUI manager
Controller: log: Events bind to GUI manager
Controller: log: Creating default font
Controller: log: Initializing GUI manager
Controller: log: GUI manager initialized
Controller: log: Creating sound manager
Controller: log: Creating model
Controller: log: Adding pathers to model
Controller: log: Creating view
Controller: log: Creating renderers to view
Controller: log: Engine intialized
 
 
=================== SERIALIZER EXCEPTION INFO BEGIN ======================
Exception :  <type 'exceptions.SyntaxError'>
Error while processing file data/datasets/characters/rambo/rambo_0/attack/animation0.xml
----------------------------------------------------------------
Traceback:
Traceback (most recent call last):
  File "../../engine/extensions/serializers/__init__.py", line 32, in wrapped
    result = fn(self, *args, **kwargs)
  File "../../engine/extensions/serializers/xmlanimation.py", line 20, in do_load_resource
    tree = ET.parse(f)
  File "<string>", line 45, in parse
  File "<string>", line 32, in parse
SyntaxError: unclosed token: line 10, column 0
==================== SERIALIZER EXCEPTION INFO END =======================
 
 
Swig director method error
 
 
=================== SERIALIZER EXCEPTION INFO BEGIN ======================
Exception :  <class 'serializers.SerializerError'>
Error while processing file data/datasets/rambo.xml
----------------------------------------------------------------
Traceback:
Traceback (most recent call last):
  File "../../engine/extensions/serializers/__init__.py", line 32, in wrapped
    result = fn(self, *args, **kwargs)
  File "../../engine/extensions/serializers/xmlobject.py", line 35, in do_load_resource
    self.parse_object(self.dataset, self.node)
  File "../../engine/extensions/serializers/xmlobject.py", line 64, in parse_object
    self.parse_actions(object, obj)
  File "../../engine/extensions/serializers/xmlobject.py", line 86, in parse_actions
    self.parse_animations(action, act_obj)
  File "../../engine/extensions/serializers/xmlobject.py", line 95, in parse_animations
    animation = self.anim_pool.getAnimation(anim_id)
  File "/home/kramps/fife/trunk/engine/swigwrappers/python/fife.py", line 8215, in getAnimation
    return _fife.AnimationPool_getAnimation(*args)
SerializerError: unclosed token: line 10, column 0 Swig director method error
----------------------------------------------------------------
XML dump:
<object blocking="1" id="rambo_0">
                <action id="attack">
                        <animation direction="0" source="data/datasets/characters/rambo/rambo_0/attack/animation0.xml" />
                        <animation direction="135" source="data/datasets/characters/rambo/rambo_0/attack/animation135.xml" />
                        <animation direction="180" source="data/datasets/characters/rambo/rambo_0/attack/animation180.xml" />
                        <animation direction="225" source="data/datasets/characters/rambo/rambo_0/attack/animation225.xml" />
                        <animation direction="270" source="data/datasets/characters/rambo/rambo_0/attack/animation270.xml" />
                        <animation direction="315" source="data/datasets/characters/rambo/rambo_0/attack/animation315.xml" />
                        <animation direction="45" source="data/datasets/characters/rambo/rambo_0/attack/animation45.xml" />
                        <animation direction="90" source="data/datasets/characters/rambo/rambo_0/attack/animation90.xml" />
                </action>
                <action id="death">
                        <animation direction="0" source="data/datasets/characters/rambo/rambo_0/death/animation0.xml" />
                        <animation direction="135" source="data/datasets/characters/rambo/rambo_0/death/animation135.xml" />
                        <animation direction="180" source="data/datasets/characters/rambo/rambo_0/death/animation180.xml" />
                        <animation direction="225" source="data/datasets/characters/rambo/rambo_0/death/animation225.xml" />
                        <animation direction="270" source="data/datasets/characters/rambo/rambo_0/death/animation270.xml" />
                        <animation direction="315" source="data/datasets/characters/rambo/rambo_0/death/animation315.xml" />
                        <animation direction="45" source="data/datasets/characters/rambo/rambo_0/death/animation45.xml" />
                        <animation direction="90" source="data/datasets/characters/rambo/rambo_0/death/animation90.xml" />
                </action>
                <action id="idle">
                        <animation direction="0" source="data/datasets/characters/rambo/rambo_0/idle/animation0.xml" />
                        <animation direction="135" source="data/datasets/characters/rambo/rambo_0/idle/animation135.xml" />
                        <animation direction="180" source="data/datasets/characters/rambo/rambo_0/idle/animation180.xml" />
                        <animation direction="225" source="data/datasets/characters/rambo/rambo_0/idle/animation225.xml" />
                        <animation direction="270" source="data/datasets/characters/rambo/rambo_0/idle/animation270.xml" />
                        <animation direction="315" source="data/datasets/characters/rambo/rambo_0/idle/animation315.xml" />
                        <animation direction="45" source="data/datasets/characters/rambo/rambo_0/idle/animation45.xml" />
                        <animation direction="90" source="data/datasets/characters/rambo/rambo_0/idle/animation90.xml" />
                </action>
                <action id="walk">
                        <animation direction="0" source="data/datasets/characters/rambo/rambo_0/walk/animation0.xml" />
                        <animation direction="135" source="data/datasets/characters/rambo/rambo_0/walk/animation135.xml" />
                        <animation direction="180" source="data/datasets/characters/rambo/rambo_0/walk/animation180.xml" />
                        <animation direction="225" source="data/datasets/characters/rambo/rambo_0/walk/animation225.xml" />
                        <animation direction="270" source="data/datasets/characters/rambo/rambo_0/walk/animation270.xml" />
                        <animation direction="315" source="data/datasets/characters/rambo/rambo_0/walk/animation315.xml" />
                        <animation direction="45" source="data/datasets/characters/rambo/rambo_0/walk/animation45.xml" />
                        <animation direction="90" source="data/datasets/characters/rambo/rambo_0/walk/animation90.xml" />
                </action>
                <action id="walk_attack">
                        <animation direction="0" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation0.xml" />
                        <animation direction="135" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation135.xml" />
                        <animation direction="180" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation180.xml" />
                        <animation direction="225" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation225.xml" />
                        <animation direction="270" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation270.xml" />
                        <animation direction="315" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation315.xml" />
                        <animation direction="45" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation45.xml" />
                        <animation direction="90" source="data/datasets/characters/rambo/rambo_0/walk_attack/animation90.xml" />
                </action>
        </object>
 
==================== SERIALIZER EXCEPTION INFO END =======================
 
 
Traceback (most recent call last):
  File "run.py", line 96, in <module>
    main()
  File "run.py", line 91, in main
    app = TkRDemo()
  File "run.py", line 77, in __init__
    self.world.load(TDS.MapFile)
  File "/home/kramps/fife/trunk/tkr/trunk/scripts/world.py", line 62, in load
    self.map = loadMapFile(filename, self.engine)
  File "/home/kramps/fife/trunk/engine/extensions/loaders.py", line 575, in loadMapFile
    return map_loader.loadResource(fife.ResourceLocation(path))
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmlmap.py", line 34, in loadResource
    return self.parse_map(root)
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmlmap.py", line 53, in parse_map
    self.parse_datasets(mapelt, map)
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmlmap.py", line 78, in parse_datasets
    dat_obj = self.dataset_loader.loadResource(fife.ResourceLocation(source))
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmldataset.py", line 26, in loadResource
    return self.parse_dataset(root)
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmldataset.py", line 62, in parse_dataset
    self.parse_objects(datelt, dataset)
  File "/home/kramps/fife/trunk/engine/extensions/serializers/xmldataset.py", line 79, in parse_objects
    loader.loadResource(ObjectLocation(self.source, object))
  File "../../engine/extensions/serializers/xmlobject.py", line 27, in loadResource
    self.do_load_resource()
  File "../../engine/extensions/serializers/__init__.py", line 50, in wrapped
    raise SerializerError(sys.exc_info()[1])
serializers.SerializerError: unclosed token: line 10, column 0 Swig director method error
--- End code ---

all the character datasets are generated with a script, heres the link
http://tkr.svn.sourceforge.net/viewvc/tkr/trunk/tools/XmlAnimGen.py?view=markup

Could it be from the script that is making the datasets errors?

AKIRA_SAN:
I found the problem with the animation.xml files. It looks like the last tag </tag> wanted to have a second empty line or else  you get an unclosed token  ???
<tag>
</tag>
..... empty -> now it says that its closed.
But now ive got a second problem

--- Code: ---Traceback (most recent call last):
File "D:MySceneTK-RemiXTKRSVNtrunkrun.py", line 96, in <module>
main()
File "D:MySceneTK-RemiXTKRSVNtrunkrun.py", line 91, in main
app = TkRDemo()
File "D:MySceneTK-RemiXTKRSVNtrunkrun.py", line 77, in __init__
self.world.load(TDS.MapFile)
File "D:MySceneTK-RemiXTKRSVNtrunkscriptsworld.py", line 66, in load
self.hero = Rambo(self.model, 'Rambo', self.agentlayer)
File "D:MySceneTK-RemiXTKRSVNtrunkscriptsrambo.py", line 9, in __init__
super(Rambo, self).__init__(model, agentName, layer, uniqInMap)
File "D:MySceneTK-RemiXTKRSVNtrunkscriptsagent.py", line 10, in __init__
self.agent = layer.getInstances('name', agentName)[0]
IndexError: tuple index out of range
--- End code ---

Navigation

[0] Message Index

Go to full version