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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.