One more technical question - is the width of the text-box in the discussion frame customizable? I want to put a larger and wider phone background in, and set the xwidth and ywidth accordingly, but the text-bubbles still seem to be limited to ~200 pixels or something. Is there an additional variable controlling this?
Hey, I have found out the game crashes/throws errors pretty frequently when I try to click through it fast and the phone transitions don't have enough time to play. Is there any way to prevent that?
Btw is there a dark mode? Can i enable it somewhere by default?
if you get a parsing error on the `phone call` statement, then it might be because you aren't using the latest version
also, the name of the layer isn't `video_call_layer`. it's the value of the phone config variable phone.config.video_call_layer, which defaults to `phone_video_call`.
← Return to phone framework
Comments
Log in with itch.io to leave a comment.
Hi, I'm new to both ren'py and python but have managed to get my group chats working nicely; this is a great framework.
A nice to have, maybe it's there but haven't figured it out: How to change the phone's border colour depending on whose phone is being view?
That is, I have 3 characters who have distinct group chats, I should like to give their phones different border colours to reflect their personas.
Is this possible, if so how?
One more technical question - is the width of the text-box in the discussion frame customizable? I want to put a larger and wider phone background in, and set the xwidth and ywidth accordingly, but the text-bubbles still seem to be limited to ~200 pixels or something.
Is there an additional variable controlling this?
Alright, finally found it - there is a "xmaximum" in "phone_messages_frame". With that it works then.
Awesome framework, all in all!
Hey, I have found out the game crashes/throws errors pretty frequently when I try to click through it fast and the phone transitions don't have enough time to play. Is there any way to prevent that?
Btw is there a dark mode? Can i enable it somewhere by default?
There's varius errors, in renpy 8.2 also it looks like this was already packaged and reverse engineered with unrenpy.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/phone/system.rpy", line 3, in script
init python in phone.system:
File "game/phone/system.rpy", line 5, in <module>
from store import Random
ImportError: cannot import name 'Random' from 'store' (unknown location)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/phone/system.rpy", line 3, in script
init python in phone.system:
File "E:\RenPy 2\renpy-8.2.0-sdk\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "E:\RenPy 2\renpy-8.2.0-sdk\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/phone/system.rpy", line 5, in <module>
from store import Random
ImportError: cannot import name 'Random' from 'store' (unknown location)
Windows-10-10.0.22635 AMD64
Ren'Py 8.2.3.24061702
TestProject 1.0
Fri Jul 5 16:20:35 2024
[/code]
> from store import Random
i never wrote this line anywhere, so it's something you did wrong
is it possible to change the
_("The [group_chat._date_text] at [group_chat._hour_text]")
into
_("[name]: [last chat]")
im still not good with this coding stuff QwQ
I'm trying to change the default system date:
default phone.system.date = datetime.datetime(year=2023, day=13, month=7, hour=5, minute=1, second=2)
But I get a name error: date time is not defined?
the datetime module isn't included by default. you need to import it
ah, that makes sense! i saw "from datetime import datetime" just a little bit above but just doing
"init python: import datetime"
at the top of the script worked. thanks!
Hi love this, mucking around with it and im wondering how the video call function works.
Was wondering if i could use a video file as the call??
Thanks
to start a video call, simply do
`phone call "character" video`
the phone will then display a layer displayable, whose name is phone.config.video_call_layer.
all you need to do is show your video on said layer:
```
show my_vid onlayer phone_video_call
phone call "character" video
"video is showing on the phone"
```
show testvid onlayer video_call_layer
phone call "mc" video
"video is showing on the phone"
phone end call
keep getting error:
File "game/script.rpy", line 3499: end of line expected.
phone call "mc" video
so tried this
phone call ("mc" , video)
which fixed the error but now i get
File "game/script.rpy", line 3498, in script
show testvid onlayer video_call_layer
Exception: Trying to add something to non-existent layer 'video_call_layer'
i just know im either screwing up your coding or missing the obvious
please help
if you get a parsing error on the `phone call` statement, then it might be because you aren't using the latest version
also, the name of the layer isn't `video_call_layer`. it's the value of the phone config variable phone.config.video_call_layer, which defaults to `phone_video_call`.
Thankyou so much
Yep turns out i hadnt updated, what an idiot
Also i looked at that config and still put the wrong layer name...
excellent work on this btw thanks for your help
how to zoom the entire phone? i've been finding it on the documentation but cant find it (im sorry, im just a noob at these kind of things)
`gui.phone_zoom` in `phone_stuff.rpy`
i should probably doc these gui variables...
Thank you so much Elckarow!