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/
Hi Tygernoot! 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... Regards, Mitya
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
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: https://forum.studio-397.com/index.php?threads/plugin-interface-updates.52894/