View unanswered posts | View active topics It is currently Wed Dec 25, 2024 8:28 pm



Reply to topic  [ 5 posts ] 
 Gold can't be collected 
Author Message
User avatar

Joined: Wed Jan 03, 2007 2:05 pm
Posts: 174
Reply with quote
Post Gold can't be collected
I'm making a new moon map called "Moon Base" but at the moment it's just terrain and a rocket i forgot to take out of spawning at the start.

The problem is that when somebody uses a digger on gold it makes contact with it and the gold moves but it doesn't add to your oz count. I figured it might be the gravity so i change the density of the gold so that it weighs the same on the scene as normal gold would weigh on a scene with normal gravity. But that didn't work. I have no idea what could be wrong so please help me and if you figure it out please say what was wrong, thanks.


Fri Aug 29, 2008 4:05 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Gold can't be collected
I think we're dealing with something hardcoded here.
Just change these lines:
Code:
   DebrisMaterial = Material
      CopyOf = Moon Base Gold

to
Code:
   DebrisMaterial = Material
      CopyOf = Gold


Should work then.


Fri Aug 29, 2008 5:24 pm
Profile
User avatar

Joined: Wed Jan 03, 2007 2:05 pm
Posts: 174
Reply with quote
Post Re: Gold can't be collected
Tryed that. Because vanilla CC gold just targest whatever layer it doesn't work on my scene as each layer is differant to vanilla CC so they are called "Moon Base Sand" or something like that. The point is the "Moon Base" is at the start of every name of every material for my map so it won't target it.

Make sense? :???:


Fri Aug 29, 2008 5:41 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Gold can't be collected
I know what you're trying to say, but you're not quite right. ;)
This is a bit of code from one of my maps;
Code:
AddTerrainDebris = TerrainDebris
   InstanceName = Space Gold <--- Can be named anything.
   DebrisFile = ContentFile
      Path = Base.rte/Scenes/Objects/Gold/Gold.bmp
   DebrisPieceCount = 26
   DebrisMaterial = Material
      CopyOf = Gold <--- keep this Gold, always.
   TargetMaterial = Material
      CopyOf = Space Soil <--- Your custom layer where you'd like to see the gold appear from.
   OnlyOnSurface = 0
   MinDepth = 25
   MaxDepth = 350
   DensityPerMeter = 2.0


I hope it makes sense. :)


Fri Aug 29, 2008 5:47 pm
Profile
User avatar

Joined: Wed Jan 03, 2007 2:05 pm
Posts: 174
Reply with quote
Post Re: Gold can't be collected
Works perfectly now, thanks muchly. :D


Fri Aug 29, 2008 6:08 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

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.178s | 15 Queries | GZIP : Off ]