Jump to content
RAGE Multiplayer Community

C# bridge\server_logs.txt


Recommended Posts

Hey all,


Was working on a C# resource and kept getting this exception out of a worker thread with no source when running my OnResourceStarted itself and not through the server (so that I could test it)


System.IO.DirectoryNotFoundException: 'Could not find a part of the path 'C:\RAGEMP\server-files\bridge\resources\firstresource\bridge\server_logs.txt'.'


I searched all over ASP.net and .NET core docs to try to figure out how to disable this, before eventually realizing that it must be part of inheriting from Script. Could we disable this unless the Script obj is known to be running within the server? Or at least expose a way to change it from code? I don't like having to have a bridge\ folder somewhere I don't already have one just so that I can have a logfile.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...