Author Topic: Scrappe "Extra" info from thegamesdb  (Read 7330 times)

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Scrappe "Extra" info from thegamesdb
« on: February 02, 2017, 05:29:47 AM »
I found a little amiga romlist with "Extra" info added.
This is the emulator "amiga.cfg"

Code: [Select]
system               Amiga
info_source          thegamesdb.net

And this is the amiga.txt romlist with extra info:

Quote
Agony "Pit your magical powers against an equal but opposite mystical force"

Code: [Select]
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
Agony;Agony;Amiga;;1992;Psygnosis;;;;;;;;;;Pit your magical powers against an equal but opposite mystical force;
Alien Breed 2 - AGA;Alien Breed II: The Horror Continues;Amiga;;1993;Team17;;;;;;;;;;Alien Breed II: The Horror Continues is the sequel to Alien Breed, a science-fiction-themed, top-down shooter largely inspired by the Alien films.;
Another World;Another World;Amiga;;1991;US Gold;;;;;;;;;;Another World tells a story of Lester, a young scientist who, as a result of an experiment gone wrong, finds himself in a dangerous alien world where he is forced to fight for his survival.;
Barbarian Palace;Barbarian: The Ultimate Warrior;Amiga;;1988;Palace;;;;;;;;;;Barbarian is a fighting game that gives players control over sword-wielding barbarians. In the game's two-player mode, players pit their characters against each other. Barbarian also has a single-player mode, in which the player's barbarian braves a series of challenges set by an evil wizard to rescue a princess.;
Batman The Movie;Batman The Movie;Amiga;;1989;Ocean;;;;;;;;;;Batman is a shadow in the darkness, as elusive as a dream. High above the seamy streets of Gotham, he is a criminal's nightmare. The only hope for a desperate city...;
Battlemaster;Battlemaster;Amiga;;1990;P.S.S.;;;;;;;;;;Battlemaster is a fantasy adventure in which the player controls a champion who must battle evil forces to conquer four kingdoms, uniting the four kings' crowns and presenting them to the Watcher in order to restore the world to peace.;


Is there any option to download this text from thegamesdb?

akafox

  • Hero Member
  • *****
  • Posts: 985
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #1 on: February 03, 2017, 06:51:40 AM »
You'll have to add it manually to the romlist.txt. Emulationstation will downloaf that infomation..but it is written to do that. Attract mode uses the history.dat file so there is really no need to use that info.
People want life easy..then complain about it

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #2 on: February 03, 2017, 01:32:42 PM »
You'll have to add it manually to the romlist.txt. Emulationstation will downloaf that infomation..but it is written to do that. Attract mode uses the history.dat file so there is really no need to use that info.

I tried hystory.dat but couldnt make it work.
Setnthe path, activate the plugin and tested with arcadebliss.

Can I use hystory.dat with console systems?

progets

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1271
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #3 on: February 03, 2017, 02:25:37 PM »
Game info scraping was added to AM in November but it doesn't use the "Extras" field of the romlist. It creates a folder for the emulator name and places gamename.txt file in there to match the game names. You can see it here https://github.com/mickelson/attract/commit/540ffb6ad022bb59a519a8f01b9926fb4900b941.

You need to manually enable it in the attract.cfg when AM is NOT running.
Code: [Select]
scrape_overview      yes

Then start AM and build the romlist to get the files.

qqplayer

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #4 on: February 04, 2017, 08:24:25 AM »
Game info scraping was added to AM in November but it doesn't use the "Extras" field of the romlist. It creates a folder for the emulator name and places gamename.txt file in there to match the game names. You can see it here https://github.com/mickelson/attract/commit/540ffb6ad022bb59a519a8f01b9926fb4900b941.

You need to manually enable it in the attract.cfg when AM is NOT running.
Code: [Select]
scrape_overview      yes

Then start AM and build the romlist to get the files.
Thank you so much , finally working , but can you help me with another stuff?

Is there any funtion , script ... to show a "scolling text" , like on emulationstation just for long descriptions.

InsecureSpike

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #5 on: April 18, 2017, 02:53:25 AM »
Game info scraping was added to AM in November but it doesn't use the "Extras" field of the romlist. It creates a folder for the emulator name and places gamename.txt file in there to match the game names. You can see it here https://github.com/mickelson/attract/commit/540ffb6ad022bb59a519a8f01b9926fb4900b941.

You need to manually enable it in the attract.cfg when AM is NOT running.
Code: [Select]
scrape_overview      yes

Then start AM and build the romlist to get the files.

what code needs to be added to the layout.nut, to get the Overview from the gamename.txt files to show?
i've been trying to use this

Code: [Select]
local textoverview =fe.add_text("[Overview]", 860, 440, 400, 200)
textoverview.charsize = 16;
textoverview.set_rgb( 166, 166, 166 );
textoverview.align = Align.Left;
textoverview.word_wrap = true;
textoverview.alpha = 0;
//textoverview.style = Style.Bold;

or this... but i get an error the index 'When' does not exist

Code: [Select]
local textoverview =fe.add_text("[Overview]", 860, 440, 400, 200)
textoverview.charsize = 16;
textoverview.align = Align.Left;
textoverview.word_wrap = true;
textoverview.alpha = 0;
//textoverview.style = Style.Bold;

local textoverview_alpha_cfg_on_load = {
    when = When.StartLayout,
    when = Transition.ToNewList,
    property = "alpha",
    start = 0,
    end = 255,
    delay = 1500
    time = 1000
}

animation.add( PropertyAnimation( textoverview, textoverview_alpha_cfg_on_load ) );

local textoverviewx = {
    when = When.StartLayout,
    property = "x",
    start = flx*1.2
    end = flx*0.705
    time = 1000,
    tween = Tween.Expo
 } 
 
animation.add( PropertyAnimation ( textoverview, textoverviewx ) );

local textoverviewy = {
    when = When.StartLayout,
    property = "y",
    start = fly*0.9
    end = fly*0.1
    time = velTexto,
    tween = Tween.Linear
    delay = 2000
    loop = true
 }   
 
animation.add( PropertyAnimation ( textoverview, textoverviewy ) );
« Last Edit: April 18, 2017, 03:53:13 AM by InsecureSpike »

InsecureSpike

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #6 on: April 18, 2017, 03:58:48 AM »
ok, if i add

Code: [Select]
fe.load_module( "animate" );
then i an error the index 'PropertyAnimation' does not exist

InsecureSpike

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Scrappe "Extra" info from thegamesdb
« Reply #7 on: April 18, 2017, 04:30:35 AM »
i figured it out!

edit...

now i get an error the index 'velTexto' does not exist

and i cant move the position of the text area

*gonna make my own thread on this
« Last Edit: April 18, 2017, 04:58:19 AM by InsecureSpike »