Can you create new classes of object (Eg, a sun class)? And if so, how?
sure? why couldnt you? just make an odf just like the object you want and change the sod
So, could I crate a sun class then a resource similar to that of a planet, and then make the red suns minable? edit: contents of msun.odf: [GameObjectClass] classLabel = "sun_obj" unitName = "Sun" contents of msun3.odf: [GameObjectClass] classLabel = "sun_obj" unitName = "Sun1" ambientSound = "msun_am.wav" ambientMinimumFactor = 1 ambientMaximumFactor = 1 //avoid this object avoidMe = 0 avoidanceClass = 0 resource = "ResourceSun" //************************************************************ // Tara additions for context sensitive menus spatial_object = 1 has_resource = 1 contents of ResourceSun.odf: canHaveOrbitalStation = 0 //amtMetal = 12000 amtMetal = 90000 // rate at which metal is mined miningRate = 5 // Trickles once gets under 100 trickleAmount = 100 trickleMiningRateFraction = .2 What am I doing wrong?
I thought you couldn't create new class labels?
You are now linking to a classlabel that doesn't exists, that's why.
No, you can't make new classlabels.
The cake is a lie.There is no cake.
50 XP
13th November 2004
0 Uploads
3,926 Posts
0 Threads
well, you can't make new ones...just edit previous ones...for example,in my mod (this is'nt a plug, don't worry) I take say the BoP's disruptors, copy, rename the files for the weapons and change it that way, you'd have to make an original sun have something similar i'm guessing, but this is one of those things that I don't think anybody has looked upon, probably cause you can't mine suns...but nevertheless a very imaginative concept :)
Huh? Yeah you can edit files and objects, but you can't edit or create the classlabel definitions themselves, it's all hardcoded.
For a mineable star, just copy-paste the dilithium moon and change the model, easy.
isnt that what i said to do?
No. You said you could create new classlabels.
The cake is a lie.There is no cake.
50 XP
13th November 2004
0 Uploads
3,926 Posts
0 Threads
LOL..too complicated for me...that seems right though...just do what atlantis said, then you could change the name for the model to be a sun...or something...errrm, I dunno...good luck whatever!
- 1
- 2