Discussion in 'Plugins' started by Jeferson Richart, Jul 19, 2018.
Does anyone know if I can get the server name variable in the internal plugin?
The only way I know how to do this, is by extracting it from the actual server window.
You have to do an EnumWindows() to get a handle to the window matching the rFactor processId, and then retrieve the game name from the static text element.
Have a look at the source of my welcome plugin, I do something similar there to programmatically use chat feature: https://forum.studio-397.com/index.php?threads/welcome-message-plugin.30954/
I'll try. Thank you very much.
Your plugin works on the Dedicated server.
Do you have a way how to get this info in the clients as well ?
I need to know where is it connected...
There's an mServerName in ScoringInfoV01.
Check the header files from the rules examples: https://www.studio-397.com/wp-content/uploads/2016/12/RulesPluginExampleSourceCodev1.zip
Thank you very much !!!
I did not know about this verion if the HPP ...
I had memories of seeing this sort of thing (server name, server IP, etc) but when I looked at the files I had I couldn't find them. Thought I was going mad. Now only after seeing this, I remember I checked the example plugins for differences when they released the rules examples, and posted this:
Huge thanks for sharing this Lazza!
Separate names with a comma.