Page 1 of 2

How to make a new city

Posted: 19 Sep 2018 14:21
by Euro Trucker 2017
How can I make a new city? Like adding a new one like Utrecht and so on

Re: How to make a new city

Posted: 19 Sep 2018 15:09
by scan720
You need to make an sii file, to make a new (functional) city.

Best Regards
scan720

Re: How to make a new city

Posted: 19 Sep 2018 16:14
by Topolino
What exactly do you mean? I see three different meanings in your question:
  • How to define a city?
  • How to add a city in the editor?
  • How to build a city?

Re: How to make a new city

Posted: 19 Sep 2018 20:11
by Euro Trucker 2017
^ how to define a city

Re: How to make a new city

Posted: 19 Sep 2018 20:49
by Topolino
In path /def, you can create a SII file which shows which cities your mod contains.

Example file name: city.sar.sii
Example content:

Code: Select all

SiiNunit
{
@include "city/cagliari.sii"
@include "city/olbia.sii"
@include "city/oristano.sii"
@include "city/posada.sii"
@include "city/orotelli.sii"
}
then you create the city defs that are pointed to in the file above – example cagliari.sii

Code: Select all

city_data: city.cagliari
{
	city_name: "Cagliari"  #name displayed on the world map
	short_city_name: "Cagliari" #name displayed as destination of the cargo in UI
	city_name_uppercase: "CAGLIARI" #name displayed when discovering
	country: italy

	map_x_offsets[]: -50 #location (shift) of the city name on the world map in different zooms (x direction)
	map_x_offsets[]: -50
	map_x_offsets[]: -50
	map_x_offsets[]: -50
	map_x_offsets[]: -50
	map_x_offsets[]: -50
	map_x_offsets[]: -50
	map_x_offsets[]: -50

	map_y_offsets[]: -30 #location (shift) of the city name on the world map in different zooms (y direction)
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	map_y_offsets[]: -30
	
	vehicle_brands[]: "volvo" #truck dealer brand

	truck_lp_template[]:"00 11200   " 

	truck_lp_def0[]:"G" #something about templates which I don’t know
	truck_lp_def0[]:"H"
	truck_lp_def0[]:"J"

	truck_lp_def1[]:"0"
	truck_lp_def1[]:"1"
	truck_lp_def1[]:"2"
	truck_lp_def1[]:"3"
	truck_lp_def1[]:"4"
	truck_lp_def1[]:"5"
	truck_lp_def1[]:"6"
	truck_lp_def1[]:"7"
	truck_lp_def1[]:"8"
	truck_lp_def1[]:"9"
	
	truck_lp_def2[]:"5"
	truck_lp_def2[]:"6"
	truck_lp_def2[]:"7"
	truck_lp_def2[]:"8"
	truck_lp_def2[]:"9"

}

Re: How to make a new city

Posted: 20 Sep 2018 09:42
by Euro Trucker 2017
And how can I make an sii file?

Re: How to make a new city

Posted: 20 Sep 2018 10:45
by Chris94_NOR
When you save a textfile, you put in .sii front of the name you call the file. It then saves it in sii format

Re: How to make a new city

Posted: 20 Sep 2018 11:45
by Euro Trucker 2017
Can u send me the sii files? Then i can change the city name and put it in

Re: How to make a new city

Posted: 20 Sep 2018 11:51
by Davyddin
Topolino already provided you with examples. If you need more, you can simply extract the game files.

Re: How to make a new city

Posted: 20 Sep 2018 11:57
by Euro Trucker 2017
yes but if i save it like city.sii it wont save as a sii file