Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How is a front-end done?  (Read 2010 times)

0 Members and 1 Guest are viewing this topic.

Jeehemdee

  • Guest
  • Trade Count: (0)
How is a front-end done?
« on: August 21, 2004, 02:53:29 pm »
I would like to understand the principle of the creation of a front-end.
Technically speaking :

i) How does one browse the list of Mame games?
ii) How does one put in relation a game and its screenshot?

Is the information taken from the MAME .dat file?

Would you please give me some basic theory/example (or even more complex stuff ;-)

Thanks very much!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:How is a front-end done?
« Reply #1 on: August 21, 2004, 03:05:16 pm »
http://www.mameworld.net/easyemu/mamew32setup.htm

Take a look at the *** Frontend Related *** switches available, these are the most important thing for a FE.  Pay particular attention to -listinfo (or now -listxml), as you can get all the information about all games you want from that.

i) Use a simple (or not-so simple) database type system, where each bit of info you want available is a different field.  Selecting game no. x simply reads record no. x.

ii) Displaying a screenshot is easy, just search the image/artwork path for a file named the same as the currently selected rom (bar extension).  eg if PuckMan (puckman) is selected, look for puckman.png.  (Probably) the only tricky thing about this, is displaying PNG's (they require decoding).

DAT files are a good thing to use, as they can be obtained/produced for all emulators, so it can give you something consistent as a basis for list generation etc.

I could go on all day as your question was pretty open ended, but I have an appointment with beer  ;D

Jeehemdee

  • Guest
  • Trade Count: (0)
Re:How is a front-end done?
« Reply #2 on: August 22, 2004, 11:41:05 am »
Thanks very much for taking time to reply ;-)

If by chance you have more to tell/learn to me...don't hesitate ;-)

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re:How is a front-end done?
« Reply #3 on: August 23, 2004, 01:12:38 pm »
1) Writing a frontend will take WAY more time then building a cabinet.  Only do it for the love... Spend time seeing if others do what you want....  Chances are, they will.

2) Getting the mame info is by capturing the -listxml output from mame... Sending it into a xml parser, and grabbing the info and using it as needed.

3) If you are questing the images, you probably aren't going to want to write a frontend.  That really is the easy stuff.  But same name as the rom in the snapshot director (marquees in its directory, cabinets..ect)

You will find a bunch of other problems along the way also.   These will be different depending on what language your planning on using.

But really... Look at the skinners for some of the bigger ones out there and see what you want in a frontend and see if they are worth months of programming.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 09:00:39 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:How is a front-end done?
« Reply #4 on: August 24, 2004, 04:22:25 am »
Agreed, there is no pont in re-inventing the wheel, unless you are going to make a better wheel.  At this point, with so many fancy fes out there you would have to be a very talented programmer or someone with some extremely creative ideas to do better.  If this isn't you then don't bother.  As lilwolf said, if your reasoning is "i need this, this and this feature"  then chances are you can already find them in another fe at this point.  Between myself, )p( and the others, we have pretty much thought of everything.  :)

I mean if you are really determined then go for it, but keep in mind that unless you want to make a fe that completely sucks, it's not a quick weekend project.  It's more like a quick several months possibly leading into several years type of project.  

We are sick, sick people, who need professional help.  Get out while you can!

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:How is a front-end done?
« Reply #5 on: August 24, 2004, 01:19:01 pm »
I mean if you are really determined then go for it, but keep in mind that unless you want to make a fe that completely sucks, it's not a quick weekend project.  It's more like a quick several months possibly leading into several years type of project.  

We are sick, sick people, who need professional help.  Get out while you can!

Exactly  :)

Notice my odd numbering system (my first release was 0.8, and now it is 0.97)?  Well I thought my first release was 'almost finished'  ::)  Nearly 3 years later I still can't sleep at night!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 09:00:39 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:How is a front-end done?
« Reply #6 on: August 24, 2004, 01:33:27 pm »
I hear ya... i'm about to release .9999 or something to that degree.  ;)

*sigh* someday I will have a life again.  

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re:How is a front-end done?
« Reply #7 on: August 25, 2004, 11:26:58 am »
I guess we fe devs are cursed and should all retreat into "The Dungeon of the Damned" :

(6mb wmv9)

 ;D


To anybody that wants to make one...go for it!...always room for some new blood and new ideas...and then at some time us current fedevs wont have to leave our dungeon anymore to bring new versions of our fe's to the outside world 8)

peter
« Last Edit: August 25, 2004, 11:33:41 am by )p( »

PacManFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:December 06, 2005, 12:18:56 pm
    • Kymaera Home Page
Re:How is a front-end done?
« Reply #8 on: August 25, 2004, 12:01:41 pm »
I'd like to chime in here and say that coding an FE can be a very rewarding experience, especially when you see your work on someone else's cabinet.
Depending on the features that you want your front end to have, it may take from weeks to years of development.
And a front end is never really "done". If it's popular, people will be chiming in all the time asking you to add new features, functionality, and asking about the easiest way to configure it.

-PacManFan
www.pacmanfan.com Home of Kymaera.
All Hail Smezznar! The Giant purple centipede of Omnicron 5. Regail him with your odiferous offerings of onion powder!