Message Fade Out Time and Warning Suppression

By brakenwagen

Supporter (14)

brakenwagen's picture

25-03-2018, 07:17

Ok I think I’m coming to the end of my mad scientist project here, I got almost everything running the way I want it to. I’m trying to figure out a way to significantly reduce the fade out time of messages as I really don’t need them to stay on screen that long. I’ve already got the little menu icon in the corner taken care of by editing the osd_menu.tcl file but it doesn’t seem to seem to effect messages. I’ve also dealt with the LEDs by setting icons to none.

Also is there a way suppress warning messages? Whenever I play the game Snake-It it gives me this warning message “The running msx software has set an unsafe PSG port direction. Real(older) MSX machines can get damaged by this.” Well that sucks for people playing this game on real hardware but this is an emulator and the whole point of it is so you don’t have to worry about ageing hardware that will someday soon no longer be with us. So I really don’t need to see that message every time I boot up the game.

Login or register to post comments

By Manuel

Ascended (14125)

Manuel's picture

25-03-2018, 11:29

In share/scripts/callbackprocs.tcl, comment out this line:
set invalid_psg_directions_callback psgdirectioncallback
Like.this:
#set invalid_psg_directions_callback psgdirectioncallback

By Manuel

Ascended (14125)

Manuel's picture

25-03-2018, 11:28

Oh, and generic fade duration stuff is in share/scripts/_osd_widgets.tcl on line 120 and 121:

variable opaque_duration   2.5
variable fade_out_duration 2.5
variable fade_in_duration  0.4

By brakenwagen

Supporter (14)

brakenwagen's picture

26-03-2018, 07:47

well commenting out the line didn't do anything but i tried just deleting the message's string so it was just empty brackets and success. thanks for pointing me in the right direction.

My MSX profile