Opponents Filter in game

Can anyone shed some light on how to allot opponent filters? I have tried all sorts with the VEH files.

Nothing seems to seperate the cars in my mod into each distinct car class. Im just trying to add the final touches to a DTM mod im working on, but some reason reason unless im not naming the opponent line correctly (does it have to be identical to another line of code in the VEH file in order for it to be recognised and show up correctly in game, perhaps??). I've looked at countless other mods where there opponent filters work in game and i cant see what im doing wrong.

Here is an example of what im using,

Number=DTM
Team="Schuebel"
PitGroup="Group13"
Driver="Michele Alboretto"
Description="Michele Alboretto"
Engine="Alfa Romeo Tipo"
Manufacturer="Alfa Romeo"

Classes="Alfa Romeo 155 V6 Ti"
OpponentFilter="Alfa Romeo 155 V6 Ti"

FullTeamName="Schuebel"
TeamFounded=
TeamHeadquarters=
TeamStarts=
TeamPoles=
TeamWins=
TeamWorldChampionships=

Category="DTM 1995, Alfa Romeo 155 V6 Ti"

....and in game what im seeing.
 

Attachments

  • 20161119084039_1.jpg
    20161119084039_1.jpg
    218.6 KB · Views: 647
Hi! there are several entries in the .srs (series folder) and the .veh (gamedata/vehicles/...) responsible for this.

First of all the following line in the .veh defines the tree in the which unfolds what car you select in the left hand side "VEHICLE" Column. No problem there
Category="DTM 1995, Alfa Romeo 155 V6 Ti"


The file you have to look at first is the .srs file. Lets take a look at the .srs from the Caterhams:
Vehicle Filter = Cat270 Cat360R Cat620R CatAcademy CatSupersport CatSLStd CatSLSeq

You can see that every category is one word, written together without blankspaces, so that it could be identified as one entity.

Next look at the .veh from for example the Caterham 360R Road. Here are 2 entries relevant:
Classes="Cat360R"
OpponentFilter="Caterham 360R Road"


The classes entry has to exaclty match one entry of the "Vehicle Filter" in the .srs.
The Opponent Filter defines what is shown in the Opponents Filter ingame. You see the pattern?


Which means you have to check your .srs and all the .veh files.

If you want 1 opponent filter, lets say "DTM 1995" which all includes your 3 manufactures you could configure it like so:
In your .srs file:
Vehicle Filter = DTM1995
In all your .veh files:
Classes="DTM1995"
OpponentFilter="DTM 1995"


If you want all your 3 manufactures in your opponent filter selectable as seperate options than configure it so:
In your .srs file:
Vehicle Filter = DTM1995Alfa DTM1995Merc DTM1995Opel
Your .veh files differ, depending of the manufacturer of the car. For example the entries of a Alfa:
Classes="DTM1995Alfa"
OpponentFilter="Alfa Romeo 155 V6 Ti"


Hope this helps.


edit: PieterN was faster ;)
 
i have this problem with the enduracers mod. tried what is above but didnt work, also the file structure is strange. is there a tool to edit mulitple files at once? for instance all veh files of 1 car at the same time? otherwise it would take hours and hours of work without exactly knowing if it will work.
 
thanks for the link will try it, but it indeed is some heavy stuff.

It is a bit much and very very powerful. For a simple search and replace its not so complex. The trick is figuring out how to define the search string so you don't replace things that you didn't intend.

Take note of the backup and undo features.

You can setup the search to replace whole lines or "Sections". Or you can search and replace only the parts you want.

Even if you spend a few days sorting out how the GREP program works... it will still be faster than trying to edit hundreds of cars... without making any errors.

Cheers
 
Last edited:
Back
Top