Joined: Sat Dec 15, 2018 11:51 pm Posts: 5 Location: Staggering through code
Armor strangeness?
I'm making a Mod for CC but the recent thing that has stopped me is that the materials I've set seem to act very strange when I name the same one different things. Is there any strong rules to naming materials? I'm aware of ID's and I think it might be my material overlapping with another mod's material but I've ID'd the materials as a super high number that shouldn't be used by any other mods except my own. What happens is that the material doesn't act like it should, when I give it a bullet proof SI value it doesn't take it and instead acts like paper. but if I rename it to its old previous name that was misspelled it will act like it should but I can't change the SI value. Any help?
Tue Dec 18, 2018 4:03 am
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13143 Location: Here
Re: Armor strangeness?
Post your code, hard to tell what's going on without looking at it.
Tue Dec 18, 2018 7:34 am
Daleks2377
Joined: Sat Dec 15, 2018 11:51 pm Posts: 5 Location: Staggering through code
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13143 Location: Here
Re: Armor strangeness?
Which material are you renaming? What are its old and new names?
Are you testing these materials on an object of some kind (actor, gun, craft, MOSRotating, etc) or terrain?
Wed Dec 19, 2018 7:31 am
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
Re: Armor strangeness?
I haven't done this in years but I think your Index number is supposed to be within the 0-255 bounds. Also make sure your instance names are correct through all your code in all your .inis. If you care only for StructuralIntegrity and not of any other values, you should just use the closest default materials. Your "ShieldedArmor" has SI of 77 - "Dense Red Earth" has SI of 75, "Dalekainum" has SI of 90 - so does "Concrete", etc. You'll be left with only one material - "Metalert". Try setting the Index to 254 (This index is left empty by default) and see if that works. If it does, look for another empty index number in the default Materials.ini (254 is most likely used by some mod) and hope what you choose isn't used by other mods.
Wed Dec 19, 2018 7:41 am
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13143 Location: Here
Re: Armor strangeness?
To build on that -
An Index value can be omitted if you're not using the material for terrain purposes, which should also prevent it from interacting with other materials in the 0-254 range if values overlap.
Wed Dec 19, 2018 7:47 am
4zK
Joined: Mon Oct 11, 2010 1:15 pm Posts: 594 Location: Finlandia
Re: Armor strangeness?
Whoa, that's good to know.
I'd like to add that value changes of the material when it's defined in the .ini don't actually apply, I've seen some vanilla .ini do this but upon further examination, there's no difference ingame.
Wed Dec 19, 2018 3:56 pm
Daleks2377
Joined: Sat Dec 15, 2018 11:51 pm Posts: 5 Location: Staggering through code
Re: Armor strangeness?
I'm testing these on a actors and probably later devices and craft. Probably not going to be messing with terrain. the material I've been using is the "Dalekainum" one. I've also tried the other materials and they seem to act the same way, I'll consider some of the answers I've gotten here and try to get these working the best I can. Thanks for helping me!
Wed Dec 19, 2018 8:42 pm
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13143 Location: Here
Re: Armor strangeness?
GibWoundLimit and GibImpulseLimit are also relevant for object durability, probably more than the material they're made of. The material will mostly provide bounce, friction, and initial penetration resistance properties.
Wed Dec 19, 2018 9:00 pm
Daleks2377
Joined: Sat Dec 15, 2018 11:51 pm Posts: 5 Location: Staggering through code
Re: Armor strangeness?
I'm more fixated on getting a material that will be almost completely bullet proof rather than resistant to wounds. I will take that into consideration.
Thu Dec 20, 2018 6:54 am
MaximDude
Joined: Wed Nov 22, 2006 3:19 pm Posts: 2073
Re: Armor strangeness?
4zK wrote:
I'd like to add that value changes of the material when it's defined in the .ini don't actually apply, I've seen some vanilla .ini do this but upon further examination, there's no difference ingame.
What do you mean the value changes don't apply? Are you saying that creating a new material with different values and/or editing the default material yields no results?
If I take the strongest default material, excluding "Test" and "Default", which is Mega Metal:
Code:
AddMaterial = Material Index = 179 PresetName = Mega Metal Bounce = 0.2 Friction = 0.9 StructuralIntegrity = 180 DensityKGPerVolumeL = 8.5 GibImpulseLimitPerVolumeL = 15 GibWoundLimitPerVolumeL = 0.1 Priority = 10 SettleMaterial = 182 Color = Color R = 220 G = 235 B = 245
Compared to my custom material, Ultra Metal:
Code:
AddMaterial = Material Index = 151 PresetName = Ultra Metal Bounce = 0.21 Friction = 0.9 StructuralIntegrity = 340 DensityKGPerVolumeL = 9.7 GibImpulseLimitPerVolumeL = 18 GibWoundLimitPerVolumeL = 0.13 Priority = 10 SettleMaterial = 179 Color = Color R = 255 G = 128 B = 64 UseOwnColor = 0
Then the clearest ingame result of "Ultra Metal" being "stronger", or more resilient, is it not being penetrated by MOPixels of higher velocity/sharpness. So if "Mega Metal" can bounce off vanilla SMG fire, "Ultra Metal" will bounce off some of the vanilla AR fire, which usually has faster/sharper ammo.
If you use the following:
Code:
AddMaterial = Material Index = 151 PresetName = Ultra Mega Metal Bounce = 0.23 Friction = 0.9 StructuralIntegrity = 780 DensityKGPerVolumeL = 12.2 GibImpulseLimitPerVolumeL = 23 GibWoundLimitPerVolumeL = 0.17 Priority = 10 SettleMaterial = 179 Color = Color R = 255 G = 128 B = 64 UseOwnColor = 0
It will be impenetrable by any vanilla weapon there is.
I'd say the changes you are making are too subtle. To have noticeable results, the edits must be somewhat drastic. This works flawlessly.
Maybe i'm just misunderstanding what you are saying.
Daleks2377 wrote:
I'm more fixated on getting a material that will be almost completely bullet proof rather than resistant to wounds. I will take that into consideration.
You can use the materials I posted here, "Ultra Mega Metal" should suit your needs quite well.
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 You cannot post attachments in this forum