Torque2d MIT getting started tutorial
by Shakey · in Torque 2D Beginner · 04/21/2013 (7:32 pm) · 16 replies
Hi All I am wondering why I am getting this in the console log, although everything is displaying as it should.
TamlXmlParser: Could not load Taml XML file from stream.
Asset Manager: Failed to parse file containing asset declaration: '/Users/youngshakey/MyT2DProject/modules/myModule/assets/ship4.png'
TamlXmlParser: Could not load Taml XML file from stream.
Asset Manager: Failed to parse file containing asset declaration: '/Users/youngshakey/MyT2DProject/modules/myModule/assets/skyBackground.png'
TamlXmlParser: Could not load Taml XML file from stream.
Asset Manager: Failed to parse file containing asset declaration: '/Users/youngshakey/MyT2DProject/modules/myModule/assets/ship4.png'
TamlXmlParser: Could not load Taml XML file from stream.
Asset Manager: Failed to parse file containing asset declaration: '/Users/youngshakey/MyT2DProject/modules/myModule/assets/skyBackground.png'
About the author
#2
I haven't done one for the skyBackground as of yet.
04/22/2013 (11:05 am)
Hey Mich here is the content of the ships assets definition <ImageAsset AssetName="Ship4" ImageFile="ship4.png" />
I haven't done one for the skyBackground as of yet.
#3
04/22/2013 (11:15 am)
That's strange. Either your asset definition is is in the wrong location, your png is in the wrong location, or your png file is corrupted. Where do you store the image and asset definition?
#4
04/22/2013 (11:33 am)
Here is a picture of my file structure and it will tell you where I have everything situated.
#5
04/22/2013 (11:41 am)
Hm, can you e-mail me the ship4.png? I want to test it on my machine to see if it is corrupted or not compatible with our image loader.
#7
04/22/2013 (12:24 pm)
Reply sent.
#8
04/22/2013 (1:04 pm)
Same thing lat me investigate a bit more.
#9
04/22/2013 (1:44 pm)
The folder, module, and ImageAsset I put together on my end worked. Can you past the contents of your ModuleDefinition, please?
#10
04/22/2013 (2:02 pm)
Hey Mich here it is<ModuleDefinition ModuleId="myModule" VersionId="1" Dependencies="ToyAssets=1" ScriptFile="main.cs" CreateFunction="create" DestroyFunction="destroy"> <DeclaredAssets Path="assets" Extensions="asset.taml" Recurse="true"/> </ModuleDefinition>
#11
04/23/2013 (5:01 am)
I see a main.cs under myModule/gui. Shouldn't it be under myModule (same with the module.taml).
#12
04/23/2013 (5:24 am)
No the main is not under the gui directory it is just under the myModule parent directory, gui is a sub directory of myModule as main.cs is a child file under myModule.
#13
04/23/2013 (6:20 am)
How about within the module.taml changing "Extensions" to "Extension" (no ending s)?
#14
04/23/2013 (6:30 am)
Yup, that's definitely a problem.
#16
04/23/2013 (6:35 am)
That was it thanks @practicing01 and @Mich. Now just waiting on that ios video tutorial. lol
Community Manager Michael Perry
ZombieShortbus