pcca-matrix / PCCA-Layout

HyperSpin layout for Attract-Mode
GNU General Public License v3.0
7 stars 6 forks source link

Error when launching games #25

Closed ghost closed 4 years ago

ghost commented 4 years ago

console shows an error in line 1222 when launching games (any system) and error in line 1199 when exiting the game back to AM.

Console Printout:

*** Initializing display: 'Mame'
 - Loaded master romlist 'mame' in 25 ms (2877 entries kept, 776 discarded)
 - Constructed 1 filters in 0 ms (2877 comparisons)
 - Loaded layout: D:\Arcade\attract\layouts/pcca/ (layout.nut)
Error opening file for reading: D:\Arcade\attract\layouts/pcca/Settings/Mame.ini: cannot open file

AN ERROR HAS OCCURED [cannot convert the string]

CALLSTACK
*FUNCTION [hs_transition()] D:\Arcade\attract\layouts/pcca/layout.nut line [1222]

LOCALS
[FE_Sound_Screen_Click] INSTANCE
[curr_sys] "Mame"
[point_animation] INSTANCE
[center_animation] INSTANCE
[Background_Music] INSTANCE
[glob_time] 4203
[rtime] 0
[flv_transitions] INSTANCE
[trigger_load_theme] false
[sid] 0
[Wheelclick] ARRAY
[surf_ginfos] INSTANCE
[Sound_System_In_Out] INSTANCE
[FE_Sound_Wheel_Out] INSTANCE
[conveyor] INSTANCE
[center_Wheel_fade] INSTANCE
[m_infos] INSTANCE
[FE_Sound_Wheel_In] INSTANCE
[FE_Sound_Screen_In] INSTANCE
[dialog_anim] INSTANCE
[overlay_background] INSTANCE
[overlay_list] INSTANCE
[wheel_art] INSTANCE
[overlay_title] INSTANCE
[custom_overlay] INSTANCE
[overlay_anim] INSTANCE
[FE_Sound_Screen_Out] INSTANCE
[prev_tr] 6
[ttime] 1517
[var] 0
[ttype] 4
[this] TABLE
Script Error in transition function: hs_transition - cannot convert the string
 - Working directory: E:/Arcade/Attract/apps/Mame
*** Running: E:/Arcade/Attract/apps/Mame/mame64nonag.exe fbfrenzy
 - Exit Hotkey pressed, terminating process: 8960

AN ERROR HAS OCCURED [cannot convert the string]

CALLSTACK
*FUNCTION [hs_transition()] D:\Arcade\attract\layouts/pcca/layout.nut line [1199]

LOCALS
[FE_Sound_Screen_Click] INSTANCE
[curr_sys] "Mame"
[point_animation] INSTANCE
[center_animation] INSTANCE
[Background_Music] INSTANCE
[glob_time] 4203
[rtime] 0
[flv_transitions] INSTANCE
[trigger_load_theme] false
[sid] 0
[Wheelclick] ARRAY
[surf_ginfos] INSTANCE
[Sound_System_In_Out] INSTANCE
[FE_Sound_Wheel_Out] INSTANCE
[conveyor] INSTANCE
[center_Wheel_fade] INSTANCE
[m_infos] INSTANCE
[FE_Sound_Wheel_In] INSTANCE
[FE_Sound_Screen_In] INSTANCE
[dialog_anim] INSTANCE
[overlay_background] INSTANCE
[overlay_list] INSTANCE
[wheel_art] INSTANCE
[overlay_title] INSTANCE
[custom_overlay] INSTANCE
[overlay_anim] INSTANCE
[FE_Sound_Screen_Out] INSTANCE
[prev_tr] 6
[ttime] 502
[var] 0
[ttype] 5
[this] TABLE
Script Error in transition function: hs_transition - cannot convert the string
 ! Unexpectedly lost focus to: attract-console.exe (10512)
pcca-matrix commented 4 years ago

what plugin loader are you using ?

ghost commented 4 years ago

None to the best of my knowledge. The only plugin I am using and that is enabled in AM's plugins menu is Keyboardsearch and even when I disable it the same error is reported.

I also did the following test: I launched a mame game using pcca - got the error. Without closing AM, I switched to my At-The-Arcade theme and launched the same game - no error.

ghost commented 4 years ago

Found the bug!

If in AM's main menu->General->Track Usage is set to No, you get the error. Turn it to Yes and the error is gone which is not surprising when the error occurs on code line: game_elapse = fe.game_info(Info.PlayedTime).tointeger(); If there is no usage tracking the value of PlayedTime is either null or garbage and cannot be converted.

Please transfer 10 bitcoins to my bank account.

pcca-matrix commented 4 years ago

You're the best ! Do you accept XMR (monero) ? BTC transaction fees are quite high ;)

ghost commented 4 years ago

BTC or Gold bars only. Resolved!