Define an image from an online source?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Define an image from an online source?

#1 Post by Imperf3kt »

Is there any way to define an image for Ren'Py to use that I can update via an online source such as SFTP or FTPS via TSL or other similar methods?
I was thinking of including a screen for advertising 'upcoming titles' or similar that may change over time and I'd rather not ask people to update for what is essentially an in-built ad.
My target platforms are Android and iOS, if that makes any difference.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Define an image from an online source?

#2 Post by SuperbowserX »

Can you show an image showing upcoming projects at the time of release, and then provide a browser link saying "click here to view current and upcoming projects"?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Define an image from an online source?

#3 Post by Imperf3kt »

I could, but this was more of an idea for Cooking with RWBY, linked in my signature.

I was hoping to add an in-app advertisement for the IP owners and hopefully get them to officially adopt the project.
I believe that including some 'free' advertising about their constantly updating Store catalogue / featured shows index, would help improve my odds of achieving that goal.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Define an image from an online source?

#4 Post by PyTom »

There isn't a good way to do this at the moment. Let me think for a bit and see if i can come up with a way that would let you do it, since it seems like it could be a nice feature to have.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Define an image from an online source?

#5 Post by Imperf3kt »

Awesome, thanks Tom. Love your commitment to the community and the work you do for us.

Looking forward to the possibilities, but I understand if such a feature is not easy to implement or must be dropped.

Thanks for looking into it.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Define an image from an online source?

#6 Post by PyTom »

Turns out that this has existed for a long time as config.file_open_callback, which I had forgotten about.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Define an image from an online source?

#7 Post by Imperf3kt »

Awesome!

I'll check it out at the next available opportunity. Thanks for all the hard work PyTom.

E: okay, that one is going to take a while to understand.
https://www.renpy.org/doc/html/config.h ... n_callback
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: No registered users