Data Realms Fan Forums
http://45.55.195.193/

Createing and Using Custom Materials
http://45.55.195.193/viewtopic.php?f=1&t=31330
Page 1 of 1

Author:  Maddix [ Sun Jun 24, 2012 6:25 am ]
Post subject:  Createing and Using Custom Materials

Hey guys,

I am trying to learn how to setup and assign custom made materials to tools and weapons. I already searched for an answer and found non. Sorry if this has been answered already, I've just started modding CC.

Is it possible to make a Materials.ini outside the Base.rte with my custom materials?
"Cortex Command/Test.rte/Materials.ini"

Thanks,
Maddix

Author:  Arcalane [ Sun Jun 24, 2012 6:40 am ]
Post subject:  Re: Createing and Using Custom Materials

It sure is! Make sure your materials have a unique Index number (to be on the safe side) and go crazy. Just look at the comments at the top of Materials.ini to get an idea of what does what.

Just load it up in your mod like any other .ini file. I don't think you even need to name it "Materials.ini", but you probably should so you can find your custom materials easily.

Author:  Maddix [ Sun Jun 24, 2012 6:53 am ]
Post subject:  Re: Createing and Using Custom Materials

Thanks for the quick reply!

So how would I go about applying the custom material? For weapons and tools I have to create a Round and Tracer function, right?

Author:  Arcalane [ Sun Jun 24, 2012 7:05 am ]
Post subject:  Re: Createing and Using Custom Materials

Yup. You define the metal used in the bullet/magazine/gun/tool/actor's Atom/AtomGroup/DeepGroup, like so;

Code:
AddEffect = MOPixel
   PresetName = Bullet Coalition MG
   Mass = 0.11
   AirResistance = 0.02
   AirThreshold = 60
   LifeTime = 800
   Sharpness = 28
   HitsMOs = 1
   GetsHitByMOs = 0
   Color = Color
      R = 210
      G = 198
      B = 178
   Atom = Atom
      Material = Material
         CopyOf = Bullet Metal
      TrailColor = Color
         R = 210
         G = 198
         B = 178
      TrailLength = 32


Just replace "Bullet Metal" with your material's name. Pretty simple, just use your eyes! ;)

You don't have to define and use a Tracer, though -- those are purely optional.

Author:  Maddix [ Sun Jun 24, 2012 7:34 am ]
Post subject:  Re: Createing and Using Custom Materials

Thanks again!

I asked the last question to make sure. :] I'm working on a better concrete sprayer and I've hit a wall. I've set everything up just the way the normal concrete gun works. Except I've copied the Rounds from Base.rte/Ammo.ini and put them inside my edited concrete class. Also I made sure to use my custom material for it. (And of course I made sure to change the names.) The problem is, the concrete isn't staying. It fires normally except the concrete evaporates after it hits the ground. Any ideas on how to fix this?

Here is the code.
"test.rte/Devices/Tools/Concret.ini"

Inside Concrete.ini:

AddAmmo - Rounds


AddAmmo - Magazine


AddDevice - Concrete sprayer


Edit:

I believe the code is breaking down at the function "AddAmmo - Rounds".

Edit2:

Fixed! For some reason the game got confused when I put the "AddAmmo = Rounds" Inside the same file as the weapon. So I made a Ammo.ini and put it in there.

Here is the Mod encase anyone wants to try it.

Attachments:
Max Corp.zip [12.88 KiB]
Downloaded 213 times

Author:  Arcalane [ Sun Jun 24, 2012 8:42 am ]
Post subject:  Re: Createing and Using Custom Materials

That shouldn't have been the issue, but I've never worked with concrete sprayers before to be honest. :???:

The following .ini should cover any other questions you have regarding making guns, anyway. I forget who made it, but it's very handy if you're just starting out and aren't sure what everything means;

Attachment:
annotated pistol.ini [27.44 KiB]
Downloaded 221 times

Author:  Maddix [ Sun Jun 24, 2012 8:06 pm ]
Post subject:  Re: Createing and Using Custom Materials

Thanks a lot for all your help!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/