Change planet in space map?

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
spaceyavin
Private
Posts: 35
Joined: Sat Dec 20, 2008 6:29 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Triple Zero
Contact:

Change planet in space map?

Post by spaceyavin »

Hello, how do you change the planet that you can see that you are over when making a space map? I really want to release my Space Alderaan map! Unfortunately, it is currently over Tatooine!

Plz help me!

Topic renamed -Staff
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Space over ????

Post by DarthD.U.C.K. »

from the XXX_cmn lua:

Code: Select all

    ReadDataFile("dc:HAL\\spa_sky.lvl", "end")
the .sky files are stored in the world\XXX\sky\ folder
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Space over ????

Post by Eggman »

I believe the "Getting Started - Space notes" doc explains how to change the sky.
User avatar
spaceyavin
Private
Posts: 35
Joined: Sat Dec 20, 2008 6:29 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Triple Zero
Contact:

Re: Space over ????

Post by spaceyavin »

Err, no it doesn't.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Space over ????

Post by Maveritchell »

Space map skies are loaded through the .lua, from a separate .lvl file (spa_sky). By default, your space map loads all the stock skies into that level, so you can just look in your cmn .lua and find the line:

Code: Select all

    ReadDataFile("SPA\\spa_sky.lvl", end)
As you can see, by default it loads the "end" (Endor) sky (or in your case I suppose it loads the "tat" sky, I guess that's the default for CW space maps). To load a different one, put the three letter mapname of the sky file you want in there. (See your sky folder for the three letter names if you really need to, generally they correspond to the standard three letter map abbreviations).
Post Reply