Objects not showing up in game?

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
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Objects not showing up in game?

Post by Epena »

Hey guys.

I'm sure that this question has been answered before, but a quick search didn't yield anything...

I'm placing assets in ZE and everything is all fine and dandy, but after a munge, no objects exist in game. The terrain cutters still cut the terrain, but there's nothing there besides that. (no collision)

My odfs are placed here: C:\BF2_ModTools\data_YDE\Common\odfs\subfolders (one for yav1, yav2 and ksh)
mshs here: C:\BF2_ModTools\data_YDE\Common\mshs

I'm placing the objects on the base layer.

What am I doing wrong?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Objects not showing up in game?

Post by Aman/Pinguin »

Your objects don't get munged at all.
Put your odf and msh folder here:

C:\BF2_ModTools\data_YDE\Worlds\YDE


Files in C:\BF2_ModTools\data_YDE\Common need some req entries to get munged if I remember correctly.
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Objects not showing up in game?

Post by Epena »

Thanks man. That worked. I knew it was just something stupid i wasn't doing right.

I've got one more question for you guys: is there any way to get trees to not show the leaves? In ZE they are leaf-less and that's the way I want them. Possible?
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: Objects not showing up in game?

Post by FragMe! »

Are you using the yav_prop_leaftrees? If so try removing the attach to hardpoint things in the odf.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Objects not showing up in game?

Post by Fiodis »

Sure. Just reskin the leaves to be transparent. You may also need to hex the model.

Welcome back to modding, Epena.
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: Objects not showing up in game?

Post by FragMe! »

Just looked at the trees with the viewer and it just has the branches no leafs they are added on via the odf so you should get what you are looking for by editing the odfs.
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Objects not showing up in game?

Post by Epena »

Thanks man! I just did a quick check of the odf file and I deleted some stuff that looked important.

One attempt trial and error success!
User avatar
Epena
Old School Staff
Posts: 1176
Joined: Fri Oct 21, 2005 2:33 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Objects not showing up in game?

Post by Epena »

Hmm, I'm getting some fatal errors now. I added a bunch of objects that Astute sent me and I added water. That's the only change.

Code: Select all

ERROR[PC_texturemunge world1\yavinx.tga]:TextureMunge(yavinx:92x92x1): Must have power of two dimensions!
ERROR[PC_texturemunge world1\yavinx.tga]:TextureMunge(yavinx:92x92x1): Must have power of two dimensions!
 [continuing]
ERROR[PC_texturemunge world1\yavX.tga]:TextureMunge(yavx:63x64x1): Must have power of two dimensions!
ERROR[PC_texturemunge world1\yavX.tga]:TextureMunge(yavx:63x64x1): Must have power of two dimensions!
 [continuing]
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Objects not showing up in game?

Post by Maveritchell »

You've got bad textures (like the error says "must be in power-of-two dimensions" - 64*64, 128*128, 256*256, etc.). Those are responsible for the munge errors but I'm willing to bet your map isn't affected by those (the MAPx textures seem to be remnants that sit around but aren't used). If you're getting a crash ingame, then it's probably because of the water you just added.
Post Reply