Adding a moon [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Adding a moon [Solved]

Post by YTGTangerine »

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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a moon

Post by Maveritchell »

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.
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).
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding a moon

Post by YTGTangerine »

Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a moon

Post by Maveritchell »

YTGTangerine wrote:Because your saying that I assume it's just in the Kashyyyk assets. Would I need to add anything to my LUA?
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.
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding a moon

Post by YTGTangerine »

Okay sorry but I'm confused. How do I add it in exactly?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a moon

Post by Maveritchell »

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:

Code: Select all

	DomeModel()
	{	
		Geometry("kas_moon");
		Offset(-50.0);
		MovementScale(0.995);
		Reflect();
	}
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding a moon

Post by YTGTangerine »

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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a moon

Post by Maveritchell »

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.
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.)

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.
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Adding a moon

Post by YTGTangerine »

I can't browse BF1 assets though. Can I download them somewhere?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a moon

Post by Maveritchell »

MasterSaitek009
Black Sun Slicer
Posts: 619
Joined: Wed Aug 23, 2006 4:10 pm

Re: Adding a moon

Post by MasterSaitek009 »

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.
Post Reply