[SOLVED] License plates and speed limits
Posted: November 12th, 2021, 11:49 am
[EDIT] : Ok, problem solved. As I was writing this post, I realised that in the default files, none of them have the .modid expansion. So I removed the .mygotopia expansion on my speed_limits.sii and license_plates.sii files and everything works fine !
Hello everyone,
I am facing issues with license plates and speed limits in my Mygotopia country.
→ License plates work fine inside a city area but as soon as I get out of a city limit, license plates don't work anymore.
Also, license plates seems to not work at all on trailer (even inside a city area).
→ Speeds limits don't apply correctly. I have define 90 km/h max for trucks and 100 km/h for cars on local roads but when I drive in game, the speed limits is set to 100 km/h for trucks.
Did I miss something ?
I see these error in the editor log :
<WARNING> [country_data] No license plates defined for country 'mygotopia'.
<WARNING> [country_data] No speed limits defined for country 'mygotopia'.
But I have these files into my mod folders which are supposed to define the license plate and speed limits for my country, I guess ?
LICENSE PLATES
- def/country/mygotopia/license_plates.mygotopia.sii
- def/city/libertybay.sii
SPEED LIMITS :
- def/country/mygotopia/speed_limits.mygotopia.sii
Hello everyone,
I am facing issues with license plates and speed limits in my Mygotopia country.
→ License plates work fine inside a city area but as soon as I get out of a city limit, license plates don't work anymore.
Also, license plates seems to not work at all on trailer (even inside a city area).
→ Speeds limits don't apply correctly. I have define 90 km/h max for trucks and 100 km/h for cars on local roads but when I drive in game, the speed limits is set to 100 km/h for trucks.
Did I miss something ?
I see these error in the editor log :
<WARNING> [country_data] No license plates defined for country 'mygotopia'.
<WARNING> [country_data] No speed limits defined for country 'mygotopia'.
But I have these files into my mod folders which are supposed to define the license plate and speed limits for my country, I guess ?
LICENSE PLATES
- def/country/mygotopia/license_plates.mygotopia.sii
Code: Select all
SiiNunit
{
license_plate_data : .lp.car
{
type: car
templates[]:"02 1111"
def0[]:"M"
def1[]:"0"
def1[]:"1"
def1[]:"2"
def1[]:"3"
def1[]:"4"
def1[]:"5"
def1[]:"6"
def1[]:"7"
def1[]:"8"
def1[]:"9"
def2[]:"G"
}
license_plate_data : .lp.trailer
{
type: trailer
templates[]:"02 1111"
def0[]:"M"
def1[]:"0"
def1[]:"1"
def1[]:"2"
def1[]:"3"
def1[]:"4"
def1[]:"5"
def1[]:"6"
def1[]:"7"
def1[]:"8"
def1[]:"9"
def2[]:"G"
}
}
Code: Select all
city_data: city.libertybay
{
city_name: "Liberty Bay"
city_name_localized: "@@Liberty Bay@@"
country: mygotopia
## City pin and name scale factor sets size of city pin and name text on UI map.
## Valid values: (0;2> default value 1.0. Default pin size on UI map 24px X 24px.
#
city_pin_scale_factor[]: 1.0f
city_pin_scale_factor[]: 1.0f
city_pin_scale_factor[]: 1.0f
city_pin_scale_factor[]: 1.0f
city_pin_scale_factor[]: 1.0f
city_pin_scale_factor[]: 0.8f
city_pin_scale_factor[]: 0.8f
city_pin_scale_factor[]: 0.8f
map_x_offsets[]: 0
map_x_offsets[]: 0
map_x_offsets[]: 40
map_x_offsets[]: 0
map_x_offsets[]: -6
map_x_offsets[]: -7
map_x_offsets[]: -21
map_x_offsets[]: -16
map_y_offsets[]: 0
map_y_offsets[]: 0
map_y_offsets[]: 55
map_y_offsets[]: 0
map_y_offsets[]: -30
map_y_offsets[]: -23
map_y_offsets[]: -23
map_y_offsets[]: 4
vehicle_brands[]: "volvo"
truck_lp_template[]: "02 1111"
truck_lp_def0[]:"M"
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[]:"G"
}
- def/country/mygotopia/speed_limits.mygotopia.sii
Code: Select all
SiiNunit
{
country_speed_limit : .speed_limit.car {
vehicle_speed_class: car
lane_speed_class[]: local_road
limit[]: 100
urban_limit[]: 50
lane_speed_class[]: expressway
limit[]: 100
urban_limit[]: 70
lane_speed_class[]: motorway
limit[]: 120
urban_limit[]: 120
}
country_speed_limit : .speed_limit.truck {
vehicle_speed_class: truck
lane_speed_class[]: local_road
limit[]: 90
urban_limit[]: 50
max_limit[]: 90
lane_speed_class[]: expressway
limit[]: 90
urban_limit[]: 70
max_limit[]: 90
lane_speed_class[]: motorway
limit[]: 100
urban_limit[]: 100
max_limit[]: 100
}
country_speed_limit : .speed_limit.bus {
vehicle_speed_class: bus
lane_speed_class[]: local_road
limit[]: 90
urban_limit[]: 50
lane_speed_class[]: expressway
limit[]: 90
urban_limit[]: 70
lane_speed_class[]: motorway
limit[]: 100
urban_limit[]: 100
}
}