Page 1 of 1
Planning Connections/Hubs in only one era?
Posted: Sat Jul 04, 2009 8:49 pm
by elfie
Hey, got a question. I'm trying to find the lua code for getting rid of connections and hubs for one era, while keeping them in another era. In other words, I want to have a different planning scheme for each era pretty much.
I was looking through the stock scripts and found this in the hoth campaign:
Code: Select all
BlockPlanningGraphArcs("echobase")
I did find a connection called "echobase" in hot.wld in ZE also. I'm not sure if this is the right code, or how to find out what the connection is called I want to remove from the other era.
I'd appreciate any help on this and thanks in advance.
Re: Planning Connections/Hubs in only one era?
Posted: Sat Jul 04, 2009 8:55 pm
by bobfinkl
Yes that's the correct code, and it is possible to do so. But be warned totally unique planning for each era would take extreme amounts of time to do.
Re: Planning Connections/Hubs in only one era?
Posted: Sat Jul 04, 2009 11:27 pm
by [RDH]Zerted
One thing you can do is put the connections and hubs in different layers. Then use ZeroEdit to configure which layers show up in which eras.
Re: Planning Connections/Hubs in only one era?
Posted: Sun Jul 05, 2009 12:54 am
by Maveritchell
[RDH]Zerted wrote:One thing you can do is put the connections and hubs in different layers. Then use ZeroEdit to configure which layers show up in which eras.
Planning transcends layers, which is why they have the code above. By-the-layer planning cannot be done (unless you are specifically loading different munged .lvl files in the .lua).
Re: Planning Connections/Hubs in only one era?
Posted: Mon Jul 06, 2009 4:05 pm
by MercuryNoodles
Doesn't planning transcend layers only if you're using the world's main plan file (ie. ABC.pln)? I'm working with planning that so far seems to be era-specific, and I'm not using separate lvl files. All that seems to be necessary is a plan file with a unique name that's referenced in the layer's mrq file. So long as the world's main pln file is empty, or only holds data for universally used planning, the game should be able to keep them separate, according to what I've experienced so far.
Re: Planning Connections/Hubs in only one era?
Posted: Mon Jul 06, 2009 6:43 pm
by elfie
MercuryNoodles wrote:Doesn't planning transcend layers only if you're using the world's main plan file (ie. ABC.pln)? I'm working with planning that so far seems to be era-specific, and I'm not using separate lvl files. All that seems to be necessary is a plan file with a unique name that's referenced in the layer's mrq file. So long as the world's main pln file is empty, or only holds data for universally used planning, the game should be able to keep them separate, according to what I've experienced so far.
Really? That's good to know. I'll try both and see which one works the best. Thanks to all for the help.