Search found 439 matches

by gas
Sat Aug 03, 2019 8:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Jump leads to NameError and mis-routing issue
Replies: 6
Views: 176

Re: Jump leads to NameError and mis-routing issue

I'll go differently, splitting the text and using temporary variables to store a flag for matching.
If the verb is there, set the verb flag to True. The same for subject.
Then finally use conditionals to decide where to jump.
Your progressive check method is prone to false positives.
by gas
Fri Aug 02, 2019 8:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How do I keep text from disappearing on transition?
Replies: 2
Views: 122

Re: How do I keep text from disappearing on transition?

Is not exactly easy as one can figure out, as usually transitions happen inbetween two interactions (in the "void space" between lines) to change the context of narration (the scene), so no text is usually needed. There's a complicate thing you can use, anyway: DICT TRANSITIONS. Is a matter of defin...
by gas
Fri Aug 02, 2019 7:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] TypeError: unbound method get_tooltip() must be called with Return instance as first argument (got nothing
Replies: 2
Views: 129

Re: TypeError: unbound method get_tooltip() must be called with Return instance as first argument (got nothing instead)

No. The Call stack just stack the calls expecting a Return at any point in the future , so jumping elsewhere doesn't throw errors. I think the issue is elsewhere (probably such screen). Anyway, to make a VERY lean code, you should abstract the code some more. Make a core routine, that call the prope...
by gas
Sun Jul 21, 2019 3:45 pm
Forum: Ren'Py Cookbook
Topic: Tilemap (Creator-Defined Displayable)
Replies: 30
Views: 4278

Re: Tilemap (Creator-Defined Displayable)

The problem is how to add walls by coordinates . The problem is : that code from M-77 is almost primitive and "hard coded". You should use: A Creator Defined Displayable that get pygame key events An event check that determine what frame to show each "moment" based on conditionals > If the game wor...
by gas
Fri Jul 12, 2019 7:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Align columns in a vpgrid?
Replies: 4
Views: 239

Re: Align columns in a vpgrid?

Each cell of the hboxes have a variable xsize if you don't specify it.
You should use a style prefix and determine a fixed xsize for text and textbuttons.
by gas
Fri Jul 12, 2019 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Force Capitalization in Ren'Py
Replies: 4
Views: 253

Re: Force Capitalization in Ren'Py

Code: Select all

$ name=name.capitalize()
by gas
Sun Jun 30, 2019 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [FIXED] A weird screen behavior in 7.3.0 compared to the 7.2.2
Replies: 2
Views: 513

Re: A weird screen behavior in 7.3.0 compared to the 7.2.2

Use enumerate function.

Code: Select all

for index, item in enumerate(iterable):
and 'index' will be the index number.
by gas
Thu Jul 19, 2018 9:18 am
Forum: Ren'Py Questions and Announcements
Topic: Start a new game from completed game?
Replies: 10
Views: 677

Re: Start a new game from completed game?

Use a json callback to store a variable tied to the status of the game.
The persistent discriminate between slots based on the content of the json.
Need code?
by gas
Wed Jul 18, 2018 8:26 am
Forum: Ren'Py Questions and Announcements
Topic: Lint Errors for Say with Image Attribute and LayeredImage
Replies: 1
Views: 156

Re: Lint Errors for Say with Image Attribute and LayeredImage

Lint can't predict the image 'cause it's computed at runtime, just that. It's not even a bug.
by gas
Tue Jul 17, 2018 11:27 am
Forum: Ren'Py Questions and Announcements
Topic: Screen Sticking to Main Menu
Replies: 1
Views: 166

Re: Screen Sticking to Main Menu

Remove tag menu from cg screens and show them as normal screens.
When you close the extra menu, the other tagged screens stay in the context.
by gas
Wed Jul 11, 2018 3:24 am
Forum: Ren'Py Questions and Announcements
Topic: [RESOLVED] Adding in-game variables to the file save name and Json?
Replies: 5
Views: 397

Re: Adding in-game variables to the file save name?

1) You can use save_name at any point in your script. $ save_name="Chapter"+str(chaptnum) ...for example. For a better management, you can use a json callback. Example init python: def myjson(jsondata): jsondata["name"]=charaname config.save_json_callback.append(myjson) That register the value of ch...
by gas
Mon Jul 09, 2018 1:35 am
Forum: Ren'Py Questions and Announcements
Topic: Max Menu Choices
Replies: 1
Views: 172

Re: Max Menu Choices

That's GREATLY depend on your graphics, custo ization and screen size... a vertical tablet game host more than horizntal one.
Anyway, by using the standard GUI, 1280*720, I've noticed the screen look very crowded at 5 choices, and have 6 choices mess any eventual narrator line.
by gas
Fri Jul 06, 2018 3:42 am
Forum: Ren'Py Questions and Announcements
Topic: SKIPPING FEATURE BEHAVING RANDOMLY
Replies: 5
Views: 287

Re: SKIPPING FEATURE BEHAVING RANDOMLY

Skip already seen text.... MAYBE????
Kids those days...
by gas
Thu Jul 05, 2018 2:43 am
Forum: Ren'Py Questions and Announcements
Topic: How do you keep character animations from skipping?
Replies: 2
Views: 170

Re: How do you keep character animations from skipping?

The new transition dict introduced in renpy 7 (see the changelog) do exactly that.
by gas
Wed Jul 04, 2018 3:18 am
Forum: Ren'Py Cookbook
Topic: Quick Time Event
Replies: 14
Views: 3523

Re: Quick Time Event

After the qte_setup label you can avoid to reassign attributes to variables, they are already in the store.