Welcome Message plugin

Tygernoot;435071]Alrighty, I have largely rewritten the plugin, all looking good. I didn't try it out yet, I likely need to debug it a bit (knowing myself) :p

- The "/setmass" commands are sent every session switch
- The welcome text is sent every session if the "SendWelcomeTextEverySession" is set to true in the JSON file
- All welcome text messages and "/setmass" commands are sent with a 3 second delay after the driver joining the server (or session switch) to avoid that ISI bug
- This is what the JSON file looks like now (one file per user/server/profile):
Code:
{
	"DriverMassOptions": {
		"DriverX": 15,
		"DriverY": 25,
		"DriverZ": 10
	},
	"WelcomeText": [
		"Line1",
		"Line2",
		"Etc"
	],
	"SendWelcomeTextEverySession": true
}
- The JSON file is reloaded every session switch, so if you make updates to the file, those changes will be loaded automatically the next session. If you would like this to happen more often, I can reload the file every minute or so instead.

Once at the start of a session is enough as it may cause problems otherwise.....

- I didn't add the different weights per session yet as per wrxxy's request. I will do that in the next iteration. I just need to think how best to represent this in the JSON file, without it getting too confusing to set up. Probably best to have one "default" weight, used for all sessions, which can then be overridden by specifying a different weight for a particular session. Something like this:

Code:
{
	"DriverMassOptions_Default": {  // used for all sessions except when overridden
		"DriverX": 15,
		"DriverY": 25,
		"DriverZ": 10
	},
	"DriverMassOptions_Qualifying": {  // overrides default settings for qualifying 
		"DriverX": 30,
		"DriverY":  5
	},
	"WelcomeText": [
		"Line1",
		"Line2",
		"Etc"
	],
	"SendWelcomeTextEverySession": true
}

Is there a way to clear all weights in a particular session??

Regards
 
Can you share one of your profile content?
For me, after copying .dll files in bin32 and bin64, plugin must be activated in CustomPluginVariables.JSON in profile dir. And always in profile dir: WelcomeText.txt and WelcomeText.ini. Do I forget something? because it doesnt work for me. You have different WelcomeText.txt for each profile?

knackko just have a look at Goanna's post above that has the same setup as I have.....
 
Join-Leave-Join /setmass issue is solved. The delay on the message worked. Thanks for that.

Is it possible to send the /setmass again on race-rejoin? That is right now the only occasion where the additional weight is lost and not set again
 
@_KrustY_: Do you use rFactor in English or a different language? I search for the correct window using "Game Name:" in the title, and the button called "Send Chat", so if these are named differently then it won't work.

Best regards,
Edward.

Hello
I have dedicated servers in Italian
I tried the new version of the plugin and gave me the same error
I put the English and now works fine
Thank you
Eddy
 
We have set
Code:
"SendWelcomeTextEverySession": false
but messages are broadcast for all sessions, is this not working properly or have we stuffed something up?

Cheers

G
 
That is likely to be a bug, I'll fix that :)

Regarding the /setmass at race-rejoin, I'm a bit surprised it doesn't do this automatically already. It works for practice rejoins, so why not race rejoins... Hmmm, I'll have to go and give that a try to see what happens.
 
I fixed the bug with the welcome text being sent every session, regardless of the SendWelcomeTextEverySession setting. The latest plugin and source code can be downloaded from the first page.

Regarding the re-join, can someone explain how that exactly works? I tried rejoining a race, and then got the message I was waiting for an open session. How do I proceed from then on to rejoin the race?
 
You have to enable rejoin in multiplayer.json. This should be the two parameters


"Closed Race Sessions":1,
"Closed Race Sessions#":"0 = open to all (currently N\/A), 1 = open but drivers will be pending an open session, 2 = closed",

"Race Rejoin":2,
"Race Rejoin#":"Whether disconnected players can rejoin a race session: 0=no 1=yes with fresh vehicle 2=yes with vehicle in same physical state",
 
I fixed the bug with the welcome text being sent every session, regardless of the SendWelcomeTextEverySession setting.

Confirmed...good job
desismileys_3334.gif


Cheers

G
 
Yes @Tygernoot - the links are dead after the forum move. I'd love to use this aswell for our server, could you be persuaded to upload it again?

Thanks a bunch :)
 
Hi,

Unfortunately I won't be home for the next two weeks and I don't have the compiled plugin files here. I only have the source files, so I uploaded those already.

If someone else still has the original files, or has Visual Studio installed to recompile the plugin, they can probably kindly upload them :)
 
Back
Top