-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smxlink Segmentation fault #35
Comments
Have you tried converting with a scale (-s) parameter? The scale value is used when converting the vertices of the model from floats to fixed point integers. Think I used a value of 100 for the models. If the objects still appear too small try a larger value. |
What version of tinyxml2 are you using exactly? It should not be possible for the shading attribute to return NULL as all the primitive entires in SMX files always contain shading attribute and all the SMX files I've provided with n00bDEMO do have them. I have a feeling smxtool is parsing the wrong element group for primitives for some reason. Pardon for being quite slow to respond... Been busy with stuff lately. |
It's quite alright, there's no rush! :) Unless I am mistaken, I'm using tinyxml2 8.0.0. What I find quite odd is how I converted the very same smd files to smx and have not had the same results. |
I haven't done any changes to smxlink since I last used it on n00bDEMO I'm afraid. This is going to be a tricky one to find for me as I've never had a problem with it whatsoever and neither everyone else it seems. |
How curious, I'll attempt to use different version of tinyxml2 (when I get around to it). I really have no idea what the problem could be otherwise... By default, smxlink simply crashes, so I'll see if I can somehow get a different result. |
smxlink cositantly crashes at certain
strcasecmp
.I think I fixed the issue by modifying the
if
, something like this:over
The main issue seemed to be that
smxPrimitive->Attribute( "shading" )
was returningNULL
.Moreover, once "fixed" the outputted file seemed to not have been converted correctly.
Using the n00bdemo as an example, I converted some of the existing smx files to smd and found that my converted files did not match the premade ones. Mine were slightly larger.
star freezes the program when they are supposed to appear during the starting animation.
petscum doesn't cause problems, but was completely invisible or simply not there.
The text was updated successfully, but these errors were encountered: