Ok,
I made my choice : different name.
I remove this poor topic.
Thanks
Search found 43 matches
- Thu Jun 03, 2021 3:53 am
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]Local variable ?
- Replies: 2
- Views: 393
- Thu Jun 03, 2021 2:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]Local variable ?
- Replies: 2
- Views: 393
[RESOLVED]Local variable ?
Hy, (sorry, first time i don't give code, so explanation a little long) my question'll probably seem stupid and old as world but i'd a problem since a week and i just found the issue. The loads of save failed, displaying good sequence and suddenly displaying others things. I rewrote entirely my own ...
- Wed Jun 02, 2021 10:31 am
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]renpy.exists : fails with class property
- Replies: 6
- Views: 571
- Tue Jun 01, 2021 11:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]renpy.exists : fails with class property
- Replies: 6
- Views: 571
Re: renpy.exists : fails with class property
For example, your picture property could look like: @property def picture(self): return str(PICTURES_CHARACTERS) + self.idEvent.lower() + ".jpg" This will return a string with all variables already interpolated and ready to be used. Well try, but badly, str(PICTURES_CHARACTERS) returns [u...
- Tue Jun 01, 2021 3:15 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]renpy.exists : fails with class property
- Replies: 6
- Views: 571
Re: renpy.exists : fails with class property
In short, handle string interpolation yourself. Yeah but how to ? Sorry but each time we talk about interpolation my blonde brain cries and burns. I tried intermediate variable like: .../... $ test = str(lstTest[1].picture) .../... if renpy.exists( test ): ...:... # same result or this .../... $ te...
- Tue Jun 01, 2021 3:06 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Variable String success VS Numeric fails:
- Replies: 4
- Views: 495
Re: [SOLVED]Variable String success VS Numeric fails:
Ok,
must be tired. Re-check all and it works.
Sorry and thanks for thinking and time.
must be tired. Re-check all and it works.
Sorry and thanks for thinking and time.
- Tue Jun 01, 2021 2:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Variable String success VS Numeric fails:
- Replies: 4
- Views: 495
Re: Variable String success VS Numeric fails:
Cannot reproduce. Are you texting on a clean run, without using save games or quick script reload from within RenPy? Yeah, all clean, always delete persistent,, recompile and delete saves (locals and \appdata) But you probably need reconfigure speaker to reproduce. Or I don't understand and you wan...
- Tue Jun 01, 2021 1:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [RESOLVED]renpy.exists : fails with class property
- Replies: 6
- Views: 571
[RESOLVED]renpy.exists : fails with class property
Hola guys, another quest. define PICTURES_CHARACTERS = "pictures/characters/" define idSpeaker = "player.jpg" default lstTest = [] #-------------------------------------------------------------------------------------------------- # START #----------------------------------------...
- Tue Jun 01, 2021 12:02 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Variable String success VS Numeric fails:
- Replies: 4
- Views: 495
[SOLVED]Variable String success VS Numeric fails:
Hey guys, 2 days on this problem, and I'll bcome crazy. Ok, code is simplest way to explain : script.rpy define idSpeaker = "player.jpg" define PICTURES_CHARACTERS = "pictures/characters/" default lstTest = [] # HERE SWITCH STRING TO NUMBER default maVariable = "Init" #...
- Tue Feb 02, 2021 10:33 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Is there a way to Debug Load Save ?
- Replies: 0
- Views: 535
[SOLVED]Is there a way to Debug Load Save ?
Hi everybody, today is a hard day : for the first time, I can't give you code to submit a 2 weeks old bug. What happen : I display "say" statement at the same time of choices in menu block. And in some cases, when I save datas, the thumbnail for the save is good, we see dialog and choices,...
- Sat Jan 30, 2021 2:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]One Class : differents ways to init attributes
- Replies: 4
- Views: 417
Re: One Class : differents ways to init attributes
Ok guys,
I notice your answers. Thought there was something else but it's ok, I just have to choice.
Thanks a lot
I notice your answers. Thought there was something else but it's ok, I just have to choice.
Thanks a lot
- Fri Jan 29, 2021 12:39 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]One Class : differents ways to init attributes
- Replies: 4
- Views: 417
[SOLVED]One Class : differents ways to init attributes
Hi everybody, i'm sure it's a simple thing for you, but don't find how to. Have a common caracter class: class Characters(object): def __init__(self, id, name, strength): self.id = id self.name = name self.strength = strength Goal is to create an instance Hero and some Enemies instances. For Enemies...
- Sat Jan 16, 2021 4:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Dynamic Data for a class attribute
- Replies: 3
- Views: 646
[SOLVED]Dynamic Data for a class attribute
Ok guys and thanks for your replies, sorry you don't understand what I want. In one sentence : just want to construct the name of a VARiable with others variables values and assign this VARiable to a class attribute. (clearer !! not sure) So, reading yours answers, i (and you) found the solution : d...
- Fri Jan 15, 2021 1:22 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]Dynamic Data for a class attribute
- Replies: 3
- Views: 646
[SOLVED]Dynamic Data for a class attribute
Hy guys, sorry for the subject, hope my code will be clearer than title. I give you the code and I think you'll understand which problem i want to solve. Let's go define idSpeaker = "player.jpg" default Var_Globale01 = "fr" init python: class clsTest01: def __init__(self, name=&q...
- Fri Dec 25, 2020 10:04 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Dynamic Movie Player
- Replies: 8
- Views: 1941
Re: Dynamic Movie Player
Why don't you like to define all the videos? You should know what videos you'll show later... Hi Alex and thks for answer. In fact, I don't like to hard code filenames and some other things. It' just my (a) way of coding. For example, with a renpy project, you have a lot of pictures. Those pictures...