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

class ReadTextFile
  function readline()

What is your goal?

Themes / Re: very basic theme (320x240)
« on: June 19, 2018, 09:28:49 AM »
Not bad! I like it.

Take a look at my flavors layout. Could easily make it work any orientation.

Themes / Re: Layout background design
« on: June 19, 2018, 07:24:36 AM »

That is so cool. I've always hand-picked my colors - but THIS is so much fun!


I’ve used generators like it for web design. Huge help for the color handicapped. Lol

Scripting / Re: info and number of buttons?
« on: June 19, 2018, 07:22:34 AM »

Is Info.Buttons available on all versions of Mame? I'm running AM with Mame 0.185 and Info.Buttons doesn't return anything...

That’s because I made a pull request to fix the issue months ago on GitHub and no accept. We need to get on top of accepting these requests.

I can compile for Mac with the fix, and some one compiled windows for me. I forgot who, sorry. It was a conversation with help on discus channel. If anyone needs it let me know.

Themes / Re: Layout background design
« on: June 17, 2018, 11:57:19 AM »
Thanks, but what I'm asking is not programming, but graphic help, with attractive designs and color combinations.

Themes / Re: Layout background design
« on: June 17, 2018, 11:23:23 AM »
You can easily create that using squirrel and a white 1px image that has modified rgb values. Values could be used configurable.

Scripting / Re: Favourite Icon doesn´t work
« on: June 16, 2018, 08:07:25 PM »
If all you want to do is toggle an image, use a magic function and case not favorite return an empty string for image url.

Filters are important and one of the reasons I switched to attractmode years ago. However, my pull request to fix the number of players filter was months ago with no accept. Some other great fixes/additions from community need accepting too.

Themes / Re: Put a random icon on the screen. (SOLVED)
« on: June 14, 2018, 08:55:49 PM »
The two options work, but both have a small problem: When AM start, the first image is always the same, the others are random, but the one at the beginning, always the same position: 4 in 0-12 or 10 in 0-30.

Many years ago, when ms-dos, I had to do a pseudo-random, and so that it would not happen to me, I took the random seed of the clock: current second.

Sorry for my bad english...  :-[

Your English is great.

The math.rand() squirrel function should deliver pseudo random integers according to electric imp. However, I think how it is generated depends on the processor used.? What’s your platform?

Themes / Re: request: modern theme for full size arcade cabinet
« on: June 14, 2018, 03:26:32 AM »
You will probably have to code a theme yourself, or modify an existing one.

I don’t understand the point of a loading screen when I am using outdated hardware and things still load almost instantly.

I want to put the contents of an array on the screen when I press a key.
After reading the data of a folder, they are added to an array, and what I want is to put them on the screen by pressing a key, not directly. I guess you have to put the array on a surface or an object, but I'm not very expert.

What is “data in a folder?” It would help me to better help you.

An array is a structured collection of data. You can’t change properties of an array because it isn’t a “gui” object type. You can change the properties of objects stored within the array. Or like you stated, but all the objects in a surface and change the properties of the surface. Use surfaces wisely.

Start simple and test variables as you go. If you write too much at once, debugging boggles your mind with too many things.

You still didn’t declare your player list variable. I like to declare variables before the constructor and assign them in the constructor. Check out my shuffle module and look at the slot variable. It’s an array containing objects and used in a similar fashion as your player_list array.

You also have another issue. You can’t hide or show visibility of an array. If you want to toggle visibility of all objects within the array, you need to illiterate over the array.

Can you explain what your trying to accomplish with this code? Maybe I could help more.

Just a quick glance, may or may not resolve your issue. Declare your variable, player_list.

General / Re: Turning down brightness in Attractmode possible?
« on: May 24, 2018, 07:20:33 PM »
Another method would be to create a plugin that has an image 1px black png stretched 100% height and width, and set opacity according to user config variable.

Is there a reason you want this?

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;

Pages: [1] 2 3 ... 32