Planning Connections/Hubs in only one era?

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
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Planning Connections/Hubs in only one era?

Post 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.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Planning Connections/Hubs in only one era?

Post 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.
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: Planning Connections/Hubs in only one era?

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Planning Connections/Hubs in only one era?

Post 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).
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Planning Connections/Hubs in only one era?

Post 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.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: Planning Connections/Hubs in only one era?

Post 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.
Post Reply