Search found 31 matches

by Silence in Space
Wed Aug 29, 2018 1:47 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you create an output text file?
Replies: 9
Views: 3361

Re: How do you create an output text file?

Ren'Py has full frameworks in place to create, remember, amend, delete as many variable values as you want. The store module naturally remembers stuff as you go along and integrates into the rollback/forward and save facilities - if a passcode is added to the store then you rollback, the newly acqu...
by Silence in Space
Wed Aug 29, 2018 10:18 am
Forum: Ren'Py Questions and Announcements
Topic: How do you create an output text file?
Replies: 9
Views: 3361

Re: How do you create an output text file?

Ren'Py games will only have permission to create or edit files within their directory scope, so I'd imagine trying to target desktop or docs would likely fail as above... You'd also need lots of conditionals to spoof paths for all the different platforms and have to navigate around firewall/av prog...
by Silence in Space
Tue Aug 28, 2018 10:59 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you create an output text file?
Replies: 9
Views: 3361

Re: How do you create an output text file?

with open( os.path.join( renpy.config.gamedir, "testfile.txt" ), 'w' ) as f: f.write( 'text' ) Might work better Thanks! That actually worked! Now I am curious if there is a way to make it so that the text file is saved to (or created on) the desktop or the document folder. Is that possib...
by Silence in Space
Tue Aug 28, 2018 5:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you create an output text file?
Replies: 9
Views: 3361

Re: How do you create an output text file?

You can run Python statements in Ren'py. To run a Python statement at a specific point in your script, just use a python block. To run it at startup, just use an init python statement. https://www.renpy.org/doc/html/python.html If the said statement is placed into a python block (or an init python ...
by Silence in Space
Tue Aug 28, 2018 12:38 pm
Forum: Ren'Py Questions and Announcements
Topic: How do you create an output text file?
Replies: 9
Views: 3361

How do you create an output text file?

I am trying figure out how to write a simple output text file to be created via python such as: f = open('testfile.txt','w') f.write('\ntext') f.close() However, you cannot simply use python or init python to do this since it causes an error to occur if typed as is. Is writing a text file slightly d...
by Silence in Space
Fri Dec 22, 2017 5:52 pm
Forum: Ren'Py Questions and Announcements
Topic: NVL dialogue beginning on the left side of the screen.
Replies: 2
Views: 640

NVL dialogue beginning on the left side of the screen.

Is it possible to have dialogue for nvl-mode to display from the left side of the screen to the right side of the screen? I cannot seem to figure out what I need to do so that it does that.
by Silence in Space
Sun Dec 10, 2017 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Nested if/else Statements in Ren'Py/Python?
Replies: 1
Views: 397

Nested if/else Statements in Ren'Py/Python?

I am curious if the following is the correct way to right a nested if/else statement in Ren'Py using Python coding: $ fire_on = renpy.input("Yes/No?"): if fire_on == "Yes": jump turn_on_fire else: if fire_on == "yes": jump turn_on_fire else: if fire_on == "YES"...
by Silence in Space
Tue Oct 24, 2017 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Too Many Lines of Scripting?
Replies: 3
Views: 546

Re: Too Many Lines of Scripting?

You can also optimise that: https://www.renpy.org/doc/html/atl.html#block-statement image static: 'gui/instability/1static1.png' 0.1 'gui/instability/1static2.png' 0.1 'gui/instability/1static3.png' 0.1 'gui/instability/1static4.png' 0.1 repeat 6 'gui/instability/restability1.png' 2.5 block: 'gui/i...
by Silence in Space
Tue Oct 24, 2017 1:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing Self-Voicing from Activating
Replies: 14
Views: 4942

Re: Preventing Self-Voicing from Activating

Why do you want to make your game inaccessible to blind folks, though...? O_o I mean, I get that to a sighted person, the self-voicing might change the atmosphere, but consider: it's easy to just hit V again to turn it off if they accidentally turn it on, and also, without the voicing, a person wit...
by Silence in Space
Mon Oct 23, 2017 7:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Too Many Lines of Scripting?
Replies: 3
Views: 546

Too Many Lines of Scripting?

The game I am making is utilizing sequential images such as the following format: image static: 'gui/instability/1static1.png' 0.1 'gui/instability/1static2.png' 0.1 'gui/instability/1static3.png' 0.1 'gui/instability/1static4.png' 0.1 'gui/instability/1static1.png' 0.1 'gui/instability/1static2.png...
by Silence in Space
Mon Oct 23, 2017 7:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing Self-Voicing from Activating
Replies: 14
Views: 4942

Re: Preventing Self-Voicing from Activating

Take a look in 00common.rpy in your ren'py install folder and you can copy the self voicing code from there, into your project (screens.rpy is appropriate) and then edit it to disallow self voicing. Disclaimer: I may have the wrong file, going by memory. It is definitely in one of the 00*.rpy files...
by Silence in Space
Mon Oct 23, 2017 7:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing Self-Voicing from Activating
Replies: 14
Views: 4942

Re: Preventing Self-Voicing from Activating

define preferences.self_voicing = False init python: del config.keymap['self_voicing'] untested I get the following error message: I'm sorry, but an uncaught exception occurred. While running game code: File "game/options.rpy", line 97, in script define preferences.self_voicing = False Fi...
by Silence in Space
Sun Oct 22, 2017 8:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Preventing Self-Voicing from Activating
Replies: 14
Views: 4942

Preventing Self-Voicing from Activating

I have found that the self-voicing feature that is included with the keybindings to be annoying. Sure, I can simply remove it from the Help section on the Main Menu; however, this does not prevent the user from hitting "V" on the keyboard and activating it accidentally. I want to know how ...
by Silence in Space
Sat Dec 10, 2016 12:59 am
Forum: Ren'Py Questions and Announcements
Topic: Scrollbar In-Game Menu Coding?
Replies: 9
Views: 5419

Re: Scrollbar In-Game Menu Coding?

Might wanna change the child size , something like: screen choice(items): style_prefix "choice" side "c b r": area (100, 100, 600, 400) viewport: scrollbars "vertical" mousewheel True draggable True side_yfill True vbox: for i in items: textbutton i.caption action i.ac...
by Silence in Space
Sat Dec 10, 2016 12:57 am
Forum: Ren'Py Questions and Announcements
Topic: Scrollbar In-Game Menu Coding?
Replies: 9
Views: 5419

Re: Scrollbar In-Game Menu Coding?

The entire code for script.ryp ## The script of the game goes in this file. ## Declare characters used by this game. The color argument colorizes the name ## of the character. image bg blackness = "Nothingness.png" init: $ c = Character(_(None), kind=nvl, what_font="whitrabt.ttf"...