Log in

View Full Version : New map not working - Stringtable error.



SSJVegetaTrunks
11-26-2008, 19:25
I made a new map, just to see if I could make a very simple one work. It's a 50 by 50 square with some water around it, with two regions: Ay and Bee. The cities are First and Second, respectively.

Someone, PLEASE tell me what's wrong with this.

:help:

It says that it "can't find region name "Ay" in descr_regions.txt, line 7, in the stringtable".

descr_regions_and_settlement_name_lookup.txt:

Ay
First
Bee
Second

descr_regions.txt:

Ay
First
carthage
Libyans
41 233 73
none
5
5
Bee
Second
greek_cities
Libyans
191 143 209
none
5
5

descr_strat.txt:

settlement
{
level city
region Ay

year_founded 0
population 6500
settlement_tax 51
plan_set default_set
faction_creator carthage
building
{
type core_building governors_palace
}
building
{
type equestrian stables
}
building
{
type defenses stone_wall
}
building
{
type barracks militia_barracks
}
building
{
type port_buildings port
}
building
{
type market market
}
building
{
type temple_of_justice temple_of_justice_temple
}
building
{
type hinterland_farms farms
}
building
{
type hinterland_roads roads
}
}

faction greek_cities, comfortable caesar
denari 5000
settlement
{
level city
region Bee

year_founded 0
population 6000
settlement_tax 51
plan_set default_set
faction_creator greek_cities
building
{
type core_building governors_palace
}
building
{
type barracks militia_barracks
}
building
{
type temple_of_victory temple_of_victory_temple
}
building
{
type hinterland_farms farms
}
building
{
type hinterland_roads roads
}
building
{
type defenses stone_wall
}
}


my_campaign_regions_and_settlement_names.txt:

{Ay} Ay
{First} First
{Bee} Bee
{Second} Second

Aradan
11-27-2008, 15:37
Tried adding the last block of code into the imperial_campaign_regions_and_settlement_names.txt and putting it in your modfolder as well (if you're working inside one)?

SSJVegetaTrunks
11-28-2008, 16:22
Nah, I'm not using a modfolder. I'm just editing together a Provincial Campaign.

Perhaps the game can't recognize that that file is for my Provincial Campaign? I don't know...

Squid
11-28-2008, 20:18
Did you change the campaign name at the top of descr_strat?

SSJVegetaTrunks
11-28-2008, 22:21
; campaign file.

campaign my_campaign
playable
greek_cities
carthage
end
unlockable
end
nonplayable
slave
end


start_date -264 summer
end_date 14 summer

brigand_spawn_value 10
pirate_spawn_value 28

I believe that's right.

Makanyane
11-29-2008, 23:43
the most usual problem with this is the
...._regions_and_settlement_names.txt
file

there is a save type / format problem that means if you try and make a new file that looks like old one - or sometimes add bits to old one it doesn't recognise them.

as Aradan said work from old 'imperial_campaign_regions_and_settlement_names.txt'
make a copy of it and re-name it to what you want, then either change the ** bits within the existing
{**} **
format or copy and paste a chunk of those existing bits to the bottom of the file and then change the text within the ** in that area.... (it doesn't matter if you have more regions in that file than exist in the campaign)

I've never figured out why it does that but have had problems lots of times when trying to type in:
{new_thing} new thing

at the bottom or in a new file, unless I do the copy and paste of existing sections into old file.:rolleyes5: