Author Topic: Arcadeflow theme v 14.2 [Release] Updated 4 August 2022  (Read 343898 times)

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1440 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 #1441 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: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1442 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 #1443 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: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1444 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

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1445 on: June 29, 2022, 01:33:43 AM »
What if I will delete .db1 and .db2 files when generating new .txt? Would that force regeneration up to date .db1 and .db2 files?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1446 on: June 29, 2022, 02:04:13 AM »
What if I will delete .db1 and .db2 files when generating new .txt? Would that force regeneration up to date .db1 and .db2 files?

Yes, sure. Brute force but still effective :)

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1447 on: June 29, 2022, 07:48:45 AM »
Then it suits me, no need to add anything :)
Btw, great improvements since version 6.0 - love how much faster it became after initial load.

However I have tried to load my largest romlsit for Flash Games that has 25k items and Arcadeflow failed to load - displayed the empty list. Here is the crash info:

Code: [Select]
*** Initializing display: 'Adobe Flash'
 - Loaded master romlist 'Adobe Flash' in 406 ms (24667 entries kept, 0 discarded)
 - Constructed 2 filters in 1 ms (49334 comparisons)
 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcade Flow 5.4/ (layout.nut)
Writing config to: G:\SuperConsole\AttactPlus\attract.cfg

*** Initializing display: 'Adobe Flash'
 - Loaded master romlist 'Adobe Flash' in 352 ms (24667 entries kept, 0 discarded)
 - Constructed 2 filters in 1 ms (49334 comparisons)


WARNING: some options in attract.cfg clash with Arcadeflow

 - Loaded layout: G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/ (layout.nut)

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

CALLSTACK
*FUNCTION [z_listboot()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [6367]
*FUNCTION [on_transition()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [14826]

LOCALS
[z_list] TABLE
[meta_edited] TABLE
[meta_original] TABLE
[all_meta_edited] TABLE
[all_meta_original] TABLE
[metadata] TABLE
[AF] TABLE
[system_data] TABLE
[i] 20040
[currentsystem] "adobe flash"
[ifeindex] 20031
[this] TABLE
[prf] TABLE
[z_list] TABLE
[focusindex] TABLE
[tilez] ARRAY
[transdata] ARRAY
[flowT] TABLE
[snd] TABLE
[vidposbg] 0
[vidstarter] 10000
[bgs] TABLE
[vidbgfade] ARRAY
[AF] TABLE
[multifilterglyph] INSTANCE
[searchdata] INSTANCE
[search] TABLE
[z_var] 0
[var] 0
[logotitle] NULL
[boxtitle] NULL
[attract] TABLE
[displayname] INSTANCE
[displaystore] 14
[prfzero] TABLE
[DISPLAYTABLE] TABLE
[zmenu_surface_container] INSTANCE
[zmenu_sh] TABLE
[noshader] INSTANCE
[zmenu] TABLE
[tiles] TABLE
[corrector] 0
[column] TABLE
[UI] TABLE
[letterobj] INSTANCE
[mon2] TABLE
[dat] TABLE
[surfacePos] 0
[centercorr] TABLE
[impulse2] TABLE
[ttime] 0
[var0] 0
[ttype] 6
[this] TABLE
Script Error in transition function: on_transition - the index 'Memory Game' does not exist
 ! Unexpectedly lost focus to: explorer.exe (4240)

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

CALLSTACK
*FUNCTION [attractupdatesnap()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [12869]
*FUNCTION [tick()] G:\SuperConsole\AttactPlus\layouts/Arcadeflow-13.8/layout.nut line [15395]

LOCALS
[z_list] TABLE
[attractitem] TABLE
[AF] TABLE
[system_data] TABLE
[attract] TABLE
[randload] 0
[this] TABLE
[prf] TABLE
[huecycle] TABLE
[snap_glow] ARRAY
[focusindex] TABLE
[tilez] ARRAY
[snd] TABLE
[AF] TABLE
[dispatchernum] 0
[z_list] TABLE
[dispatcher] ARRAY
[kb] TABLE
[timescale] TABLE
[pixelpic] INSTANCE
[spdT] TABLE
[delayvid] 9933
[vidstarter] 10000
[fadevid] 9894
[count] TABLE
[overlay] TABLE
[zmenu] TABLE
[attract] TABLE
[disp] TABLE
[bgs] TABLE
[attractitem] TABLE
[flowT] TABLE
[squarizer] true
[letterobj] INSTANCE
[letterobjsurf] TABLE
[fl] TABLE
[displayname] INSTANCE
[displaynamesurf] TABLE
[tilesTableUpdate] ARRAY
[noshader] INSTANCE
[tilesTableZoom] ARRAY
[UI] TABLE
[aspectratioMorph] ARRAY
[var] 0
[gr_vidszTableFade] ARRAY
[dat] TABLE
[mon2] TABLE
[impulse2] TABLE
[srfposhistory] ARRAY
[filtersw] ARRAY
[tiles] TABLE
[surfacePosOffset] 2044
[tilesTablePos] TABLE
[globalposnew] -1547
[surfacePos] 0
[vidposbg] 0
[vidbgfade] ARRAY
[corrector] 0
[vidpos] ARRAY
[vidindex] ARRAY
[overmenu] INSTANCE
[overmenuwidth] 763.2
[frost] TABLE
[keyboard_surface] INSTANCE
[themeT] TABLE
[frostpic] TABLE
[zmenu_sh] TABLE
[prfmenu] TABLE
[zmenu_surface_container] INSTANCE
[hist_screensurf] INSTANCE
[hist_glow_pic] INSTANCE
[hist] TABLE
[hist_screenT] TABLE
[historypadding] 38.2
[shadowsurf_rt] INSTANCE
[histglow] TABLE
[shadow] TABLE
[hist_over] TABLE
[hist_titletxt_bot] INSTANCE
[hist_title] INSTANCE
[hist_titleT] TABLE
[hist_titletxt_bd] INSTANCE
[hist_titletxt] INSTANCE
[hist_title_top] INSTANCE
[aflogo] INSTANCE
[user_fg] NULL
[hist_screen] INSTANCE
[shadowsurf_1] INSTANCE
[shadowsurf_2] INSTANCE
[hist_text_surf] INSTANCE
[history_surface] INSTANCE
[tick_time] 132625
[this] TABLE
Script Error in tick function: tick - the index '0' does not exist

I have opened "Adobe Flash" romlist which had Arcadeflow 5.7 assigned for it initially, and loaded it up fine, then I switched it to Arcadeflow-13.8 in attract mode displays options and got this crash

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1448 on: June 29, 2022, 08:14:12 AM »
I have opened "Adobe Flash" romlist which had Arcadeflow 5.7 assigned for it initially, and loaded it up fine, then I switched it to Arcadeflow-13.8 in attract mode displays options and got this crash

Strange error, related to the "screensaver" in Arcadeflow. Not sure what's going on here, maybe it's still the missing snaps artwork? Try disabling AF screensaver (which is, ironically, called "attract mode" in AF options :D). And if you can pack romlist and .cfg I'll look into it

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1449 on: June 29, 2022, 09:39:15 AM »
I have disabled screensaver but it didn't help. The error happens right after the progress bar with "arcadeflow" text fully fills in.
The romlist and cfg I have posted earlier in attachment to this message: http://forum.attractmode.org/index.php?topic=2068.msg29741#msg29741
Snap artwork is there, but maybe it's filename encoding issue? That romlist has some hieroglyphs in game names.
« Last Edit: June 29, 2022, 09:42:52 AM by yxiie »

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1450 on: June 29, 2022, 10:00:38 PM »
Snap artwork is there, but maybe it's filename encoding issue? That romlist has some hieroglyphs in game names.

Yes, the issue is with a game named
Code: [Select]
'Elephants Never Forget!' Memory Game whose title is
Code: [Select]
"Elephants Never Forget!" Memory Game. Let me see how I can fix it, because I don't want you to change the rom name, so I need to find a way to parse it correctly...

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1451 on: June 30, 2022, 01:02:41 AM »
Snap artwork is there, but maybe it's filename encoding issue? That romlist has some hieroglyphs in game names.

This almost drove me crazy at a certain point, but the issue is somewhere in the interaction between AM and AF. The offending item is the Elephants Never Forget rom, where the "title" entry is
Code: [Select]
"Elephants Never Forget!" Memory Game The " in the game title messes the AM romlist, not sure if and how it worked on old AF versions.

The only workaround I could find is remove at least one " from the romlist entry. Sorry for not having a better solution. I was the issue was in the rom name with ' but it doesn't seem to be the case. General rule is  you should never put " in a romlist txt file.
« Last Edit: June 30, 2022, 02:15:16 AM by zpaolo11x »

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1452 on: June 30, 2022, 08:03:08 AM »
Makes sense. I have replaced " with ' in the romlist and it started to work. Thanks for the clarification!
Will fix my tools that generate romlists to replace " chars there

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1453 on: June 30, 2022, 08:14:34 AM »
I have another question.
I have over 200 romlists in attract mode - they are configured to use Arcade Flow 6.0
I am trying to switch them to latest version by replacing "Arcade Flow 6.0" with "Arcadeflow-13.8" in attract.cfg, however when I do it the romlist hangs the attract mode when I try to open it.
When I switch layout in the config all is file. Is there any other data that needs to be copied/edited for this to work? I don't want to manually change layout for all 200 romlists. I assume latest version of Arcade Flow stores some extra data somewhere.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 13.8 [Release] Updated 28 June 2022
« Reply #1454 on: June 30, 2022, 08:41:58 AM »
I have over 200 romlists in attract mode - they are configured to use Arcade Flow 6.0
I am trying to switch them to latest version by replacing "Arcade Flow 6.0" with "Arcadeflow-13.8" in attract.cfg, however when I do it the romlist hangs the attract mode when I try to open it.

That's what I do for tests, simply replace the name of the layout in all the entries in attract.cfg. Maybe it hangs because of some issue with the database once you enable the new version? you get error messages? Or maybe it seems to be hanging but is in fact just taking a lot of time to generate dbs? Try changing the layout name of just a couple of displays.