problem with custom objects -1 reply

Please wait...

Knoffhoff

I follow teh Moo!

50 XP

20th February 2004

0 Uploads

708 Posts

0 Threads

#1 15 years ago

Hey there, I'm trying to give the "sandbagI_m1" object a new texture to make it a stonewall, like the ones on Goodwood. The problem is that I want to use the stonewall and the sandbags in one map. So just giving a new texture to the object wouldn't work. I think I'll have to put a custom renamed "sandbagI_m1" object in my map, which uses the stonewall texture. I've been trying for hours but I can't get the custom object to show up in my map. If somebody of you has an idea how to solve this problem, I'd be very very grateful.




SacredLizard

Its cupnoodles not cuponoodles

50 XP

23rd April 2004

0 Uploads

918 Posts

0 Threads

#2 15 years ago

why not use the actual stone wall that they used in goodwood. its an actual wall and not a sandbag.




Kingrudolf

Fan FH Mapper

50 XP

9th October 2003

0 Uploads

1,345 Posts

0 Threads

#3 15 years ago

Uh.. I suppose you just want that particular object changed? Otherwise you could just change the texture. But I think, what you need to do is put in the objects and standardmesh folder of the sandbag object. Don't rename it, because you'd want overwrite the object much rather than renaming the bunch, since it could cause problems. Then go into the .rs file and change the texture name (since the sandbag texture is used for all sandbag objects). Offcourse you need to put the new tetxure in the texture folder, and don't forget to put the appropriate lines in the init.con!




Knoffhoff

I follow teh Moo!

50 XP

20th February 2004

0 Uploads

708 Posts

0 Threads

#4 15 years ago

@SacredLizard No it's not. They just use the sandbag with a changed texture. Thanks Kingrudolf I'll have have to try that.I wanted to create a new object because I still wanted to use all the sandbag objects. But I think I can live without the "sandbagI_m1". So I'll just try to get it to work the way you described.




Knoffhoff

I follow teh Moo!

50 XP

20th February 2004

0 Uploads

708 Posts

0 Threads

#5 15 years ago

@Kingrudolf

I tried that. But somehow my new Object wouldn't overwrite the old one. I see the objects in my level but they still have the sandbag textures. Is there something special I have to put in my init.con since the line "run objects/objects"(my folder and the con file in there are called objects)? Or do I have to put the line in a specific place in my init.con?




Kingrudolf

Fan FH Mapper

50 XP

9th October 2003

0 Uploads

1,345 Posts

0 Threads

#6 15 years ago

In the objects folder you have a file called objects.con that tells BF to run the files in the subfolders. Before that you have the line in the init.con, which appears to be fine the way you describe it. This part needs to communicate with the standardmesh folder, theoratically. Usually one would use the objects folder for custom objects, as BF searches for the .sm and .rs files automatically in the map if the object doesn't seem to included in the standardmesh.rfa in the mod itself. Now then the texture reference line needs to be changed in the .rs file, to your file in the tetxure folder. Make sure you have the tetxure line in the init.con as well (something like texturemanager.alternative/bf1942/levels/Mymap/texture/). I can't really think of anything else to make custom objects to work.