Recent Posts

Pages: 1 ... 8 9 [10]
91
General / Re: new BlendMode...
« Last post by zpaolo11x on August 11, 2018, 12:01:44 AM »
Since this thread has detoured to blurred backgrounds and other tricks, I'll post here this code snippet: It's a trick to have a blurred background from the game snaps without having to use shaders, it works by rescaling the picture three times and leveraging bilinear filtering from the graphics card. Of course it works only if you want a very "wild" blur...

Code: [Select]
local flw = fe.layout.width
local flh = fe.layout.height

local xsize1 = 32
local xsize2 = 4
local xsize3 = 16
local xsize9 = flw

local xsurf1 = fe.add_surface (xsize1,xsize1)
local xsurf2 = fe.add_surface (xsize2,xsize2)
local xsurf3 = fe.add_surface (xsize3,xsize3)

local snapbg1 = xsurf1.add_artwork ("snap",0,0,xsize1,xsize1)
snapbg1.alpha = 255
snapbg1.video_flags = Vid.ImagesOnly

xsurf2.visible = false
xsurf2 = xsurf3.add_clone(xsurf2)
xsurf2.visible=true
xsurf2.set_pos (0,0,xsize3,xsize3)

xsurf1.visible = false
xsurf1 = xsurf2.add_clone(xsurf1)
xsurf1.visible=true
xsurf1.set_pos (0,0,xsize2,xsize2)

xsurf3.set_pos (0,0,flw*0.5,flw*0.5)

fe.add_text(xsize1 + " " + xsize2 + " " + xsize3 ,0,50,flw*0.5,50)
local snap0 = fe.add_artwork("snap",flw*0.5,0,flw*0.5,flw*0.5)
snap0.video_flags = Vid.ImagesOnly

fe.add_text("[Title]",0,flw*0.5,flw,50)
92
General / Re: Help AM 2.4 Generate Collection/Romlist
« Last post by mothra on August 10, 2018, 11:39:39 PM »
Same Problem here (it was always working this way):

Windows 7 PC
Arcade64.exe (Version 0.199 or 0.200) (exported gamelist.xml or not)
listxml
It seems that AM is not reading the XML files correctly

nplayers.ini = works (get imported)
catver.ini = works (get imported)
history.dat = work (it's index get created in AM)

***
Update: AM (listxml) importing XML from HBMAMEUI64.exe works fine!
No idea why its not working with Arcade64.exe (you know the former MAMEUIFX)

93
Themes / Re: [download] NEVATO theme
« Last post by Joe737 on August 10, 2018, 08:08:49 PM »
Regarding not launching in XP - I got a new graphics card (HD 4670) and the driver update fixed my problem.  Perhaps because it installed some software or components I didn't have before? Either way, it turned out to be a Windows (specifically graphics driver) issue.  Thanks for everyone who tried to help - so many cool people in this hobby!  -Joe
94
General / Re: *SOLVED* Unable to launch MAME roms from Nevato (WinXP 32-bit)
« Last post by Joe737 on August 10, 2018, 08:06:41 PM »
Everyone, thank you so much for your thoughts and ideas.  I don't know the exact fix, but I upgraded my graphics card from an ATI X300 to an ATI HD 4670.  I had previously updated the drivers to the latest available.   I installed the drivers (Catalyst 14.4) that also included C++ updates?  Anyway, after only changing the graphics card and installing drivers, I can now launch all MAME games from Nevato once again, I'm so happy!  Hope this helps someone else, and maybe it can narrow down requirements for AM and wheel-based themes.   I don't know if it was a missing bit of software, or the old hardware couldn't handle it..  Hopefully this makes sense to those who understand the code.  PS, I'm humbled that Verion stopped in to show support - very impressive! What a great community.  Thanks for helping this ancient MAME machine breath new life!
95
Themes / Re: LCDv2 Theme 08/2018
« Last post by jedione on August 10, 2018, 06:16:19 PM »
great work.....thank you,    will be keeping this theme around for code snips!
for my one themes... ;D
96
Themes / Re: Arcadeflow theme v 1.9 [Release] Updated 25 July 2018
« Last post by ryuuji on August 10, 2018, 05:48:59 PM »
on 4:3 monitor all my horizontal games snaps are cropped like the vertical ones :/
97
Themes / Re: LCDv2 Theme 08/2018
« Last post by iOtero on August 10, 2018, 03:36:16 PM »
New version, look firs post.  8)

For those interested in the shuffle lists and their animations, see my new code, more refined than the previous one, reducing its size very significantly.
98
General / Re: How do you set up individual consoles with MAME?
« Last post by progets on August 10, 2018, 03:22:28 PM »
@progets Thanks for the reply... Hmmm.., are you sure about the pathing of the INIs in my CFG? I get a message in the console stating "info found for 152 entries" for catver and 153 entries for nplayers. I also tried with absolute paths with same result. I assumed that most all pathing was relative to the Working Directory. Will catver and nplayers have much of an effect on SoftwareLists, or do they just affect the Arcade portion of MAME?—still unclear if SoftwareLists are addressed in these 2 INIs. Doesn't seem that the 2 INIs are getting the bulk of the Atari 2600 set. I see that thegamesdb has Genre info for most of the Atari 2600 set. Wondering if this portion of the scraping is also being currently affected along with the overview TXTs

Had a feeling the blank overview txt files was probably just an API issue or something changing in the scraper; I tried every-which-way to get them pulled from thegamesdb to no avail. Hopefully, someone is on the case and it'll be fixed soon.

Quickie art question: I'm currently using the MAME SoftwareList non-merged romset for my Atari 2600. Over the years I've obtained various art and video sets from various sources with various naming conventions, i.e., MAME 8.3, No-Intro, Goodsets, etc. If/when assigning multiple art sources in AM, will AM use any "fuzzy logic" to look at the game name to grab the appropriate art/video and copy into the destination folder with my current MAME 8.3 naming convention, or do I need to use a 3rd party util to rename first?
Thanks again for the assist progets!!

Yes, catver.ini and players.ini can be used in newer version of mame that have mess merged as long as they are up-to-date versions that contain the information. nplayers.ini is outdated and no longer needed since this info can now be taken from the mame.xml. I am also certain about the paths unless something has change in the past 6 months.

No, there is no fuzzy logic on existing art matching with AM. The name is a 100% match (except the file extension) or it's not recognized. You can use 3rd party tools to rename or use the built-in scraping feature of AM to get artwork that matches from thegamesdb.net (this requires the proper configuration of your emulator.cfg files).
99
General / Re: Unable to launch MAME roms from Nevato (WinXP 32-bit)
« Last post by progets on August 10, 2018, 02:46:35 PM »
But he says it can run games perfectly fine - with ATTRAC MAN theme. But not with Nevato and Robospin.

I understand but you have to start somewhere. Clearly there is a piece that isn't right. If it truly is a layout issue it can only be a screen resolution or a windowed mode type of problem. The steps I provided would take less than 5 minutes to try and would be easy to put back  if it doesn't work. Sometimes people move or upgrade mame and don't account for the changes needed in the mame.ini.
100
Scripting / Re: Filter when filling an array
« Last post by iOtero on August 10, 2018, 01:27:03 PM »
Luckily i alone have found the solution, otherwise...

Code: [Select]
local dir = DirectoryListing(system_rom_path);

foreach(dir_name in dir.results)
{
if(dir_name.find(sel_game)!= null)
{

// strip m3u
local f = txt.loadFile(dir_name);
local aa = [];
local i = 1;

foreach(line in f.lines)
{
// track
local l = split(line, "\\"); // split path-file for "/"
local name = strip(l.pop().slice(0, -4)); // only filename, without ext
local folder = strip(l.pop());            // path folder
local f = split(folder, "-");
local n = split(name, "-");
local album = strip(f[1]);
local artist = strip(n[1]);
local title = strip(n[2]);

aa.push(
{
"filename" : line,
"folder" : folder,
"title" : title,
"album" : album,
"artist" : artist
});
i++;
}
music_db.push(aa);
}
}
Pages: 1 ... 8 9 [10]