Search found 159 matches
- Wed Mar 05, 2014 8:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: style/screen question
- Replies: 0
- Views: 303
style/screen question
More questions, because I feed off you're answers, apparently. Firstly, is there a way, in either screen language or just during style definition, that I can set a value based on a parent value? For example: window: #this window may not always be the same size style "predefined_window" vbox: style "...
- Wed Mar 05, 2014 7:18 pm
- Forum: Ren'Py Questions and Announcements
- Topic: defined name is not defined [resolved]
- Replies: 5
- Views: 514
Re: defined name is not defined
using quotes just spits out a "str object not callable" error. That said, I got a show statement to work. Not sure what changed, maybe there was a persistent typo I kept making every time I tried to call it before. I also discovered a "nvl show" somewhere in the script, which I imagine was not helpi...
- Tue Mar 04, 2014 7:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: defined name is not defined [resolved]
- Replies: 5
- Views: 514
Re: defined name is not defined
I have tried it both in and out of init blocks (the documentation says image statements will act like they're in init blocks either way, so I figured trying outside couldn't hurt), but it gives me the same error.
- Mon Mar 03, 2014 12:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: defined name is not defined [resolved]
- Replies: 5
- Views: 514
defined name is not defined [resolved]
I seem to be having trouble defining an image. I want to do this in Options file so I can use it in a custom style, but I've tried it in the script file for testing purposes: image bookLeft = im.Flip(im.Crop("UI Spritesheet.png", (720, 0, 720, 720)), horizontal=True) any reference to bookLeft, howev...
- Tue Feb 25, 2014 7:09 pm
- Forum: Ren'Py Questions and Announcements
- Topic: dicts and RevertableLists
- Replies: 10
- Views: 2157
Re: dicts and RevertableLists
"renpy.Python.RevertableDict" The weirdest part is that I use dicts elsewhere in the code and they don't seem to have exploded, yet. At this point I'm probably just going to re-write the whole function, since it is rather unwieldy as it is now. Still have no idea where this error is coming from, tho...
- Mon Feb 24, 2014 10:08 pm
- Forum: Ren'Py Questions and Announcements
- Topic: dicts and RevertableLists
- Replies: 10
- Views: 2157
Re: dicts and RevertableLists
Just for the record: if str(id) in earnedProgress: is better Python than: if earnedProgress.has_key(str(id)): but there is no chance that this will fix your error :( That's good to know, actually. I'll remember that. I'd always wondered about the import renpy.exports as renpy thing. I forget if it ...
- Mon Feb 24, 2014 7:30 pm
- Forum: Ren'Py Questions and Announcements
- Topic: dicts and RevertableLists
- Replies: 10
- Views: 2157
Re: dicts and RevertableLists
It is absurd, hence my need to ask. I get the same error even using dict() or _dict() The exact code throwing the error is... init python: import xml.etree.ElementTree as ET import math import renpy.store as store import renpy.exports as renpy ... earnedProgress = _dict() def achievement(type, id, s...
- Sun Feb 23, 2014 3:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: dicts and RevertableLists
- Replies: 10
- Views: 2157
dicts and RevertableLists
To avoid defining unnecessary Object types, I'm using a dict to store some data in my current project, but when I declare the empty ones in an init python block, apparently they're being declared as "revertableList" types! init python: dict1 = {} dict2 = {} dict1['testcase'] = 0 dict1.has_key('testc...
- Sun Feb 09, 2014 7:41 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.display_menu() for nvl mode
- Replies: 4
- Views: 983
Re: showing screens with renpy.display_menu()
Thank you for enduring my inane questions. This is exactly what I needed.
- Fri Feb 07, 2014 1:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.display_menu() for nvl mode
- Replies: 4
- Views: 983
Re: showing screens with renpy.display_menu()
is there a Python function call for that, or will I have to make one?
- Wed Feb 05, 2014 9:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.display_menu() for nvl mode
- Replies: 4
- Views: 983
[solved] renpy.display_menu() for nvl mode
I have a(nother) questions about renpy.display_menu(): when using it with nvl mode, even when calling a custom screen to show the menu (as opposed to "choice", "nvl", or "nvl_menu", all of which either break or just call the screen as an adv-mode screen), it still clears the nvl screen to show just ...
- Tue Feb 04, 2014 3:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.display_menu() in nvl mode?
- Replies: 2
- Views: 600
Re: renpy.display_menu() in nvl mode?
I was afraid of that. Oh well, I guess that means I have to play around with screen language some more. Thanks for the answer.
- Mon Feb 03, 2014 10:35 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] renpy.display_menu() in nvl mode?
- Replies: 2
- Views: 600
[solved] renpy.display_menu() in nvl mode?
since I need to build my menus dynamically, I need to make use of renpy.display_menu(), but even with the "$menu = nvl_menu" line, it jumps to a normal menu out of nvl mode. I tried $Chosen = renpy.display_menu(buildMenu(Page, Player), screen="nvl") but that just spits out a "name dialog is not defi...
- Mon Jan 27, 2014 10:01 am
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] inheriting from theme as a custom style
- Replies: 2
- Views: 385
Re: inheriting from theme and color scheme as a custom style
It's always something simple. Perhaps I should stop over thinking things.
For a point of reference, what, then, are the benefits of inheriting from style.default aside from resetting all the properties? Or are resetting all the properties the main benefit?
For a point of reference, what, then, are the benefits of inheriting from style.default aside from resetting all the properties? Or are resetting all the properties the main benefit?
- Sun Jan 26, 2014 3:23 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [solved] inheriting from theme as a custom style
- Replies: 2
- Views: 385
[solved] inheriting from theme as a custom style
I'm making custom styles for my current project, and while ultimately they will likely be overwritten for development it would be nice to keep the theme rules intact so we can see what we're doing during testing. For some reason (very likely my lack of understanding of styles and screen code), my cu...