Search found 12 matches

by emanuel
Sun Jan 03, 2021 4:46 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] What does "call ... from ..." do?
Replies: 7
Views: 1372

Re: What does "call ... from ..." do?

Thanks a lot Imperf3kt and emanuel for the answers so far. Let me put all your answers together and let me know if I am wrong please! ...from <name> 1. serves as a label for the call when it reaches return. 2. this is done internally, using a stack 3. it can be given by the coder. 4. if not pre-def...
by emanuel
Sun Jan 03, 2021 6:38 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] What does "call ... from ..." do?
Replies: 7
Views: 1372

Re: What does "call ... from ..." do?

Now I am completely confused. My labels change when I make different versions of the same script? Is RenPy doing this? Let's say when I have a label like: label wolf_event: how would the call look like to stay compatible no matter what version of the script I use? Whenever you call (not jump to) a ...
by emanuel
Fri Jan 01, 2021 7:35 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] What does "call ... from ..." do?
Replies: 7
Views: 1372

Re: What does "call ... from ..." do?

It sets a label that is used as a return point for loading saved games. This is used to retain compatibility with saved games from a different version of the same script.
by emanuel
Fri Jan 01, 2021 6:24 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]Why is a particular sprite disappearing while using Skip?
Replies: 2
Views: 439

Re: Why is a particular sprite disappearing while using Skip?

I've had a similar issue. I don't know exactly how it is caused, but I solved it by replacing the pause statement, with a $renpy.pause(1.0) call. I assume it has something to do with the pause statement actually resolving to a Pause transition which is completely skipped when using skip. The next im...
by emanuel
Fri Jan 01, 2021 6:07 am
Forum: Ren'Py Questions and Announcements
Topic: How do I lock and unlock Drees Up items in a list? [HELP]
Replies: 4
Views: 567

Re: How do I lock and unlock Drees Up items in a list? [HELP]

It seems you're not really understanding this code, so I added some explanation. This line sets a dictionary that is referenced to pick the right images, so for example, without change, dress4.png will be used. default persistent.dDress = { "skin" : 1, "glasses" : 1, "dress" : 4, "hair" : 2 } Here a...
by emanuel
Tue Dec 29, 2020 7:53 pm
Forum: Ren'Py Questions and Announcements
Topic: [Question] Making Two Menus?
Replies: 5
Views: 319

Re: [Question] Making Two Menus?

You can set the variable _game_menu_screen (notice the leading underscore) to another screen. That requires you to have two screens. I don't know if you can only change the style instead.
by emanuel
Tue Dec 29, 2020 7:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with user-selectable game music
Replies: 7
Views: 509

Re: Help with user-selectable game music

It seems to me your code only executes the play statement once; that's why you need to start a new game when changing music. Try putting it in a function: init python: def mymusic(file): persisten.mus_select = file renpy.play(file, 'music') np = file.strip("music/.ogg") tm = 10 renpy.notify("Now Pla...
by emanuel
Mon Dec 28, 2020 8:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Manage items in a list (Array)
Replies: 1
Views: 274

Re: Manage items in a list (Array)

You need to turn that in a Python block, like so: python: poolsupply = Item("Pool Supply", "Artículos de limpieza", "quimicos.png", 1, 5, 0, 150) productssent.append(poolsupply) for product in productssent: if product.daysittakes == product.dayspassed: productsdelivered.append(product) productssent....
by emanuel
Mon Dec 28, 2020 6:02 am
Forum: Ren'Py Questions and Announcements
Topic: Protect files from unpackers
Replies: 10
Views: 1221

Re: Protect files from unpackers

This may also help. https://lemmasoft.renai.us/forums/viewtopic.php?f=8&t=50002&p=486050#p486049 While it does nothing to actually stop a player unarchiving the files, it does help confuse them when they cannot open a file they don't recognise (Although its not hard to get around if you know what y...
by emanuel
Sun Dec 27, 2020 1:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED][Errno 10013] An attempt was made to access a socket in a way forbidden...
Replies: 5
Views: 378

Re: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions

I suffered from constant Windows updates and problems they caused (driver problems, monitor calibration reset) and after another one when i wasn't able to load OS for almost an hour after another update, i just found one of those side programs (tweaker) and turned updates off, and also turned off w...
by emanuel
Sat Dec 26, 2020 8:28 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED][Errno 10013] An attempt was made to access a socket in a way forbidden...
Replies: 5
Views: 378

Re: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Yes, this is a system error. It means you (or well, Renpy) are not allowed to open a connection for updating. What you should do: - Turn ON your firewall - Add a rule for Outbound traffic on TCP ports 80 and 443 and allow all connections - Restart your computer (this is technically not needed, but e...
by emanuel
Fri Dec 25, 2020 10:17 am
Forum: Ren'Py Questions and Announcements
Topic: Android 11 and access to android/data folder
Replies: 7
Views: 2512

Re: Android 11 and access to android/data folder

It may be worth pointing out that save games are not secure, so it might not be a good idea to have your game scan the sd card. If it loads the wrong file, it can execute arbitrary code.