Search found 22 matches

by GreatSam
Fri Nov 07, 2014 3:54 am
Forum: Creator Discussion
Topic: Protecting a Game in Progress: How?
Replies: 11
Views: 2018

Re: Protecting a Game in Progress: How?

How much information can you leak out about your game during production without worrying about your basic game story/characters/ideas being stolen? I'm sure every ones' criticism would be helpful, so I've been considering announcing my game in lemma soft forums in the near future, but... you know. ...
by GreatSam
Tue Nov 04, 2014 5:26 am
Forum: Development of Ren'Py
Topic: [Feature Request] Setup python block within screen
Replies: 3
Views: 1095

Re: [Feature Request] Setup python block within screen

A default block would also be fine - actually, this is what I tried intuitively without looking in the documentation :D For me this feature would enable a bunch of new possibilities and isn't used by the standard user anyway. For me none of the things to implement my (trivial) example is convenient ...
by GreatSam
Mon Nov 03, 2014 3:34 am
Forum: Development of Ren'Py
Topic: [Feature Request] Setup python block within screen
Replies: 3
Views: 1095

[Feature Request] Setup python block within screen

Hi there, sometimes I would like to have some code to run before a screen is shown. Consider the following example: screen foo: $ text-color = renpy.random.choice(['FFFFFF','000000']) text "Foobar" color text-color align(0.5,0.5) ... As the $ lines is computed when the screen is already shown, this ...
by GreatSam
Thu Jan 09, 2014 9:22 am
Forum: Ren'Py Questions and Announcements
Topic: Access variable declaired within script from class
Replies: 6
Views: 2675

Re: Access variable declaired within script from class

In Python you normally speak of "global" variables in an scope of variable accessible throughout the whole application (see http://docs.python.org/release/2.4/ref/global.html). The following snippet illustrates what I mean with "global" - just to check you're with me: def foo(): global x # without t...
by GreatSam
Thu Jan 09, 2014 7:43 am
Forum: Ren'Py Questions and Announcements
Topic: Access variable declaired within script from class
Replies: 6
Views: 2675

Re: Access variable declaired within script from class

Thanks for your answer :) This was just a quick'n'dirty example, so I didn't have a look at when the class is instanced. In fact I really need it outside the init block for some reason, but that's just coincidence as I haven't had a look at this detail when typing the example :D :D My problem is tha...
by GreatSam
Thu Jan 09, 2014 5:14 am
Forum: Ren'Py Questions and Announcements
Topic: Access variable declaired within script from class
Replies: 6
Views: 2675

Access variable declaired within script from class

Hey guys, I've got an exotic question. Is it possible to have a variable-based communication between some class and a certain game? Sounds crazy, I know...an example will make it more clear what I'm trying to do: python: MyClass(object): do_something(self): return ":-)" if <foo_is_declaired_within_g...
by GreatSam
Fri Sep 06, 2013 6:16 am
Forum: Ren'Py Questions and Announcements
Topic: Drawing Skys with RenPy
Replies: 6
Views: 717

Re: Drawing Skys with RenPy

>It would save a lot of space No it wouldn't. Nice to have such an extensive answer :D It highly depends on your software as well as your image format of course but since such a mixing of colors is often not supported all pixels have to be saved separately. Due to the slightly variations of such co...
by GreatSam
Fri Sep 06, 2013 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: Drawing Skys with RenPy
Replies: 6
Views: 717

Drawing Skys with RenPy

I just read the documentation and had an idea. Why don't we try to draw the sky with RenPy build-in functions? It would save a lot of space as we don't need to save all those pixels within images all the time (a lot of images actually do contain sky of some kind). Look at this picture for example: h...
by GreatSam
Tue Sep 03, 2013 10:57 am
Forum: Ren'Py Questions and Announcements
Topic: classes, images, init and userland variables
Replies: 7
Views: 1118

Re: classes, images, init and userland variables

This is interesting. I got a similar code in my game which work fine, which is why I thought it would not be a problem. After I tried out your code (did you typed it out just on the fly instead of copying from the editor? it has quite a number of errors), the problem does exist. Have to go through ...
by GreatSam
Tue Sep 03, 2013 7:37 am
Forum: Ren'Py Questions and Announcements
Topic: classes, images, init and userland variables
Replies: 7
Views: 1118

Re: classes, images, init and userland variables

Whenever you quit to the Main Menu (assuming that you don't do anything weird), Ren'Py will invoke renpy.full_restart(). Everything would be reset, including variables in init block. In fact, all variables would be deleted, and the init block is run again. It is not called full_restart for no reaso...
by GreatSam
Tue Sep 03, 2013 6:50 am
Forum: Ren'Py Questions and Announcements
Topic: classes, images, init and userland variables
Replies: 7
Views: 1118

Re: classes, images, init and userland variables

Just a side note: the game will invoke renpy.full_restart() when you go back to main menu, so if somebody start a new game, everything would be reset, so this is not a problem you will face. Well, if you're trying the code fragment you'll see that images (due to their declaration before the game st...
by GreatSam
Mon Sep 02, 2013 6:38 pm
Forum: Ren'Py Questions and Announcements
Topic: (solved) LiveComposite in class environments + Refreshing
Replies: 10
Views: 1300

Re: (solved) LiveComposite in class environments + Refreshin

First, is there a reason you need to force an interaction in the first place? No not really but I dislike polling as it's the most static variant of how to implement such a behavior. It may be fine for just a few objects or within microcontrollers as there is no need to have a look at resources, bu...
by GreatSam
Mon Sep 02, 2013 5:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Clarify something about save/rollback...
Replies: 16
Views: 2115

Re: Clarify something about save/rollback...

This is exactly the problem I ran into... See: http://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=23050 All currently available systems to dress a character are rather simple - there are static and not at all dynamic since you'd have to define every outfit prior to the start of the game. Given the...
by GreatSam
Mon Sep 02, 2013 5:00 pm
Forum: Ren'Py Questions and Announcements
Topic: classes, images, init and userland variables
Replies: 7
Views: 1118

classes, images, init and userland variables

Hi guys, I ran into another problem with my classes. Now it's related to the problem that images must be defined before the game starts. Imagine you'd have a code fragment like this one: init -2 python: class Foo(object): def __init__(self): self.isCool = True def drawMe(self, st, at): if self.isCoo...
by GreatSam
Mon Sep 02, 2013 4:42 pm
Forum: Ren'Py Questions and Announcements
Topic: (solved) LiveComposite in class environments + Refreshing
Replies: 10
Views: 1300

Re: (solved) LiveComposite in class environments + Refreshin

It get's quite tricky when it comes to advanced programming in RenPy I guess :D The problem is that my class should not need to know which image refers to it. But due to the "always refresh when something changed"- feature it's okay to have a high refreshing time. The image will refreshed at every c...