Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sun May 19, 2013 1:20 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Updater Questions
PostPosted: Fri May 04, 2012 9:56 pm 
Newbie

Joined: Fri May 04, 2012 9:22 pm
Posts: 1
So, I'm planning a project, but it requires some extensive coding that I... simply cannot do. I can program battle systems, card games, and a cooking minigame into my visual novels, but that's basic using the Ren'Py language and a lot of if statements. It's gotten so frustrating, I created this account and come out of lurking to ask for help.

What I need the game to do is this:
  • Connect to a particular webpage.
  • Retrieve a true/false variable from the webpage, which will be generated by the site with... probably php code of sorts. (I'm not programming the page, it goes over my head, so I don't know what the programmer will use)
  • Upon a 'true' variable, check for updates.
  • Download said updates and apply them to the game.
  • Upon a 'false' variable, direct the game to a 'Sorry, you do not have permission to play this game' screen in the Ren'Py game. (This one is fairly simple, I think)

Now, I was looking at this code, which looks like it's capable of what I need to do. I think I can get it to connect to the page, but beyond that, I'm a bit lost. The variables being defined in that code also confuses me a bit. And I know I said there was a programmer involved, but they're only doing the site and can't help with the game side of things. And only if I can get this to work.

I just have a few questions:
  • Is it compatible with the latest version of Ren'Py?
  • How would I tweak it to receive the variable information? (I'm sorry, I usually need examples to understand code, and the documentation page gives me next to nothing to work on)
  • Would it be possible to import more than just the true/false information?

Thank you, so much, for any help you can give. I'm sorry I'm such a programming idiot xD;;


Top
 Profile Send private message  
 
 Post subject: Re: Updater Questions
PostPosted: Sat May 05, 2012 2:39 am 
Lemma-Class Veteran
User avatar

Joined: Mon Jul 21, 2008 5:41 pm
Posts: 3396
Projects: Planet Stronghold: Warzone, Loren The Amazon Princess, Queen Of Thieves, DIM, Undead Lily, and more...
Doing an updater is not easy as it seems, because on some systems with "security permission" could not work completely. I would recommend waiting for Pytom to make one, because using that code will likely work on your PC and many others but you're also going to have other kind of problems (UAC on windows, permissions on Mac, etc).

_________________
follow me on Image Image Image Image
computer games


Top
 Profile Send private message  
 
 Post subject: Re: Updater Questions
PostPosted: Sat May 05, 2012 3:29 am 
Veteran
User avatar

Joined: Sun Jan 09, 2011 7:10 am
Posts: 377
As long as you don't require elevated permissions for your installer there's no UAC/permission problem.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group