I have three music files that play during my game and when the music begins playing, I use renpy.notify to inform the player of what the song is called.
In backups of this project, everything works fine, but in the main version it no longer works, instead just displaying the variable name, and I cannot figure out why. It was working last I remember.
I've tried clearing persistent data and forcing a recompile but neither has made any difference.
What it looks like in a backup:
what it looks like in my main project:
This is the code I'm using, which is identical to the code in my backups.
Code: Select all
default np = "none"
default tm = 0
define audio.tcool = "music/Too Cool.ogg"
########################
play music tcool
$ np = "Too Cool"
$ tm = 5
$ renpy.notify("Now Playing - [np]")
Code: Select all
screen notify(message):
zorder 100
style_prefix "notify"
frame at notify_appear:
text "[message!tq]"
timer tm action Hide('notify')
transform notify_appear:
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 alpha 0.0
style notify_frame is empty
style notify_text is gui_text
style notify_frame:
ypos gui.notify_ypos
background Frame("gui/notify.png", gui.notify_frame_borders, tile=gui.frame_tile)
padding gui.notify_frame_borders.padding
style notify_text:
properties gui.text_properties("notify")
Anybody got any hints about whats going on?
I'd rather not start a new project and move everything over as I've done quite an extensive amount of work on the screens in this project (including since the backup) and I'd prefer to avoid redoing it/copying it.