The Empire has captured "the" CP

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
Rippentuck

The Empire has captured "the" CP

Post by Rippentuck »

Hi everyone,

Does anyone know if it's possible to remove the word "the" when the game refers to a CP? Like say, if I have a CP called "Echo Point" and the Imperials capture it, I want the sentence "The Empire has captured Echo Point" to appear on the screen, instead of "The Empire has captured _the_ Echo Point."

Is this possible, or it hopelessly buried somewhere deep inside the game's code? I'd like to know if I could have a little more flexibility in the use of names for CPs.


Rip
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: The Empire has captured "the" CP

Post by Leviathan »

If you want to remove the term "the" before a command post's name, you must modify a file named "core.lvl" with an hex-editor. This Level file contains all texts appearing in SWBF's menus, etc...
But once you'll delete this word, all command posts' labels won't have it before their names... But I need to check out that before giving you more informations...
CGArtist

RE: The Empire has captured "the" CP

Post by CGArtist »

I think it might be possible through localization... I was able to change every entry in the menu which pops up when you hit escape. Check the "Tips and Tricks" thread, where PsychoFred has posted a very helpful list of localization strings.
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: The Empire has captured "the" CP

Post by Leviathan »

I think it might be possible through localization...
Yes... After all, "core.lvl" is created from Localization's files...
Rippentuck

Re: RE: The Empire has captured "the" CP

Post by Rippentuck »

CGArtist wrote:I think it might be possible through localization... I was able to change every entry in the menu which pops up when you hit escape. Check the "Tips and Tricks" thread, where PsychoFred has posted a very helpful list of localization strings.

Hey CG,

I did look through that list, and I THINK I found what might have been the CP strings, but how do you actually get into the localization strings to edit them? Can you explain what you did to change your menu entries?

It may be moot for me, since my map is experiencing bizarre technical problems (with 3.5 months of work possibly destroyed), but it would still be good to know.

Rip
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Re: RE: The Empire has captured "the" CP

Post by Leviathan »

Check this paths : "BFBuilder\Data\Localize" and "BFBuilder\Data\_SOURCE_PC\Common\Localize". They contain language files used by Localization Tool. You just need to open them with it or with Note-pad if you know writing in binary...
CGArtist

RE: Re: RE: The Empire has captured "the" CP

Post by CGArtist »

It is very dangerous to open those with a text editor... you must open them with the Localization tool, located on the main bar in BFBuilder.
Rippentuck

RE: Re: RE: The Empire has captured "the" CP

Post by Rippentuck »

Hi Fred,

When you place a CP and name it something like "Echo Point," the game will refer to it (when it has been captured or lost) as "the Echo Point." That is, unless there's something I don't know. If it can be done in Localization, how? Obviously I've tried simply naming it the way I wanted it, but that's why I posted the question about it, because that apparently doesn't work.

Rip
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Leviathan »

It is very dangerous to open those with a text editor...
Not dangerous, just tiring...
Why would open the file the localization tool creates rather than just using the localization tool? That's what it's for. Same with editing core.lvl, why would hack that when all you want to do is affect your level?
I've used hex-editing to change some menus' labels in SWBF's main menu. In effect, Pandemic forgot to place accents and punctuations to certain words and expressions...
Rippentuck

Post by Rippentuck »

Hi Fred,

I'm in Michigan, and bought the game here. I'll check out the localization again, but for whatever reason, I don't know that it's possible through just using the tool.

Rip
Rippentuck

Post by Rippentuck »

Fred,

Looking at your localization strings list, I found the lines that need to be edited. Here's a cut out of the section where it is, relevant lines in red:

game.attractmode.title "Press any button to exit"
game.infomsg.captured "%s captured The %s"
game.infomsg.died "%s died"
game.infomsg.diedkillerwpn "%s killed %s (%s)"
game.infomsg.killed "%s killed %s"
game.infomsg.lost "%s lost The %s"
game.infomsg.suicide "%s killed himself"
game.infomsg.teamkill "%s killed teammate %s"


My only question, then, is where do I find this list in BFBuilder, so that I can delete the word "The" from it? And please give a low-tech answer for us laypersons here. :shock:

And thanks again for rescuing my map from oblivion (see your forum).


Rip
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Leviathan »

I assume you are not in the US since I don't know of any punctuation or grammer on the menus and shell, so you must be referring to something foreign language specific.
Yes, that's right... I've the French SWBF version...
From what I understand they don't always choose the right words for locations and objects as well.
That's also right... I've corrected some of these mistakes using hex-editing but never Localization tool...
Some things are hardcoded, such as era names in some places.
Do you know where are stored era names ?
Rippentuck

Post by Rippentuck »

Hey Fred,

Any word on this?


Rip
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Leviathan »

The era names are in the localization tool but some are hardcoded in the exe.
What do you mean by "hard-coded" ? (Encrypted in hexa-decimal or binary...)
Post Reply