Transport Fever

Transport Fever

View Stats:
BoiPolar Mar 2, 2017 @ 3:05am
Creating Custom City Names
Can Someone Explain Me Each And Every Step I Need To Take To Change The Names Of The Cities And Streets

I want to change all the names

I want to have Indian Cities Names

P.S. I would also like to upload it to the Workshop, So Please explain how to do it too.
Last edited by BoiPolar; Mar 2, 2017 @ 3:07am
Originally posted by ErstO:
Originally posted by The Bipolar Guy:
tried that, but no help
can u explain the steps?


This probably should be in the modding discussions, but I’ll try to be brief,
but thats hard for me ;-)

subscribe to one of the existing town name mods, locate it in the games workshop folder and copy to the desktop.

inside you will see the file “mod.lua” thats a text file, edit that with your information, names, description so on

then further in the file system you will see 2 more .lua files
“streets.lua” and “towns.lua”
these are also txt files, thats were you put your Indian Cities Names, and Indian street names.

now make sure the text editor you use keeps the UTF-8 encoding or your mod will not work, also make sure you keep the original file system. If you use windows PSPad can do this and it's freeware.

To test your mod don't put it in the same place as the workshop folders, it goes in the "\mod" folder and make sure you rename your mod folder, not sure if you still need to put the _1 behind the name, that was required in Train Fever. so an example is “\bipolartowns_1”

If your mod works you need to copy it over into a different folder to upload it to Steam.

You can start with this info then ask questions as you dig into it. town name mods seem to be one of the more simple mods I have looked into.

The key here is to learn from others, look at the existing mods that modify town names, then ask pinpoint questions, figuring it out is almost a game in itself.
< >
Showing 1-15 of 16 comments
Cibaris Mar 2, 2017 @ 4:55am 
Click on Town name on map (white text) or in list bottom lh corner. There is a pencil,at the end of the town name. Click pencil. you need to delete the current town name in the box by backspace. After changing name press enter. Click on bus stop and you will see same pencil and also depots, stations etc. cant directly change street names. but you dont need to if you change bus tram stop names
genemead Mar 2, 2017 @ 5:45am 
BTW, it's best to change the city names before you do anything. That way stations, etc. will be "New Name Station" instead of "Old Name Station", and Lines you create will be from "New Name" Station instead of "Old Name" Station.
Miro277 Mar 2, 2017 @ 5:53am 
I think the OP wants to change the game file that the game is using as a pool of names when generating a new map, so the towns will already be named as desired. Unfortunately i don't know which one it is, saw someone mentioning it on the forum though, so It's possible probably.
BoiPolar Mar 2, 2017 @ 6:00am 
Originally posted by miro277:
I think the OP wants to change the game file that the game is using as a pool of names when generating a new map, so the towns will already be named as desired. Unfortunately i don't know which one it is, saw someone mentioning it on the forum though, so It's possible probably.
Yes, He/She Is Right.
And I am Completely A NOOB At These
So Can Anyone Help?
Cibaris Mar 2, 2017 @ 7:35am 
You cant change to Indian. You can change town names for entire map various languages Italian,German, English,Korean, Spanish etc by going to Free Game > Create a new game > Advanced and down bottom of dialogue box there is a selection called town names
ErstO Mar 2, 2017 @ 7:57am 
Yes you can create a mod that will generate a new map with Indian city names, there are a number of mods already out that do this for other regions. “Danish Towns and Street names” is one that come to mind.

Just get one of these mods and look at the .lua files to see how everyone else is doing it and then you can create your own mod.

Have fun and good luck.
Karoti Mar 2, 2017 @ 8:17am 
You don't need a mod. To add any country's town names permanantly, do the following. You need the folder ...steam/steamapps/common/transport fever/res/config. Now with a clean text editor (not MS Word), edit base_mod.lua. Within the list of countries you see there add the line { "india", _("Indian") }, somewhere in the middle of the list (Include the end comma and curly brackets). Save the file and open the folder named 'name'. Create a new folder, call it the two letter country code, in your case 'in' then copy the two files towns.lua and streets.lua from one of the other countrys and edit them accordingly with India towns and streets. One more thing, copy your 'in' folder to the name2 folder and rename 'in' to 'india' then within that folder create a new folder named 'en' and put your town.lua and street.lua into that folder.. The option to choose India should now be under the Advanced Game Button. Normal disclaimers apply, but if all goes horribly wrong you can verify your game files in Steam and all will be put back to default. Hope this helps.
Last edited by Karoti; Mar 2, 2017 @ 8:48am
BoiPolar Mar 3, 2017 @ 1:08am 
Originally posted by Karoti:
You don't need a mod. To add any country's town names permanantly, do the following. You need the folder ...steam/steamapps/common/transport fever/res/config. Now with a clean text editor (not MS Word), edit base_mod.lua. Within the list of countries you see there add the line { "india", _("Indian") }, somewhere in the middle of the list (Include the end comma and curly brackets). Save the file and open the folder named 'name'. Create a new folder, call it the two letter country code, in your case 'in' then copy the two files towns.lua and streets.lua from one of the other countrys and edit them accordingly with India towns and streets. One more thing, copy your 'in' folder to the name2 folder and rename 'in' to 'india' then within that folder create a new folder named 'en' and put your town.lua and street.lua into that folder.. The option to choose India should now be under the Advanced Game Button. Normal disclaimers apply, but if all goes horribly wrong you can verify your game files in Steam and all will be put back to default. Hope this helps.
thanks a lot, trying it now!
btw, how to make it a mod and upload it?
BoiPolar Mar 3, 2017 @ 1:09am 
Originally posted by ErstO:
Yes you can create a mod that will generate a new map with Indian city names, there are a number of mods already out that do this for other regions. “Danish Towns and Street names” is one that come to mind.

Just get one of these mods and look at the .lua files to see how everyone else is doing it and then you can create your own mod.

Have fun and good luck.

tried that, but no help
can u explain the steps?
BoiPolar Mar 3, 2017 @ 1:10am 
Originally posted by Cibaris:
You cant change to Indian. You can change town names for entire map various languages Italian,German, English,Korean, Spanish etc by going to Free Game > Create a new game > Advanced and down bottom of dialogue box there is a selection called town names
sir, there is no such "Indian" Language
BoiPolar Mar 3, 2017 @ 2:06am 
Originally posted by Karoti:
You don't need a mod. To add any country's town names permanantly, do the following. You need the folder ...steam/steamapps/common/transport fever/res/config. Now with a clean text editor (not MS Word), edit base_mod.lua. Within the list of countries you see there add the line { "india", _("Indian") }, somewhere in the middle of the list (Include the end comma and curly brackets). Save the file and open the folder named 'name'. Create a new folder, call it the two letter country code, in your case 'in' then copy the two files towns.lua and streets.lua from one of the other countrys and edit them accordingly with India towns and streets. One more thing, copy your 'in' folder to the name2 folder and rename 'in' to 'india' then within that folder create a new folder named 'en' and put your town.lua and street.lua into that folder.. The option to choose India should now be under the Advanced Game Button. Normal disclaimers apply, but if all goes horribly wrong you can verify your game files in Steam and all will be put back to default. Hope this helps.
Can U Plz Explain The "default" in "namelist"?
The author of this thread has indicated that this post answers the original topic.
ErstO Mar 3, 2017 @ 6:45pm 
Originally posted by The Bipolar Guy:
tried that, but no help
can u explain the steps?


This probably should be in the modding discussions, but I’ll try to be brief,
but thats hard for me ;-)

subscribe to one of the existing town name mods, locate it in the games workshop folder and copy to the desktop.

inside you will see the file “mod.lua” thats a text file, edit that with your information, names, description so on

then further in the file system you will see 2 more .lua files
“streets.lua” and “towns.lua”
these are also txt files, thats were you put your Indian Cities Names, and Indian street names.

now make sure the text editor you use keeps the UTF-8 encoding or your mod will not work, also make sure you keep the original file system. If you use windows PSPad can do this and it's freeware.

To test your mod don't put it in the same place as the workshop folders, it goes in the "\mod" folder and make sure you rename your mod folder, not sure if you still need to put the _1 behind the name, that was required in Train Fever. so an example is “\bipolartowns_1”

If your mod works you need to copy it over into a different folder to upload it to Steam.

You can start with this info then ask questions as you dig into it. town name mods seem to be one of the more simple mods I have looked into.

The key here is to learn from others, look at the existing mods that modify town names, then ask pinpoint questions, figuring it out is almost a game in itself.
BoiPolar Feb 16, 2019 @ 12:47am 
Thanks to all of you guys and 2 years of learning C++, I finally made the mod i wanted to.
Here's the Link: https://steamcommunity.com/sharedfiles/filedetails/?id=1656912426
RabbitRidge Feb 16, 2019 @ 12:58am 
You spent 2 years working on renaming street names?
BoiPolar Feb 16, 2019 @ 3:48am 
Originally posted by RabbitRidge:
You spent 2 years working on renaming street names?

Not exactly.
When I started this discussion, I had no knowledge of coding at all. So whatever they said, didn't make any sense to me at that time.
I learnt C++ in school for the past two years.
Then, few days back, I remembered about this post. So I set off trying to make it. Since there were no tutorials, then and even now... I had to use my Coding Knowledge, Google and of-course this discussion thread to teach myself how to make a mod and publish it.
< >
Showing 1-15 of 16 comments
Per page: 1530 50

Date Posted: Mar 2, 2017 @ 3:05am
Posts: 16