Map question

If you can create maps, why not help the Ogam team I'm sure your efforts will make a difference. Enter your map at the competition and it could be added.
 
Sorry to bump an old thread, but is there a way to edit the .lhts files to add new strings to it?

I tried using the specifications at http://wiki.planetblackandwhite.gamespy.com/PBnWModdingWIKI/index.php/Text_Database but it didn't work, just crashes the compiler before it finishes.  Or can I add a custom name to a town without adding it there first?
 
Try using "say".

3.30.2.2 say string
When developing a script it is useful to have a text out function to debug or put in temp text until the script has been scripted.

say "This is a temp string"
say single line "HELP_TEXT_BLAH" by MyVillager

To add a name to a town, you need to edit the .bwe file for that map and add the following for each town.
Code:
SET_TOWN_NAME(0, "BW2T_PLACENAMES_JAPANESECITY_24")

The first number is the town number and a list of the names can be found in the bw2text.lhts file. See attached. It's a .lhts viewer written by Dero . You also might be able edit strings with it. Never tried editing with it myself but it does allow you to view the available town names.
 
Yeah, that's what I'm looking for.

Still trying to get the name to appear in-game, though.  Do I call "SET_TOWN_NAME" just after the CREATE_TOWN line?

Edit: There's no reason to edit bw2text.bin, right? (I tried changing the name of the lhts and it wouldn't work without changing the .bin to the same prefix.)  The lhts saved and works, but I can't seem to add the name.

This doesn't seem to work.  Gonna try displaying the message in the script to see if it works there.

CREATE_TOWN(1, "2145.26,1429.66", "PLAYER_ONE", "GREEK")
SET_TOWN_NAME(1, "A_CITYNAME_JYOU_02")

(I changed the name to A_CITY_JYOU_ so I could find it faster :(  ... and Jyou is my name, so don't ask xD)

Edit again: This is weird.  I saved the lhts successfully but it doesn't load with the script, instead the default loads.  I set it using the -dbfile switch when compiling, like in the example.
 
Yes, it needs to be named after being created.

Unless you can edit the .lhts file you can't change the names. You must use the same name and format as is in the .lhts file "BW2T_PLACENAMES_JAPANESECITY_24"
 
WEll, it lets me add names, but I couldn't get it to work.  So I tried editing existing names (and I checekd, and they were edited) but the old ones still showed up in-game.  WHich makes me think there's more to it than that :(
 
The names could be in the bin file and the .lhts file is just used for referance. Possible for language purposes.
 
Back
Top