Side Using Wrong ClassParent [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Side Using Wrong ClassParent [Solved]

Post 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?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Side Using Wrong ClassParent

Post by RogueKnight »

are you telling it to load the custom common lvl in your lua?
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Side Using Wrong ClassParent

Post 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.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Side Using Wrong ClassParent

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Side Using Wrong ClassParent

Post 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.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Side Using Wrong ClassParent

Post 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:
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Side Using Wrong ClassParent

Post 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.
User avatar
KnightsFan
Second Lance Corporal
Second Lance Corporal
Posts: 108
Joined: Fri Mar 06, 2009 9:34 pm

Re: Side Using Wrong ClassParent

Post 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.
Post Reply