Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: jedione on October 19, 2020, 03:12:15 PM

Title: system menu "game counter" release.....
Post by: jedione on October 19, 2020, 03:12:15 PM
hey guys just put this together... it is a quick drop in folder for any
system menu theme that that will show the number of games in a system.

this is borrowed code, so generously from yaron2019 from the pcca layout.

basically all you do is drop a folder in your theme, and add one lines of code
to your theme, done.

ie:
Code: [Select]
fe.do_nut("syscount/count.nut");

small preview....
https://youtu.be/kWsICFbNO4M (https://youtu.be/kWsICFbNO4M)


here you go,  it is in a small layout so you can see how it works....
after that all you need to do is just put the folder inside "syscount"
into any theme and should work fine...

note : to alter text position, color, placement.. .ext the code will need to be changed by you...
this just simply puts it on deck for you to use...

will be adding options soon,  just not mutch time....
Download Here
https://drive.google.com/file/d/1OjGuGOpmDuSCQ683Kg1omgHtrGab6dpE/view?usp=sharing (https://drive.google.com/file/d/1OjGuGOpmDuSCQ683Kg1omgHtrGab6dpE/view?usp=sharing)
Title: Re: system menu "game counter"
Post by: Dexther on October 19, 2020, 09:43:34 PM
is good for me.
People we use CRT use this teme for example
Title: Re: system menu "game counter"
Post by: Yaron2019 on October 20, 2020, 12:25:28 AM
Looking great!

Yaron2019, not yar0n2019 LOL, it's an 'o' not a zero! :)

Title: Re: system menu "game counter" release.....
Post by: jedione on October 21, 2020, 05:50:34 AM
released in first post.... :)
Title: Re: system menu "game counter" release.....
Post by: Crismikiller on October 21, 2020, 10:40:31 AM
Permission required.  :'(
Title: Re: system menu "game counter" release.....
Post by: jedione on October 21, 2020, 05:46:08 PM
 sorry,  forgot to make public....here ya go  :o

https://drive.google.com/file/d/1OjGuGOpmDuSCQ683Kg1omgHtrGab6dpE/view?usp=sharing (https://drive.google.com/file/d/1OjGuGOpmDuSCQ683Kg1omgHtrGab6dpE/view?usp=sharing)
Title: Re: system menu "game counter" release.....
Post by: Crismikiller on October 21, 2020, 09:06:10 PM
YESSSS!
Title: Re: system menu "game counter" release.....
Post by: jedione on October 22, 2020, 05:32:54 AM
That looks good...
I to all ready have it on my big arcade..
Title: Re: system menu "game counter" release.....
Post by: Yaron2019 on October 24, 2020, 01:44:30 AM
I tested the game counting code on linux and it failed because of a wrong "\\" character the module use in the path (works on windows 10 though). Fixed it in my latest release.

So change this:
Code: [Select]
            local text = txt.loadFile( FeConfigDirectory + "romlists\\" + romlist + ".txt" );
To this:
Code: [Select]
            local text = txt.loadFile( FeConfigDirectory + "romlists/" + romlist + ".txt" );
Of course, test it on your side to see that it works as well.

Title: Re: system menu "game counter" release.....
Post by: jedione on October 24, 2020, 07:13:36 AM
thanks ill update and repost soon....
Title: Re: system menu "game counter" release.....
Post by: Karlosworkz on October 30, 2020, 04:36:18 AM
Hello, I was unable to make it work here it takes a while to count and nothing appears? is there anything i'm forgetting? Thank you very much and congratulations for the great work !!