Thread

total crash when changin nFaces in cone sample

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

total crash when changin nFaces in cone sample // Bugs

1  |  

Post by Emma // Nov 12, 2006, 9:58am

Emma
Total Posts: 344
pic
There was complaints by Beta team member that I was using my mother language. Before otheres get insulted too I rather prefere deleting my posting.

Sorry for that, I beg you pardon.

Post by JPSofCA // Nov 12, 2006, 11:24am

JPSofCA
Total Posts: 300
pic
Is the bottom picture code that you wrote? If so, it might be towards the bottom past the //Define Faces comment where there is a variable named nFacesĂ, or something with an 'A' accented with some symbol that may not be part of a valid variable name. Then after that there's dF.SetNumTripleIndices(nFacesĂ|); with the '|' symbol after it.


I haven't done much research of scripting in tS, but this is the only thing I can see out of the ordinary that I would suspect.

Post by JPSofCA // Nov 12, 2006, 5:13pm

JPSofCA
Total Posts: 300
pic
Should there not be a space:


// Erzeuge mesh-----------------------------------------

dM = System.CreateDO("Space 3D Package/Mesh Data");

> dM.AttachVerticesStream (dV);

| dM.AttachTrianglesStream(dF);

|

|_____ Between dM.AttachVerticesStream and (dV);?

Post by Norm // Nov 14, 2006, 7:38am

Norm
Total Posts: 862
pic
quickly parsing the code, I would say you are not doing anything to increase number of verts.

Post by stan // Nov 14, 2006, 9:15am

stan
Total Posts: 1240
pic
Emma..I've been fooling around with these mesh builder objects after reading your post..
it's very easy to crash to desktop when fooling around with any mesh builder obj code after
// define faces
dF = System.CreateDO("Space 3D Package/Triangle Vertices Stream Data");
dF.SetNumTripleIndices(nFaces);
dF.BeginWrite();

I don't really know anything about building mesh, but I did have better results creating a cylinder out of the 'WavyPillerObj'

I think the crash happens because the obj created is in the workspace when you 'check and commit' [at least it was in my crashes]..it would be better for learning if it just gave an error message thought..;)
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn