Sky file missing a bracket?

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
Zapattack1234
Rebel Colonel
Rebel Colonel
Posts: 574
Joined: Mon Sep 24, 2012 6:44 pm
Projects :: The Wrecked Graveyard_Amongst the Ruins
Games I'm Playing :: SWBF 1 and 2
xbox live or psn: xbla:Rehmfire49
Location: Isla Nublar (Jurassic Park)

Sky file missing a bracket?

Post by Zapattack1234 »

Okay i know this is probably something that can be solved easily but for some reason i keep getting these errors:
Hidden/Spoiler:
ERROR[levelpack shell.req]:Input file shell.req does not exist. [continuing]
1 Errors 0 Warnings

ERROR[configmunge world1\WGR.sky]:This file is missing a closing bracket somewhere!
1 Errors 0 Warnings

ERROR[levelpack WGR.req]:munged\pc\wgr.config is not a binary UCF file!ERROR[levelpack WGR.req]:munged\pc\wgr.config is not a binary UCF file! [continuing]
2 Errors 0 Warnings
soundflmunge.exe : Error : Unable to open file effects\whooshl3.wav - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file effects\whooshl3.wav, format may be invalid - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_WGR\Sound\shell\effects\whooshl3.wav - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_WGR\Sound\shell\effects\whooshl3.wav, format may be invalid - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx - while munging C:\BF2_ModTools\data_WGR\Sound\shell\shell.sfx
And they are somehow making me not able to spawn on a new map I'm making. The reason im getting most of those errors was probably because i accidentally munged everything.... Im guessing the one about the sky file has something to do with my MAP.sky folder, but i dont know.

MAP.Sky folder:
Hidden/Spoiler:
SkyInfo()
{
Enable(1);

PS2()
{
SkyInfo()
{
Enable(1);

PS2()
{
NearSceneRange(1.750000, 100.000000, 150.000000);
FarSceneRange(0.0);
NearSplitScreenRange(0.5, 60.000000, 70.000000);
FarSplitScreenRange(0.0);
}
PC()
{
NearSceneRange(60.000000, 180.000000, 80.000000, 220.000000);
FarSceneRange(0.0);
}
XBOX()
{
NearSceneRange(0.5, 100.000000, 150.000000);
FarSceneRange(0.0);
NearSplitScreenRange(0.5, 80.000000, 100.000000);
FarSplitScreenRange(0.0);
}
}

DomeInfo()
{
Texture("SKY_naboo2.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);

XBOX()
{
TerrainBumpTexture("nab2_bump_1", 1.0);
}
PC()
{
TerrainBumpTexture("nab2_bump_1", 1.0);
}

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

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);
}
}
}
Could someone please take a look at this and tell me what i need to do to fix these errors?
(Especially the sky one) Thanks in advice
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Sky file missing a bracket?

Post by AceMastermind »

When you get munge errors there is no need to even play your map until they are fixed.
Use a code editor to edit these files so you can spot mistakes easier. The first 5 lines of code are duplicate, delete the first 6 lines of your sky file and save it, then clean and munge.

Your sky file should look like this:
Hidden/Spoiler:
[code]SkyInfo()
{
Enable(1);

PS2()
{
NearSceneRange(1.750000, 100.000000, 150.000000);
FarSceneRange(0.0);
NearSplitScreenRange(0.5, 60.000000, 70.000000);
FarSplitScreenRange(0.0);
}
PC()
{
NearSceneRange(60.000000, 180.000000, 80.000000, 220.000000);
FarSceneRange(0.0);
}
XBOX()
{
NearSceneRange(0.5, 100.000000, 150.000000);
FarSceneRange(0.0);
NearSplitScreenRange(0.5, 80.000000, 100.000000);
FarSplitScreenRange(0.0);
}
}

DomeInfo()
{
Texture("SKY_naboo2.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);

XBOX()
{
TerrainBumpTexture("nab2_bump_1", 1.0);
}
PC()
{
TerrainBumpTexture("nab2_bump_1", 1.0);
}

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

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]
You could also safely omit the Xbox and PS2 blocks if you wanted.
User avatar
Zapattack1234
Rebel Colonel
Rebel Colonel
Posts: 574
Joined: Mon Sep 24, 2012 6:44 pm
Projects :: The Wrecked Graveyard_Amongst the Ruins
Games I'm Playing :: SWBF 1 and 2
xbox live or psn: xbla:Rehmfire49
Location: Isla Nublar (Jurassic Park)

Re: Sky file missing a bracket?

Post by Zapattack1234 »

Ha thanks it worked! One more question, i keep trying to insert yavin's moon into my sky file, but i dont really know how. where do i put the files so that the moon will appear?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Sky file missing a bracket?

Post by AceMastermind »

You'd insert this into the appropriate place in your sky file:

Code: Select all

DomeModel()
	{	
		Geometry("yav_sky_planet");
	}
Your existing sky file would look like this:
Hidden/Spoiler:
[code]SkyInfo()
{
Enable(1);

PC()
{
NearSceneRange(60.000000, 180.000000, 80.000000, 220.000000);
FarSceneRange(0.0);
}
}

DomeInfo()
{
Texture("SKY_naboo2.tga");
Angle(-90.000000);
Ambient(255.000000, 255.000000, 255.000000);
Softness(1);
SoftnessParam(60);

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

DomeModel()
{
Geometry("nab2_sky_dome");
}
DomeModel()
{
Geometry("yav_sky_planet");
}

Stars()
{
RandomSeed(1);
TwinkleFactor(0.5);
TwinkleFrequency(0.1);
Color(255, 255, 255, 255);
PC()
{
NumStars(8000);
BrightStarPercent(70.0);
AlphaMin(15);
ColorSaturation(.75);
}
}
}
[/code]
I left out the Xbox and PS2 blocks to make it easier to look at.
You would also need whatever additional files are required for this to work to be included with your project in the world1 folder.

yav_sky_planet.msh
yav_sky_planet.msh.option
sky_yavin_planet.tga
sky_yavin_planet.tga.option
User avatar
Zapattack1234
Rebel Colonel
Rebel Colonel
Posts: 574
Joined: Mon Sep 24, 2012 6:44 pm
Projects :: The Wrecked Graveyard_Amongst the Ruins
Games I'm Playing :: SWBF 1 and 2
xbox live or psn: xbla:Rehmfire49
Location: Isla Nublar (Jurassic Park)

Re: Sky file missing a bracket?

Post by Zapattack1234 »

Thanks again ace, that worked great too! :D
Post Reply