Jump to content

Plugin unable to load images

Closed 1.1.2

Marko Holm
Marko Holm

Posted

plugin unloads instantly due to not founding required images
I have copied images on folder as intended
I have no clue what have i missed
Help would be appreciated

pic.jpg

Screenshot_20231111_150622_RustControl.jpg

Jbird

Posted

Do you know if your server cannot access those files by chance? You might need to try something like this.

It does look like you have everything in the right places.

Marko Holm

Posted

it can access them. i host servers by myself with my own hardware
i tried to find out the reason by going thru config file and plugin cs but i couldnt find the reason itself
i could get it NOT unload plugin after it couldnt find pictures tho by modifying plugin cs and plugin stays up and works after that

Jbird

Posted

I know you have access to them but since they appear to be in the right place, I am saying that perhaps the server isn't accessing them. It has helped others in the past so it's worth a shot in my opinion. It is the only issue we've ever found that prevents this, but usually I think the error might say something about access, so it's still an odd occurrence. If you found a workaround that's great but if you'd like to look more into it we are happy to help with that as well.

Jbird

Posted

I do think you might be right @Marko Holm since it is saying that it does not see the images, as usually it would actually say that it has no access.

In this case you can try this, each plugin has this line and you can change it. We've only had one other customer with similar issues where we were at a loss for the reason. But if it fixes it for you that is what's most important.

 

Look for this line.

string url = "file://" + Interface.Oxide.DataDirectory + Path.DirectorySeparatorChar + image.Url;

And change it to this.

string url = Interface.Oxide.DataDirectory + Path.DirectorySeparatorChar + image.Url;

 

If this works for you then you can add it to any other plugins you have from KpucTaJl that have this feature. As for some reason your server is not seeing those files as they should, or at least as 99% of servers do. We enjoy a challenge though, and enjoy even more to fix things so hopefully this can help!

Marko Holm

Posted

that worked. thanks
if im correct, when server is run on personal hardware->plugin needs to be run with line you suggested
when server is being hosted by some service, plugin runs as is

anyways cheers for help 🙂

Jbird

Posted

There are some applications for self hosting that still process this as intended, so far you are only the 2nd person to ever run into this. But we have a fix locked and loaded in case anyone else has the issue!

Thank you for confirming @Marko Holm and for the feedback!

🍻

KpucTaJl

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.