Layers

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
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Layers

Post by Grev »

When I started mapping, I had no idea that you needed to put common objects (buildings) in base, and I put them all in conquest. However, recently, I began scripting for campaign when it hit me. Nothing would show up ingame since all my stuff was in my conquest layer! If my buildings are in my conquest layer, how do I get it so that the objects appear the same in campaign?

My questions:
Will objects in conquestn show up in my other gamemodes?
If they dont, how would I transport them to base?
If I can't transport them, how can I make it so that each mode applies to the same layer?
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Layers

Post by Fingerfood »

I think there's an option to port stuff from one layer to another, but you could always rename the conquest layer to base, and make it a common layer (that appears in all game modes).
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Layers

Post by Aman/Pinguin »

Grev wrote:My questions:
1. Will objects in conquestn show up in my other gamemodes?
2. If they dont, how would I transport them to base?
3. If I can't transport them, how can I make it so that each mode applies to the same layer?
1. See N°3

2. This will merge your (selected) layers into one:
>>Click here<<
Sorry for the bad quality.

3. You want for example to use the conquest layer for your campaign mode, then open your XXXc_c.lua and change this line

Code: Select all

    ReadDataFile("dc:XXX\\XXX.lvl", "XXX_campaign")
to

Code: Select all

    ReadDataFile("dc:XXX\\XXX.lvl", "XXX_conquest")
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Layers

Post by Grev »

Wait, in n2, does that merge the layers, so that everything in conquest is in base? Or does it make it the same layer?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Layers

Post by Aman/Pinguin »

Grev wrote:Wait, in n2, does that merge the layers, so that everything in conquest is in base? Or does it make it the same layer?
The conquest layer dissappears and the conquest layer stuff is merged into the base layer.
(Note: To put the conquest stuff into the base stuff you have to rightclick on the base layer, if you rightclick on the conquestlayer the base stuff will be merged into the conquest layer.)
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: Layers

Post by Grev »

Wiat, but dont I need a conquest layer?
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Layers

Post by Aman/Pinguin »

Grev wrote:Wait, but dont I need a conquest layer?
You can create a new one.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Layers

Post by [RDH]Zerted »

You could have just loaded both modes:

Code: Select all

ReadDataFile("dc:XXX\\XXX.lvl", "XXX_campaign")
ReadDataFile("dc:XXX\\XXX.lvl", "XXX_conquest")
Just be sure to disable the CPs from Conquest (or anything else from Conquest you don't want) in the Campaign's lua.
Post Reply