Bridge Commander Central
BC Forums => BC Modding => Topic started by: Lord Tribble on May 21, 2009, 04:30:36 PM
-
Ok, so I've noticed that my game really lags up as wileys kelvin takes damage. Don't really have any ideas why other than the damage being cut out of a high poly model is a wee bit too much for my laptop.
Is there anything I can change in the scripts that will make it only blacken the hull with damage etc?
Sorry if this is a really simple thing, but i'm a noob with this stuff.
-
Edit the ship script in scripts/ships. I believe most show you which value does what in the comments.
-
err ok, so i found this:
# Params are: File Name, PickLeafSize, SwitchOut Distance,
# Surface Damage Res, Internal Damage Res, Burn Value, Hole Value,
# Search String for Glow, Search string for Specular, Suffix for specular
pLODModel = App.g_kLODModelManager.Create(pStats["Name"])
pLODModel.AddLOD(pStats["FilenameHigh"], 10, 200.0, 15.0, 15.0, 400, 900, "_glow", None, None)
pLODModel.AddLOD(pStats["FilenameMed"], 10, 400.0, 15.0, 15.0, 400, 900, "_glow", None, None)
pLODModel.AddLOD(pStats["FilenameLow"], 10, 800.0, 15.0, 30.0, 400, 900, "_glow", None, None)
do i set the Damage Res, Internal Damage Res, Hole Value to 0 while leaving the burn value as it is?
Cos the number seem to be bigger for the lower model settings. If i'm reading this right of course >_>
if it's not too much trouble could someone explain what each setting actually does (Damage Res, Internal Damage Res, Hole Value etc)?
-
MLeo posted this explanation, but I don't remember where or when :P :
You either disable damage entirely in the Graphics Options.
Or, as explained in more detail above (in the comments) in the ship file in scripts/ships/
In the LoadModel function above the line:
pLODModel = App.g_kLODModelManager.Create(pStats["Name"])
Generally speaking, it are the values 4 to 7, seperated by comma (,) of each "lod" (AddLOD line).
To add some extra info, (though it's all explained above that section), the first is the nif, the second the "PickLeafSize" (I suppose that has to do with some optimalizations, if you have a small ship, then I suppose you could turn that down), the next parameter is the "switchout" distance, with 0 being directly in the camera, and progressing outwards, in game units.
And now we get to the relevant bits here.
Parameter 4 to 7.
4 is the Surface Damage resolution, if you have a complex model, you might want to turn this down (or up, not sure, you will have to experiment, but this is actually for everything I say here, they are mostly based on applying logic based on names), it will save you some slow downs. This value is mostly used for the "scarring" or "burning" and is on the outside.
5 is the Internal Damage resolution, similar to 4, except for the internal parts (inside the surface). On a small, and simple, ship, you might want to turn it up so that it won't blow everything away on the first hit. For example, I believe on the DY Borg Sphere, they turned this to 0 to turn off damage, because it caused some major slowdown (complex ship).
The 6th is the burn value, it defines how fast something scars/burns.
And the last of the damage related values is 7, the Hole value, or how fast a model recieves "structural" damage.
The rest are for the glow suffix (for example "_glow"), the specular "search" string (for example, define "_spec" if your texture ends in "Something_spec_glow.tga" when it's both the specular and the glow texture). And the last is the specular texture suffix (for example, "_spec"), the difference with the search part is that this string needs to be on the end (but before the .tga).
I hope this helps.
-
Cool, i'll give that a go. Cheers! :)
-
And I got that from the legendary ship modeller Magictm, who first created borg ships, together with Legacy.
-
ok i've tried fiddling with those and ended up with all sorts of crazy damage things happening that i couldn't keep track of.
I tried setting them all to 0, but i still get lag even when there is no damage showing on the ship. This doesn't happen when i turn of visible damage in the options :?
-
You also have to delete the vox.nif file after you modified the damage settings.
-
tried that. doesn't seem to make any difference. :(