Command Post Problems

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
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Command Post Problems

Post by MidnightSpirit »

Ya I am sorry for all the questions but I have been waiting a long time to ask these.
Now I am having some problems with my command posts. I am using Fierfek's Star wars Battlefront Modding tutorial 3.5. I have placed command posts as instructed before and they work fine. this time I added to (not that it should make a difference) and do as instructed.
Hidden/Spoiler:
[quote]Fierfek's Tutorial

This is the LUA file. This is what makes the game work. There are 2 parts we need to change. The first is this:

--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}

Here, you need to add one more line. Copy the last line, so now you have this.

--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp4 = CommandPost:New{name = "cp4"}

In the last line, change the cp4’s to cp5. So now, you end up with this:

--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}

This tells the game how many command posts are there. You need to do this in all 4 files listed. There is one other part. Scroll down until you find:

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

This adds the command posts to the objective, so that you need to capture all of them to win. As in the last one, copy the last line, and change to cp5. This is what you end up with:

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)

Now your command post is added
[/quote]
I did that mine basically looks like this though
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
_________________________________________________________________________________

So I munge in build (changing nothing so just common is munged) Then I run the map in battlefront 2 but i can't capture command post 6 and command post 5 is Team 2 not Team 0 (neutral obviously).
The rest of the command posts which i moved and such work fine, i was very careful making the cps so all thew correct labels are in place as instructed by Fierfek.

Off Topic: Should i just have one topic for questions or keep asking individually?
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Command Post Problems

Post by yuke5 »

Have you added the correct regions and paths? And have you lowered them so that they sink into the ground?
Some advice:
Hidden/Spoiler:
If I were you I would really just read the documentation, otherwise a lot of modders might be aggravated if you keep on asking questions like this and you haven't given the documentation a shot. You also might want to check out the "all you need to know thread". forums/viewtopic.php?f=27&t=13806 Happy modding :D
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Command Post Problems

Post by AQT »

MidnightSpirit wrote:Off Topic: Should i just have one topic for questions or keep asking individually?
I would simply keep them in the same topic for your sake.

And to add to yuke5's suggestion about reading the shipped documentation, please also look through The FAQ / Everything You Need Thread for your answers before asking for help. Another good idea would be to use the forum's Search function.

One other thing: Don't rely on Fierfek's tutorial so much; use it merely as a guide with supplementation from the other resources mentioned to you. If you don't, then you're just going to end up asking more questions.
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Command Post Problems

Post by MidnightSpirit »

Well I apologize if i aggravated anybody. I realize the rotation question was an easy fix, I have read all of the documentations besides the animation and space map. I understand things more but this command post thing isn't answered there.
The Command post is in the ground and everything, it appears like any other command post. If all else fails I will just remake the command post and see if the problem continues.

Edit: Thanks for the link i just checked out what it is (basically) if I have any problems in the future (I will I assure you) I will check out if my problem can be answered there and then if it isn't I will ask it here thanks!
Yay! I was hoping to find something like this http://www.gametoast.com/forums/viewtop ... 64&t=12029 especially since i was planning on making a campaign for maps.
Lol this was a very interesting thing to discover.
Believe it or not i have an inquiry for further use of this program.
Hidden/Spoiler:
[quote]Skip/staff edit
Mission Scripter exports scripts with "con" instead of "conquest", like this for example:
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_con")
You'll have to fix this yourself, the above example should be:
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_conquest")
unless you actually made a layer called "con" then it doesn't exist, it's meant to be "conquest". [/quote]
So if the program uses the conquest layer for the campaign then that eliminates you conquest mode. So, can't this be edited to use a different game-mode for campaign and if that isn't possible and you want conquest mode would you have to make a different map or what?
I believe that is a legit question because i cannot find the answer in Zero Editor Documentations.
Post Reply