Hi. I'll upload the files to my server today I reproduced the rejoin thingy. The reason it doesn't work now is because a driver remains listed in the race / plugin data, even if he disconnects. So my plugin doesn't pick up on it when a driver rejoins. I'll need to check if there's a flag to use to detect this. Will do some tests today and let you know.
have you access to his latency? Otherwise you could use his position (in pits, in garage) or something like that. Thanks, pls give me a hint if you can provide it again. Maybe i should create an rF2 filebase.
I updated the links in my first post. They are on my server now, so shouldn't be moving anymore v2.1 Plugin files: http://www.tyka.net/racepad/downloads/WelcomePlugin_2.1.zip v2.1 Source code: http://www.tyka.net/racepad/downloads/WelcomePlugin_2.1_source.zip I'll try to get on with the plugin update.
works like a charm! Good idea to have a config file per profile, because i am using several server profiles on this machine. keep in mind that the new ui will be on html5-base , this opens doors for way better welcome-messages.
Sorry for the lack of updates, I moved (countries) early this month, so didn't have a lot of time. I did have a look earlier, but I couldn't easily figure out a way yet to detect whether a driver rejoined, so it might be tricky... If I can't find a plugin value, I suppose I need to 'hack' the interface a bit more to read out the server messages in the chat window. If I find a "<driver> has left" message, I can flag that driver for when he rejoins. Or we need to ask Studio 397 to do a plugin update Although one thing just pops into mind... perhaps the game temporarily marks the player as DNF during the time he has left the server..? Hmmm, will have a look at that and keep you posted
Hello i installed on my dedicated server the pluggin attemtping to have automatic ballast for ppl joining ive done it both ways editing the lines where it should go.. 1- "DriverMassOptions": { "Nico Barclay": 50, 2- "DriverMassOptions": { [Nico Barclay] mass=50 In the Log seems say it "loads" but in the server i get no notice of the weight added and when i try to put a Welcome message same deal. i get this msj: "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:\RaceServer\rfactor2-dedicated\UserData\player\WelcomePlugin.json Driver joined the server: Nico Barclay" Any ideas? ty
@Nico Barclay Editing a JSON file with notepad or similar requires you to be very careful with the syntax. Can you paste the entire file contents here? You can use Insert -> Code (in the post editor) to avoid it actually filling the page here.
thx, yeah im no expert just filling the blanks and trying to not mess the "exterior" https://www.sendspace.com/file/my5ygt
@Nico Barclay You're certainly trying it with a fair few names in there lol Only thing I've noticed with a quick look is this: "Osvaldo Angelone: 50, Which is missing the second " .
I probably should have tried the lazy option and googled for a json editor... seems something like this might work: http://www.jsoneditoronline.org/ Only thing is it doesn't like the final , before the } to close the list of names - Tygernoot's files include it, so it might not be a problem. But that missing " after the name will definitely cause issues.
The only difference i see beside the last " is the bracket type does it make any difference? original file "DriverMassOptions": { }, Editor "DriverMassOptions": [ ], Still getting the " 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:\RaceServer\rfactor2-dedicated\UserData\player\WelcomePlugin.json Driver joined the server: Nico Barclay " is the server not allowing the dll to work?
Nico, try this...worked on my test server, changed Osvaldo's name to mine and got the 50kg penalty message. My fix was to add " after Angelone and remove the , after the last 50 Code: { "DriverMassOptions": { "Ignacio Revoredo": 50, "Ricardo Dorador": 50, "Carlos Luksic": 50, "Sergio Avendano": 50, "Tonga Guardia": 50, "Nicolas Rocha": 50, "Carlos Reina": 50, "Diego Castillo": 50, "Carlos Andres Ladines": 50, "Jonathan Levy": 50, "Emilio Concha Fernandez": 50, "Diego Carranza": 50, "Argenis Riera": 50, "Giancarlo Velarde": 50, "Nico Barclay": 50, "Gonzalo Rivero": 50, "Osvaldo Angelone": 50 }, "WelcomeText": [ "Line1", "Line2", "Etc", "It is not recommended to put more than 5 lines for performance reasons", "The maximum length for each line is 95 chars, the rest will be truncated" ], "SendWelcomeTextEverySession": true } My editor of choice is notepad++, you can get it here
it works! i dont know what u did but i did notice the allignment works, so if i want to add a welcome message i go "Line1" insertmessage before the comma?, ty!
Any messages should have the " at the start and end, so if you highlight Line1 only and type your message you should be fine. eg "Hello and welcome",