Search found 104 matches

by Human Bolt Diary
Wed Jul 01, 2020 12:23 am
Forum: Ren'Py Cookbook
Topic: Simple Choice logging system
Replies: 4
Views: 237

Re: Simple Choice logging system (don't need to define 1000 variables)

I would advise not to use this. On a surface level, this implementation is just a wrapper over python's list. It does not add or modify any functionality, but anyone using it will be unable to benefit from all the python list tutorials available online. If you really want this sort of implementation...
by Human Bolt Diary
Fri Jan 31, 2020 11:47 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

Do you mean switching the screen used by one Encyclopaedia, or switching which Encyclopaedia you're using? Switching the entry screen used by one Encyclopaedia can be done by changing the Encyclopaedia's entry_screen attribute. Changing which encyclopaedia you're sending to the list screen depends e...
by Human Bolt Diary
Tue Jan 28, 2020 12:20 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

If the entries change too, it sounds like you need two separate Encyclopaedas, each pointing to a different screen. "encyclopaedia_entry" is just a default screen I've included. Any screen that takes an Encyclopaedia as an argument is valid. If only the layout changes, you could probably override th...
by Human Bolt Diary
Mon Jan 20, 2020 1:27 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

v2.4 of the Encyclopaedia Framework has been released. Download is available at: https://github.com/jsfehler/renpy-encyclopaedia/releases/tag/v2.4 EncEntryTemplate was added in this release. Documentation at: https://renpy-encyclopaedia.readthedocs.io/en/latest/templates.html A small wrapper around ...
by Human Bolt Diary
Mon Jan 20, 2020 1:16 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

You can't really access variable names in python. You could hack together a solution using the inspect module, but it's not a good idea. The most efficient solution is to reference your entries by their number. Your second best is to add a tag to every entry, like: jupiter = EncEntry( parent=perso, ...
by Human Bolt Diary
Wed Nov 27, 2019 11:59 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

Your EncEntry doesn't have a parent Encyclopaedia set.

EncEntry allows a null value for parent, but will then crash. I'll make parent a required argument in the future, since I can't think of a reason you'd want an EncEntry not associated to an Encyclopaedia.
by Human Bolt Diary
Mon Nov 25, 2019 12:29 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

Your error is: text "{} Complete".format(enc.labels.percentage_unlocked) AttributeError: 'unicode' object has no attribute 'labels' This is telling you that the value you provided to `enc` is text, when it should be an Encyclopaedia. imagebutton: idle "gui/button/button-Encyclopedia.png" hover "gui/...
by Human Bolt Diary
Sat Nov 02, 2019 9:42 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

Thanks for the update. I am still however having the problem of "Enc has no value" To illiterate I don't need most of the text as I just want a simple list with buttons to read extra text for shit in the game. Like the notes section of a cellphone. If I could find anything else I'd use it but it's ...
by Human Bolt Diary
Sat Nov 02, 2019 9:31 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

I've released version 2.3. The Encyclopaedia now takes the optional argument `tint_locked_image`. If set to False, EncEntries without a specified locked_image will not use a tinted version of the image, instead just using the image. This is mainly for times when a Displayable is used for the image ...
by Human Bolt Diary
Sun Sep 29, 2019 9:45 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

I've released version 2.3. The Encyclopaedia now takes the optional argument `tint_locked_image`. If set to False, EncEntries without a specified locked_image will not use a tinted version of the image, instead just using the image. This is mainly for times when a Displayable is used for the image a...
by Human Bolt Diary
Fri Jun 28, 2019 7:09 am
Forum: Ren'Py Cookbook
Topic: Random Music Generator
Replies: 3
Views: 628

Re: Random Music Generator

No need for all those if statements: # Music notes define notes = [ "images/a4.mp3", "images/a-4.mp3", "images/b4.mp3", "images/c4.mp3", "images/c-4.mp3", "images/d4.mp3", "images/d-4.mp3", "images/e4.mp3", "images/f4.mp3", "images/f-4.mp3", "images/g4.mp3", "images/g-4.mp3", ] # The game starts her...
by Human Bolt Diary
Sat May 18, 2019 12:51 pm
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

Most likely, you're calling a screen that takes an argument, but have not provided an argument. As per the documentation , calling the screen requires passing an Encyclopaedia object to it. Exception: Required parameter enc has no value. Get error when testing the zip of it as well. Haven't edited a...
by Human Bolt Diary
Wed Mar 20, 2019 12:07 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

I'm not sure if anybody has asked this already, but is there a way to make the bestiary conform to a save file? When I use the global encyclopedia, the unlocked entries are already unlocked whenever I start a new game. The only way to lock them again would be to delete the persistent file. On the o...
by Human Bolt Diary
Sun Mar 17, 2019 11:14 pm
Forum: Works in Progress
Topic: The Hero Arrives in 35 Minutes
Replies: 5
Views: 798

Re: The Hero Arrives in 35 Minutes

I've tried the game and it's great! I love the idea of picking the appearances and expressions then it shows in the story, also those options are unique which give me the sense of understanding this character that I played. I was sad that it ended quickly but it makes me replay the game again and a...
by Human Bolt Diary
Thu Feb 21, 2019 12:06 am
Forum: Ren'Py Cookbook
Topic: Encyclopaedia / Bestiary Framework
Replies: 98
Views: 21346

Re: Encyclopaedia / Bestiary Framework

v2.2 of the Encyclopaedia Framework has been released. Download is available at: https://github.com/jsfehler/renpy-encyclopaedia/releases The following changes were made: - Sort actions now use the get_selected method - encyclopaedia_list screen no longer sorts by number on exit - Sorting buttons on...