Page 1 of 1

How can I change the sky in my map? [Solved]

Posted: Sat Sep 18, 2010 8:10 am
by Ridago
Can someone help me. I don't know how I can change the sky by my self made Battlefront 2 map. On my map is always the sky from the yavin 4 map. but thats boring.

Re: How I can change the sky by selfmade battlefront 2 maps

Posted: Sat Sep 18, 2010 2:09 pm
by DarthD.U.C.K.
first: Welcome on Gametoast!

second: you can change it by opening the yourmapid.sky file in the data_yourmapid\worlds\yourmapid\eorld1\ folder with notepad or something else
browse to this section:

Code: Select all

DomeInfo()
{
    Texture("sky_yav2");
    Angle(-90.000000);
    Ambient(255.000000, 255.000000, 255.000000);
    Filter(1);
    Threshold(150);    
    Intensity(50);

    Softness(1);
    SoftnessParam(60);

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


}
the textureline defines which texture the sky uses, the geometryline defines the model of the sky. both should be located in the same folder as the .sky file. if you replace the skytexture with the one from e.g. kashyyyk make shure to change the name of the skydome kashyyyks too because some skytextures have different layouts and therefore need their respective skydomemodel to fit on.

Re: How I can change the sky by selfmade battlefront 2 maps

Posted: Sat Sep 18, 2010 3:17 pm
by linksith
Welcome to Gametoast! I think DarthDuck made it rather clear but if you need more help try using the search box at the bottom of the forum page (In case you don't know, "SWBF2 Modding" is a forum but this is a thread). Also at the top of this forum there are some helpful things such as the "FAQ/Everything You Need Thread". I found some interesting things in there.

Re: How I can change the sky by selfmade battlefront 2 maps

Posted: Sun Sep 19, 2010 12:25 pm
by Ridago
I have still not properly understood what am I now need to copy where and what I need to rename. can someone maybe explain me "step by step" what I must do to change the sky from my map?
thanks for the reply!

Re: How I can change the sky by selfmade battlefront 2 maps

Posted: Sun Sep 19, 2010 1:07 pm
by DarthD.U.C.K.
the easiest way:
1.choose the sky you want to use, open the .sky file of this world
2. open your world's .sky file
3. copy the DomeInfo section from the world you chose and paste it over the DomeInfo of your worlds .sky file
4. under DomeInfo look for textureferences e.g. Texture("texturename") and modelreferences e.g. Geometry("modelname")
5. copy all the texturename.tga and modelname.msh files from the world you chose to your worlds world1 folder

Re: How can I change the sky in my map?

Posted: Sun Sep 19, 2010 2:38 pm
by Ridago
Thank you darthD.U.C.K.! now it works. My map looks much better result. I understand it always better when it is explained to me step by step :-D