Search found 96 matches

by Yuuji
Fri Mar 06, 2015 10:46 am
Forum: Ren'Py Questions and Announcements
Topic: JSON problem[SOLVED!]
Replies: 4
Views: 810

Re: JSON problem

Now I've got one more problem. When I do this: config.save_json_callbacks = [] nothing changed. save_phrase function is in callbacks list doesn't dissapear from there. I tried to delete save files, to comment #d["phrase"] = last_phrase in save_phrase function but last_phrase is saved and I can do no...
by Yuuji
Fri Mar 06, 2015 10:19 am
Forum: Development of Ren'Py
Topic: Ren'py macro
Replies: 2
Views: 1096

Re: Ren'py macro

Yes, of course I can create screens with parameters and use these screens, but I think it would be fine if something like C pre-processor had been as engine feature. It's just suggestion, so don't mind if you think that's bad or unnecessary idea :)
by Yuuji
Fri Mar 06, 2015 10:12 am
Forum: Ren'Py Questions and Announcements
Topic: JSON problem[SOLVED!]
Replies: 4
Views: 810

Re: JSON problem

You want to do: config.save_json_callbacks.append(save_phrase) PyTom, thank you for your answer! But your code works as well as mine. I'm trying to save a last phrase from the game and scene name, but only last phrase is saved. There's a default json callback that saves the scene name. I'm sorry bu...
by Yuuji
Fri Mar 06, 2015 9:05 am
Forum: Ren'Py Questions and Announcements
Topic: JSON problem[SOLVED!]
Replies: 4
Views: 810

JSON problem[SOLVED!]

Hello! I'm trying to implement some save features in my game, but I have one problem. Here's some code: for i in range(1, 5): if FileLoadable(i): imagebutton: auto "image/menu/sl/panel_filled_%s.png" xpos 43 ypos 61 + (i - 1) * 111 action NullAction() add FileScreenshot(i) xpos 74 ypos 76 + (i - 1) ...
by Yuuji
Fri Mar 06, 2015 4:40 am
Forum: Ren'Py Questions and Announcements
Topic: How to make a ending credit in game?
Replies: 4
Views: 490

Re: How to make a ending credit in game?

Well, I depends on what do you want to show. If you want to show a video credit you can just make subtitles with some soft for this video and insert this video in the end of your game. Or maybe you want something else?
by Yuuji
Fri Mar 06, 2015 3:41 am
Forum: Development of Ren'Py
Topic: Ren'py macro
Replies: 2
Views: 1096

Ren'py macro

Hello! I have a suggestion but maybe someone has told about it before me. Sometimes I need to implement the same code in several places of ren'py scripts. For example, some of my buttons have different location and image background but the same conditional actions. I think it's good idea to implemen...
by Yuuji
Wed Feb 25, 2015 6:02 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to modify character properties?
Replies: 4
Views: 542

Re: Is it possible to modify character properties?

As to the name of the character, you can use code like this: define character1 = Character('[character_name1]') character_name1 = "my character" So, you can always assign character_name1 variable any string value and this value will be used as character1 name. Either you can use a persistent variabl...
by Yuuji
Wed Feb 25, 2015 2:02 am
Forum: Ren'Py Questions and Announcements
Topic: A float is required exception[SOLVED!]
Replies: 6
Views: 1008

Re: A float is required exception

Ah, yeah. I've found my mistake. I deleted save files with persistent data in them. Also I commented line "persistent.textWindowTransparency = 0.5"(far in the past) which set default say screen transparency. So when I tried to start my game I got an exception because persistent variable wasn't initi...
by Yuuji
Tue Feb 24, 2015 10:06 pm
Forum: Ren'Py Questions and Announcements
Topic: A float is required exception[SOLVED!]
Replies: 6
Views: 1008

Re: A float is required exception

PyTom, I'm using the latest version of Ren'Py(6.18.3).
by Yuuji
Tue Feb 24, 2015 7:36 am
Forum: Ren'Py Questions and Announcements
Topic: A float is required exception[SOLVED!]
Replies: 6
Views: 1008

Re: A float is required exception

No, I don't think so. In my case only thing I've done before exception appeared is that I've deleted save folders. Anyway, thank you for your suggestion. Are there any other ideas?
by Yuuji
Tue Feb 24, 2015 7:20 am
Forum: Ren'Py Questions and Announcements
Topic: A float is required exception[SOLVED!]
Replies: 6
Views: 1008

A float is required exception[SOLVED!]

Hello! After deleting folders with saves(in AppData folder and game folder) I got this: I'm sorry, but an uncaught exception occurred. While running game code: File "game/op.rpy", line 3, in script "Яркий солнечный свет на дороге словно объявляет о приходе лета." TypeError: a float is required -- Fu...
by Yuuji
Tue Feb 24, 2015 5:46 am
Forum: Ren'Py Questions and Announcements
Topic: Text save problem
Replies: 2
Views: 740

Re: Text save problem

Your solution works perfectly! Thank you very much!
by Yuuji
Mon Feb 23, 2015 1:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How to implement a quick menu for every text box?
Replies: 3
Views: 546

Re: How to implement a quick menu for every text box?

Yeah, you can do it, but for you case I suppose you should create separate quickmenu. Look into screens.rpy file. First textbox uses quick_menu() screen with screen language command "use quick_menu()". In your case you just can create another quick_menu(e.g. quick_menu_tsundere) with buttons that ha...
by Yuuji
Mon Feb 23, 2015 1:07 pm
Forum: Ren'Py Questions and Announcements
Topic: Disabling textbuttons [SOLVED]
Replies: 12
Views: 5275

Re: Disabling textbuttons

You can create textbutton and not assign to it any action if your condition hasn't been met. In that case button will be just unclickable. Or you are looking for some built-in function that disables a button?
by Yuuji
Mon Feb 23, 2015 5:24 am
Forum: Ren'Py Questions and Announcements
Topic: Text save problem
Replies: 2
Views: 740

Text save problem

Hello! I want to display in save file slot some information about this file: screenshot, save time, scene name and current text from message window. I know how to work with screenshots and save time. But I have a problem with scene name and current text. I suppose to display scene name I can use var...