Can't get an image from a local file to load
Hi there,

I have installed the Sign Artist plugin OK and have set permissions for myself to test. The server is running on a Windows 10 system.
I am currently trying to put a dart board image on a spinning wheel.  I have saved the dartboard image to both my gaming PC and the server.
Gaming PC -> C:\Temp\Darts.jpg
Server -> D:\RustServer\Images\Darts.jpg
I placed both files in easy to find folders.
If I try to load the image from my games PC and use the command "/sli file:///C:/Temp/Darts.jpg" I get told the file doesn't exist on the server.  Fair enough, so I copied the file to the server.
I then use the command "/sli file:///D:/RustServer/Images/Darts.jpg" and am told "You don't have permissions to use images from the server's filesystem".  As the Rust process is running on the server through an account with admin permissions, I assumed that I would be able to load the local file.

Is there a trick to being able to load local files, or will I need to find an alternative way to paint signs?

Thanks,

Dave.
I am not familiar with how this works on Windows.  But, based on tradition, you might try double slashes after the drive letter.  What definitely works, and what I have always used, was to upload somewhere like imgur and copy the actual image path ending in jpg/png.
Thanks RFC1920,

I've tried with the double slash after the drive name "/sli file:///D://RustServer/Images/Darts.jpg" but I still get the same error.
I have also tried using backslashes after the drive letter in case Windows is being fussy "/sli file:///D:\RustServer\Images\Darts.jpg" but still the same error.

As I am only trying to add a dart board and don't want to go through all the hassle of creating an account on a hosting server and uploading the image, I am just going to use RustAngelo.

Thanks anyway,

Dave.
Trying it now, btw.

Merged post

Perhaps 2 slashes before C: or D: and one everywhere else?

BTW, imgur.com doesn't require account creation afaict.

Thanks again RFC1920.  as a test I have tried just using some of the copied URLs from the google image search.  This works OK, but none of the images actually fit the spinning wheel correctly, which is why I wanted to use the local file I resized for the job.
I tried with various amounts of slashes (forward and backslashes) in front of the drive name and after to see what happens.  It looks like the plugin is smart enough to adjust what I enter, so it comes back with the same result each time.  I still don't have permission.
The only thing I can think of now is to kill the server and restart it with "Run as Administrator" instead of just running it as normal through my elevated account.  But I have to wait until my players are offline. I have also checked the permissions on the server file system and the RustServer folder isn't locked down in any way, so anything should be able to access that folder.

Thanks,

Dave.

/sil file:///c:\img\420.PNG worked for me.
Hi rfc1920,

I've tried using the same syntax that you have used:
/sil file:///d:\RustServer\Images\Darts.jpg, but I still get the same error.  It's probably my server causing the issue.
I'll give it a restart and see if that helps.

Thanks,

Dave.
Hi again,

Here is an update.  I have restarted my server and launched the RustDedicated under admin permissions and I still get the same error.
I am now just using online images I find through google as that works OK.
I had a look around my server to see if there were any restrictions that could be in place to prevent RustDeciated from accessing the 2 folders I store images in and there are none.  It has me baffled.

Cheers,

Dave.
I was able to load a local image with '/sil file:///C:\\XXX\XXX.jpg'
I'm pretty sure that it's my server that the problem.  The various syntax I have tried all result in the same permission error.  I am now just using online images to get around it.  Thank you for your assistance anyway.

Cheers,

Dave.
Mr. Dave,

Did you ever find a fix or workaround? I'm having the same issue, but my server is Linux (Debian 9.9).

Command is "/sil file:///home/rustserver/images/barn1.jpg" Used to work but I haven't played in a few months so I'm not sure when it broke.

Thanks
Sorry mate,  I had no luck.  My OS is Windows 10 and I have looked a file and folder permissions with no luck.  The RustDedicated is runnning with full admin privileges too.  I cant figure it out.  I just use images from Google Image Search to find what I need.
Upload images you want to use to imgur (or similar) and link them from there.