Page 1 of 1

Side Using Wrong ClassParent [Solved]

Posted: Tue Jun 09, 2009 6:12 pm
by KnightsFan
My custom side appears to be selectively using a ClassParent found in the shipped Common side and other times using the ClassParent of the same name from my custom Common side. I have already tried cleaning.

Examples:
- Blaster Rifle has 2 clips (what I set it to) of 50 (my rifle has 150)
- Uses custom scope and rifle textures
- New grenade uses custom, renamed geometry but uses the shipped texture

How can I fix this?

Re: Side Using Wrong ClassParent

Posted: Tue Jun 09, 2009 6:23 pm
by RogueKnight
are you telling it to load the custom common lvl in your lua?

Re: Side Using Wrong ClassParent

Posted: Tue Jun 09, 2009 7:20 pm
by KnightsFan
No, how do I do that?
Edit: I've never done that before and all my other custom sides work, including Rep and CIS in this same map.

Re: Side Using Wrong ClassParent

Posted: Tue Jun 09, 2009 11:14 pm
by RogueKnight
Yeah, i thought about that afterwards lol.

Well, on second thought, make a new classparent that isnt in the stock common lvl, that should force it to load from the custom one.

Re: Side Using Wrong ClassParent

Posted: Wed Jun 10, 2009 10:50 am
by FragMe!
Create a classparent in your custom sides odf directory, if you are mostly using a shipped one copy it to there, change the name and reference the new name in your other odf files. Trying to do things and keeping same names as common files, in my experience, will lead to wierd things as you have found out.

Re: Side Using Wrong ClassParent

Posted: Wed Jun 10, 2009 11:58 am
by MileHighGuy
for the third one see this topic > http://www.gametoast.com/forums/viewtop ... =27&t=6040

Edit rouge! u have 666 posts! :shock:

Re: Side Using Wrong ClassParent

Posted: Wed Jun 10, 2009 2:06 pm
by MercuryNoodles
Like FragMe! posted, having two odfs with the same name loaded into memory will cause one to overwrite the other, depending on which is loaded last, though sometimes it may lead to a hybrid that may have some settings from either odf. That grenade could be the result of either possibility I just mentioned, considering what info I have in front of me. Remember, the geometry is called from the odf, and the texture is called from the msh. So, you're going to get the geometry, and therefore the texture, of the odf that loaded last , or the geometry that happens to "override" the other, in the case of the odfs combining settings.

I could be wrong on which odf wins out, but I think it is the last to load that overwrites the previous in memory. At least, that's what's making the most sense to me at the moment.

Re: Side Using Wrong ClassParent

Posted: Wed Jun 10, 2009 5:12 pm
by KnightsFan
Alright, it's working now. I still don't know how the original game's common side got loaded into my map though.