Adding new city problem.

Modding school: Learn it from the masters
Post Reply
kmikiwi
Posts: 7
Joined: 02 Feb 2016 04:31

02 Feb 2016 04:47

Hi there! I'm new here and I hope can find some help from your experience and can contribute to the comunity...

First! congrats for your work, is awesome! :D

Well, today I need some help, I'm just in practice with the editor and I think I'm fine with it, at the moment I'm trying to add a new city to the ets2 map, I have this code for a file called "city.count.sii"
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/bota.sii"
}
and the folder "city" with the file bota.sii

This is under def folder... but at the moment to export to the editor the city doesn't appear in the drop menu to choose it ... just the default cities...

I've the last version steam of the game..... I hope you can guide me through the correct process....

Thanks!

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

02 Feb 2016 13:13

Have you packed this def file in the right file structure?
Have you placed this pack in the mods folder?
Are there no errors in the log?
Your daily dose of wisdom!
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

kmikiwi
Posts: 7
Joined: 02 Feb 2016 04:31

02 Feb 2016 16:56

Hi, thanks for answer! well, after check a lot of times I found what you said; the folder of city was wrong and was ciity hehehe so I changed and the city appear on the drop menu... I put the city, adjust H and W to the size city, add the traffic area and rebuild and save the map.... load the game, choose new profile and change in module europe by count map... Then it ask me for choose a city for begin and I choose my city bota. ask for make tutorial, I say no and then it try to load the map and crashes... I tested it with a city name standard of the game, for example Berlin, and it works, but with my custom city it crash, bota.sii is under city folder.... maybe my city file bota.sii is wrong? I check it but I think its ok.... well there are a lot of parameters and maybe thats the problem..
city_data: city.bota
{
city_name: "Bota"
short_city_name: "Bota"
city_name_uppercase: "BOTA"
country: germany

map_x_offsets[]: 0
map_x_offsets[]: 0
map_x_offsets[]: 0
map_x_offsets[]: -3
map_x_offsets[]: -44
map_x_offsets[]: -40
map_x_offsets[]: -40
map_x_offsets[]: -41

map_y_offsets[]: 0
map_y_offsets[]: 0
map_y_offsets[]: 35
map_y_offsets[]: -8
map_y_offsets[]: -32
map_y_offsets[]: -39
map_y_offsets[]: -27
map_y_offsets[]: -26

vehicle_brands[]: "scania"

truck_lp_template[]: "S02 111"

truck_lp_def0[]:"U"
truck_lp_def0[]:"V"
truck_lp_def0[]:"W"

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[]:"O"
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_def2[]:"62"

}
Thank you very much for your time and support! ;)

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

02 Feb 2016 17:06

You need at least a garage and 2 companies nearby to be able to start in your city.
Developer for Austria and Svalbard
Creator of the Radiator Springs mod for ATS
Mods by ETS2-User: Facebook page

Image

kmikiwi
Posts: 7
Joined: 02 Feb 2016 04:31

04 Feb 2016 04:11

Yup!! that was the problem, I had only 1 company on the city, now it works, thank you so much!!

Can I ask if you know how to define the limits of a country?? In the country.sii file, there is a line:
pos:(14940, 0, 18780)
Maybe I can define it like the center of where is the country on the map right? buy how to define the size or the border of the country?

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

09 Feb 2016 22:41

You can just take some coordinates in the country, preferably in the center. And you don't have to define the size of the border :ugeek:
Developer for Austria and Svalbard
Creator of the Radiator Springs mod for ATS
Mods by ETS2-User: Facebook page

Image

kmikiwi
Posts: 7
Joined: 02 Feb 2016 04:31

15 Feb 2016 18:06

Will try, thank you so much!



Post Reply

Return to “ProMods Academy”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests