Search found 849 matches

by Ocelot
Sun Apr 22, 2018 11:56 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'py config.archives namespace collision bypass
Replies: 8
Views: 393

Re: Ren'py config.archives namespace collision bypass

Taking data from already installed game is a pretty common pattern used by translators or modders. It requires user to provide game files himself, leaving distribution itself free of copyrighted data. In short, you must own the game before you can play derived games. Console emulators usually use si...
by Ocelot
Sat Apr 21, 2018 9:02 pm
Forum: Ren'Py Questions and Announcements
Topic: multiple screens/script files in editor - how to tell them apart
Replies: 4
Views: 328

Re: multiple screens/script files in editor - how to tell them apart

A quick note: if you delete, rename, move or alter script files themselves, delete .rpyc files and let game recompile them again. If there is a .rpyc file withput corresponding .rpy, it will still be loaded (and you will basically load two .rpy files with same content in your case)
by Ocelot
Fri Apr 20, 2018 6:22 pm
Forum: Ren'Py Questions and Announcements
Topic: showing numerical variables with commas
Replies: 2
Views: 168

Re: showing numerical variables with commas

Use python formatting:

Code: Select all

text "{:,} G".format(gold)
by Ocelot
Fri Apr 20, 2018 6:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Cancel button with imagemaps
Replies: 5
Views: 327

Re: Cancel button with imagemaps

Do either Return(True) for confirmation or Return(False) for canceling. In calling code inspect returned value and act accordingly.
by Ocelot
Thu Apr 19, 2018 1:02 am
Forum: Ren'Py Questions and Announcements
Topic: Diffrence between Pause(), pause and renpy.pause()
Replies: 3
Views: 1471

Re: Diffrence between Pause(), pause and renpy.pause()

Imperf3kt wrote:
Thu Apr 19, 2018 12:59 am
Ocelot wrote:
Thu Apr 19, 2018 12:24 am
  • Pause(): Doesn't exist
It does according to the documentation
https://www.renpy.org/doc/html/transiti ... ause#Pause
Oh, thanks. I didn't remember it and documentation search did not show it. Will amend post in a minute.
by Ocelot
Thu Apr 19, 2018 12:24 am
Forum: Ren'Py Questions and Announcements
Topic: Diffrence between Pause(), pause and renpy.pause()
Replies: 3
Views: 1471

Re: Diffrence between Pause(), pause and renpy.pause()

Pause() : is not a pause like other two. It is a Transition: an effect applied to scene change. This one just shows new screen for some time. Not terribly useful by itself, but can be handi in case of sequencing several scene changes in a row. pause : can be used directly in RenPy script. Easy to u...
by Ocelot
Wed Apr 18, 2018 12:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Teprarily disable CTC without 'pause' function?
Replies: 3
Views: 262

Re: Teprarily disable CTC without 'pause' function?

I belerve the easiest way is to use "say with attributes" ( https://www.renpy.org/doc/html/dialogue.html#say-with-arguments ) and write nvl_narrator "My room is small, but I like it that way. It makes it easy to reach everything quickly. My {a=jump:dreambed}bed{/a} is pushed up in the corner, neatly...
by Ocelot
Wed Apr 18, 2018 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] If Statement and Variables Not Working
Replies: 3
Views: 232

Re: If Statement and Variables Not Working

In addition to trooper6 answer: Source of your problem is your jumps aftermenu item labels. You are jumping directly to menu, completely skipping check for memory.
by Ocelot
Sun Apr 15, 2018 12:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Composite doc missing
Replies: 2
Views: 237

Re: Composite doc missing

It seems that sphinx wasn't told about Live* stuff renaming, so it didn't include them in documentation. Right now you can use web archive link: http://web.archive.org/web/20170716182600/https://www.renpy.org/doc/html/displayables.html#LiveComposite . I probably should create an issue on github. And...
by Ocelot
Sun Apr 15, 2018 12:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Choices display issue [SOLVED]
Replies: 4
Views: 287

Re: Choices display issue

BY the way, what is the prioryty of code which sets config.screen_width variable? If there is nothing stting it directly, it might be initialized by gui.init() call. IN any case, it seems that it is set after you use it to calculate minimum width. So it defaults to 0, resulting in 0 after calculatio...
by Ocelot
Sun Apr 15, 2018 3:14 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] menus with a loop
Replies: 4
Views: 508

Re: menus with a loop

Try to follow what happens when code is executed.
Right now it creates following button:

Code: Select all

button:
    text "Start"
    action 'Start()'
See the problem?
by Ocelot
Sat Apr 14, 2018 2:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Choices display issue [SOLVED]
Replies: 4
Views: 287

Re: Choices display issue

Try to add style.rebuild() at init -1 python or higher.

Any reason you do not use style statements instead of manipulating style objects directly?
by Ocelot
Sat Apr 14, 2018 6:41 am
Forum: Ren'Py Questions and Announcements
Topic: The uses of "povname"[Solved]
Replies: 5
Views: 271

Re: The uses of "povname"[Solved]

Also if I'm not mistaken, since you've created the pov character before the input, it wouldn't even store the code in the character's name. You are mistaken here. "[povname]" is a dynamic string which will perform variable substitution each time it is evaluated, so it will work with povname changin...
by Ocelot
Thu Apr 12, 2018 2:22 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adding clickable link in credits?
Replies: 5
Views: 695

Re: Adding clickable link in credits?

You can use good old a tag: https://www.renpy.org/doc/html/text.htm ... -text-tags
Or you can make link text in textbutton instead of text displayable.
by Ocelot
Thu Apr 12, 2018 1:53 pm
Forum: Ren'Py Questions and Announcements
Topic: OverFlowError: value too large to convert to int (SOLVED)
Replies: 5
Views: 956

Re: OverFlowError: value too large to convert to int

Are there any variable named "menu"? Or "min", "max" or one of other reserved names?