SKY won't work

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
RC-1290

SKY won't work

Post by RC-1290 »

On a new map Renaming the sky textures and dome did indeed work, but when I put all the objects in again, the sky was black again. How do I get the sky working, please tell me.

RC-1290'Dreadnought'
RC-1290

Post by RC-1290 »

I just noticed that after I munged, my sky file was edited....!?!
why does this happen and how can I possibly use a nother sky if it gets rewritten to:
DomeInfo()
{
Texture("test");
Angle(190.000005);
Ambient(128.000038, 128.000038, 128.000038);
Filter(1);
Threshold(150);
Intensity(50);

Softness(1);
SoftnessParam(60);

PC()
{
TerrainBumpTexture("geo1_bump", 1.0);
}


DomeModel()
{
Geometry("geo_sky_dome");
}

DomeModel()
{
Geometry("geo_sky_arena");
Offset(-20.0);
MovementScale(0.995);
}
DomeModel()
{
Geometry("geo_sky_spire");
Offset(-20.0);
MovementScale(0.995);
}
DomeModel()
{
Geometry("geo_sky_dome_rim");
Offset(10.0);
MovementScale(0.995);
}

LowResTerrain()
{
Texture("geo1");
PatchResolution(7);
FogNear(300.0);
FogFar(700.0);
FogColor(142,82,38, 128);
DetailTexture("geo1_far_detail");
DetailTextureScale(0.25);
}
}


//Big rep flyer
SkyObject()
{
Geometry("rep_fly_assault_DOME");
NumObjects(2);
Height(200, 300);
VelocityZ(20, 50);
Distance(1500);
InDirectionFactor(2);
}

//Rep fighters
SkyObject()
{
Geometry("rep_fly_gunship_DOME");
NumObjects(20);
Height(80, 140);
VelocityZ(80, 120);
VelocityY(-10, 10);
Distance(600);
InDirectionFactor(0.5);
}

//CIS fighters
SkyObject()
{
Geometry("cis_fly_droidfighter_DOME");
NumObjects(20);
Height(80, 140);
VelocityZ(80, 100);
VelocityY(-10, 10);
Distance(300);
InDirectionFactor(0.5);
}

//CIS rockets
SkyObject()
{
Geometry("cis_fly_techounion_DOME");
NumObjects(8);
Height(0, 0);
VelocityY(10, 12);
Acceleration(0.0, 2.0, 0.0);
Distance(1000);
LifeTime(80.0);
}
RC-1290

Post by RC-1290 »

changing it back makes no difference...
Murdocr

Post by Murdocr »

did you really need a new thread for this? especially since you posted in another thread with the SAME question. and don't triple post. now for your question, post a step by step of what you are doing and state what you are tring to do. are you simply trying to change the default sky to another one?
RC-1290

Post by RC-1290 »

sorry for making a new thread, still a noob on this forum and I accidentially made a new one...(really thought I clicked, post reply) And can't delete it, maybe someone else can... And for the tripple posting, sorry again, forgot to use edit...

And yes I'm "simply trying to edit the default sky... to bad it is not that simple becouse it only works on a new made map, when I have put all needed textures, dome files and .sky filesin the world folderof my map(yes, I renamed the .sky file to #mapcode#.sky) . Than it works in game but as soon as I add in the models, the sky goes black in game(zero editor now shows the sky fortunately). And yes I have cleaned before munging.
Murdocr

Post by Murdocr »

well here is how to change the sky.

1) if you are making a new sky edit an already existing one so it is the right size( or make one from scratch, but i forget the dimensions it needs to be). if you are just changing the sky from yavin to say, kamino, get all of the follwing files and place them in bf2_modtools/data_modid/worlds/modid/world1.

kam1_city.msh, kam1_city.tga, kam1_city.msh.option, kam1_city.tga.option kam1_sky_dome.msh,
kam1_sky_dome.msh.option, sky_kam1.tga and sky_kam1.tga.option

2) once you have all of them open up modid.sky from bf2_modtools/data_modid/worlds/modid/world1

3) now edit your sky file so it looks like this: (the bottom half)

DomeInfo()
{
Texture("SKY_kam1.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);
DomeModel()
{
Geometry("kam1_sky_dome");
}

DomeModel()
{
Geometry("kam1_city");
Offset(80.0);
MovementScale(0.995);
}

}

4) save and open up ZE and your sky should have changed. don't worry if the city does not show up because i don't think it appears in ZE but it will in-game.

hope this helps. oh and BTW do not rename any of the copied files from kam1 to moddid as they are the ones being read by the .sky file. try following this step by step and then do it for the sky which is appropriate for you. :)
RC-1290

Post by RC-1290 »

thanks, after repeating this tutorial 3 times on different version of my map, It is now working :) :) :) Thank you very much
Murdocr

Post by Murdocr »

lol, glad to help :D
Post Reply