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 ... 78
1
Scripting / Re: Calling an external nut
« on: October 17, 2020, 05:02:07 AM »
do_nut() is not a method. It's a function. Do not daisy chain it to an object.

2
General / Re: Randomize Intro Videos
« on: October 05, 2020, 03:45:53 PM »
I created a replacement for intro that does such.

https://gitlab.com/attractmode/attract/-/tree/master/config/intro

Going to work on preparing it as well as others to be merged in official master repo.

3
Scripting / Re: Joystick button to choose and launch a random game?
« on: September 26, 2020, 07:42:59 PM »
You don't need autohotkey. I'm on Linux too! :) Send random_game signal and then select signal. Try to work with a plug-in and post here. I'll help you along the way.

4
Scripting / Re: Joystick button to choose and launch a random game?
« on: September 26, 2020, 05:57:21 AM »
Look at layouts.md. Create a plugin. Create a signal handler that polls for your input and issues random_game signal.

5
Scripting / Re: Possible to put an icon next to game name in rom list?
« on: September 26, 2020, 05:55:08 AM »
Few ideas:
  • Custom font. font-awesome is a good example. Then figure out how to add the icon to the font you are using.
  • Add Image next to list item.
  • Create text objects instead of list. Get length of text. Show visibility for image and place it next to text.

6
Scripting / Re: Need help (please) with magic token data comparison
« on: August 25, 2020, 03:06:47 AM »
You need to review programming basics. Quick youtube course. Most languages are somewhat similar. JavaScript is a good one close to squirrel. This link might help. Practice declaring variables and functions. Print result to console. https://tio.run/#squirrel

Declared get_memory function.
Comparison block if a variable get_memory is not equal to a string of "blah", then create a text object with a magic function pointing to get_memory function.

Functions and variables are not the same. Your code will never work. Make sure you look at your log in the terminal! AttractMode should not have a windows version suppressing the console, but that is my opinion. Create your object with a magic string function. Within that function, return text.

Code: [Select]
// Here is an example, written from my phone untested.
magic <- function()
{
    return fe.game_info( Info.DisplayCount, 0 , 0 )
}

local text = fe.add_text( [!magic], 0, 0, fe.layout.width, fe.layout.height / 25 )

7
Scripting / Good conventions
« on: August 21, 2020, 08:12:23 PM »
Starting to slowly have some of my work merged into the official attract repo. Conventions will be the death of me. I would like opinions on good conventions we could adhere to. Feel free to read the issue and make a comment on it. Once settled, I can revise a lot of my work and shoot pr's quicker. I tend to fall down a hole for hours over formatting. Could also be a help to others and create uniform code across the repo.

https://github.com/mickelson/attract/issues/648

8
General / Re: Pi4 Attract Mode display menu for themes?
« on: August 20, 2020, 09:45:32 PM »
I would concentrate on getting the bin compiled correctly first.

Tab will not bring up the display menu based on the config you posted prior. It brings up the config GUI menu. This is the default action. You can remap all these controls from the config GUI menu.

9
General / Re: Pi4 Attract Mode display menu for themes?
« on: August 20, 2020, 05:31:38 PM »
Try launching attract without use of that script.

Code: [Select]
$ attract
If it yields the same result, I would recompile attract.

10
General / Re: Pi4 Attract Mode display menu for themes?
« on: August 20, 2020, 03:32:50 PM »
Support and understanding some one else's config is the issue with using "images".

You have a seg fault. nano that file and tell me what line 7 says.

Code: [Select]
$ nano /opt/retropie/configs/all/autostart.sh

11
General / Re: Pi4 Attract Mode display menu for themes?
« on: August 20, 2020, 01:28:43 PM »
Any errors in the log? Because retropie has additional scrips that modifies default install locations as well as other things, you might want to ask the question on retropie forum.

12
Contains binary utilities that are part of operating system:
Code: [Select]
/usr/bin
Contains bin installed by user admin:
Code: [Select]
/usr/local/bin
Installed bin can be launched by it's filename.

Launch any bin:
Code: [Select]
$ cd <dir>
$ ./<bin name>

13
I meant Debian, not fedora.

It looks like you could possibly be missing dependency packages. First step is to see if you actually have the files on your computer. If not, try to install the package. Do it one at a time to make it easy to look at the log.

14
I recently made the jump from Mac to Linux on my desktop. It was easier than I thought.

Ubuntu is based off debian, and popos is based off Ubuntu. I'm a little confused on the difference between popos and Ubuntu. Is the only significant difference a dock in gnome?

15
Scripting / Re: Need help (please) with magic token data comparison
« on: August 16, 2020, 02:54:35 PM »
You are using a magic token outside of the scope of where it should be applied. Read layouts.md carefully. Your if statement is comparing two strings. Use fe.game_info().

https://github.com/mickelson/attract/blob/master/Layouts.md#magic
https://github.com/mickelson/attract/blob/master/Layouts.md#game_info

Pages: [1] 2 3 ... 78