Adding a moon [Solved]
Moderator: Moderators
- YTGTangerine
- Command Sergeant Major

- Posts: 270
- Joined: Sat Aug 16, 2008 7:53 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Aw man I can't think of anything creative...
Adding a moon [Solved]
How can I add a moon (in ZE it'd be a spotlight, right?) to my map? Search didn't help, nor did the docs.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Adding a moon
You don't need to make an actual light source, just add a skydome prop. Check out BF1 Kashyyyk for reference (or BF1/2 Yavin IV).YTGTangerine wrote:How can I add a moon (in ZE it'd be a spotlight, right?) to my map? Search didn't help, nor did the docs.
- YTGTangerine
- Command Sergeant Major

- Posts: 270
- Joined: Sat Aug 16, 2008 7:53 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Aw man I can't think of anything creative...
Re: Adding a moon
Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Adding a moon
It's part of the skydome, and no, it's not just in the Kashyyyk assets - it just happens to be a moon specifically in those assets. All skydome props essentially work the same, though.YTGTangerine wrote:Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?
- YTGTangerine
- Command Sergeant Major

- Posts: 270
- Joined: Sat Aug 16, 2008 7:53 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Aw man I can't think of anything creative...
Re: Adding a moon
Okay sorry but I'm confused. How do I add it in exactly?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Adding a moon
I am assuming that you already know how to do a little bit of sky work, since I saw from your screenshots that you at least had a different sky. If you're not familiar with .sky work, make sure to do some searches and look around.
All you're doing is adding a skydome prop - something from the DomeInfo section of the kashyyyk sky (although I see now looking that the moon specifically isn't in there, but like I said, it doesn't matter as they're all added the same). All you do is make sure that you have the appropriate meshes and textures in your world1 folder and then add a section to your domeinfo that looks something like this:
All you're doing is adding a skydome prop - something from the DomeInfo section of the kashyyyk sky (although I see now looking that the moon specifically isn't in there, but like I said, it doesn't matter as they're all added the same). All you do is make sure that you have the appropriate meshes and textures in your world1 folder and then add a section to your domeinfo that looks something like this:
Code: Select all
DomeModel()
{
Geometry("kas_moon");
Offset(-50.0);
MovementScale(0.995);
Reflect();
}- YTGTangerine
- Command Sergeant Major

- Posts: 270
- Joined: Sat Aug 16, 2008 7:53 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Aw man I can't think of anything creative...
Re: Adding a moon
Okay. I'm doing a search right now to get the textures, and I'll test soon.
EDIT: What are the textures? Search found nothing by the name of kas_moon.
EDIT: What are the textures? Search found nothing by the name of kas_moon.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Adding a moon
What's written above doesn't matter; it's just an example. (Besides, kas_moon is a geometry, as you can see if you look at what it's labeled as in the code above.)YTGTangerine wrote:Okay. I'm doing a search right now to get the textures, and I'll test soon.
EDIT: What are the textures? Search found nothing by the name of kas_moon.
Just browse through the various world assets, both BF1 and BF2, and you'll find various skydome props. You can look at them in mshviewer (or 3DOC or whatever) to see what they look like in the sky. They are set up like the above, where you just put the geometryname in as shown.
- YTGTangerine
- Command Sergeant Major

- Posts: 270
- Joined: Sat Aug 16, 2008 7:53 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Aw man I can't think of anything creative...
Re: Adding a moon
I can't browse BF1 assets though. Can I download them somewhere?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
-
MasterSaitek009
- Black Sun Slicer
- Posts: 619
- Joined: Wed Aug 23, 2006 4:10 pm
Re: Adding a moon
The Yavin IV world has the skydome planet prop and it's in the BF2 assets. It's the one I used for Cerea.
I can't seem to recall the prop name right now though. Ah well, just look through the Yavin .sky file and you'll find the name.
But you should look into getting the BF1 assets. There are some very useful props in there.
I can't seem to recall the prop name right now though. Ah well, just look through the Yavin .sky file and you'll find the name.
But you should look into getting the BF1 assets. There are some very useful props in there.
