Using the Map Editor

User avatar
Arayas
Site Admin
Posts: 7424
Joined: December 15th, 2018, 3:25 am
Location: Romania
Contact:

Re: Using the Map Editor

Post by Arayas » April 21st, 2024, 5:03 pm

What traffic_lane has to do with my post? That's the file to establish density on the type of road (urban, highway, low). Traffic area take this values and apply it to the respective area.
Dont touch other files (lane or rules) because those are very sensitive.
ImageImage Image
support@roextended.ro
www.roextended.ro
Pezehgehmer
PPM
Posts: 7
Joined: September 21st, 2023, 7:50 pm

Re: Using the Map Editor

Post by Pezehgehmer » April 21st, 2024, 6:16 pm

Yes, at the beginning i was just editing traffic_rules_spawn. similar to what you have posted. maybe i understood it wrong. I wanted more options than just the existing one. so i created for s_car_extremehigh, s_car_veryhigh, s_car_verylow, s_car_extremelow and so on. and the same for trucks, light trucks etc... but when i have an area where i want for example just very few cars, trucks etc i need to have a traffic rule that includes those different spawn-types. like i did:

traffic_rule_data : traffic_rule.molden_xl
{
name: "[context][urban]Molden Extreme Low"

additional_rules[]: traffic_rule.s_car_xl
additional_rules[]: traffic_rule.s_trl_xr
}

promods used for that traffic_rules_spawn like you said, and created there rules you can select when making a traffic area and added existing rules:

traffic_rule_data : traffic_rule.density_50
{
name: "Traffic density 5.0"

str_params[]: "car"
rule: "density"
num_params[]: 0.0 # Midnight
num_params[]: 5.0 # frequency
num_params[]: 50 # count limit
additional_rules[]: traffic_rule.s_truck_u
additional_rules[]: traffic_rule.s_police_u
additional_rules[]: traffic_rule.s_bus_h
additional_rules[]: traffic_rule.s_fire_u
additional_rules[]: traffic_rule.s_medical_u
}

well maybe it is too complicated for me to explain right what my issue is...
User avatar
Arayas
Site Admin
Posts: 7424
Joined: December 15th, 2018, 3:25 am
Location: Romania
Contact:

Re: Using the Map Editor

Post by Arayas » April 21st, 2024, 8:34 pm

your issue is ETS issue sience release, they have a DRIVING SIMULATOR using almost no traffic and a stupid AI behaviour.

On your problem....traffic_rules_spawn can have 1 milion spawning rate IF in traffic_data the AI count is NOT enabled.

By default:

Code: Select all

traffic_data : .traffic.data {

	# max_vehicle_count: 50 	# Total AI vehicle count limit (including trucks)
you should remove the # and use a higher number than 50.

You also need to understand (the reason ETS has a dumb traffic density) more AI = less FPS, i mean WAAAAAY less.
ImageImage Image
support@roextended.ro
www.roextended.ro
Pezehgehmer
PPM
Posts: 7
Joined: September 21st, 2023, 7:50 pm

Re: Using the Map Editor

Post by Pezehgehmer » April 21st, 2024, 9:09 pm

Yes, i know i have to delete the "#" in traffic_data.

but now it is super strange, because i really wanted to know what is going on i saved all my traffic-files somewhere else and switched back to the basefiles-traffic-files. i went into the editor and changed the traffic area i had in a rural area to the traffic area "large city high density" from the base files. and still back in the game there are no changes. maybe traffic areas do not work anymore in general? :grin:

well, no, i guess i just dont see what i am doing wrong. thanks anyway
Post Reply