Author Topic: Arcadeflow theme v 17.1 [Release] Updated 22 March 2024  (Read 557468 times)

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1425 on: June 26, 2022, 08:30:52 AM »
After couple of years I am back to emulation and trying to use attact mode + arcade flow again (last version I was using was 6.0) and I can't get version 13.7 to work.
I have downloaded latest version of AttractPlus and Arcadeflow, but when I switch layout to Arcadeflow-13.7 the display just shows big black and white "arcadeflow" logo fitting the whole screen and nothing else.
In the consolde there is an error:

Script Error in G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/layout.nut - expected '='
 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/ (layout.nut)

any ideas?

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1426 on: June 26, 2022, 09:58:34 AM »
he has his own Discord channel for the theme...  hit him up their...
https://discord.gg/TkxZp6CX

 ;)
help a friend....

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1427 on: June 26, 2022, 02:50:03 PM »

I turned on CRC check and disabled media scraping, and decided to try and scrape the entire romlist for Sega Genesis instead of one game. Below is what came from the console window - it seems that something is happening for it to at least recognize that it should attempt the next game. What that is, I'm not sure.

I'm going to attempt a clean install of AF and see if that helps! I will update shortly

Sorry, I thought I answered to your latest message but I see now the answer never get through... from the log I see some errors related to the path of your Arcadeflow layout: I'll look into it and see if I can fix it, but I think the issue is that your Arcadeflow folder has a "space" in the folder name. Could you try renaming the layout folder to "Arcadeflow" instead of "Arcade Flow", update your displays definition in attract.cfg with the new name, and see if it fixes the scraper issue?

I'll do further tests tomorrow.... but 99.9% this is the main source of the problem.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1428 on: June 26, 2022, 02:52:10 PM »
I have downloaded latest version of AttractPlus and Arcadeflow, but when I switch layout to Arcadeflow-13.7 the display just shows big black and white "arcadeflow" logo fitting the whole screen and nothing else.
In the consolde there is an error:

Script Error in G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/layout.nut - expected '='
 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/ (layout.nut)

any ideas?

I need more detail to debug this, can you provide the full output of the console, or the last-run log? That would help me in identifying the problem.

ruthlessrabbid

  • Jr. Member
  • **
  • Posts: 18
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1429 on: June 26, 2022, 05:48:02 PM »
You were 100% correct; removing the spaces instantly made the scrape work. I cannot believe I didn't think of that sooner... Crisis averted and all the information is now appearing! I've spent a few hours on this but I'm glad it is behind me now lmao!

Thank you for your help and patience. You seem like an awesome person, and I appreciate your work

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1430 on: June 27, 2022, 12:09:18 AM »
I need more detail to debug this, can you provide the full output of the console, or the last-run log? That would help me in identifying the problem.

Ops, didn't notice there is a call stack way above that error, sure, here is the log:
Code: [Select]
Attract-Mode Plus v2.6.2 (Windows, SFML 2.5.1 +7z +Curl)
avcodec 58.54.100 / avformat 58.29.100 / swscale 5.5.100 / avutil 56.31.100 / swresample 3.5.100

Config: G:\SuperConsole\AttactPlus\attract.cfg

*** Initializing display: 'Sega Genesis'
 - Loaded master romlist 'Sega Genesis' in 12 ms (906 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (1812 comparisons)

AN ERROR HAS OCCURED [expected '=']

CALLSTACK
*FUNCTION [getallgamesdb()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/layout.nut line [6195]
*FUNCTION [main()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/layout.nut line [14586]

LOCALS
[fl] TABLE
[prf] TABLE
[uifonts] TABLE
[AF] TABLE
[z_list] TABLE
[@ITERATOR@] 4
[item] "Adobe Flash.cfg"
[i] 3
[itemname] "Adobe Flash"
[file] ""
[emulatordir] ARRAY
[emulatorpath] "G:\SuperConsole\AttactPlus\emulators\"
[emulatorarray] ARRAY
[text_charsize] 185.6
[text_ratio] 0.6
[numchars] 12
[textobj] INSTANCE
[logopic] INSTANCE
[this] TABLE
[labelcounter] TABLE
[labelorder] ARRAY
[sortticks] TABLE
[sortticksarray] ARRAY
[sortlabels] TABLE
[sortlabelsarray] ARRAY
[fps] TABLE
[user_fg] NULL
[aflogoT] TABLE
[aflogo] INSTANCE
[attractitem] TABLE
[attract] TABLE
[zmenu_surface] INSTANCE
[shader_tx2] TABLE
[zmenu_sh] TABLE
[zmenu_surface_container] INSTANCE
[disp] TABLE
[disp0] TABLE
[hist_over] TABLE
[hist_screen] INSTANCE
[hist_screensurf] INSTANCE
[shadowshader] TABLE
[kerneldat] TABLE
[blursizeglow] TABLE
[hist_glow_shader] INSTANCE
[hist_glow_pic] INSTANCE
[shadowsurf_1] INSTANCE
[shadowsurf_2] INSTANCE
[shadowsurf_rt] INSTANCE
[shadow] TABLE
[histglow] TABLE
[gradshader] INSTANCE
[hist_text] TABLE
[hist_text_surf] INSTANCE
[shader_lcd] INSTANCE
[pixelpic] INSTANCE
[shader_lottes] INSTANCE
[LCDprf] TABLE
[CRTprf] TABLE
[hist_titletxt] INSTANCE
[hist_titletxt_bd] INSTANCE
[hist_titletxt_bot] INSTANCE
[hist_title_top] INSTANCE
[hist_title] INSTANCE
[hist_white] INSTANCE
[histgr] TABLE
[history_surface] INSTANCE
[hist_curr_rom] ""
[historypadding] 38
[shadowscale] 0.025
[hist_textT] TABLE
[hist_screenT] TABLE
[hist_titleT] TABLE
[hist] TABLE
[keyboard_text] INSTANCE
[kb] TABLE
[keyboard_surface] INSTANCE
[fb] TABLE
[prfmenu] TABLE
[overmenu] INSTANCE
[overmenuwidth] 826.152
[txtoalpha] INSTANCE
[bwtoalpha] INSTANCE
[game_subnameT] TABLE
[game_mainnameT] TABLE
[game_yearT] TABLE
[game_manufacturerpicT] TABLE
[game_maincatT] TABLE
[game_butpicT] TABLE
[game_ctlpicT] TABLE
[game_plypicT] TABLE
[game_catpicT] TABLE
[blsize] TABLE
[letterobj] INSTANCE
[letterobjsurf] TABLE
[displayname] INSTANCE
[displaynamesurf] TABLE
[labelsurf] INSTANCE
[labelstrip] INSTANCE
[scroller2] INSTANCE
[scroller] INSTANCE
[scrollineglow] INSTANCE
[scrolline] INSTANCE
[separatorline] INSTANCE
[filternumbers] INSTANCE
[filterdata] INSTANCE
[data_surface_sh_1] INSTANCE
[data_surface_sh_2] INSTANCE
[data_surface_sh_rt] INSTANCE
[shader_tx] TABLE
[sh_scale] TABLE
[shaders] TABLE
[gradscaler] 1
[gradsizer] 8
[logo] TABLE
[greenshader] TABLE
[gr_vidsz] INSTANCE
[gr_snapz] INSTANCE
[gradsurf_1] INSTANCE
[gradsurf_rt] INSTANCE
[logosurf_rt] INSTANCE
[logosurf_1] INSTANCE
[txbox] INSTANCE
[txt2z] INSTANCE
[txt1z] INSTANCE
[txshz] INSTANCE
[loshz] INSTANCE
[snap_grad] ARRAY
[snap_glow] ARRAY
[surfacePosOffset] 2215.7333333333
[tiles] TABLE
[vidbgfade] ARRAY
[vidposbg] 0
[corrector] 0
[vidindex] ARRAY
[vidpos] ARRAY
[aspectratioMorph] ARRAY
[gr_vidszTableFade] ARRAY
[tilesTableZoom] ARRAY
[tilesTableUpdate] ARRAY
[tilesTablePos] TABLE
[tilez] ARRAY
[z_disp] ARRAY
[picture] TABLE
[shader_bg] TABLE
[bglay] TABLE
[mon2] TABLE
[shader_fr] TABLE
[flipshader] NULL
[frost] TABLE
[frostpic] TABLE
[overlay] TABLE
[categorytable] TABLE
[regsys] TABLE
[data_surface] INSTANCE
[nolist_blanker] INSTANCE
[search] TABLE
[searchdata] INSTANCE
[multifilterglyph] INSTANCE
[mf] TABLE
[boxtitle] NULL
[logotitle] NULL
[all_scrape] TABLE
[all_meta_original] TABLE
[all_meta_edited] TABLE
[meta_original] TABLE
[meta_edited] TABLE
[metadata] TABLE
[yearnames] TABLE
[catnames_SS] TABLE
[catnames] TABLE
[focusindex] TABLE
[z_fields2] TABLE
[z_fields1] TABLE
[z_list] TABLE
[dispatchernum] 0
[dispatcher] ARRAY
[ratetonumber] TABLE
[keyboard_entrytext] ""
[key_selected] ARRAY
[key_sizes] ARRAY
[key_rows] ARRAY
[key_names] TABLE
[scroll] TABLE
[bgpicT] TABLE
[bgT] TABLE
[scrollersize] 27
[footermargin] 333.33333333333
[lettersize] TABLE
[fadevid] 9905
[delayvid] 9940
[vidstarter] 10000
[spdT] TABLE
[centercorr] TABLE
[deltacol] 2
[selectorwidth] 917.94666666667
[whitemargin] 0.15
[selectorscale] 1.45
[carrierT] TABLE
[pagejump] 10
[cols] 7
[verticalshift] 15.826666666667
[widthpaddedmix] 633.06666666667
[widthmix] 474.8
[width169padded] 455.01666666667
[width169] 296.75
[heightpadded] 633.06666666667
[widthpadded] 633.06666666667
[padding] 79.133333333333
[width] 474.8
[height] 474.8
[padding_scaler] 0.16666666666667
[footer] TABLE
[header] TABLE
[scalerate] 1.3333333333333
[rotation] TABLE
[fl] TABLE
[scr] TABLE
[vertical] true
[rows] 2
[gbrgb] TABLE
[colormapper] TABLE
[srfposhistory] ARRAY
[filtersw] ARRAY
[filterw] ARRAY
[impulse2] TABLE
[surfacePos] 0
[globalposnew] 0
[count] TABLE
[snd] TABLE
[satin] TABLE
[themeT] TABLE
[squarizer] false
[column] TABLE
[backs] TABLE
[search_base_rule] "Title"
[noshader] INSTANCE
[flowT] TABLE
[z_var] 0
[var] 0
[dat] TABLE
[bgs] TABLE
[bgvidsurf] NULL
[dir0] TABLE
[commandtable] TABLE
[system_data] TABLE
[orderdatalabel] TABLE
[huecycle] TABLE
[displaystore] 0
[SORTTABLE] TABLE
[DISPLAYTABLE] TABLE
[prfzero] TABLE
[z_info] TABLE
[transdata] ARRAY
[menucounter] 18
[multifilterz] TABLE
[umvisible] true
[umpresel] 0
[umtable] ARRAY
[selection_pre] NULL
[prf] TABLE
[DBGON] false
[z_af_collections] TABLE
[uifonts] TABLE
[zmenu] TABLE
[gh] TABLE
[AF] TABLE
[IDX] ARRAY
[ap] """
[elapse] TABLE
[vargv] ARRAY
[this] TABLE
Script Error in G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/layout.nut - expected '='
 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.7/ (layout.nut)
 ! Unexpectedly lost focus to: explorer.exe (2204)

Apparently I have romlist in .txt format, but don't have .db1 or .db2 files for it. What should I do to generate them?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1431 on: June 27, 2022, 12:30:29 AM »
Apparently I have romlist in .txt format, but don't have .db1 or .db2 files for it. What should I do to generate them?

It seems AF crashes when trying to create db1 and db2, or at least trying to read from them. It happens on the "Flash Games" romlist, can you share the emulator .cfg file and the romlist .txt file for that system? Sometimes special characters in romlists cause issues with the db creation :(

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1432 on: June 27, 2022, 06:54:46 AM »
It seems AF crashes when trying to create db1 and db2, or at least trying to read from them. It happens on the "Flash Games" romlist, can you share the emulator .cfg file and the romlist .txt file for that system? Sometimes special characters in romlists cause issues with the db creation :(

Sure, see attached.
Indeed, that file has unicode characters in UTF-8, however old versions of ArcadeFlow (6.0) were working fine with them

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1433 on: June 27, 2022, 10:35:51 PM »
Sure, see attached.
Indeed, that file has unicode characters in UTF-8, however old versions of ArcadeFlow (6.0) were working fine with them

Found the issue: in this romlist the buttons and series fields are used in a different way: buttons has a description of the buttons used, not just the number of buttons, and series has a short description of the game. Both descriptions include ", and this messes with the database. I check for " in other fields but not in this, added the check and now everything work.

Since I'm about to launch 13.8 later today or tomorrow, I won't build a patch for this issue and it will be fixed when 13.8 is released :)

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.7 [Release] Updated 14 June 2022
« Reply #1434 on: June 28, 2022, 12:00:58 AM »
Thanks a lot! Looking forward to that  :)

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1435 on: June 28, 2022, 12:38:14 AM »
Arcadeflow 13.8 is out!

- Added support for pixel perfect fonts
- Correct UI elements alignment with pixels
- Fixed issue with number of rows in menus
- Fixed issue when converting romlist to db

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1436 on: June 28, 2022, 01:21:19 PM »
Arcadeflow 13.8 is out!

- Added support for pixel perfect fonts
- Correct UI elements alignment with pixels
- Fixed issue with number of rows in menus
- Fixed issue when converting romlist to db

New crash now:

Code: [Select]
Attract-Mode Plus v2.6.2 (Windows, SFML 2.5.1 +7z +Curl)
avcodec 58.54.100 / avformat 58.29.100 / swscale 5.5.100 / avutil 56.31.100 / swresample 3.5.100

Config: G:\SuperConsole\AttactPlus\attract.cfg

*** Initializing display: 'Sega Genesis'
 - Loaded master romlist 'Sega Genesis' in 13 ms (906 entries kept, 0 discarded)
 - Constructed 2 filters in 0 ms (1812 comparisons)

AN ERROR HAS OCCURED [the index 'snap' does not exist]

CALLSTACK
*FUNCTION [getemulatordata()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [2872]
*FUNCTION [getallgamesdb()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [6276]
*FUNCTION [main()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [14674]

LOCALS
[workdir] ""
[artworktable] TABLE
[mainsysname] "Apple Bandai Pippin"
[extras] ""
[romextarray] ARRAY
[romext] ".chd"
[gamepath] "16t (Japan)"
[rompath] "G:\Games\Apple Bandai Pippin/"
[inline] ARRAY
[infile] INSTANCE
[out] TABLE
[emulatorname] "Apple Bandai Pippin.cfg"
[this] TABLE
[fl] TABLE
[prf] TABLE
[uifonts] TABLE
[AF] TABLE
[z_list] TABLE
[@ITERATOR@] 7
[item] "Apple Bandai Pippin.cfg"
[i] 6
[itemname] "Apple Bandai Pippin"
[file] ""
[emulatordir] ARRAY
[emulatorpath] "G:\SuperConsole\AttactPlus\emulators\"
[emulatorarray] ARRAY
[text_charsize] 185.6
[text_ratio] 0.6
[numchars] 12
[textobj] INSTANCE
[logopic] INSTANCE
[this] TABLE
[labelcounter] TABLE
[labelorder] ARRAY
[sortticks] TABLE
[sortticksarray] ARRAY
[sortlabels] TABLE
[sortlabelsarray] ARRAY
[fps] TABLE
[user_fg] NULL
[aflogoT] TABLE
[aflogo] INSTANCE
[attractitem] TABLE
[attract] TABLE
[zmenu_surface] INSTANCE
[shader_tx2] TABLE
[zmenu_sh] TABLE
[zmenu_surface_container] INSTANCE
[disp] TABLE
[disp0] TABLE
[hist_over] TABLE
[hist_screen] INSTANCE
[hist_screensurf] INSTANCE
[shadowshader] TABLE
[kerneldat] TABLE
[blursizeglow] TABLE
[hist_glow_shader] INSTANCE
[hist_glow_pic] INSTANCE
[shadowsurf_1] INSTANCE
[shadowsurf_2] INSTANCE
[shadowsurf_rt] INSTANCE
[shadow] TABLE
[histglow] TABLE
[gradshader] INSTANCE
[hist_text] TABLE
[hist_text_surf] INSTANCE
[shader_lcd] INSTANCE
[pixelpic] INSTANCE
[shader_lottes] INSTANCE
[LCDprf] TABLE
[CRTprf] TABLE
[hist_titletxt] INSTANCE
[hist_titletxt_bd] INSTANCE
[hist_titletxt_bot] INSTANCE
[hist_title_top] INSTANCE
[hist_title] INSTANCE
[hist_white] INSTANCE
[histgr] TABLE
[history_surface] INSTANCE
[hist_curr_rom] ""
[historypadding] 38
[shadowscale] 0.025
[hist_textT] TABLE
[hist_screenT] TABLE
[hist_titleT] TABLE
[hist] TABLE
[keyboard_text] INSTANCE
[kb] TABLE
[keyboard_surface] INSTANCE
[fb] TABLE
[prfmenu] TABLE
[overmenu] INSTANCE
[overmenuwidth] 828
[txtoalpha] INSTANCE
[bwtoalpha] INSTANCE
[gamed] TABLE
[blsize] TABLE
[letterobj] INSTANCE
[letterobjsurf] TABLE
[displayname] INSTANCE
[displaynamesurf] TABLE
[labelsurf] INSTANCE
[labelstrip] INSTANCE
[scroller2] INSTANCE
[scroller] INSTANCE
[scrollineglow] INSTANCE
[scrolline] INSTANCE
[separatorline] INSTANCE
[filternumbers] INSTANCE
[filterdata] INSTANCE
[data_surface_sh_1] INSTANCE
[data_surface_sh_2] INSTANCE
[data_surface_sh_rt] INSTANCE
[shader_tx] TABLE
[sh_scale] TABLE
[shaders] TABLE
[gradscaler] 1
[gradsizer] 8
[logo] TABLE
[greenshader] TABLE
[gr_vidsz] INSTANCE
[gr_snapz] INSTANCE
[gradsurf_1] INSTANCE
[gradsurf_rt] INSTANCE
[logosurf_rt] INSTANCE
[logosurf_1] INSTANCE
[txbox] INSTANCE
[txt2z] INSTANCE
[txt1z] INSTANCE
[txshz] INSTANCE
[loshz] INSTANCE
[snap_grad] ARRAY
[snap_glow] ARRAY
[surfacePosOffset] 2212
[tiles] TABLE
[vidbgfade] ARRAY
[vidposbg] 0
[corrector] 0
[vidindex] ARRAY
[vidpos] ARRAY
[aspectratioMorph] ARRAY
[gr_vidszTableFade] ARRAY
[tilesTableZoom] ARRAY
[tilesTableUpdate] ARRAY
[tilesTablePos] TABLE
[tilez] ARRAY
[z_disp] ARRAY
[picture] TABLE
[shader_bg] TABLE
[bglay] TABLE
[mon2] TABLE
[shader_fr] TABLE
[flipshader] NULL
[frost] TABLE
[frostpic] TABLE
[overlay] TABLE
[categorytable] TABLE
[regsys] TABLE
[data_surface] INSTANCE
[nolist_blanker] INSTANCE
[search] TABLE
[searchdata] INSTANCE
[multifilterglyph] INSTANCE
[mf] TABLE
[boxtitle] NULL
[logotitle] NULL
[all_scrape] TABLE
[all_meta_original] TABLE
[all_meta_edited] TABLE
[meta_original] TABLE
[meta_edited] TABLE
[metadata] TABLE
[yearnames] TABLE
[catnames_SS] TABLE
[catnames] TABLE
[focusindex] TABLE
[z_fields2] TABLE
[z_fields1] TABLE
[z_list] TABLE
[dispatchernum] 0
[dispatcher] ARRAY
[ratetonumber] TABLE
[keyboard_entrytext] ""
[key_selected] ARRAY
[key_sizes] ARRAY
[key_rows] ARRAY
[key_names] TABLE
[scroll] TABLE
[bgpicT] TABLE
[bgT] TABLE
[scrollersize] 27
[lettersize] TABLE
[fadevid] 9905
[delayvid] 9940
[vidstarter] 10000
[spdT] TABLE
[centercorr] TABLE
[deltacol] 2
[carrierT] TABLE
[pagejump] 10
[rotation] TABLE
[fl] TABLE
[scr] TABLE
[UI] TABLE
[gbrgb] TABLE
[colormapper] TABLE
[srfposhistory] ARRAY
[filtersw] ARRAY
[filterw] ARRAY
[impulse2] TABLE
[surfacePos] 0
[globalposnew] 0
[count] TABLE
[snd] TABLE
[satin] TABLE
[themeT] TABLE
[squarizer] false
[column] TABLE
[backs] TABLE
[search_base_rule] "Title"
[noshader] INSTANCE
[flowT] TABLE
[z_var] 0
[var] 0
[dat] TABLE
[bgs] TABLE
[bgvidsurf] NULL
[dir0] TABLE
[commandtable] TABLE
[system_data] TABLE
[orderdatalabel] TABLE
[huecycle] TABLE
[displaystore] 0
[SORTTABLE] TABLE
[DISPLAYTABLE] TABLE
[prfzero] TABLE
[z_info] TABLE
[transdata] ARRAY
[menucounter] 18
[multifilterz] TABLE
[umvisible] true
[umpresel] 0
[umtable] ARRAY
[selection_pre] NULL
[prf] TABLE
[DBGON] false
[z_af_collections] TABLE
[uifonts] TABLE
[zmenu] TABLE
[gh] TABLE
[AF] TABLE
[IDX] ARRAY
[ap] """
[elapse] TABLE
[vargv] ARRAY
[this] TABLE
Script Error in G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut - the index 'snap' does not exist
 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/ (layout.nut)

Supposed romlist and cfg that causes crash attached.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1437 on: June 28, 2022, 10:02:10 PM »

New crash now:

Supposed romlist and cfg that causes crash attached.

I think the issue is that in your .cfg file there's the "snap" artwork defined, but it's empty. I'll add a security check for that in new releases but just to be sure, try adding a path to the snap artwork and see if it fixes the issue...

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1438 on: June 29, 2022, 12:25:54 AM »
I've changed the line 2872 from
Code: [Select]
    if (artworktable.snap.find(";") != null){to
Code: [Select]
    if ("snap" in artworktable && artworktable.snap.find(";") != null){and it loaded up fine.

I have a question about .db1 / .db2 files - are they automatically refreshed when .txt romlist changed? Some of my .txt romlists are generated by external scripts.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1234
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1439 on: June 29, 2022, 12:47:31 AM »
I've changed the line 2872 from
Code: [Select]
    if (artworktable.snap.find(";") != null){to
Code: [Select]
    if ("snap" in artworktable && artworktable.snap.find(";") != null){and it loaded up fine.

That's exactly the change I had in mind to fix the issue definitely :)

Quote
I have a question about .db1 / .db2 files - are they automatically refreshed when .txt romlist changed? Some of my .txt romlists are generated by external scripts.

Hmm no, they are not. At the moment you can use the "Refresh Romlist" command from AF options menu, that will do the following:

- regenerate the current romlist using AM command line
- go through the refreshed romlist and add to the database any game that is not yet in the database
- db metadata for the new games will be derived from the romlist fields
- db metadata for existing games won't be affected

this works as long as you usually generate romlists through AM, if you build your romlists in a different way that will not work. I can add an entry in the menu to reset/refresh just the database, it could work like this:

- refresh database will scan the romlist (without regenerating it through AM) and add new games to the db
- reset database will wipe the database and all scraped data, rescan the romlist without regenerateing it through AM, and then populate the new db with data from the romlist.

I think these two options will cover all the use cases, even when the db gets corrupt and you can regenerate it from scratch