Trees not functioning

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
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Trees not functioning

Post by Grev »

Hidden/Spoiler:
Image
This is the problem on a new mod of mine, and here is what I used.

I used yav_prop_leaftree.odf and used yav_prop_leafttreebranch.tga.option and yav_prop_leaftree1.msh.. whats wrong?
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Trees not functioning

Post by Caleb1117 »

Horribly mutated transparentcy.
did you alter the texture at all?
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Trees not functioning

Post by authraw »

It looks to me like you're missing a texture... Make sure you also have yav_tree_bark01.tga and yav_prop_leaftree_branch.tga in the folder with your .msh.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Trees not functioning

Post by Grev »

I modified the troopers skins (i am gonna brag for a while) but I didnt touch the trees at all...
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Trees not functioning

Post by Silas »

the same thing happend for me, but, i copied the entire yavin folder. so basicly i had all the textures, but when munged and played, the leaves were gray. what in the world is wrong?
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Trees not functioning

Post by Silas »

Sorry for the double post, but i copied the entire yavin folder.....yet the leaves on the trees are BLACK
What is wrong? :cpu:
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Trees not functioning

Post by Teancum »

If you open the odf it tells you what texture the leaves need. For example, if we open:

yav_prop_leaftree.odf
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "prop"
GeometryName = "yav_prop_leaftree1.msh"


[Properties]

GeometryName = "yav_prop_leaftree1"

AttachOdf = "yav_prop_leafpatch"
AttachToHardPoint = "hp_branch_6"
AttachToHardPoint = "hp_branch_7"
AttachToHardPoint = "hp_branch_9"
AttachToHardPoint = "hp_branch_11"
AttachToHardPoint = "hp_branch_2"
AttachToHardPoint = "hp_branch_3"

AttachOdf = "yav_prop_leafpatch2"
AttachToHardPoint = "hp_branch_15"
AttachToHardPoint = "hp_branch_17"
AttachToHardPoint = "hp_branch_12"

AttachOdf = "yav_prop_godray"
AttachToHardPoint = "hp_branch_2"
AttachToHardPoint = "hp_branch_7"
AttachToHardPoint = "hp_branch_11"
It tells us other odfs are attached. We're concerned with the two yav_prop_leafpatch odfs
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "leafpatch"
GeometryName = "hoth_prop_grass.msh"


[Properties]

Offset = "0.0 0.0 0.0"
HeightScale = "0.5"
MinSize = "7.0"
MaxSize = "8.0"
Alpha = "1.0"
NumParticles = "30"
MaxDistance = "1000"
Texture = "yav_leaf"
Radius = "12"
Height = "1"
MaxFallingLeaves = "6"
MaxScatterBirds = "3"

DarknessMin = "0.5"
DarknessMax = "1.0"
It's looking for yav_leaf.tga. The other leafpatch is looking for yav_leaf2.tga. Anyways, that the gist of how it works. Ya'll probably knew that, but I figured I'd share for those who didn't.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Trees not functioning

Post by Grev »

so I need to add all of these?
AttachOdf = "yav_prop_leafpatch"
AttachToHardPoint = "hp_branch_6"
AttachToHardPoint = "hp_branch_7"
AttachToHardPoint = "hp_branch_9"
AttachToHardPoint = "hp_branch_11"
AttachToHardPoint = "hp_branch_2"
AttachToHardPoint = "hp_branch_3"

AttachOdf = "yav_prop_leafpatch2"
AttachToHardPoint = "hp_branch_15"
AttachToHardPoint = "hp_branch_17"
AttachToHardPoint = "hp_branch_12"

AttachOdf = "yav_prop_godray"
AttachToHardPoint = "hp_branch_2"
AttachToHardPoint = "hp_branch_7"
AttachToHardPoint = "hp_branch_11
and
hoth_prop_grass.msh"
yav_leaf"
Or which do I need?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Trees not functioning

Post by Teancum »

No, just make sure you have the textures for the lines I have in bold in the odfs I posted.
Post Reply