Search found 25 matches
- Wed Mar 15, 2017 11:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Some questions about FileAction
- Replies: 5
- Views: 1266
Re: Some questions about FileAction
It was an iterator, in the slot screen. # Display ten file slots, numbered 1 - 10. for i in range(1, columns * rows + 1): # Each file slot is a button. button: action FileAction(i) xfill True In python, you use an iterator in the for... cycles. In this case, the iterator is "i" and go fro...
- Wed Mar 15, 2017 10:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: Some questions about FileAction
- Replies: 5
- Views: 1266
Re: Some questions about FileAction
Oh, finally I understand. RENPY SAVE EVERYTHING, all the variables are saved. But you can't read the values before the game is loaded. DON'T CHANGE THE CORE SCRIPT or when updating Ren'py your changes will disappear. Use JSON functions to store extra data inside an "archive" (please note:...
- Wed Mar 15, 2017 4:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Some questions about FileAction
- Replies: 5
- Views: 1266
Re: Some questions about FileAction
this is my mistake: the source code of FileAction: def FileAction(name, page=None, **kwargs): """ :doc: file_action "Does the right thing" with the file. This means loading it if the load screen is showing (current screen is named "load"), and saving otherwise. `na...
- Wed Mar 15, 2017 2:40 am
- Forum: Ren'Py Questions and Announcements
- Topic: Some questions about FileAction
- Replies: 5
- Views: 1266
Some questions about FileAction
The FileAction's role is to save/load archive. #the source code of save/load archive (part) ## The grid of file slots. grid gui.file_slot_cols gui.file_slot_rows: style_prefix "slot" xalign 0.5 yalign 0.5 spacing gui.slot_spacing for i in range(gui.file_slot_cols * gui.file_slot_rows): $ s...
- Tue Mar 14, 2017 11:54 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to save data with Archive ?
- Replies: 5
- Views: 781
Re: how to save data with Archive ?
@Ocelot has advised me not to do so (not manully saving data alongside savefile)
but ,i can't find other ways
Now question:
When I start the game, the dialog box is displayed immediately
but ,i can't find other ways
Now question:
When I start the game, the dialog box is displayed immediately
- Tue Mar 14, 2017 10:42 pm
- Forum: Ren'Py Questions and Announcements
- Topic: how to save data with Archive ?
- Replies: 5
- Views: 781
Re: how to save data with Archive ?
All variables are saved and restored with the game. Ren'Py itself handles this. There are ways to break it, but they are rare, and should be fixed by fixing your code, not manully saving it alongside savefile. Only reason to add information to save manually, is if you want to retrieve it without lo...
- Tue Mar 14, 2017 9:06 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to save data with Archive ?
- Replies: 5
- Views: 781
Re: how to save data with Archive ?
In Game
Characters have some attributes (eg: intelligence's value, Intimacy’s value )
I want to save this data when i want to archive
the archive and the attribute's data are one-to-one correspondence
???
Characters have some attributes (eg: intelligence's value, Intimacy’s value )
I want to save this data when i want to archive
the archive and the attribute's data are one-to-one correspondence
???
- Tue Mar 14, 2017 8:32 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to save data with Archive ?
- Replies: 5
- Views: 781
Re: how to save data with Archive ?
I can't get the index of archive
- Tue Mar 14, 2017 7:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: how to save data with Archive ?
- Replies: 5
- Views: 781
how to save data with Archive ?
I want to save some data when i go to archive!(the data and the archive are one-to-one correspondence) of course ,when I want to load the archive, I would like to load the data corresponding to this archive。 So , what should i do ? Because , I can't read and update the code of archive (eg: FileActio...
- Mon Mar 13, 2017 10:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How is the gui's image imported
- Replies: 7
- Views: 1311
Re: How is the gui's image imported
Yes, that's my puzzles。if i want to customize the style of Save/Load , it is difficult for me。But anyway ,thank you every body! I studied Renpy just two weeks,i'm trying now
- Mon Mar 13, 2017 2:37 am
- Forum: Ren'Py Questions and Announcements
- Topic: How is the gui's image imported
- Replies: 7
- Views: 1311
Re: How is the gui's image imported
watch the picture ,please!
- Sun Mar 12, 2017 11:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How is the gui's image imported
- Replies: 7
- Views: 1311
How is the gui's image imported
The dir( game/gui) is default . But I can't find where the images are imported to
- Sat Mar 11, 2017 11:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to disable / enable a button's click event?
- Replies: 1
- Views: 386
How to disable / enable a button's click event?
if it is a view button , i do it like the code textbutton _("<") : if curr_page > 1: action SetScreenVariable('curr_page',curr_page - 1) But if the button is a viewgroup , how to do it button: action ShowMenu("character_info") has vbox text _("a dog"): style "chara...
- Sat Mar 11, 2017 6:13 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to update screen?
- Replies: 6
- Views: 2233
Re: How to update screen?
@Ocelot Thank you so much !!!
i have taken much time in the question!
Thank you . I 'm from China , This document is a bit hard for me 。
i have taken much time in the question!
Thank you . I 'm from China , This document is a bit hard for me 。
- Sat Mar 11, 2017 5:10 am
- Forum: Ren'Py Questions and Announcements
- Topic: How to update screen?
- Replies: 6
- Views: 2233
Re: How to update screen?
default _curr_page = 1 ## range(1, 10) gives the numbers from 1 to 9. for page in range(1, 10): textbutton "[page]" action SetScreenVariable(_curr_page,page) [color=#FF0000]While running game code: TypeError: __call__() keywords must be strings -- Full Traceback --------------------------...