Cannot delete light [Solved]

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
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Cannot delete light [Solved]

Post by fasty »

Another stupid crash thread. I have zero experience with the games lighting system, I was just experimenting around, looking at stock maps and trying to copy them. I added a directional light much like the stock mos eisley light, and it caused the game to crash when you look into the sky. Then I tried to remove it from ZE. It seemed to delete fine, but then when I went back ingame it still crashed. I have manual cleaned many times and there are no errors in the log.

Why did it crash in the first place, and how do I remove the light? :sleep:
Last edited by fasty on Sun Feb 05, 2012 8:59 pm, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Cannot delete light

Post by Marth8880 »

How exactly did you go about setting up the directional light? What settings did you choose?
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Cannot delete light

Post by fasty »

I recreated it in ZE so I could take this picture. Then I closed ZE without saving so I won't have another light.

I gave it the texture "lightglow", which is in common/effects. As I was saying, I was only experimenting. I didn't know this would happen. :s
Hidden/Spoiler:
Image
Please use hide tags with large images. -Staff
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Cannot delete light

Post by Marth8880 »

Try removing "lightglow" from the light's configuration.
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Cannot delete light

Post by fasty »

The light is deleted out of ZE. It's not even there anymore so there is no way to do that. It's still ingame though...
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Cannot delete light

Post by Marth8880 »

So it still crashes? Hmm, did you burn the terrain?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Cannot delete light

Post by FragMe! »

In your world1 folder find a file called 00T.LGT, open it in an editor and look at the contents, if there is any reference to your light delete and save the file and see if that helps.

Alternative to try, rename or delete the above mentioned file, open ZE and the do a save, it should have recreated a new .lgt file. Try munging with that and see what happens.

You can also check the other LGT files and see if anything is in those too.
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Cannot delete light

Post by fasty »

Marth8880 wrote:So it still crashes? Hmm, did you burn the terrain?
Yes it still crashes. I'm confident that the light is still there, since the whole map (the part of the map that I can look at without crashing) looks a lot brighter now. I'm not sure what burning the terrain means, but the terrain looks a lot brighter now.
FragMe! wrote:In your world1 folder find a file called 00T.LGT, open it in an editor and look at the contents, if there is any reference to your light delete and save the file and see if that helps.

Alternative to try, rename or delete the above mentioned file, open ZE and the do a save, it should have recreated a new .lgt file. Try munging with that and see what happens.

You can also check the other LGT files and see if anything is in those too.
I did all of that and nothing is different. The light is still there, and the .lgt file is normal looking. It looks like any other .lgt file that has no lights in it.

:sleep:
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Cannot delete light

Post by Marth8880 »

Burning the terrain is where you have the editor burn, into the terrain, shadows cast by the terrain and shadows cast by objects. To reverse the effect, set your global top/bottom ambient light colors to 255 255 255, click Terrain, Burn Terrain.

I'll look more into your crashing problem when I get home from this musical; it's "Oklahoma!" at the 5th Avenue theater in Seattle (we're in the intermission).
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Cannot delete light

Post by fasty »

I burned the terrain, and it doesn't crash anymore! Although the map is still extremely bright. Seriously when I go up to one of my models that has a white texture it hurts my eyes its too bright. >.<
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Cannot delete light

Post by Marth8880 »

That's great to hear! :thumbs: Now set the top/bottom ambient light settings to what you want your map's general color theme to be. Then, if your map has a sun, create a directional light, name it "sun" set Cast Specular and Cast Shadow both to Yes, and in the right-hand panel of Zero Editor, type in "sun" in the box called "Global Directional Light 1". If you don't have a sun, create a directional light with the same settings but use any name you want. Then, create a box-shaped region and give it a name; position and scale it to encompass the area of your map that you want to be affected by the directional light. Now, go back to your light and under "Bounding Box", put in the name of the region you just created. See the stock Death Star; it makes spectacular use of directional lights.


EDIT:

Oh, and for your directional light, set its color settings to the color that you want your light to be, as you probably already know. :lol: Make sure the color isn't *too* bright, otherwise your units/vehicles and props with specular will glow a LOT.
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: Cannot delete light

Post by fasty »

Thanks, this is solved now.
Post Reply