Search found 2404 matches

by Ocelot
Sun Jan 28, 2024 4:31 am
Forum: Ren'Py Questions and Announcements
Topic: Problems with chapter select
Replies: 7
Views: 807

Re: Problems with chapter select [still need help]

I didn't read all that, since it looks like a pretty complex system and I prefer not to debug complex systems bt looking at partial code snippets from random places, but I noticed that you are trying to avoid persistent data as if it was goto . As long as you understand how persistent data works and...
by Ocelot
Sun Jan 28, 2024 3:55 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Problems with screen input
Replies: 4
Views: 669

Re: Problems with screen input

What do you mean by "When mouse1 is clicked, the input text also returns"? How do you determine that it is a return, because in your code I see nothing that can even return at all? Could it be a simple screen refresh that recreates your input value and you think that text disappearing is a...
by Ocelot
Fri Jan 26, 2024 5:13 pm
Forum: Ren'Py Questions and Announcements
Topic: Can hackers use Renpy code as malware?
Replies: 2
Views: 635

Re: Can hackers use Renpy code as malware?

A RenPy game is just a program runnning on your PC. It can do whatever any program can do, including creating files, deleting files and getting info about your PC.
In general you should treat RenPy game exactly as you would treat any other downloaded program.
by Ocelot
Thu Jan 25, 2024 2:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Error: 'str' object is not callable, textbuttons
Replies: 2
Views: 480

Re: Error: 'str' object is not callable, textbuttons

hovered "#000" That says "when the button is hovered, execute #000". Which makes no sense. you probably wanted to set hover_color property on text within button. Which is better done by using styles, but if you insist on setting it on buttons directly, it is either hover_text_co...
by Ocelot
Thu Jan 25, 2024 8:34 am
Forum: Ren'Py Questions and Announcements
Topic: how to word wrap?
Replies: 7
Views: 722

Re: how to word wrap?

it is \n not \N (capitalization matter) For the future, it is nessesary to specify what "does not work" means. Does it crashes without giving any errors? Does it give you an error? Does it work, but output is not what you want? If so, what did you get, and what did you expect? Or maybe it ...
by Ocelot
Mon Jan 22, 2024 2:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable is not saved when set via SetVariable as Button Action
Replies: 2
Views: 639

Re: Variable is not saved when set via SetVariable as Button Action

Checkpoints (which are where your game saves) happens between statements. Basically, whenever your script goes to the next line. In your example you never return from your screen and execution never goes to the next line, so checkpoint after changing your value does not happen, and game saves previo...
by Ocelot
Mon Jan 22, 2024 2:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Bug Replications
Replies: 35
Views: 75847

Re: Bug Replications

But it’s still a pity that I can’t regulate the connection between the container and the buttons inside. Sometimes it is still necessary - to attach one action to a large button, and another to the small buttons inside. For example, a save slot and an x button inside the slot, which is responsible ...
by Ocelot
Sun Jan 21, 2024 9:20 am
Forum: Ren'Py Questions and Announcements
Topic: Screen Language Vbox Children Alignment Problem
Replies: 5
Views: 668

Re: Screen Language Vbox Children Alignment Problem

My suggestion: use vbox with box_reverse set To True so it fills from the bottom. Place your button as first element and another vbox, which will contain the rest of the data, second. That second vbox should not have any padding set, so elements would be spaced properly horisontally.
by Ocelot
Thu Jan 18, 2024 4:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to save image binary data in MultiPersistent?
Replies: 1
Views: 557

Re: Possible to save image binary data in MultiPersistent?

Technically you can do that: encode your data in bese64 and store it as string, store it as a list of bytes... Then you can transform it back to binary image file and and make it into image, but that will require a lot of work and will severely slow down startup process. Instead I suggest to do what...
by Ocelot
Sun Jan 14, 2024 1:13 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Implementation of Inventory Functionality, but Facing Reset Issue upon Program Reconnection
Replies: 9
Views: 10253

Re: Implementation of Inventory Functionality, but Facing Reset Issue upon Program Reconnection

init python: my_clue = [] Unless top level reference changes this will be marked as constant by RenPy savesystem and will not be saved. Everything you want to save should be declared using default statement, unless you have an extensive knowledge of RenPy save system and can make it save some other...
by Ocelot
Sat Jan 13, 2024 8:30 am
Forum: Ren'Py Questions and Announcements
Topic: Saving and restoring screen state
Replies: 2
Views: 12284

Re: Saving and restoring screen state

It's too late to implement the virtual computer as a screen, because I'd have to rewrite thousands of lines of code. Welcome to the reality of software development. But if you want a qick fix, you can call you label in new context which should create a basically a new game state: https://www.renpy....
by Ocelot
Fri Jan 12, 2024 10:52 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] "maximum recursion depth" error when reloading game
Replies: 6
Views: 24839

Re: "maximum recursion depth" error when reloading game

Well, I never seen any indication of loading saving games working. I suspect that this is quite early in the development and there are no normal saves. Infinitie recursion is a common problem with __get/setattr__ and specifically with pickling something that tries to access its own field in those me...
by Ocelot
Fri Jan 12, 2024 6:16 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] "maximum recursion depth" error when reloading game
Replies: 6
Views: 24839

Re: "maximum recursion depth" error when reloading game

Pickling/unpickling accesses object fields. Unpickling does not run an __init__ method, instead setting all attributes manually. In your case you will have an object, without a parent field. When pickle accesses something (maybe even a parent to set it to the proper value!) it triggers __getattr__, ...
by Ocelot
Wed Jan 10, 2024 3:35 pm
Forum: Ren'Py Questions and Announcements
Topic: CPS fade in effect?
Replies: 2
Views: 26432

Re: CPS fade in effect?

Step 1: set cps to max, so all text appears at once. Step 2: add a transform to your game: transform text_appear: alpha 0. linear 0.8 alpha 1. Step 3: find say screen in screens.rpy and add at text_appear at the end of text what id "what" line. (you can change fade duration by replacing 0....