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
1
Themes / Re: very basic theme (320x240)
« on: Yesterday at 09:28:49 AM »
Not bad! I like it.

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

2
Themes / Re: Layout background design
« on: Yesterday at 07:24:36 AM »
@keilmillerjr

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

3
Scripting / Re: fe.game info and number of buttons?
« on: Yesterday at 07:22:34 AM »
Info.Buttons

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.

4
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.

https://coolors.co

5
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.

6
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.

7
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.

8
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?

9
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.

10
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.

11
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.

https://github.com/keilmillerjr/shuffle-module/blob/master/module.nut

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.

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

13
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?

14
Themes / Re: Put a random icon on the screen.
« on: May 17, 2018, 05:30:43 PM »
Solved:

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]
fe.load_module("helpers-module");

local films = [
  "Predator",
  "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;

15
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.

Pages: [1] 2 3 ... 32