Data Realms Fan Forums
http://forums.datarealms.com/

Scene editor questions
http://forums.datarealms.com/viewtopic.php?f=8&t=19359
Page 1 of 2

Author:  Awesomeness [ Wed Jul 28, 2010 10:41 pm ]
Post subject:  Scene editor questions

1. How can I make terrain objects from my mod show up in the editor menu?
2. How can I make it snap to different spacing, e.g. make it snap to a 16 pixel wide grid rather than 12?

Thanks in advance.

Author:  Petethegoat [ Thu Jul 29, 2010 12:52 am ]
Post subject:  Re: Scene editor questions

1. Add an includefile somewhere in Base.rte. At the end of Index.ini is fine.
2. Not possible, so far as I'm aware. I assume it's hardcoded into the engine.

Author:  Awesomeness [ Thu Jul 29, 2010 1:06 am ]
Post subject:  Re: Scene editor questions

Thanks. It kind of bothers me that you can't change the grid... Oh well.

One other quick question: Is there a color for the mat file that represents a material that is invincible, as in it can't be raped by bullets or anything at all? If not, (well actually, either way, because I'd like to know how anyways) is there a way I can create my own material for use in mat files that is?

Author:  Petethegoat [ Thu Jul 29, 2010 1:10 am ]
Post subject:  Re: Scene editor questions

Invincibility in CC is pretty much impossible. If someone wants to get through something, they'll be able to.

However, you can get practical invincibility with either test or a custom material. You'd want to look into Base.rte/Materials.ini.
It should be fairly self explanatory, the only issues being that any new materials you make need a unique material index.

Author:  Awesomeness [ Thu Jul 29, 2010 1:27 am ]
Post subject:  Re: Scene editor questions

But aren't there no extra colors in the material palette? I thought the extras were all black.

Author:  Petethegoat [ Thu Jul 29, 2010 1:32 am ]
Post subject:  Re: Scene editor questions

The colours of the material palette are based on the colours of the materials. You just pick an unused RGB and material index and go to town.

Author:  Awesomeness [ Thu Jul 29, 2010 1:44 am ]
Post subject:  Re: Scene editor questions

But all the other indexes in the material palette are black...

Author:  Petethegoat [ Thu Jul 29, 2010 1:50 am ]
Post subject:  Re: Scene editor questions

You can change the RGB of your custom materials. The index is set in stone, not the RGB.

Author:  Awesomeness [ Thu Jul 29, 2010 1:53 am ]
Post subject:  Re: Scene editor questions

I do not understand what you mean at all. I'm sorry, I'm just not following.

Author:  Lizardheim [ Thu Jul 29, 2010 1:53 am ]
Post subject:  Re: Scene editor questions

Atleast on graphicsgale (no lizard stop it it's not funny we have heard that it's awesome and all yadda yadda) you can open a terrain contour .bmp file and in the palette thing you can change the RGB of the black colors, then you just assign those rgb values to a material and a texture in the .ini of the map.

Author:  Petethegoat [ Thu Jul 29, 2010 1:58 am ]
Post subject:  Re: Scene editor questions

Awesomeness, would you mind pastebinning an unused material, I'm not on a PC with Cortex Command at the moment.
I'm probably not explaining very well, far too tired, but I'll have another go at it.

Author:  Awesomeness [ Thu Jul 29, 2010 2:01 am ]
Post subject:  Re: Scene editor questions

Is this what you mean?
Code:
AddMaterial = Material
   Index = 184
   PresetName = Glass
   Bounce = 0.6
   Friction = 0.1
   StructuralIntegrity = 10
   DensityKGPerVolumeL = 3
   GibImpulseLimitPerVolumeL = 5
   GibWoundLimitPerVolumeL = 0.1
   Priority = 10
   IsScrap = 1
   Color = Color
      R = 216
      G = 234
      B = 255   
Or this?
Code:
// Index 185 is undefined.

Author:  Petethegoat [ Thu Jul 29, 2010 2:08 am ]
Post subject:  Re: Scene editor questions

That's perfect. So basically you need to pick an unused index, and copy/paste one of those.
Change the index to the new unused index, and change the particulars as you like.
Then, change the RGB values to the colour you want it to be represented by in scenes and bunker modules.

So if you'd made the glass, you'd paint it into a scene with the colour 216,234,255.
Say if you're still having trouble.

Author:  Awesomeness [ Thu Jul 29, 2010 2:26 am ]
Post subject:  Re: Scene editor questions

But don't you have to use the terrain palette to create scenes? The terrain palette only includes the colors of materials that come with base.rte. If that's true, than I have no colors to work with for my custom materials. This is what's confused me all along...

Author:  Petethegoat [ Thu Jul 29, 2010 2:29 am ]
Post subject:  Re: Scene editor questions

The terrain palette has 256 spaces, but only a couple of them are used. You are changing and extending the palette by adding new materials.

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