Making AI Police Cars in ETS2 and ATS

Post Reply
b738pilot
PPM
Posts: 36
Joined: September 4th, 2020, 2:57 am

Making AI Police Cars in ETS2 and ATS

Post by b738pilot » October 2nd, 2020, 6:10 pm

Hello everyone,

Since there are no forum topics about this and there are a few map projects that would also benefit from this information, I'd like to start a thread here.

I tried to figure out how to make AI police cars for a new country, call it Fakeland, but I ran into 3 issues on ATS:

1. My Fakeland police cars are spawning in other map mod's countries

2. The texture I used gets distorted on the car (PO in POLICE for example on the front side of the door shrinks it size despite it looking normal on the DDS)

3. Using Arayas' alternate look method to clone the PMD file, SCSEditor does not let me edit the Variants (for example, I cloned the crown_victoria, it carried over about 5 other police cars and I used the Arizona DPS one to replace, but I still have to keep in the def files variant "ar_hp" for it to find my replacement texture)

My question is can someone with experience in this can run a step by step on how to properly implement an AI police car for Fakeland on both ATS and ETS2.

Thank you!
User avatar
Arayas
Site Admin
Posts: 4061
Joined: December 15th, 2018, 3:25 am
Location: Romania
Contact:

Re: Making AI Police Cars in ETS2 and ATS

Post by Arayas » October 2nd, 2020, 8:22 pm

1.car definition should contain
spawn_ratio: 0.0
in def/vehicle/ai cardefinition.sii
to spawning of the car just in your Fakeland should be introduced to def/country/fakeland/traffic.sii
This way your car will travel in just Fakeland
2. texture should be identichal with original one, the lines and badges should be in exact same place. Look at the original car and also its DDS to understand where the lines and Badges are positioned on car and DDS.
3.dont bother with variants from definitions, those are not visible in the game. As long you manage to add very little to the definitions, more chances you have to work properly.
b738pilot
PPM
Posts: 36
Joined: September 4th, 2020, 2:57 am

Re: Making AI Police Cars in ETS2 and ATS

Post by b738pilot » October 2nd, 2020, 8:29 pm

That was it then, my car definition had spawn_ratio to 1.0. Hopefully that fixes it, will test later tonight and report back. Thank you as always from Fakeland!
b738pilot
PPM
Posts: 36
Joined: September 4th, 2020, 2:57 am

Re: Making AI Police Cars in ETS2 and ATS

Post by b738pilot » October 3rd, 2020, 3:18 am

Reporting back. I tested a few states in C2C and didn't see a single Fakelandic police car. That zero spawn out worked, thanks Arayas!

Now the fun part is messing around with this DDS file. Fun!

Appreciate the help as always!
Post Reply