Cities: Skylines

Cities: Skylines

405 평점
Custom Namelists
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Mod
파일 크기
게시일
업데이트일
13.824 KB
2017년 12월 15일 오전 2시 32분
2017년 12월 19일 오후 4시 34분
변경 사항 4개 ( 보기 )

다운로드 위해 구독하기
Custom Namelists

설명
Are you bored of building beautiful towns, only to have their districts named "Elm Hills", "Lake Square", "Pine Park" or other generic hogwash? Are you too lazy to go through each road, each building, each cim even, to give them more exciting names?

Then this mod is for you!

Description
The data the game uses to generate the various names for districts, streets, cims and so on are stored in the game's locale files, in which all text that you see in-game is stored together with a certain key. One of these data points is then called a localized string, as in a string of characters localized for a certain language. This is done so that when you want to change the game's language, the developer's only have to add another locale file for the new language, instead of modifying the code of the application itself. Pretty intelligent, huh? But unfortunately it also means, if you want to add your own names for the game to use, when creating new streets and districts, you would have to alter the game files, which is a big no-no for various reasons (breaking stuff, having it overwritten the next time the game is updated or game files are verified ...).

This is where my mod enters the spotlight: It provides a framework for adding custom namelists, XML files that are loaded together with your savegame. The contents of these files are then dynamically added to the loaded locale in-memory, without ever touching the physical locale file.

How to use
On its own, this mod does nothing. To have your names actually appear in game you have to create a namelist: Simply open up a text editor, write your namelist (be careful to adhere to correct XML syntax) and save it in your local mod directory, found in "C:\Users\<username>\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\YourLocalModNameHere" under Windows. Replace the "YourLocalModNameHere" part with the name of your local mod.

The actual contents of the namelist look like a normal XML file with the following structure:

<?xml version="1.0" encoding="utf-8"?>
<NameList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Namelist Name">
<strings>
<LocalizedString identifier="IDENTIFIER" key="key">String</LocalizedString>
</strings>
</NameList>

Of note are the identifier and key attributes of the LocalizedString tag: They identifiy what text in the locale they should replace. The streetnames, for example, are generated through a pattern that may use person names, which are generated from other locale strings themselves. To add more street name patterns, simply add a localized string to the namelist:

<LocalizedString identifier="STREET_NAME_PATTERN" key="">Fifth Avenue</LocalizedString>

Some streets will now be called "Fifth Avenue" when they are created. Note that not all localized strings need a key; keys serve to further identify a subgroup of an identifier as seen in the following example:

<LocalizedString identifier="BUILDING_NAME" key="Eco Commercial 1x1 02">Ye Olde Eco Shoppe</LocalizedString>

This localized string adds the building name "Ye Olde Eco Shoppe", given to eco commercial buildings.

Blacklists
You may have noticed I only talked about adding names so far. I have done so, since, as per default, the in-memory locale is not overwritten, because the way Cities Skyline's locale works is that if there already is a localized string with the same identifier and key, any strings you add are given a numerical index and used in conjuction with other's sharing the same identifier and key. Whenever the game then needs a string, it fetches one of these at random, making it possible to have different road naming patterns, example given.

So if you want only your own street names to appear, you'll have to create a blacklist. A blacklist simply lists the identifier-key combinations that are removed from the in-memory locale, before strings from custom namelists are added. I have not simply blacklisted all these combinations preemptively, as this would lead to your game displaying no (meaningful) text whatsoever!

Example Namelist
Download the Vienna Namelist for a practical example how to make your own namelists! Simply subscribe to it and then search for ".namelist" and ".blacklist" in your Cities Skylines steamapp directory.

See the github repo[github.com] for source code and example files. EDIT: After a longer hiatus, I want to add that if somebody wants to improve upon the mod, they are free to fork the repo and publish their mod - I might come back to see if I can make any improvements myself, but since I play CS pretty irregulary, I can't make any promises ;)

Mods using this Framework
Besides the earlier mentioned Vienna Namelist I made myself, some other people have created their own namelists:
Custom Names Lists by Ilion (special thanks to him, btw. for being so helpful in the comments)
Bayreuther Straßen- und Stadtteilliste by Viss Valdyr
CNL Blank Road Name by stmSantana
Central Asian Names by alborzka
인기 토론 모두 보기(2)
8
2022년 10월 12일 오후 11시 06분
a little help with distring naming?
Snakitch
5
2022년 5월 26일 오전 11시 52분
Default names list
Witchberry
댓글 98
Watermelon! 2024년 4월 13일 오후 12시 45분 
Last year i was working in a namelist mod, showcasing mexican/spanish names with logical and realistic names for industry, commerce and residential, also sims were included as well. As a matter of fact i had over 70% progress with the mod, but i cancelled it all when i realised there was this language problem with roads.

In English, when you start naming a road you start with "NAME + TYPE OF ROAD" for example: "Crisps street" or "Biden boulevard". IDK.

In spanish, when you start naming a road, you must(For logic language reasons) start with "TYPE OF ROAD + NAME" for example:
"Calle Juanito" or "Avenida de Miguel Hidalgo"

So in the .txt code, when i changed the name of the types of roads and names that automatically set up in-game, the road names don't look natural or logical. So i stopped doing the mod.
"Juanito calle" don't look natural, neither "Miguel Hidalgo Avenida".

Still, i wish there was a way to fix that.
-:gin_watermelon:
Witchberry 2023년 12월 6일 오후 2시 55분 
@williamgg209 what issue though? I never really had any issue with it.
williamg209 2023년 11월 20일 오전 11시 32분 
skye says this mod can cause issues
Khorvidae 2023년 4월 21일 오전 7시 49분 
Is there a way to change the way Residents are named to remove the "The x Resident?"
Witchberry 2023년 4월 6일 오후 2시 52분 
Here's the sneak peek of my edits in VCS , these are two separate files. [imgur.com] I'm only using one version at a time either it's Korean names or Indonesian names. After editing those, I copied those namelist files to the mod's location (\SteamLibrary\steamapps\workshop\content\255710\1299863509) and overwrite the original namelist files.

Another notice, please remember to have backup copies somewhere else as they will be overwritten with the original Japanese names from the mod I've mentioned everytime you do a "Verify Integrity of Game Files".

I apologize if my method is unethical.
Witchberry 2023년 4월 6일 오후 2시 38분 
@Baronryder : I don't really know the "right and legal" way to do it, but the way I did it is using this CNL Japanese Localization Name Lists as a renaming base for this mod, and then edit the namelist files in Notepad, Visual Code Studio, or any text editing app you prefer. I've made Korean (romanized) and Indonesian names using that method, but exactly because that's the methode I used, I don't dare to share them.
Baronryder 2023년 4월 6일 오후 12시 16분 
Is there any way to rename the settable buildings as well?
For example, the name for the prison or the names modded buildings.
Sepone 2023년 1월 2일 오전 7시 52분 
@Dire Wombat I've just installed 'Custom Namelists' and 'Germanize: Road & District Names', activated both in the game's mod-menu and then clicked the 'Apply' button in Custom Namelists Options. Works like a charm, I have german road names all over the place. Hope that helps. :reexcited:
Dire Wombat 2022년 9월 19일 오후 7시 41분 
I'm curious if anyone has been able to get this to work - I've followed the instructions 10x (using Ilion's namelist templates) and am still just getting the default names for everything.
Witchberry 2022년 9월 17일 오후 11시 48분 
Does anybody have a tutorial on this?
Currently, and for a whole year, I've been using CNL Japanese Localization Name Lists as a base to create name lists for this mod, and since I've been using that method, I refrained from sharing those created name lists.