Welcome Message plugin

Discussion in 'Plugins' started by Tygernoot, Mar 11, 2012.

  1. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    89
    Likes Received:
    48
    Right, guess I stuffed something up. I likely made a small code change after testing it, thinking it to be an improvement, aaaand I actually broke it lol.

    Configured a few AI drivers and myself:
    welcome_0.png

    This is the dedicated window, but those class names don't correspond to the ones in-game:
    welcome_1.png
    (As mentioned above, the plugin spits out the class names from in-game, not the ones in the dedicated window.)

    When joining, it now applies the penalty:
    welcome_2.jpg
    First to my class "1976" and then overrides it with my driver "Tygernoot".

    For other drivers not in the DriverMass list, it only applies it for their class "Skip_Barber_National":
    welcome_3.png

    Hope I got it right this time :p

    (And bloody hell, why is hosting in rF2 such a pain. Took me a lot more time setting up those VM's and creating the mods than actually writing the code :confused:)

    http://www.tyka.net/racepad/downloads/WelcomePlugin_2.3.1_x64.zip
    http://www.tyka.net/racepad/downloads/WelcomePlugin_2.3.1_x86.zip
     
  2. nonamenow

    nonamenow Registered

    Joined:
    May 3, 2017
    Messages:
    457
    Likes Received:
    262
    Many thanks mate. Works perfectly now. Awesome job as per usual.

    **EDIT**
    Have now tested with a number of cars and is working flawlessly.:)
     
    Last edited: Sep 13, 2019
    Tygernoot likes this.
  3. nonamenow

    nonamenow Registered

    Joined:
    May 3, 2017
    Messages:
    457
    Likes Received:
    262
    Interesting, the game takes the "Class" from the "Category" in the .veh file rather than "Classes".:confused:
     
  4. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    89
    Likes Received:
    48
    Yeah, no idea why that is... nor why the other class value isn't exposed in the plugin.

    If that's something that can be added to the plugin interface at some point, I can also update the plugin to use the different class. Not sure which one is the better/preferred option to add weight penalties?

    At least glad it works now in its current state :). I'll update the first post later on.
     
    nonamenow likes this.
  5. nonamenow

    nonamenow Registered

    Joined:
    May 3, 2017
    Messages:
    457
    Likes Received:
    262
    It would be better if S397 could change it so the game uses the "Classes" rather than you having to change. The only prob is cars like the Datsuns and Toyotas all have a class called "Fictional" but these can be left out of the vmod so not a game breaker.
     
  6. Tom Lory

    Tom Lory Registered

    Joined:
    Dec 5, 2019
    Messages:
    4
    Likes Received:
    3
    The join message plugin didn't work for me either out of the box.

    I followed the instructions in release_notes_v2.3.txt

    AI triggered the welcome message immediately but I couldn't get it to work for me when I joined our server as a driver until one of our racers joined our server and it worked for him which made me play around with the player.json text on my PC.

    In player.json on my PC this is working:

    "Player Name":"Tom Lory",
    "Player Nick":"Tom Lory ",

    this didn't:

    "Player Name":"Tom Lory",
    "Player Nick":"Tom Lory",

    Thanks for the clues, gentlemen
     
  7. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    89
    Likes Received:
    48
    Hi Tom,

    Not sure I fully follow, but let's try and sort it :)

    The nick is used as the in-game driver name, but modifying the player.json file directly for the nickname doesn't work properly in my experience.

    When you start the rFactor2 launcher (not game), you can go into one of the menus (or click your name in the top right, I can't check at the moment) where you have the option of changing your nickname.

    Ensure there's no additional space suffix in your nick. You can check it afterwards in your player file that it's been updated and set to "Tom Lory". Then in the welcome json file put the driver name as "Tom Lory" as well so that they match.

    That should fix it (hopefully) :)
     

Share This Page