Results 1 to 10 of 10

Thread: About classes

  1. #1
    Member
    Join Date
    Jan 2013
    Location
    Málaga, Spain
    Posts
    37

    About classes

    I'm working in a mod and I've made a class string in each veh file in order to have variety for make a good mix. I've created a class for each category based in power to weight, examples: A1, A2, B1, B2....S1, S2, S3, etc. created too classes based on layout, vehicle type, like: Turbo, Muscle, AWD, RWD, and finally added class based in time decade and country origin: 1960, 1970, 2000, etc. Japan, Italian, American, etc...
    An example: Classes="Street, 1_Class_D1, 2_AWD, 3_Modern, 4_Turbo, 5_Front_Engine, 6_Sedan, 7_Italian"


    The problem: I've noticed when I select several classes in order to make a race, rfactor adds all the cars from each class. If I want to race only with "Muscle" and "1970" classes, rfactor adds totally all cars from 1970 class and totally all class from Muscle class.

    What I wanted to do with the class system I've created? mix two classes in order to race ONLY Muscle cars from 1970 decade, but I cant. So if I want start a race only with 1990 RWD Turbos cars from Japan, simply I can't.

    What can I do in order to find what I wanted to do?

    Don't know if I have explained very well, my english is terrible, sorry.

  2. #2
    Senior Member
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    191
    Hi BerScott!
    Your english is good enough! You explained it well!
    Interesting problem....
    Only solution could be to do several .rfm files for each combination because there you can add
    "OR" and "AND" operators in the Vehicle filter.
    Other possibility would be to do a massive amount of .VEH files for every combination
    so that every combination have its own class.

    Greets
    Pete

  3. #3
    Member
    Join Date
    Jan 2013
    Location
    Málaga, Spain
    Posts
    37
    Hi Pete. Thanks for answer.

    At first I discard multiple .rfm and veh files options for practical reasons, but now you mention "OR" and "AND" operators... is it possible to do the trick with it? what differences "OR" and "AND" have?

  4. #4
    Junior Member
    Join Date
    Jul 2013
    Posts
    25
    Sorry when i jump into this thread but i have a problem with your class-configuration.

    I'm of the opinion that it can't work like you wish if you do it that way. If i understood it right.

    It would be nice if you could post how your *.rfm and *.veh entries look like.

    From *.rfm post the line:
    Vehicle Filter = XXXXXXXXXX

    and from *.veh of one car the line:
    Classes= XXXXXXXXXXX

    I think the different classes shall have different properties of the cars in it right?

    But how do you want to tell the game which properties you mean?

    1 *.veh file always defines only 1 *.hdv, so it will be always the same car with same properties.

    I think you will have to create classes like this(for example):
    You have a car (let's call it "Bulldog") and it shall have different power configurations.
    E.g. 210 hp, 240 hp, 260 hp

    So create 3 classes:
    Bulldog_210
    Bulldog_240
    Bulldog_260.

    All these classes you put in the line "Vehicle Filter" in your *.rfm

    And now you have to create 3 *.veh files where each is including only 1 class.
    And you need to create and define different *.hdv and *engine.ini to set the different hp.

    And the *.veh files you can call e.g:

    Bulldog001_210.veh
    Bulldog001_240.veh
    Bulldog001_260.veh

    The 3 *.veh can have the same content, except the different *hdv entries.

    I think this is the only way to make it work like you wish
    Or you have to work with "Upgrades", that could be another possibility.

  5. #5
    Member
    Join Date
    Jan 2013
    Location
    Málaga, Spain
    Posts
    37
    Bernd, in first post I've explained the classes system of my mod and pasted an example of classes string in *.veh file:

    Classes="Street, 1_Class_D1, 2_AWD, 3_Modern, 4_Turbo, 5_Front_Engine, 6_Sedan, 7_Italian"

    And this is the line from *.rfm

    Vehicle Filter = OR: Street

    The idea is make categories like Gran Turismo or Forza Motorsort in order to mix street classes.

  6. #6
    Junior Member
    Join Date
    Jul 2013
    Posts
    25
    Sorry, maybe i'm to stupid to understand what the problem is but you've said that rfactor adds every car of the classes you've chosen in championship-settings-opponents. But that is what class-system is doing.

    It adds all cars which have the selected class-entry in the *.veh

    I think you just have to set the classes more exact in *.veh.

  7. #7
    Member
    Join Date
    Jan 2013
    Location
    Málaga, Spain
    Posts
    37
    Bernd, you've understand well, maybe I should ask the question better.

    What I want to do is to use the class system as a filter instead of adding all cars from each class but I understand rfactor class system don't work this way, so I'm looking for an alternative system using .rfm strings or whatever. But I want to try to not create an excess of *.veh/*.rfm files.

    To clarify the situation: I have over 500 cars merged in a folder and only one *.rfm to show all, by the way all cars are street factory cars. So the interesting point of have many cars is to race them by mixing classes, so as I mentioned, If I have classes arranged by type of car (muscle, hatchs, sports, sedan, etc), year, origin country, etc...

    The problem is I have so much classes added by *.veh and would be more practical to have classes like "classes=muscle, hatch, 1960, italy, etc" instead of "classes=1960_muscle, 2000_italian_hatchs, 2000_turbo_sedan, 1990_italian_hatch, etc."

  8. #8
    Junior Member
    Join Date
    Jul 2013
    Posts
    25
    ahh, i begin to understand

    But i don't think that it is possible to work like: "Select from all *.veh where classes=muscle AND classes=1960 AND classes=italy" and you get all cars which matches all 3 options.

    Because the filter always allows every car which at least has one of the selected options, and it don't matter if the others classes are in the *.veh too.

    I think you will have to create lots of *.veh if you don't want to change the whole series everytime you want to race against other opponents.

  9. #9
    Senior Member
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    191
    Bernd, you got it! congrats....
    The "filter" in the rfm is very.... rough.
    500 cars he? My goodness!
    Sorry BerScott but I fear it wont work like you wish.

    Best you make several rfm´s for that large amount of cars.
    Rfactor will not run properly anyways when all this cars are loaded at the same time for
    they are all in one mod!
    I don´t think that rF will be able to manage it. (limited in memory size)
    Especially when the polycount of the models is high.

    Greets
    Pete

  10. #10
    Member
    Join Date
    Jan 2013
    Location
    Málaga, Spain
    Posts
    37
    Thanks for reply guys. I think will leave only the power-to-weight classes and will add some special classes for special cups. But thinking of all mods we have for rFactor, the new rFactor 2 may have a nice class system, just my 2 cent.

    Cheers!

Similar Threads

  1. Race of "Le Mans" with a 100 car grid and 4 classes
    By Doug Spinster in forum rFactor 1 Online Racing Discussion
    Replies: 0
    Last Post: 01-08-2017, 04:09 PM
  2. AI setups for Multiple classes
    By TAGdesign in forum rFactor 1 General Discussion
    Replies: 0
    Last Post: 02-02-2012, 06:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •