Kitty Corp Meow Mix Forums

Help & Tutorials => Help => Topic started by: LinkTahuterasuSpirit on January 06, 2017, 11:05:36 AM



Title: (Solved) Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 06, 2017, 11:05:36 AM
ok so i'm trying to Fix a bit of a Mistake on PMs Oot Link Model, as you may or may not know all of PMs Oot alts give the character their corresponding piece of the triforce when they have the Smash ball, small problem with Links Triforce of Courage though. it's on the wrong hand, so i'm trying to fix it though i keep getting this error message when trying to import the fixed model into brawlbox (http://i.imgur.com/3VBRE7b.png) not sure how to fix this or what's causing it. does anyone have any ideas as to whats causing this?


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 06, 2017, 11:08:17 AM
I don't know very much at all about 3DS Max, but if you're ok with fixing it in Blender, I can help you with the import/export process, if you wish.


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 06, 2017, 11:17:05 AM
I don't know very much at all about 3DS Max, but if you're ok with fixing it in Blender, I can help you with the import/export process, if you wish.
the problem with that is don't know how to rig/rerig it


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 06, 2017, 11:26:48 AM
Ok; well, can't help you with Max, though.


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 06, 2017, 11:44:52 AM
also i tried importing the fixed model into blender and well nothing happens not even an error message showed up, ever have that happen before?


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 06, 2017, 01:47:49 PM
What do you mean? Do you mean that the model didn't show up?


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 06, 2017, 02:55:54 PM
yep nothing shows up, it only happens with the model that i edited though i can import the original one just fine


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 06, 2017, 04:11:05 PM
Oh, so I'm guessing, then, that you exported it from Max as a .dae file? If so, use FBX Converter 2013.3 to convert the .dae to .fbx(2013), and then import that .fbx file into Blender. (Note: If this ends up throwing the same error after the following steps, go ahead and repeat just before this statement, and, in Blender, Save As... a .blend file, and then email me that file) Export from Blender as a .fbx, then with FBX Converter, turn the .fbx into a .dae; now in BrawlBox 0.77, Replace the model with that .dae file, but then export as a .mdl0; now in BrawlBox 0.71, use the "Import New Object" right-click function to import the polygon(s) that you edited.(And delete the old, if applicable)

Note: In Blender, you can actually delete every polygon that you AREN'T editing, because with Blender importing, you have to import each individual polygon one at a time anyways.

Post Merge: January 06, 2017, 04:12:40 PM
Also change the material of the imported object back to what it was by either using the existing material and deleting the new one, or exporting a material and replacing it with that one, and editing it from there.


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 07, 2017, 09:45:12 AM
ok i've managed to import it and it looks good in brawlbox, but there are problems when loaded in game, for one Link's shield and sword in sheath objects are visible at all times, the shadow seems to be a bit off probably from the now always visible object, and when getting the smash ball the triforce shows up as a yellow square and is not connected the Links left hand the way it should, both of these looked the way they should in brawlbox


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 08, 2017, 08:05:31 PM
Wait, though, if you're only importing the one triforce thing, then if you use the "Import New Object" button and import only that polygon onto the original model, wouldn't that solve the visibility bone problem? If not, I'll tell you how, but I'd think this would be easier to do.

As for the yellow square part, would you mind sharing a screenshot?


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 19, 2017, 11:12:45 AM
yea here's what happened (http://i.imgur.com/qnzeNsp.jpg) as you can see Link is holding the sword and shield whale the sword and shield are also on his back, and you see that weird thing on the side of his gauntlet yea that was the triforce not sure why its over there and has no textures. also just to clarify what you said is what i did, i only imported the Triforces polygon


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 19, 2017, 08:26:19 PM
Ok, so the sword and shield on his back are super-easy to fix. In BrawlBox, expand the MDL0, expand the Objects folder, and, should be at the end, under Visibility Bone for the objects on his back, set them to the right ones. Look at the original Link MDL0 to know which visibility bones to use.

As for the other problem, do a test, with a temporary file, where you replace each and every texture with a single color(So that you can figure out what texture, or polygon, is being used on the side of the gauntlet like that), and also preview the animations in BrawlBox.(Open up the Model Previewer, expand the left tab, and when choosing which file to open, choose FitLinkMotionEtc.pac, and then Wait1, Wait2, and Wait3 are good choices to see general movement/rigging patterns) Also, since you said that it happens when he gets his smash ball, look at all the polygons in the Objects folder, and see which ones are set to the EyeYellowM visibility bone.


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 21, 2017, 07:48:15 AM
ok i almost got it i just need to find out how to fix the Textures of the triforce, again it looks good in brawl box but in game it looks like this (http://i.imgur.com/ERpf1dJ.jpg) any suggestions on how to fix this?


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 21, 2017, 06:58:05 PM
Did you try what I suggested above with the color test? And if so, is this the result of the color test?


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 21, 2017, 07:13:01 PM
no this would have nothing to do with the color test, and just to clarify it looked good in Brawlbox when i first made the model, loading the model in Brawlbox now and i get the same uv mishap in the picture


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 21, 2017, 07:19:58 PM
Ok. Then in that case, play some animations from FitLinkMotionEtc.pac(Like mentioned above), but this time, I want you to expand the top bar in the model previewer, and enable vertices for the render. Now there should be green dots on the model. The first moment that you see any irregularities like in-game, use the left panel to scroll through each polygon by selecting individual polygons, and seeing when the irregular part on the hand gets covered with green dots. When you find that, that means that that particular polygon is the problem.

Post Merge: January 21, 2017, 07:20:46 PM
If you don't see any irregularities when playing the animations, it's likely a problem with materials or shaders, but first try this, and just tell me if you do see the irregularities with this test.


Title: Re: Index was out of range error in Brawlbox
Post by: Kyouma on January 21, 2017, 09:00:32 PM
I can see that this problem was solved already but in case anybody else in the future is wondering this, that error is caused because theres a vertex point missing to be rigged


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 22, 2017, 06:53:40 AM
Ok. Then in that case, play some animations from FitLinkMotionEtc.pac(Like mentioned above), but this time, I want you to expand the top bar in the model previewer, and enable vertices for the render. Now there should be green dots on the model. The first moment that you see any irregularities like in-game, use the left panel to scroll through each polygon by selecting individual polygons, and seeing when the irregular part on the hand gets covered with green dots. When you find that, that means that that particular polygon is the problem.

Post Merge: January 21, 2017, 07:20:46 PM
If you don't see any irregularities when playing the animations, it's likely a problem with materials or shaders, but first try this, and just tell me if you do see the irregularities with this test.
well its not the vertices but instead the material (http://i.imgur.com/nbUeGjZ.png) for reference this is how it looked on the original model (http://i.imgur.com/aWEsrmK.png)  i have no clue how this happened or how to fix it


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 22, 2017, 09:59:29 AM
Ok, I must admit, I was expecting either the vertices or a ref texture or alpha being the reason; I did not expect to see a UV that's different; so, not sure I can help you with that part. Wait, though, so you're saying that it does look fine in BrawlBox, though, so that wouldn't make sense that the UV should be the problem; the UV would change how it looks in BrawlBox. So now I'm really confused.

Post Merge: January 22, 2017, 10:01:06 AM
Gamidame might have a good point, though; see if you can, in Max, rig any vertices that aren't yet rigged, and see if that's all you have to do.

Post Merge: January 22, 2017, 10:02:50 AM
Also, if you still have the .blend file from before you exported from Blender, or if you can easily re-create that, would you mind uploading that, please, so I can take a look at it?


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 22, 2017, 01:07:57 PM
Ok, I must admit, I was expecting either the vertices or a ref texture or alpha being the reason; I did not expect to see a UV that's different; so, not sure I can help you with that part. Wait, though, so you're saying that it does look fine in BrawlBox, though, so that wouldn't make sense that the UV should be the problem; the UV would change how it looks in BrawlBox. So now I'm really confused.

Post Merge: January 22, 2017, 10:01:06 AM
Gamidame might have a good point, though; see if you can, in Max, rig any vertices that aren't yet rigged, and see if that's all you have to do.

Post Merge: January 22, 2017, 10:02:50 AM
Also, if you still have the .blend file from before you exported from Blender, or if you can easily re-create that, would you mind uploading that, please, so I can take a look at it?
well it only looked fine when i first imported it but now it looks like what happens in game, let me see if i can fix it, i forgot to delete the metal materials before importing to 3DSMAX so that might help.


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 22, 2017, 01:09:33 PM
Ok, well let me know what happens.


Title: Re: Index was out of range error in Brawlbox
Post by: LinkTahuterasuSpirit on January 22, 2017, 01:26:26 PM
YES I DID IT! it was the medal materials that messed me up i think, ok so i remade the model fix with no medal materials on the models list when i first imported it to 3DSMAX and got it set up in brawlbox then first tested it with the triforce left visible at all times (http://i.imgur.com/DcycXXo.jpg) then i set the Triforce to the Final Smash visibility bone and regenerated metals and SUCCESS! (http://i.imgur.com/pGC3RV9.jpg) now i need to set up the recolors, thanks for your help


Title: Re: Index was out of range error in Brawlbox
Post by: windhunter7 on January 22, 2017, 01:28:14 PM
Np! Congrats! Glad you got it to work! ;D