Issues with material editor
by Patrick Webber · in Torque 3D Professional · 12/02/2012 (11:18 am) · 2 replies
Hi all,
I'm having some interesting issues with the material editor after updating to 1.2. I frequently get an error that pops up while I try to change the material on TSStatic objects.
"End of line reached before end of quote. Quote started: (tools/materialEditor/scripts/materialEditor.ed.cs: 2137)"
(That line [2137] is a comment.)
And it also says something about "...tokenizer.cpp(360): Fatal-ISV" in the window.
Clicking ok closes my game.
The steps I take to get this error are:
Select Object A - Change Texture
Select Object B - Change Texture
Select Object A - Its texture is now changes to Material_mat
Change Object A's texture back and you'll be asked to save or not. (clicking either breaks it)
This also seems to give all TSStatic's the same material? (My house and custom player are skinned the same)
Is anyone else experiencing this? Anyone have any ideas on fixing this issue?
Thanks,
-Patrick
Edit: This is the same with the 1.2 patch for 1.1 and the Github versions
I'm having some interesting issues with the material editor after updating to 1.2. I frequently get an error that pops up while I try to change the material on TSStatic objects.
"End of line reached before end of quote. Quote started: (tools/materialEditor/scripts/materialEditor.ed.cs: 2137)"
(That line [2137] is a comment.)
And it also says something about "...tokenizer.cpp(360): Fatal-ISV" in the window.
Clicking ok closes my game.
The steps I take to get this error are:
Select Object A - Change Texture
Select Object B - Change Texture
Select Object A - Its texture is now changes to Material_mat
Change Object A's texture back and you'll be asked to save or not. (clicking either breaks it)
This also seems to give all TSStatic's the same material? (My house and custom player are skinned the same)
Is anyone else experiencing this? Anyone have any ideas on fixing this issue?
Thanks,
-Patrick
Edit: This is the same with the 1.2 patch for 1.1 and the Github versions
About the author
I'm a computer science major at Stony Brook University, and have been working with the Torque Game Engine for a number of years.
#2
Thanks for your reply. I figured out the issue thanks to your help. I'll leave it here for anyone who happens upon this post later on:
I had the same material type on all my imported models. My modeler had been forgetting to change the name of each objects material to something other than 'Material'. So when I assigned a material for object A it messed up object B, because they have the same name. Renaming the textures in Blender fixed my issues.
12/05/2012 (6:40 am)
Hi Ahsan,Thanks for your reply. I figured out the issue thanks to your help. I'll leave it here for anyone who happens upon this post later on:
I had the same material type on all my imported models. My modeler had been forgetting to change the name of each objects material to something other than 'Material'. So when I assigned a material for object A it messed up object B, because they have the same name. Renaming the textures in Blender fixed my issues.
Ahsan Muzaheed
Default Studio Name
Select Object B - Change Texture"
between this 2 step i was asked to save the material.cs.
did not u see the messagebox?
"Select Object A - Its texture is now changes to Material_mat"
not happening to me.
///////////////////////
""End of line reached before end of quote. Quote started:
(tools/materialEditor/scripts/materialEditor.ed.cs: 2137)""
that error was showing because of "sourcecoretokenizer.cpp" line 348
(i have changed my tokenizer.cpp.so could be different line on your file ).
if u r not a programmer then on a short that error could be happened during parsing a material.cs.
when it get a field value having a staring " but not a corresponding ending (").
something like:
diffuseMap[0] = "body_d.png;//no second "
fix:
that field should be in between a quotion( "" ).
like:
diffuseMap[0] = "body_d.png";//with second "
so check your material.cs