Adding Stars

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
Clowneater
Private Recruit
Posts: 16
Joined: Sat Jul 26, 2008 4:06 pm

Adding Stars

Post by Clowneater »

I'm making a nighttime map and I changed the sky to the sky I wanted, and now I want to add stars. To do that, could I just copy the Stars section from Coruscant's .sky file?

Also, a problem that has been persisting since I started (but I just ignored it) was that most of the textures I painted in Zeroedit just show up as hoth_main_1, even though I see different textures in ZE. Does that have to do with the texture layers and has anyone seen that problem before? Thanks.

I'm new to GT, by the way.
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Adding Stars

Post by theultimat »

Welcome to GT, Clowneater!

1) I'm not sure about the sky file, but I think you could just paint them on in a texture editor (Gimp reccomemded).
2)No idea. I've had that problem before, but reversed. The textures show up as hoth1_main_01.tga, but ingame they are how they should be. Weird, eh.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Adding Stars

Post by RepSharpshooter »

A good rule of thumb is to always look in places where it's been done before. You're right, just copy the star section from coruscant (or naboo, which is this one):
Hidden/Spoiler:
[code]Stars()
{
RandomSeed(1);
TwinkleFactor(0.5);
TwinkleFrequency(0.1);
Color(255, 255, 255, 255);
XBOX()
{
NumStars(1000);
BrightStarPercent(90.0);
AlphaMin(15);
ColorSaturation(0.5);
}
PC()
{
NumStars(8000);
BrightStarPercent(70.0);
AlphaMin(15);
ColorSaturation(.75);
}
PS2()
{
NumStars(1000);
StarTexture("fx_star");
BrightStarPercent(10.0);
AlphaMin(10);
ColorSaturation(0.2);
}[/code]
Goes right under the last DomeModel()
Clowneater wrote: Also, a problem that has been persisting since I started (but I just ignored it) was that most of the textures I painted in Zeroedit just show up as hoth_main_1, even though I see different textures in ZE. Does that have to do with the texture layers and has anyone seen that problem before? Thanks.
I don't know specifically, but make sure the textures munged (clean if you have to). If it looks correct in ZE I don't know what else would cause that ingame.
Clowneater
Private Recruit
Posts: 16
Joined: Sat Jul 26, 2008 4:06 pm

Re: Adding Stars

Post by Clowneater »

I've made a few maps before, but I'm still pretty new to it. If I was to hit "Clean" in the Visual Munge, what exactly does it do? Does it delete everything I munged with this map before?
Clowneater
Private Recruit
Posts: 16
Joined: Sat Jul 26, 2008 4:06 pm

Re: Adding Stars

Post by Clowneater »

I copied the code put up by RepSharpShooter right into my .sky file , and when I munged, the log stated a couple of errors. One said that the .sky file was missing a bracket, something I can fix, and one mentioned the .req, which I never touched. I wanted to see how it affected my map, and now there are no command posts in game and I can't spawn. Did the bracket affect that?
EDIT: I added in the brackets and both problems were fixed.
Post Reply