Welcome Message plugin

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

  1. petrolhead

    petrolhead Registered

    Joined:
    Apr 26, 2018
    Messages:
    151
    Likes Received:
    23
    Can you add a message not using the plugin ie Multiplayer.json file and if so where
     
  2. Paul McC

    Paul McC Registered

    Joined:
    Oct 17, 2017
    Messages:
    662
    Likes Received:
    434
    Hi there Tygernoot! Only just got this working, know its been out ages. Just wanted to say Thankyou V much mate!
     
  3. Racecraft

    Racecraft Registered

    Joined:
    Sep 26, 2011
    Messages:
    22
    Likes Received:
    18
    Sorry for the "feature request" but it would be nice to have a non-whispered message option that is sent to chat at the start of every session.
    /w messages & weight penalties could be sent on user join
    And another more generic (non-whispered) message could be sent once at the start of every session.
     
  4. Jason K

    Jason K Registered

    Joined:
    Apr 20, 2020
    Messages:
    11
    Likes Received:
    6
    Does anybody else have a problem where the welcome plugin will intermittently fail to apply ballast with more than 10-ish drivers (AI or human)? It will work for some drivers but not others.
     
  5. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    1,076
    Likes Received:
    752
    The main reason I can think of for not working is that the driver names in the plugin not matching the drivers ingame name. Check the results .xml file for the drivers names that are affected and see if they match. Some human drivers manage to put a trailing space after their name.
     
  6. Jason K

    Jason K Registered

    Joined:
    Apr 20, 2020
    Messages:
    11
    Likes Received:
    6
    Yah, I've run into the trailing space issue and have verified all of the names.
    This isn't a problem with fewer than 10-ish drivers present. As long as we're under that number, the ballast is automatically applied normally.
    Above that number (again, either with human drivers or AI drivers or a mix of the two), ballast is only automatically applied to some drivers. I can manually apply the ballast using /setmass directly or invoking a /batch file.
     
  7. goonzo

    goonzo Registered

    Joined:
    Oct 19, 2012
    Messages:
    22
    Likes Received:
    0
    I have a similar problem. We never have more than ten drivers having success ballast(BTCC rules) but have regularly 20+ drivers joining our server, so everybody always get their success ballast set.
    But, when I add additional welcomeText to the WelcomePlugin.json some(of the ten) drivers are starting to NOT get their success ballast, so I assume this is a performance issue. Make sure to use the plugin ONLY for success ballast(not also for welcome message) and see if that fixes your problem. If that is already your case, then I don't know any workaround other than upgrading your server hw, or convince the authors to optimize the code.
     
  8. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    114
    Likes Received:
    59
    Jason sent me a PM a while ago about this issue, but I haven't looked into it yet. I have sort of given up on rFactor (and sim racing altogether) for the last year or two, so not really active in doing any plugin work for it either.

    The source is available in the first post though, so if anyone feels like compiling a new version, here's something perhaps worth trying.

    Instead of programmatically clicking the GUI button every UpdateScoring() tick, do it only every 3 ticks or so.

    Code:
    void WelcomePlugin::UpdateScoring( const ScoringInfoV01 &info ) {  
        if(WLC_hwndSendChatButton && WLC_hwndChatEdit) {
            m_nScoringCounter++;
            if(m_messageQueue.size() && ( m_nScoringCounter % 3 == 0 ) ) {     // update this if()
                DriverQueueMessage qMessage = m_messageQueue.front();
                  ...
    
    Otherwise, I can have a look if the plugin still compiles on my latest machine/setup.

    Best regards,
    Ed.
     

Share This Page