Search found 11 matches

by Saithir
Mon Jul 16, 2018 1:47 am
Forum: Creator Discussion
Topic: How and how often do you back up projects
Replies: 15
Views: 1424

Re: How and how often do you back up projects

Contrary to everyone else I use GitLab instead of Bitbucket, not sure why, there was probably something I didn't like about Bitbucket in the past, I don't really remember now. Doesn't really matter, as the principle is the same and they too have free private repositories. If you're collaborating on ...
by Saithir
Sat Jul 14, 2018 8:53 am
Forum: General Discussion
Topic: Python Dev Kit on Humble Bundle
Replies: 2
Views: 770

Re: Python Dev Kit on Humble Bundle

Thu May 03, 2018
for the next 13 days
by Saithir
Sat Jul 07, 2018 5:30 pm
Forum: Ren'Py Questions and Announcements
Topic: User defined function for code efficiency
Replies: 3
Views: 212

Re: User defined function for code efficiency

Ah wait that's wrong actually. You either want to pass a string name of the variable you want to change: def Function(var_name): real_var = eval(var_name) real_var += 50 And you run this with $ Function("my_awesome_variable") where somewhere else you got $ my_awesome_variable = 15 for example. or us...
by Saithir
Sat Jul 07, 2018 5:27 pm
Forum: Ren'Py Questions and Announcements
Topic: User defined function for code efficiency
Replies: 3
Views: 212

Re: User defined function for code efficiency

Yeah, that's not gonna work. You're trying to mix two things here - take a bunch of screen language commands and wrap them in a python function. You need to stick to python only and for that you need to replace all your "show screen x" with "renpy.show_screen('x')" and so on. So you would have (just...
by Saithir
Fri Jul 06, 2018 7:08 pm
Forum: Ren'Py Questions and Announcements
Topic: ------------------
Replies: 0
Views: 189

------------------

------------------
by Saithir
Wed Jul 04, 2018 3:04 pm
Forum: Ren'Py Questions and Announcements
Topic: Renpy Inventory System Class Errors
Replies: 6
Views: 344

Re: Renpy Inventory System Class Errors

Yes, heat waves, broken coffee machines, cats stepping on the keyboard and deleting parts of code, and other acts of God, are all perfectly fine professional programmer excuses :D
by Saithir
Wed Jul 04, 2018 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Renpy Inventory System Class Errors
Replies: 6
Views: 344

Re: Renpy Inventory System Class Errors

And again python is right ;) "TypeError: 'Container' object is not iterable" because it's not. for item in workbag Won't work without making some weird meta methods in the python class (can't help with that as I'm not that good yet), but you can make it work this way: for item in workbag.inventory H...
by Saithir
Wed Jul 04, 2018 1:21 pm
Forum: Ren'Py Cookbook
Topic: LayeredImage Tutorial
Replies: 9
Views: 1923

Re: LayeredImage Tutorial

Hm, now that I've tested it it works, but not the way I expected. I define the LayeredImage layeredimage npc: always: 'female-body' group head: attribute black default attribute pink Then I can use it as "side" images (not real side images but good enough) label npcs_are_talking: show npc as npc_1_s...
by Saithir
Wed Jul 04, 2018 4:52 am
Forum: Ren'Py Questions and Announcements
Topic: Renpy Inventory System Class Errors
Replies: 6
Views: 344

Re: Renpy Inventory System Class Errors

NameError: global name 'InvItem' is not defined Well, it's not. (seems code blocks can't bold things, but you're missing the underscore when you're using the InvItem in the method) class Inv_Item(object): def add_item(self, item, amount=1): self.inventory.append(InvItem(item, amount)) After fixing ...
by Saithir
Wed Jul 04, 2018 4:44 am
Forum: Ren'Py Cookbook
Topic: LayeredImage Tutorial
Replies: 9
Views: 1923

Re: LayeredImage Tutorial

Donmai wrote:
Tue Jul 03, 2018 11:06 pm
I believe that's a nice way to demonstrate things. I guess you never played the Ren'Py Tutorial game.
Demonstrate the effects of the code? Sure, no better way. Read and learn how to do actually do it? Ehhhhh...
by Saithir
Tue Jul 03, 2018 2:14 pm
Forum: Ren'Py Cookbook
Topic: LayeredImage Tutorial
Replies: 9
Views: 1923

Re: LayeredImage Tutorial

Nice tutorial, though making it a game is a bit strange. But I can read the code on github well enough, thanks for providing that :) I really wanted to like the LayeredImage but I encountered a problem that I couldn't figure out how to pass the attributes into a screen - not to be shown with show, b...