[CLOSED] [REL] 1:1 scale Northern Scandinavia v0.99.5 for 1.28

You can share and discuss other ETS2 map mods here
User avatar
ETS2-User
Developer
Posts: 2960
Joined: 06 Aug 2014 22:34
Location: Oberösterreich

11 Sep 2014 18:24

Maybe one of the devs could confirm my answer, because I haven't tried it myself so far and maybe there's something else you have to do. I just opened the dutch map to see what has been done there. :D
Developer for Austria and Svalbard
Creator of the Radiator Springs mod for ATS
Mods by ETS2-User: Facebook page

Image

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

11 Sep 2014 18:41

To create a new city entry, you first have to create an entry in "def/city.sii" (or city.chris94nor.sii, to avoid conflicts). Then, enter the SII references to the cities like this:

Code: Select all

SiiNunit
{
# For modders: Please do not modify this file if you want to add a new entry. Create in
# this directory a new file "<base_name>.<idofyourmod>.sii" where <base_name> is name of
# base file without the extension (e.g. "city" for "/def/city.sii") and <idofyourmod> is
# some string which is unlikely to conflict with other mod.
#
# Warning: Even if the units are specified in more than one source file, they share the
# same namespace so suffixes or prefixes should be used to avoid conflicts.

@include "city/kolding.sii"
@include "city/esbjerg.sii"

}
Note that all names may NOT contain odd characters like ø or å, only the general alphabet.

After that you have to create a city definition SII. For instance, def/city/kolding.sii looks this:

Code: Select all


city_data: city.kolding
{
	city_name: "Kolding"
	short_city_name: "Kolding"
	city_name_uppercase: "KOLDING"
	country: denmark

#The offset of the placename marker on the map relative to the actual city object.
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0
	map_x_offsets[]: 0

	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0
	map_y_offsets[]: 0

#Here is the brand of the local truck dealer
	vehicle_brands[]: "volvo"


#License plate definition
	 truck_lp_template[]:"01 23 333"

#Definition of possible characters at flag 0
 truck_lp_def0[]:"A"
 truck_lp_def0[]:"B"
 truck_lp_def0[]:"C"
 truck_lp_def0[]:"D"
 truck_lp_def0[]:"E"
 truck_lp_def0[]:"F"
 truck_lp_def0[]:"G"
 truck_lp_def0[]:"H"
 truck_lp_def0[]:"J"
 truck_lp_def0[]:"K"
 truck_lp_def0[]:"L"
 truck_lp_def0[]:"M"
 truck_lp_def0[]:"N"
 truck_lp_def0[]:"O"
 truck_lp_def0[]:"P"
 truck_lp_def0[]:"R"
 truck_lp_def0[]:"S"
 truck_lp_def0[]:"T"
 truck_lp_def0[]:"U"
 truck_lp_def0[]:"V"
 truck_lp_def0[]:"W"
 truck_lp_def0[]:"X"
 truck_lp_def0[]:"Y"
 truck_lp_def0[]:"Z"

#Definition of possible characters at flag 1
 truck_lp_def1[]:"A"
 truck_lp_def1[]:"B"
 truck_lp_def1[]:"C"
 truck_lp_def1[]:"D"
 truck_lp_def1[]:"E"
 truck_lp_def1[]:"F"
 truck_lp_def1[]:"G"
 truck_lp_def1[]:"H"
 truck_lp_def1[]:"J"
 truck_lp_def1[]:"K"
 truck_lp_def1[]:"L"
 truck_lp_def1[]:"M"
 truck_lp_def1[]:"N"
 truck_lp_def1[]:"P"
 truck_lp_def1[]:"R"
 truck_lp_def1[]:"S"
 truck_lp_def1[]:"T"
 truck_lp_def1[]:"U"
 truck_lp_def1[]:"V"
 truck_lp_def1[]:"W"
 truck_lp_def1[]:"X"
 truck_lp_def1[]:"Y"
 truck_lp_def1[]:"Z"

#Definition of possible characters at flag 2
 truck_lp_def2[]:"8"
 truck_lp_def2[]:"9"

#Definition of possible characters at flag 3
 truck_lp_def3[]:"0"
 truck_lp_def3[]:"1"
 truck_lp_def3[]:"2"
 truck_lp_def3[]:"3"
 truck_lp_def3[]:"4"
 truck_lp_def3[]:"5"
 truck_lp_def3[]:"6"
 truck_lp_def3[]:"7"
 truck_lp_def3[]:"8"
 truck_lp_def3[]:"9"
}
Make sure you save this file in UTF-8 text format. Otherwise the game will crash when you use uncommon characters like å, ä, æ, ø or ö. Also, the city_data name may not contain odd characters.

After that, you have to assign the companies to the cities. To do this, add an SII in the subfolder of the company name with the same name as the city SII. For instane, Posped in Kolding is defined by def\company\posped\editor\kolding.sii. The contents of this file looks like this

Code: Select all

SiiNunit
{
#use an unique identifier here
company_def : _nameless.1C03.0037 {
 #reference to the city
 city: kolding
 #reference to the prefab within city limits where this company is assinged to 
 prefab: 33
}

}
I hope this is enough to get you going ;)

Best,
MandelSoft
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
ETS2-User
Developer
Posts: 2960
Joined: 06 Aug 2014 22:34
Location: Oberösterreich

11 Sep 2014 18:48

I wonder what this unique identifier means.
Developer for Austria and Svalbard
Creator of the Radiator Springs mod for ATS
Mods by ETS2-User: Facebook page

Image

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

11 Sep 2014 18:53

It's the eight-digit hexadecimal number after "_nameless". This has to be unique. Fortunately, because it's hexadecimal, you can choose between 4 BILLION unique numbers
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Chris94_NOR
Posts: 1524
Joined: 31 Mar 2014 18:38
Donation rank:
Location: Bodø, Nordland, Norway
Contact:

11 Sep 2014 18:58

MandelSoft wrote:It's the eight-digit hexadecimal number after "_nameless". This has to be unique. Fortunately, because it's hexadecimal, you can choose between 4 BILLION unique numbers
What do i do with the def folder i have created? Do i create it as an scs format?
Is the unique identifier recommended to use?
Developer of ScandinaviaMod ProMods map add-on
- E18 Oslo-Kristiansand(Larvik, Porsgrunn, Skien, Arendal)
- E39 Kristiansand-Stavanger(Stavanger & Kristiansand rebuild)
- E6 Lillehammer-Otta(rebuild)

ScandinaviaMod:
https://promods.net/viewtopic.php?f=37&t=17799

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

11 Sep 2014 19:07

The DEF folder must be packed in an SCS package to be useful.
And yes, you must choose an unique number for this identifier. Otherwise the game can't tell the difference between to different company entries.
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Chris94_NOR
Posts: 1524
Joined: 31 Mar 2014 18:38
Donation rank:
Location: Bodø, Nordland, Norway
Contact:

11 Sep 2014 19:10

MandelSoft wrote:The DEF folder must be packed in an SCS package to be useful.
And yes, you must choose an unique number for this identifier. Otherwise the game can't tell the difference between to different company entries.
Ok, so where do i place the scs package? In the mod folder? Do i have to make the def folder complete before i can test it in my map?
Developer of ScandinaviaMod ProMods map add-on
- E18 Oslo-Kristiansand(Larvik, Porsgrunn, Skien, Arendal)
- E39 Kristiansand-Stavanger(Stavanger & Kristiansand rebuild)
- E6 Lillehammer-Otta(rebuild)

ScandinaviaMod:
https://promods.net/viewtopic.php?f=37&t=17799

User avatar
MandelSoft
Lead Developer
Posts: 3835
Joined: 08 Aug 2013 10:48
Location: Delft [NL]

11 Sep 2014 19:17

The SCS package should be located, as always, in the mod folder in order for the game to recognise it.

You can drive around the map without the DEF entries, but you won't be able to make deliveries or the game will be unable to assign jobs to the companies. This will give some errors, but nothing that immediately crashes the game...
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

User avatar
Chris94_NOR
Posts: 1524
Joined: 31 Mar 2014 18:38
Donation rank:
Location: Bodø, Nordland, Norway
Contact:

11 Sep 2014 19:21

MandelSoft wrote:The SCS package should be located, as always, in the mod folder in order for the game to recognise it.

You can drive around the map without the DEF entries, but you won't be able to make deliveries or the game will be unable to assign jobs to the companies. This will give some errors, but nothing that immediately crashes the game...
But the game is crashing when i am opening the editor, after i added the scs package in the mod folder. I have to add in the editor so it is recognising the city.
Developer of ScandinaviaMod ProMods map add-on
- E18 Oslo-Kristiansand(Larvik, Porsgrunn, Skien, Arendal)
- E39 Kristiansand-Stavanger(Stavanger & Kristiansand rebuild)
- E6 Lillehammer-Otta(rebuild)

ScandinaviaMod:
https://promods.net/viewtopic.php?f=37&t=17799

User avatar
Chris94_NOR
Posts: 1524
Joined: 31 Mar 2014 18:38
Donation rank:
Location: Bodø, Nordland, Norway
Contact:

11 Sep 2014 19:32

game.log

Code: Select all

00:00:03.857 : edit
00:00:03.874 : Mounting extra package: C:/Users/kristoffer/Documents/Euro Truck Simulator 2/mod/NorthernScandinavia-def-v10.scs
00:00:03.876 : [zipfs] NorthernScandinavia-def-v10.scs: read ok, 9 entries [0x17b64b85]
00:00:03.876 : Mounting extra package: C:/Users/kristoffer/Documents/Euro Truck Simulator 2/mod/Test1map.scs
00:00:03.880 : [zipfs] Test1map.scs: read ok, 344 entries [0xe6d0ac8d]
00:00:03.880 : Mounting extra package: C:/Users/kristoffer/Documents/Euro Truck Simulator 2/mod/tzmap.scs
00:00:03.968 : [zipfs] tzmap.scs: read ok, 6982 entries [0x8286a4d1]
00:00:04.050 : [bullet] Starting physics server: Bullet
00:00:04.097 : Loaded trailers: 75
00:00:04.097 : Loading resource server data ....
00:00:04.097 : Loading road data ....
00:00:04.101 : Loading terrain data ....
00:00:04.104 : Loading railing data ....
00:00:04.106 : Loading building data ....
00:00:04.109 : Loading model data ....
00:00:04.122 : Loading prefab data ....
00:00:04.243 : Loading traffic rule data ....
00:00:04.243 : Loading sign data ....
00:00:04.260 : Loading traffic semaphore data ....
00:00:04.261 : Loading traffic signs data ....
00:00:04.262 : Loading vegetation data ....
00:00:04.273 : Loading hinges data ....
00:00:04.274 : Loading stamp data ....
00:00:04.275 : Loading movers data ....
00:00:04.276 : Loading ferry data ....
00:00:04.277 : <ERROR> [unit] File '/def/ferry.northernscandinavia.sii', line 14:
00:00:04.277 : <ERROR> Expecting include file name, found '}'
00:00:04.277 : <ERROR> [unit] File '/def/ferry.northernscandinavia.sii':
00:00:04.277 : <ERROR> Unexpected end of file.
00:00:04.277 : <ERROR> load_filtered_unit_array() - Failed to load units from file (/def/ferry.northernscandinavia.sii)
00:00:04.277 : <ERROR> management\core_resource_server.cpp(672): ?init_full@core_resource_server_u@prism@@UAEXXZ: Data error.
Developer of ScandinaviaMod ProMods map add-on
- E18 Oslo-Kristiansand(Larvik, Porsgrunn, Skien, Arendal)
- E39 Kristiansand-Stavanger(Stavanger & Kristiansand rebuild)
- E6 Lillehammer-Otta(rebuild)

ScandinaviaMod:
https://promods.net/viewtopic.php?f=37&t=17799



Locked

Return to “ETS2 Map mods”

  • Information