Author Topic: overview..help..  (Read 237 times)

jedione

  • Hero Member
  • *****
  • Posts: 582
  • punktoe
    • View Profile
overview..help..
« on: January 09, 2019, 10:03:14 PM »
iv asked before..to know avail..
can anyone help..with this.

what i need is a way for a .txt defalt overview file  so that
when overview is used, and cant find a match for a game it will use it.

even a hach,,will do..thanks   i realy need this for a theme i want to release but feel it needs this....to be right
ill just leave it at that..
help a friend....

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 793
    • View Profile
Re: overview..help..
« Reply #1 on: January 09, 2019, 11:56:55 PM »
I remember this being asked before. Back then, I tested a bunch of different possibilities but none of them were successful. As a result, I don't think this is coded in AM like the artwork/image files that allow for a "default" when no match is found based on the Display or Emulator name.

I believe a work around would be coding your layout.nut to contain an "if X then <game>.txt, else show default.txt" type of statement. I haven't tested this but there's no reason it shouldn't work. You can see an example of this in the H.U.D layout here http://forum.attractmode.org/index.php?topic=2470.msg16848#msg16848.

Here's the section of code. (This isn't the default H.U.D. code but my variation since the original H.U.D. 1.0 used romlists for information instead of the builtin Overview feature. I believe this has changed in the H.U.D. layout since then.)
Code: [Select]
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//                                                           #EXTRA
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function extra( index_offset ) {
local text = fe.game_info(Info.Extra, index_offset);
if (text != "") return text.toupper();
else return "MISSING EXTRA";
}
local extra = fe.add_text ( "[Overview]", flx*0.01, fly*0.26, flw*0.21, flh*0.76 ); // Max 1040 chhudacters
extra.align = Align.TopLeft;
extra.alpha = huda;
extra.word_wrap = true;
extra.margin = 0;
extra.charsize = flh*0.020;
extra.line_spacing = 0.95;
if (bg == 1) colors( extra, "orange", 2 );
fe.add_transition_callback("extra2");
function extra2( ttype, var, ttime ) {
if ( ttype == Transition.ToNewList || ttype == Transition.ToNewSelection || ttype == Transition.FromOldSelection ) {
local text = fe.game_info(Info.Extra,0);
if (Overview= "") {
if ( my_config["font"] == "Barlow") extra.font="BarlowCondensed-Medium";
else if ( my_config["font"] == "Barlow-Bold") extra.font="BarlowCondensed-Bold";
else if ( my_config["font"] == "Hacked") extra.font="HACKED";
else if ( my_config["font"] == "SFPixelate") extra.font="SFPixelate-Bold";
colors( extra, col, 0 );
extra.charsize = flh*0.020;
}
if (text == "") {
extra.font = "BarlowCondensed-Bold";
colors( extra, miss, 0 );
extra.charsize = flh*0.055;
}
}
}


I know it's not what you're hoping for but maybe it can point you in the right direction.
« Last Edit: January 10, 2019, 12:11:40 AM by progets »

jedione

  • Hero Member
  • *****
  • Posts: 582
  • punktoe
    • View Profile
Re: overview..help..
« Reply #2 on: January 10, 2019, 05:43:29 AM »
will, try messing with it...thanks
help a friend....

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 759
    • View Profile
Re: overview..help..
« Reply #3 on: January 10, 2019, 06:06:25 AM »
What is Info.Extra?

Giacomo1982

  • Full Member
  • ***
  • Posts: 70
    • View Profile
Re: overview..help..
« Reply #4 on: January 10, 2019, 09:22:08 AM »
What is Info.Extra?

Info.Extra returns the text in the Extra section of the romlist.

The "missing function" for overviews is one thing that I'm waiting for, I don't know why it is not implemented.
« Last Edit: January 10, 2019, 09:31:39 AM by Giacomo1982 »

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 759
    • View Profile
Re: overview..help..
« Reply #5 on: January 10, 2019, 02:19:33 PM »
What is Info.Extra?

Info.Extra returns the text in the Extra section of the romlist.

The "missing function" for overviews is one thing that I'm waiting for, I don't know why it is not implemented.

Where does it pull this information? History.dat?

rand0m

  • Sr. Member
  • ****
  • Posts: 102
    • View Profile
Re: overview..help..
« Reply #6 on: January 10, 2019, 07:47:22 PM »
Where does it pull this information? History.dat?

To the best of my knowledge, Information is pulled directly from the romlist. Like name/title/year Extra is a section of romlist and likewise a magic token. Its possible mame --full populates it now, back when I tried mame [EXtra] was empty.

@ OP
I made a feature request for creating an instance for Text assets similar to artwork for images here> https://github.com/mickelson/attract/issues/508. You could try something like "if [Overview] is missing use the following message" but AM creates an empty romname.txt in scraper/system/overview.

jedione

  • Hero Member
  • *****
  • Posts: 582
  • punktoe
    • View Profile
Re: overview..help..
« Reply #7 on: January 10, 2019, 07:56:56 PM »
thanks for all the input.. guys   
with this kind of response something might prevail ..
help a friend....

Giacomo1982

  • Full Member
  • ***
  • Posts: 70
    • View Profile
Re: overview..help..
« Reply #8 on: January 10, 2019, 11:34:34 PM »
What is Info.Extra?

Info.Extra returns the text in the Extra section of the romlist.

The "missing function" for overviews is one thing that I'm waiting for, I don't know why it is not implemented.

Where does it pull this information? History.dat?

Extra.info and all romlist Informations are hand writed, or converted from a gamelist.xml, is there a tutorial for using history.dat?

zpaolo11x

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
    • My deviantart page
Re: overview..help..
« Reply #9 on: January 11, 2019, 12:22:39 AM »
Extra.info and all romlist Informations are hand writed, or converted from a gamelist.xml, is there a tutorial for using history.dat?

The only source of info in that regards I found is the History.dat plugin which comes with AM. It uses file functions to extract game history data from the dat file but presents it as a single text field (that is you can't get single sections of the file).

I know some themes filter this results to grab only game description, but it didn't work 100% well in my experience.

Another issue I have with history.dat is that regional versions often present the history field as something like "this is the US version of japanese game, see description in japanese game" which is pretty useless if you don't have the japanese rom too. Maybe there's an history.dat that always expands this kind of information?

Giacomo1982

  • Full Member
  • ***
  • Posts: 70
    • View Profile
Re: overview..help..
« Reply #10 on: January 11, 2019, 02:44:08 AM »
Thanks for your through explanations Paolo, at the current state history plug in is not accurate as what I need, and is valid only for arcades, I prefer the romlist because you can extrapolate every single voice easily.