Welcome Message plugin

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

  1. Avelino Neto

    Avelino Neto Registered

    Joined:
    Jan 2, 2017
    Messages:
    1
    Likes Received:
    0
    I

    I want a 32 bits version, is it possible?
    I'll try to use in another simulator...
     
    Last edited: May 16, 2017
  2. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Hi,

    Sorry for the lack of updates. It took some time (or rather willpower :p) to get my rFactor2 migrated to Steam and everything set up again. I will now focus on updating this plugin :)

    I will also build a 32-bit version.

    Best regards,
    Ed.
     
    McFlex, GrimDad, krusti and 2 others like this.
  3. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    OK, I think I got it :). I didn't test it thoroughly yet and I may need to adjust the timing so that very quick rejoins don't slip under the radar... but it seems to work:

    [​IMG]

    Here is a test version (64 bit): http://tyka.net/downloads/WelcomePlugin_2.2_test.zip

    Can you have a quick look if this is working properly in a "real" dedicated environment with some drivers present? I was only to test with myself in the dedicated server with some AIs. I spent an hour figuring out how to launch a dedicated and then join on the same machine via command line without Steam going bonkers :). The server listing doesn't show my own server and I don't have a VM set up yet with the Steam version... By the way, does that actually work via Steam if I launch the game in both Steams with the same Steam account?

    Anyway, please note that this version is purely for testing. Please don't run it on any league server yet in case I messed something up ;). Once it's confirmed to be working I'll build a proper version with a 32-bits version as well.

    Best regards,
    Ed.
     
    GrimDad, McFlex and DJCruicky like this.
  4. McFlex

    McFlex Registered

    Joined:
    Feb 23, 2012
    Messages:
    695
    Likes Received:
    152
    We will test it the next days
     
  5. McFlex

    McFlex Registered

    Joined:
    Feb 23, 2012
    Messages:
    695
    Likes Received:
    152
    We had a little test session last evening and i can report that it's working flawless. You did a very very very good job there. Finally we can use your awsome tool and don't have to work with seperate .hdv files for weight penalty :):):)
     
  6. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Cool, glad to hear it's working :)

    This evening I will update the first post with links to the plugins and source code.
     
    McFlex likes this.
  7. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Links on the first post updated to v2.2.
    32-bit version now also available.

    Let me know if there are any problems :)
     
    McFlex likes this.
  8. Bryan Birtwell

    Bryan Birtwell Registered

    Joined:
    Jan 12, 2012
    Messages:
    620
    Likes Received:
    29
    Hello,

    I've been running your plugin on the F3 Fanatics' server for quite some time, thank you.

    Recently I have to re-install rFactor2 onto the dedicated server.

    I can't get it to run.

    I have the .dll file in the 64bit plugins folder and the the .json file in the "player" folder.

    Is that the correct place for the .json file??? It used to go in the rFactor2's root directory.

    I've tried it in both locations and it doesn't seem to matter. I can't get it to work.

    Here is the log:
    Succeeded to open handle to the dedicated window (chat button)
    Succeeded to open handle to the dedicated window (chat edit)
    Error parsing JSON file: C:\Racing\rfactor2-dedicated\UserData\player\WelcomePlugin.json
    Driver joined the server: Bryan Birtwell [SR4L]
    Error parsing JSON file: C:\Racing\rfactor2-dedicated\UserData\player\WelcomePlugin.json
    Driver joined the server: Bryan Birtwell [SR4L]
    Error parsing JSON file: C:\Racing\rfactor2-dedicated\UserData\player\WelcomePlugin.json
    Driver joined the server: Bryan Birtwell [SR4L]
    Error parsing JSON file: C:\Racing\rfactor2-dedicated\UserData\player\WelcomePlugin.json
    Driver joined the server: Bryan Birtwell [SR4L]
    Error parsing JSON file: C:\Racing\rfactor2-dedicated\UserData\player\WelcomePlugin.json
    Driver joined the server: Bryan Birtwell [SR4L]
    Driver joined the server: Bryan Birtwell [SR4L]

    And, here is the actual .json file:

    {
    "DriverMassOptions": {
    "DriverX": 15,
    "DriverY": 25,
    "DriverZ": 25,
    },
    "WelcomeText": [
    "Welcome!Donate today! PayPal birtwell@msn.com",
    "Team Speak IP 172.245.211.109 Password EVE"



    }

    Thanks for any help that can come my way.

    Bryan
     
  9. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Hi Bryan,

    There's a small mistake in the json file :)

    Code:
    {
    "DriverMassOptions": {
    "DriverX": 15,
    "DriverY": 25,
    "DriverZ": 25,    <<<<< remove the comma
    },
    "WelcomeText": [
    "Welcome!Donate today! PayPal birtwell@msn.com",
    "Team Speak IP 172.245.211.109 Password EVE"
    ]         <<<<< add this ]
    }
    That should fix it, but let me know if it still doesn't work.
     
  10. Bryan Birtwell

    Bryan Birtwell Registered

    Joined:
    Jan 12, 2012
    Messages:
    620
    Likes Received:
    29
    Thank you for your speedy reply!

    I still can't get it to work for me.

    This is what I got for a .JSON file:

    {
    "DriverMassOptions": {
    "DriverX": 15,
    "DriverY": 25,
    "DriverZ": 25
    },
    "WelcomeText": [
    "Welcome!Donate today! PayPal birtwell@msn.com",
    "Team Speak IP 172.245.211.109 Password EVE"
    ]
    }

    I copy/pasted what you posted above; removing the comma after the last "driver" in the add mass thingie.

    I removed the notes, telling what to "add" and "remove"

    I'm also still not clear on what/where the "profile" folder is in rFactor2.

    Thanks,

    Bryan
     
  11. Bryan Birtwell

    Bryan Birtwell Registered

    Joined:
    Jan 12, 2012
    Messages:
    620
    Likes Received:
    29
    I shut the server down (rFactor2-Dedicated) and restarted the server and joined. Worked like a champ!

    Thanks so much!

    Bryan
     
  12. Scoopscat7

    Scoopscat7 Registered

    Joined:
    Jun 21, 2015
    Messages:
    74
    Likes Received:
    26
    Just got round to adding this to our practice and race server at SiG Racing

    Not sure if anyone else is interested but I have set it so that individuals can set their own ballast without being admin by adding a number to their last name in game. You just need to edit the json file with multiple copies of each racers name with numbers 1 - whatever I have 100 after it and the corresponding ballast.

    When we assign ballast in a series the preceding week people can then practice with the correct ballast without the need for admin to be online.

    If anyone could now bring Grid Edit tool and this plugin together so changes to the grid can be made based on the previous race automatically as the server clicks over to the next race ie reverse grid in race 2 based on finishing order for race 1 that would make my day!
     
  13. Clemenca

    Clemenca Registered

    Joined:
    Feb 10, 2013
    Messages:
    100
    Likes Received:
    21
    Hi, i tried to run welcome plugin on the new 1.1109 dedicated server, but i dont work... i made everything from the manual but when someone join the server there is no welcome message, in the logfile i can only see that the plugin sends the messages to the ki driver, but when a driver joins the server nothing happens.

    Any ideas ?
     

    Attached Files:

  14. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Hi Clemenca,

    Sorry if I'm stating the obvious... The welcome message is sent via a whisper message, meaning only the actual driver receives it. It is not broadcast to all drivers every time.

    Can you see these chat messages being sent by the dedicated server window? Or when you join the server yourself, do the chat messages appear?

    If not, I'll have a look if something changed. I haven't run rF2 in a while, perhaps the new dedicated server is different and the trick I used no longer works.
     
  15. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    626
    Likes Received:
    408
    @Tygernoot, just for info it's running fine on our server with v1109.
     
    knackko likes this.
  16. Ricardo

    Ricardo Registered

    Joined:
    Jan 16, 2017
    Messages:
    63
    Likes Received:
    36
    Fantastic plug in. Thank you.
     
  17. machine

    machine Registered

    Joined:
    Jan 31, 2011
    Messages:
    352
    Likes Received:
    222
    I have an interesting issue. I could not see a message when joining server. I got my mate to join and he sees it, all the time. I never see message. So it IS working, I am just not getting it!
    Any ideas?
     
  18. Rafael Sousa

    Rafael Sousa Registered

    Joined:
    Feb 10, 2018
    Messages:
    2
    Likes Received:
    0
    Hi, can anyone help me? My server loads only the welcome messages. Setmass does not carry. I already checked the JSON file and found no error. I inserted the dll file into the PLUGINS folder in Bin64, and inserted the JSON file into the dedicated server profile. but it only reads the welcome messages, the Setmass that is the main one does not work ..

    JSON File:
    {
    "DriverMassOptions": {
    "Rafael Sousa": 50
    },
    "WelcomeText": [
    "Linha 1",
    "Linha 2"
    ],
    "SendWelcomeTextEverySession": true
    }
     
  19. Tygernoot

    Tygernoot Registered

    Joined:
    Feb 26, 2012
    Messages:
    81
    Likes Received:
    48
    Hi Rafael,
    That looks OK indeed.
    I'm surprised that the welcome text works, but the setmass option doesn't... I'd rather expect none or everything to work :)

    I wonder if there might be some rFactor setting that interferes with the setmass. Does it work when you manually enter it in the server chat?

    Can you check the log file?
    It should say something like (from the top of my head):
    Is the /setmass line present there?

    Best regards,
    Ed.
     
  20. BryanBirtwell

    BryanBirtwell Registered

    Joined:
    Mar 1, 2018
    Messages:
    35
    Likes Received:
    16
    Hi... I can't get this to work again.

    NRT Re-installed Windows Server and rFactor2

    rFactor2 does not have a "profile" folder. Or did you mean rFactor2's root directory?

    I always had the txt file as a .txt file. Is it now supposed to be a .json file?
    {
    "DriverMassOptions": {
    "DriverX": 15,
    "DriverY": 25,
    "DriverZ": 25,
    },
    "WelcomeText": [
    "Welcome to the F3 Fanatics!",
    "Please Donate via PayPal to birtwell@msn.com",
    "Race every Sat. Practice starts at 6PM Eastern Time (US)",
    "TS IP=172.245.177.71"
    ],
    "SendWelcomeTextEverySession": true
    }

    Shouldn't the above text work?

    Thanks,

    Bryan
     

Share This Page