Author Topic: Download image from website  (Read 871 times)

According to the TGE forums, it can be done with an HTTPobject. However I am unsure on the methods to use. Would I use Connect() to connect to the .png file, or use Get() to connect to the URL with a php query, post() to do similar to get, and once I'm connected to the image URL what method could be used to place the image into my Blockland directory?

This is demonstrated in RTB, and you can use the HTTPObject but the TCPObject is recommended.

This is demonstrated in RTB, and you can use the HTTPObject but the TCPObject is recommended.
I have spent much time sifting through the code pile we know as RTB. It has so many lines of code in each .cs it would take me literly days to find it.

cntrl-f allows you to

Use that, it might take a while. I believe that it would be in Mod Manager.cs file. As it goes with mod manager.

cntrl-f allows you to

Use that, it might take a while. I believe that it would be in Mod Manager.cs file. As it goes with mod manager.
Like I haven't tried that. What might I search?

"TCPObject" in RTBC_ModManager.cs - and its not just a pile of code, its probably better organised than most if not all other add-ons.

"TCPObject" in RTBC_ModManager.cs - and its not just a pile of code, its probably better organised than most if not all other add-ons.
Nonono, I wasn't saying it's unorganised, I was saying that it's massive size makes it a hassel to search through, and I'm sure you use TCPObjects for many things besides image collection.

I found 4 occurrences of "TCPObject" in that file - is that not narrowed down enough?

I thought there would be more, thanks for the help