Search found 14 matches
- Thu Aug 13, 2015 11:08 pm
- Forum: Development of Ren'Py
- Topic: Transforms not inherited during skip/rollback in v 6.99.5
- Replies: 2
- Views: 900
Transforms not inherited during skip/rollback in v 6.99.5
It began after i moved my project from version 6.13.12 to 6.99.5. It occurs when passing over show statements that replace an image with the same tag during skip or rollback (when rolling forward). The game works as previously when progressing through the scenes normally; however, during skip/rollba...
- Sat Oct 11, 2014 10:29 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Calling variables from saved games for the Save/Load screen
- Replies: 2
- Views: 1492
Re: Calling variables from saved games for the Save/Load scr
I don't know if there's a way to read other variables from the save file, but exploiting save_name to this effect may work. Your save_name will look something like this. $save_name='1|The Beginning' This function will break it up. init python: def get_extra_stuff(data): if '|' in data: chapter, titl...
- Sat Oct 11, 2014 8:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: delete saved games (three methods haven't worked)
- Replies: 3
- Views: 630
Re: delete saved games (three methods haven't worked)
This is a problem with the default keymap. Hovering over the slot and pressing delete will work on a mac if you paste this in options.rpy:
Code: Select all
config.keymap['save_delete'].append('K_BACKSPACE')
- Fri Jul 26, 2013 6:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: Customizing Menu Code, was ApricotOrange on Menu Choices
- Replies: 9
- Views: 1173
Re: Customizing Menu Code, was ApricotOrange on Menu Choices
does this work: $backpack = [("Rope", 5, 20), ("Pole", 7, 5), ("Vorpal Sword", 3, 500)] python: total_wt = 0 total_cost = 0 name_list = [] for item, weight, cost in backpack: name_list.append(item) total_wt += weight total_cost += cost It creates a list containing all ...
- Fri Jul 26, 2013 3:29 am
- Forum: Ren'Py Questions and Announcements
- Topic: screen before main menu screen
- Replies: 7
- Views: 2216
Re: screen before main menu screen
Oh. Sorry, that detail got away from me. Might work if you just have the timer jump to the opening's label instead.
Code: Select all
timer 40 action Jump('opening')
- Fri Jul 26, 2013 2:28 am
- Forum: Ren'Py Questions and Announcements
- Topic: Affection Screen won't appear.
- Replies: 2
- Views: 612
Re: Affection Screen won't appear.
If you want ui.callsinnewcontext() to work, you need to set up the label and screen this way instead... And use Return() instead of Hide() to dismiss the screen. label aff_screen: call screen aff_screen return screen aff_screen: imagemap: ground "affectionscreennew.png" hover "affecti...
- Fri Jul 26, 2013 1:51 am
- Forum: Ren'Py Questions and Announcements
- Topic: screen before main menu screen
- Replies: 7
- Views: 2216
Re: screen before main menu screen
Oh yeah... i just realized i have "Click to start" set to the button color, which may not have been the best choice. In some themes it's going to be too similar to the background. To change the color find this line: text "Click to start" xalign .5 yalign .75 style style.button_te...
- Fri Jul 26, 2013 1:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: screen before main menu screen
- Replies: 7
- Views: 2216
Re: screen before main menu screen
If you don't care how it works, just go to screens.rpy, select the entire main menu screen (except for the style block underneath) and paste the code i provided over it. I will try to explain it, though. This initializes the variable used to decide whether 'Click to continue' or the menu selections ...
- Fri Jul 26, 2013 1:12 am
- Forum: Ren'Py Questions and Announcements
- Topic: Customizing Menu Code, was ApricotOrange on Menu Choices
- Replies: 9
- Views: 1173
Re: Customizing Menu Code, was ApricotOrange on Menu Choices
Well, the first example won't work in this case. It will try to add the name of the item to the total weight. You would have to do this: python: total_wt = 0 for item in backpack: total_wt += item[1] I was once told by a better programmer than myself that i should choose the most immutable data type...
- Fri Jul 26, 2013 12:18 am
- Forum: Ren'Py Questions and Announcements
- Topic: Music/sounds won't play for specific scene only...
- Replies: 2
- Views: 710
Re: Music/sounds won't play for specific scene only...
1. Ren'Py seems to ignore sound files it can't load. Check to see if the path and filename are correct. Make sure they are actually .wav files. 2. There may be something wrong with the sound files. 3. The code that does work might be causing problems in the code that comes after it. Like if you chan...
- Thu Jul 25, 2013 11:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: screen before main menu screen
- Replies: 7
- Views: 2216
Re: screen before main menu screen
There might be a better way to do this, but something like this technically works... init python: show_main = False screen main_menu: # This ensures that any other menu screen is replaced. tag menu # The background of the main menu. window: style "mm_root" if not show_main: timer 40 action...
- Thu Jul 25, 2013 8:30 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can screen keyboard controls be made to ignore a button?
- Replies: 0
- Views: 271
Can screen keyboard controls be made to ignore a button?
So, i have these scenes where objects on the background trigger events when clicked. I've handled irregularly-shaped hotspots, by drawing multiple invisible buttons of various sizes to cover the desired area. At first, this seemed like a decent solution; however, this interacts poorly with keyboard ...
- Thu Jul 25, 2013 6:54 am
- Forum: Ren'Py Questions and Announcements
- Topic: Can I abort slow text while ignoring pauses?
- Replies: 2
- Views: 416
Re: Can I abort slow text while ignoring pauses?
I have the same problem. I don't know if there's any legitimate way to do this, but this is the workaround i'm using. It... sort of works. init: define w = "{cps=2} {/cps}" And you use it like this... Lyre "I think we should leave.[w] It’s {i}crawling{/i} with enemies inside and they ...
- Thu Jul 25, 2013 5:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: Percent complete feature...? [SOLVED]
- Replies: 8
- Views: 1160
Re: Percent complete feature...?
Ok, so i threw this together. They don't both work at the same time though, so just choose one. Persistent data method... #++++++++++++++++++++++++++++++++++++ #+++this method saves data that pertains to all playthroughs of the game #+++ init python: #+++ def GenerateNodes(n): d = {} for i in range(...