Command Post name change (e.g., changing "cp1" to "Outpost")

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
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Superm9 »

Ok, I don't know if this has been mentioned/addressed somewhere else (if so, please forgive me! :bowdown: )

I am wondering if it is possible to change the command post names to something besides cp1, cp2, etc. For example, in SWBF 1, the cp's had names like "Reactor" or "Hallway"; I'm looking for something like that. I tried messing around with it in ZE and the lua, but I always either achieved a crash, or no ai spawning in... :runaway:

Any help would be appreciated. :)
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by destos »

http://www.gametoast.com/forums/viewtop ... =27&t=7972

there ya go.... it was in the everything u need thread.....
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Aman/Pinguin »

destos wrote:http://www.gametoast.com/forums/viewtop ... =27&t=7972

there ya go.... it was in the everything u need thread.....
That doesn't have anything to do with his question.
User avatar
Superm9
Second Lance Corporal
Second Lance Corporal
Posts: 104
Joined: Thu Aug 23, 2007 8:41 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Superm9 »

I already read that tut, but it didn't mention changing the names.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Maveritchell »

Aman/Pinguin wrote:
destos wrote:http://www.gametoast.com/forums/viewtop ... =27&t=7972

there ya go.... it was in the everything u need thread.....
That doesn't have anything to do with his question.
Superm9 wrote:I already read that tut, but it didn't mention changing the names.
Then did we read the same tutorial or do I have a gross misunderstanding of what you're trying to do?

Because that tutorial tells you exactly how to make CP messages pop up saying "CIS has captured the etc..." whenever teams capture or lose a post, and that would be the only time you'd be able to see any names for a command post.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Fluffy_the_ic »

Well, there was never an outcome posted in that topic, so does that mean it didnt work?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Maveritchell »

That's the right way to do it. I can't say for sure if that exact code worked, but they're in essence posting everything you need to do it.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by RogueKnight »

I think what he means is that he wants to change the ACTUAL cp name, not the sound effects. He wants it to say "Outpost" on the map instead of cp1.
User avatar
Soulshard
Recruit Womprat Killer
Posts: 11
Joined: Thu Dec 04, 2008 9:33 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Soulshard »

Superm9 wrote:in SWBF 1, the cp's had names like "Reactor" or "Hallway"; I'm looking for something like that.
Never played SWBF 1, if you just want to rename command posts names, just like weapons or characters, can't you just use localizing tools?
DarthRogueKnight wrote:I think what he means is that he wants to change the ACTUAL cp name
I thought exactly the same.
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Command Post name change (e.g., changing "cp1" to "Outpost")

Post by Aman/Pinguin »

Soulshard wrote:
DarthRogueKnight wrote:I think what he means is that he wants to change the ACTUAL cp name
I thought exactly the same.
Same.



For the CP Messages use this code (change the things which are marked) and don't forget to localize it.
Hidden/Spoiler:
OnFinishCaptureTeam(
function(cPost)
local pName = GetEntityName(cPost)

ShowMessageText("level.MODID." .. pName .. "_TEAMNAME")
end,
TEAMNUMBER
)
This will detect every CP-capture. If the CP which has (in ZE) the name "cp2" gets captured, the game will search for this localize string:

(Teamnumber will be 2 in this example and the teamname cis. 3-Letter-Name (MODID) is XYZ here.)

Code: Select all

level.XYZ.cp2_cis
Post Reply