Community Forum

Change a Station Name

Forum Overview >> Editor

CategoryEditor
Created24.03.2017 00:20


Anthony Queen (tqueen113) 24.03.2017 00:22
Is it possible to change the name of a sales point ex: Mary's Farm to My Farm?

Thanks!

Emil Drefers (Unknown) 24.03.2017 07:23
Hi,

yes.

First approach:

Check out the file "map01.xml"
Find the right tipTrigger element
e.g. <tipTrigger index="FARMER_1" stationName="station_farmer1GCV"
by comparing the value for "index" with the value of the userAttribute "index" from your tipTrigger in the map.i3d

You can now replace the value for stationName in the xml file with a new string.
e.g. station_myNewTipTrigger

Finally, you should insert a l10n entry in your modDesc.xml to present the actual string/name


Second approach: just add an user attribute to the tipTrigger in your map.i3d
type: string
name: stationName
value: myNewTipTrigger


Cheers,
Emil

Anthony Queen (tqueen113) 24.03.2017 11:33
Thank you Emil, but I am kind of new at this and not sure how to do the part in modDesc.xml. would it be something like this

<text name="FARMER_2">
<en>My Farm</en>
</text>
Thanks!
Tony

Emil Drefers (Unknown) 27.03.2017 07:11
Hi,

jap, but pretty much.
Just to make sure:

<l10n>
<text name="FARMER_100">
<en>Farmer 100</en>
<de>Bauer 100</de>
<fr>Paysan 100</fr>
</text>
</l10n>

Cheers,
Emil


Note: Log in to post. Create a new account here.