Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - keilmillerjr

Pages: [1] 2 3 ... 32
Themes / Re: Put a random icon on the screen.
« on: May 17, 2018, 05:30:43 PM »

Code: [Select]
local my_film = randInt(6);
my_film = my_film.tostring() + ".png";
local film = fe.add_image("posters/films/" + my_film, 0, 0, 0, 0);

Thank you very much.

I didn’t test it, but something like this might be easier than numeric file names. Try it and let me know if it works. You can have file names such as „Predator.png“. Include the file extension in the array if they vary, but it’s good practice to have everything uniform if you can.
Code: [Select]

local films = [
  "The Terminator",
  "Total Recall",

local film = fe.add_image("posters/films/" + films[randInt(films.len())] + ".png", 0, 0, 0, 0);
film.preserve_aspect_ratio = true;
film.trigger = Transition.EndNavigation;

Themes / Re: Put a random icon on the screen.
« on: May 17, 2018, 10:21:40 AM »
Break your string and insert the variable and then continue the string.

Too many languages I do and stressed out at work. Format either “str” . var . “str” or substitute the periods for plus signs.

If you can’t figure it out, I’ll do you up a chunk of code to try - tonight.

Scripting / Re: Try to complete Grid for Game List & System List
« on: May 17, 2018, 07:40:17 AM »
Grid would be similar to list. The thing that boggles my mind is how to easily not have it a never ending grid. Seems to make sense in a list. Grid, my natural instinct is that there is an end.

Themes / Re: Put a random icon on the screen.
« on: May 17, 2018, 07:07:02 AM »
I created a random function.

Pass array length. It return number. Use it as index in array to update image on your transition.

General / Re: Picture not found attract FREEZES
« on: May 14, 2018, 01:15:35 PM »
Try uninstalling video drivers and reinstall latest driver.?

Things you can try:
Change attract window mode in config menu
Change resolution of attract/mame/desktop all the same

Use a magic function and test string length on category.

My coding skill is limited. Could you provide the real code? Thanks.  :P

I can’t. I’ve been working 85 hour work weeks and took today off to catch up on crap I can’t do working every day of the week.

Read -

Look at -

Your function will be similar to mine, except add an if/else statement for length. You can’t use magic functions within a magic function, so you have to look at for correct variable and format/return it within your function.

Announcements / Re: Version 2.3 Released
« on: May 07, 2018, 12:29:30 PM »
Mac os x compile. v2.3.0-32 with SWF support, 100% error free, and a dmg file that works.

Wow I missed this post: I got my from "Mame on modern Macs" and it works but only with homebrew libraries. Does this dmg still require homebrew? And is the "32" a revision number or it stands for 32 bit?

I honestly don’t remember. I compiled many times trying to resolve issues. Just give the app a shot and look at the console.

Use a magic function and test string length on category.

Scripting / Re: Image w/switch
« on: May 04, 2018, 03:43:26 AM »
Usin transitions instead of signal will eliminate the need to configure buttons within attractmode config and your layout as well. Use a tick counter to see if game has not switched for specific amount of time to change visibility on overplayed image.

General / Re: gens not working win7
« on: April 24, 2018, 04:21:54 PM »

File format in link is not in attract config format, but you can easily see all the necessary into to create a config file.

General / Re: gens not working win7
« on: April 23, 2018, 08:28:32 AM »
Look at the default config on github? MAME has near perfect emulation for Genesis and Neo Geo.

Scripting / Re: Progress Bar
« on: April 23, 2018, 03:14:44 AM »
It work only the first time when open new list, but when I change game it doesn't change... :(

It could be usefull if someone help me

Sorry, I have been super exhausted from work lately and cant provide lots of help, and generally only have time to point people in the right direction. I did like 85 hours in 5 days. Took weekend off for time with wife and kids.

You need to use a transition to update the width of your progress bar.

Something similar to this. You might have to play with it. I have to go to work.
Code: [Select]
function transition(ttype, var, transition_time) {
switch(ttype) {
case Transition.ToNewSelection:
// insert code here
return false;

By “main menu” do you mean the attract config GUI menu?


Those are components of a particular theme. Always try a different theme first. Your issue with theme resources eating cpu could be related to video drivers. Update to the latest for your video card and try it again. I had an HD4350 that barely ran attract on default drivers. Downloaded the latest and bam!

Scripting / Re: Progress Bar
« on: April 20, 2018, 07:08:35 PM »
Magic Tokens can only be used by certain default functions provided my attract.

I don’t think your formula is correct anyways. You can give your object a default width, divide it by the list size, and multiply it by the index. Reassign object width.

Pages: [1] 2 3 ... 32