Page 1 of 1

Layers

Posted: Fri Jun 13, 2008 8:53 pm
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?

Re: Layers

Posted: Fri Jun 13, 2008 9:02 pm
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).

Re: Layers

Posted: Sat Jun 14, 2008 3:50 am
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")

Re: Layers

Posted: Sat Jun 14, 2008 10:10 am
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?

Re: Layers

Posted: Sat Jun 14, 2008 10:37 am
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.)

Re: Layers

Posted: Sat Jun 14, 2008 10:46 am
by Grev
Wiat, but dont I need a conquest layer?

Re: Layers

Posted: Sat Jun 14, 2008 11:02 am
by Aman/Pinguin
Grev wrote:Wait, but dont I need a conquest layer?
You can create a new one.

Re: Layers

Posted: Mon Jun 16, 2008 10:40 pm
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.