Ok, so this is a long shot.
I'm using RPG Maker VX. In the code I've got an assignment of a picture to a variable, fair enough, but can I use the link to that picture be a web link so that it can be updated?
So instead of linking it to an image in the 'pictures' folder it links to a web host which hosts the image.
Possible?
Use online image
● ARCHIVED · READ-ONLY
-
-
Are you using VX or VX Ace?
-
VX
-
Okay, I know you said that but your primarily uses is Ace and sometimes people think they are the one and the same, so I wanted to confirm.
-
tttttttteeeeeechnicallyyyyy? (question mark? *shrugs*)
https://ruby-doc.org/stdlib-1.9.1/libdoc/open-uri/rdoc/OpenURI.html
I've linked to this forum from my game's credits page, and it works, so, technically yes, you can open a URLs from the game.
I don't know if you can retrieve the file tho. -
So the answer is a strong maybe. If you were trying to do this in plain old Ruby, the answer would be yes. But RGSS1, 2, and 3 don't all have all the same Ruby libraries.
For example, if you use the OpenURI library, which gstv87 linked to, this would actually be pretty easy. But it's not included in RGSS1 (RMXP). I'm not familiar with RGSS2 (VX), so it may or may not be included. If it is, then this link would be what you want to do: https://cobwwweb.com/download-collection-of-images-from-url-using-ruby -
Thank you! I'll give it a go later and post my results! Fingers crossed!
-
https://cobwwweb.com/download-collection-of-images-from-url-using-ruby
heh heh heh ..... brilliant! :biggrin: