[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Damage to LODs tutorial

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Fri Nov 01, 2024 12:36 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Damage to LODs tutorial
PostPosted: Sat Dec 13, 2008 7:40 am 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
So I had this idea after reading through some of the effects.con and creating a few of my own, that you could have a vehicles main LOD change after a certain amount of damage creating a damaged vehicle over time. As in I made multiple effects for the willy like creating a version were the more damaged it got the more dents it had. To do this though requires the ability to create you're own effects files and have a strong sense of how Gmax works.

First you have to extract the objects.rfa and copy the appropriate files ( I used the last effects.con Tlight_m1) and renamed them. In this case I used the name WillyDamaged and then the version number. ( as in willyDamaged1 and willyDamaged2 and so forth. so now I have a Effects object.con file with the name WillyWreck. here's whats in it:



Objects/Effects/WillyDamaged1/Objects.con

ObjectTemplate.create SimpleObject WillyDamaged1
ObjectTemplate.geometry Willydamaged
ObjectTemplate.setHasCollisionPhysics 1



than I have a geometries file for it. in it is:


GeometryTemplate.create StandardMesh Willydamaged
GeometryTemplate.file WillyDamaged


Now pack the new objects.rfa with either PackRFA which would be in your archives file where the objects.rfa is if you had made your mod. If your just modding vanilla bf1942 (like me) with backup files, then your going to want to use winrfa to pack the file.

Now we have to extract the standardmesh.rfa (which I like to extract to the desktop for easy access). In it find Willy_Hul_M1 and Willy_Hul_M1.sm. copy those and rename them WillyDamaged and WillyDamaged.sm. now don't pack the rfa yet. if you have the Gmax tools installed open that up. if not you can download Gmax at . and you can install the Gmax tools from the from the BF1942 Mod Development Toolkit that you can download here from the nice shiny downloads link up in the right hand corner.

With the Gmax tools open click on the mod toolset button on the top row (with File, Edit, View and all those) near the top right. select the import model tab and deselect the collision and shadow check boxes and make sure the box "only main LOD" is checked and click import. navigate to your extracted StandardMesh.rfa and open the WillyDamaged.sm file that you made earlier. you should see the main Hull of the Willy on the screen.

right click on the LOD and select "turn into editable Mesh" or something like that. now you have to make a drastic change that will be noticeable in game. one thing you can do is select the vertex under the editable mesh tab on the right of the screen and select the move button.(in the middle of the top row of buttons and it looks like 4 arrows going differant directions). using that move some vertexes aroung ( the blue dots) into a dent or something noticeable. after that select the mod tools button again (if you closed that box) and click on the export tab. click the "add LOD" button and select your main LOD (LOD01). don't click any other buttons but export. find and select the WillyDamaged.sm file and save over it.

you can go ahead and close Gmax and use which ever program you perfer to repack your standardmesh folder.

now open your objects.con for your normal willy. add the line:

ObjectTemplate.addArmorEffect 60 WillyDamaged1 0/0/0 near the lines that look similer to that. you barely have to scroll down to find them. If everything went right you should have a willy when at 60 percent health and below will have you modified LOD.

If you have any problems please post! I might have made an error in the tutorial and it most likely isn't you're fault! :lol:

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Dec 13, 2008 8:23 am 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253
sounds really nice! do you have any screenshots? this could be great for custom maps :)


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Dec 13, 2008 1:09 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
yeah, sorry I was at a friends house at the time I wrote it so hst was from complete memory. when I can i'll post some screen shots.
:lol:

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Dec 13, 2008 4:39 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Is it possible to use this as a CSM? Like, where you can make/download skins and replace them and they show up in game, can this be used that way so we can have a new cool damage system on any server we play on?

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Dec 13, 2008 6:05 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
first of all this is ONLY client side modding. so not any server you play on will have this. but yeah if the person downloaded your mod with this damage system than they could play on your server with it. second. this is about meshes not skins. though you might have only been using that as an example.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Dec 13, 2008 7:06 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Yes I was. I was only asking if they could be used the same way new skins can be.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Dec 14, 2008 3:00 pm 
Offline
User avatar

Joined: Thu Oct 23, 2008 6:47 pm
Posts: 935
Location: Charleston S.C.
yes, exactly. It would work like that.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sun Dec 14, 2008 7:39 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Alright, well I have gmax but never really got the hang of using it. I guess now's the time though, this is too cool to pass up.

_________________
Image


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group