View unanswered posts | View active topics It is currently Wed Dec 11, 2024 8:45 am



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
 Scene editor questions 
Author Message
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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.


Wed Jul 28, 2010 10:41 pm
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 12:52 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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?


Thu Jul 29, 2010 1:06 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 1:10 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post Re: Scene editor questions
But aren't there no extra colors in the material palette? I thought the extras were all black.


Thu Jul 29, 2010 1:27 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 1:32 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post Re: Scene editor questions
But all the other indexes in the material palette are black...


Thu Jul 29, 2010 1:44 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post Re: Scene editor questions
You can change the RGB of your custom materials. The index is set in stone, not the RGB.


Thu Jul 29, 2010 1:50 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post Re: Scene editor questions
I do not understand what you mean at all. I'm sorry, I'm just not following.


Thu Jul 29, 2010 1:53 am
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post 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.


Thu Jul 29, 2010 1:53 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 1:58 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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.


Thu Jul 29, 2010 2:01 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 2:08 am
Profile WWW
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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...


Thu Jul 29, 2010 2:26 am
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post 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.


Thu Jul 29, 2010 2:29 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.036s | 14 Queries | GZIP : Off ]