Jump to content

Images not loading

Work in Progress 2.0.3

papi
papi

Posted (edited)

I have tried everything to get the images to load but nothing works.

Do the images get stored by Image Library? I did a refreshall onj ImageLibrary thinking this was not downloading them for some reason.

I changed the images to imgur url's and then dropbox files but nothing worked

How can I disable the image placeholder so atleast i can use the text pop-up.  Or format for files to be loaded fromj the server locally.

Edited by papi
RoadTech

Posted

i think your problem come on imagelibrary, on my server all work, on other server work too. 

So i think we can try too found the problem, do you have dedicated server or server heberg ?

Do you have any other plugin active working with imagelibrary ?

Have you error in console ?

Can you show me you config file 

papi

Posted (edited)

I am on a dedicated server.  There are multiple plugins using ImageLibray but no errrors in console.

My config is the default one for testing.

What path would i use for local directory?

 private void OnServerInitialized()
        {
            storedData = Interface.Oxide.DataFileSystem.ReadObject<StoredData>("TutorialDisplayData");
            ImageLibrary?.Call("AddImage", "C:\rustserver\server\Apocalypse\image1.png", "ImageID1");
            ImageLibrary?.Call("AddImage", "C:\rustserver\server\Apocalypse\image2.png", "ImageID2");
            ImageLibrary?.Call("AddImage", "C:\rustserver\server\Apocalypse\image3.png", "ImageID3");
            ImageLibrary?.Call("AddImage", "http://www.image-heberg.fr/files/16979779363922503647.png", "ImageID4");

            LoadConfigData();

TutorialDisplay.json

Edited by papi
RoadTech

Posted

Changed Status from Pending to Work in Progress

RoadTech

Posted

Try last update and give me log console i have add log for see the problem

papi

Posted

image.png.0e4a8ca56512b2eb19201601a00795a4.png

 

same issue no errors in console

RoadTech

Posted

I sée you problem but sorry its not my plugin the problem, its your dedicated serveur. I now this problem look on Google for that its imagelibrary. He have problème for download your picture. 

papi

Posted

I agree it's probably a regional issue getting these files from your host.

1. How can I disable the image placeholder in your plugin; or

2. change the URL's to a file location that is local on the server?

 ImageLibrary?.Call("AddImage", "C:\\rustserver\server\Apocalypse\image1.png", "ImageID1");

papi

Posted

Your images are unencrypted URL's and not being added by ImageLibrary


storedData = Interface.Oxide.DataFileSystem.ReadObject<StoredData>("TutorialDisplayData");
            var success = ImageLibrary?.Call("AddImage", "http://www.image-heberg.fr/files/16979388842771375397.png", "ImageID1");
                if (success == null || !(bool)success)
                {
                    Puts("Failed to load ImageID1");
                }

papi

Posted

All URL's added by other plugins are from https:\\ links

 

papi

Posted (edited)

The following image ID's are in ImageLibrary 
    "ImageID1_0": "2341879970",
    "ImageID2_0": "288044601",
    "ImageID3_0": "1520789830",
    "ImageID4_0": "700902369"

Not sure why it's added with a _0

 

 

Edited by papi
RoadTech

Posted

No ^^ For change picture open CS file, and go in this line

 

        private void OnServerInitialized()

        {

            storedData = Interface.Oxide.DataFileSystem.ReadObject<StoredData>("TutorialDisplayData");

            var success = ImageLibrary?.Call("AddImage", "http://www.image-heberg.fr/files/16979388842771375397.png", "ImageID1");

                if (success == null || !(bool)success)

                {

                    Puts("Failed to load ImageID1");

                }

 

                success = ImageLibrary?.Call("AddImage", "CHANGE THIS LINE WITH YOUR LINK ", "ImageID2");

                if (success == null || !(bool)success)

                {

                    Puts("Failed to load ImageID2");

                }

RoadTech

Posted

Have you another plugin with the same name ImageID1 2 3 4 ?

 

papi

Posted

could be from drug business plugin i will remove them

 

 

papi

Posted

These are defintely added by your plugin
    "ImageID1_0": "2341879970",
    "ImageID2_0": "288044601",
    "ImageID3_0": "1520789830",
    "ImageID4_0": "700902369"

 

papi

Posted

I can see in your plugin where to change URL's but how can i disable the image showing in game?

RoadTech

Posted

I'm working on update for put 0 in character for no picture if you want.

  • Love 1
papi

Posted

Sounds good. I can't get plugin to call image from ImageLibrray

  • Like 1
RoadTech

Posted

Perfecto ! So how you find the problem ?

papi

Posted

I havent solved it.  Just waiting for an update with the option to remove the images.

CupsOhJoe

Posted

How about you move the images url to Confiq file so easier to update with going into CS code

 

papi

Posted

what is the syntax for using config file?

 

CupsOhJoe

Posted

Quote

papi 62

Posted 4 hours ago

what is the syntax for using config file?

I mean the comment to the Dev.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

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.