hihi~

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
aznlz
Gnoblar
Posts: 9
Joined: Fri Apr 08, 2005 9:53 am
Contact:

hihi~

Post by aznlz »

hi,everyone.
im a newbie in game industry and no one is intructing me in the company,but many thanks to Semicolon's help
i got one problem today,,when i export my mesh and i got this error:

type error:to: requires character stream,got " "

what does this mean?
waht should i do for this??
thanksssssssssssssssss
aznlz
Gnoblar
Posts: 9
Joined: Fri Apr 08, 2005 9:53 am
Contact:

Post by aznlz »

format "You are using in your mesh a material Id (%) that does not exist in your MultiMaterial (%)\nMaterial information won't be properly exported." matId submatname to:msg ;


as above,what's wrong of my character?
what i did is..i had around 6 individual mesh but i attached all of them together by select a main mesh and attached the rest in it's element mode, after this,i applied right away a multiple/subobject material in this main mesh which is the only one is the scene, and then i select polygons for setting matID,i got around 9 mat ID for whole character, i use OGRE material for each matID, so i tried it again to exported, but i got this msg as above,,,,
does anyone what's going on in my model?
ah,by the way,be4 i attached them together,i did named each mesh as different name for further use.
so when i export i got this msg on popup window,
type error:to: requires character stream,got ""

:( :( :( :( :( :( :? :( :roll: :?:

thank you!
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD »

I have no idea what this error could be. Your post lacks important information like which software and exporter you use. Unless someone can guess it from the error message. :?
aznlz
Gnoblar
Posts: 9
Joined: Fri Apr 08, 2005 9:53 am
Contact:

Post by aznlz »

ooooops!sorry,i use 3d max studio,and ogre 1.19.............
i really stuck in this point now.
even semicolon helped me the most part..
:(
User avatar
monster
OGRE Community Helper
OGRE Community Helper
Posts: 1098
Joined: Mon Sep 22, 2003 2:40 am
Location: Melbourne, Australia
Contact:

Post by monster »

ogre 1.19
You've got some sort of time machine?
Ogre was only at version 1.0.1 last time I looked.
What's in this magical future version that you've got?
aznlz
Gnoblar
Posts: 9
Joined: Fri Apr 08, 2005 9:53 am
Contact:

Post by aznlz »

:shock:
am i in time machine???
i dont know~~~~~`
but it said ogre exporter 1.19
:?: :?: :?:
Slicky
Bronze Sponsor
Bronze Sponsor
Posts: 614
Joined: Mon Apr 14, 2003 11:48 pm
Location: Was LA now France
x 26

Post by Slicky »

It's a good job there isn't a charge for each smilie used :wink:
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Smileys are (still) free.

We'll be charging extra for each ~, ! and smiley used after the next release.
centipede
Silver Sponsor
Silver Sponsor
Posts: 120
Joined: Fri Nov 14, 2003 10:43 am
Location: Vinstrup, Denmark
Contact:

Post by centipede »

I'm out on a limb here as I haven't been using maxscript for some time, but here goes:

The error you get is because the variable 'msg' is defined badly. BUT the line you quote for failing is most likely just a line that prints an error message. My guess is that the preceding line says something like:

if matId < 0 or matId >= submat.materials.length then print the error message to 'msg'

..I'm just guessing.

Now, what goes wrong is that your model (i.e. the one that you have attached all the other models to, effectively making it a new mesh with reassigned material-ids! contains at least one face whose material-id is bad.

You can't see that in 3DSMax because it silently wraps the material-ids to the number of submaterials of the main material. So if you have 9 submaterials then a mat-id of 9,10,11.. will - when rendered by 3dsmax - appear as the materials 0,1,2...

MaxScript won't do that however. It will complain loudly when you break the boundaries of your submaterial-array, or as in your case stop when some error-checking code detects the problem.
Post Reply