Author Topic: hull burning only?  (Read 1972 times)

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
hull burning only?
« 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.

Offline Kirk

  • Posts: 1438
  • Cookies: 139
    • My Released Mods
Re: hull burning only?
« Reply #1 on: May 21, 2009, 05:27:11 PM »
Edit the ship script in scripts/ships. I believe most show you which value does what in the comments.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: hull burning only?
« Reply #2 on: May 22, 2009, 04:50:35 AM »
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)?

Offline NeoKaede

  • Posts: 201
  • Cookies: 4
  • We're watching you... scum.
Re: hull burning only?
« Reply #3 on: May 22, 2009, 05:40:51 AM »
MLeo posted this explanation, but I don't remember where or when :P :

Quote
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.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: hull burning only?
« Reply #4 on: May 22, 2009, 06:01:56 AM »
Cool, i'll give that a go. Cheers! :)

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: hull burning only?
« Reply #5 on: May 22, 2009, 06:07:22 AM »
And I got that from the legendary ship modeller Magictm, who first created borg ships, together with Legacy.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: hull burning only?
« Reply #6 on: May 22, 2009, 09:10:43 AM »
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 :?

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: hull burning only?
« Reply #7 on: May 22, 2009, 09:32:33 AM »
You also have to delete the vox.nif file after you modified the damage settings.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: hull burning only?
« Reply #8 on: May 22, 2009, 09:40:59 AM »
tried that. doesn't seem to make any difference.  :(