Prevent dedicated server from using plugin

xpolhecx

Hi

I am working on internal plugins for rfactor 1.255 but i have problems because dedicated server also use my plugin. Is there any options i can prevent this?
 
Here are a few things I can think of:

1) Running the dedicated server in a separate rFactor installation
2) Writing a lock file from the plugin and preventing the plugin from becoming active in the dedicated server instance
3) Look up the executable name from within the plugin, and if it contains the string "Dedicated", prevent the plugin from becoming active
 
4) check up realtime mode. RealTime mode is enabled only if a car driven by real driver goes on track. It means, dedicated server never will fire this event up. But of course server will behave the same way as game client until driver will stay in garage.

But, in overall, running dedicated server and game client from the same installation is not a good idea
 
Thank you. I'll try running dedicated server from different location
 

Back
Top