Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when launching games #25

Closed
ghost opened this issue Aug 16, 2020 · 5 comments
Closed

Error when launching games #25

ghost opened this issue Aug 16, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2020

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)
@ghost ghost changed the title Error when launching mame games Error when launching games Aug 16, 2020
@pcca-matrix
Copy link
Owner

pcca-matrix commented Aug 16, 2020

what plugin loader are you using ?

@ghost
Copy link
Author

ghost commented Aug 17, 2020

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
Copy link
Author

ghost commented Aug 17, 2020

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 added a commit that referenced this issue Aug 17, 2020
* fix special artwork option "default=true"
* fix error if Track Usage is set to No in AM! (#25)
@pcca-matrix
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented Aug 17, 2020

BTC or Gold bars only.
Resolved!

@ghost ghost closed this as completed Aug 17, 2020
@pcca-matrix pcca-matrix mentioned this issue Aug 17, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant