User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Mass renaming of the region 'display name'

Tue Jan 22, 2008 7:03 pm

In the rgn files, you get an entry called 'Name'. This is the display name of the region, and is not the entry used to generate aliases for regions (which are tricky to changes, as they are used in many places in the database).

You can safely rename the display name without adverse effect. Problem is that if you want to do some mass renaming, like Aryaman need to do in his Punic War Mod, you would have to open and save thousands of files.

So here is the solution, an utility we did for that:

http://ageoddl.telechargement.fr/latest/RegionsUtil.rar

Operating procedure:

1 - Edit the Regions.XLS of the game of your choice, column B, Name.
2 - Export to CSV
3 - Launch the utility
4 - Indicate the directory where rgn are, and where is the CSV.
5 - Click on Process (the result is almost immediate)


Please note that this column is used to generate the aliases for regions when the database is first created and that you don't want that change necessarly (as this is a bit of a pain to alter regions aliases, when the database is consistent and running correctly). So it is better that you alter these names in a duplicated Regions.xls file, used only to alter this column for the purpose of changing the Display Names.

Last, aliases are never mandatory. You could always use the numerical equivalent of it. So if you prefer, you can use the value 0 instead of $Donegal in NCP eg.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Gray_Lensman
Posts: 497
Joined: Mon Jun 18, 2007 4:04 am
Location: Who is John Galt?

Tue Jan 22, 2008 7:24 pm

deleted

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Tue Jan 22, 2008 8:26 pm

This display name is the real name if you want... the name which will appears everywhere when a reference to the region is given, BUT is not the one used to make the alias.
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
aryaman
Posts: 738
Joined: Thu May 18, 2006 6:19 pm

Fri Jan 25, 2008 4:44 pm

It worked perfectly! All the regions now display the new name

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Fri Jan 25, 2008 6:02 pm

good!
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 8 guests