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.


Topics - iOtero

Pages: [1] 2 3
1
Attract-Mode and RetroArch on the Raspberry pi 4.

I have managed to run both programs on pi 4 with Raspbian Buster.

I feel that the video does not have more quality, i will try to do a better one as soon as possible.

Sega Saturn has very poor results, but PSX, N64 and Sega Dreamcast work very well.

https://www.youtube.com/watch?v=a_7zckqhYgk

New video, best quality, but remais imperfect, sorry...

https://www.youtube.com/watch?v=_NZOGc9EuaQ

At the end of the video i have executed a pinout so that the pi 4 could be seen, it is not appreciated much, but you can see that the network socket is up and the usb down, unlike the pi 3B +.

2
Scripting / Compilation of Attract-Mode in Raspberry pi 4
« on: August 06, 2019, 06:51:05 AM »
I bought a Raspberry pi 4 4GB and i installed Raspbian Buster Lite.

I tried to compile Attract-Mode following the instructions Keilmillerjr has on GitHub (https://github.com/keilmillerjr/Raspberry-Pi-MAME-Setup-Guide) and that had worked perfectly for me on Raspbian Stretch Lite and Raspberry pi 3B +.

FFmpeg, SFML and Attract-Mode has compiled easily and without problems.

But to launch AM, it does nothing and gives this error message:

* failed to add service - already in use?

Could someone tell me why?

Note for Keil: In the instructions for SFML, there is a missing line:

sudo make install

3
General / Rocket Launcher with Attract-Mode?
« on: June 06, 2019, 06:52:03 AM »
Can someone explain to me what is the advantage of using RL with AM?

If it has any, because i do not find any.

4
Scripting / Key pressed
« on: May 29, 2019, 12:12:48 PM »
What code should be used in a layout to simulate that a key has been pressed at the start of a layout?, for example, the right arrow key.

Thanks

5
Themes / Listbox Animation in a layout (animate.nut question)
« on: May 26, 2019, 04:38:28 AM »
In a layout I use this code so that when I do not change the game in the listbox for a while, the listbox is hidden. And when I press up or down key (back game, previous game) come back.

Code: [Select]
fe.do_nut("mds/animate.nut");

local lbx = flx*0.74;
local lby = fly*0.17;
local lbw = flw*0.25;
local lbh = flh*0.84;

// Listbox
::OBJECTS <- {lbx = fe.add_listbox(lbx, lby, lbw, lbh)}
OBJECTS.lbx.rows = 21;
OBJECTS.lbx.selbg_alpha=0;
OBJECTS.lbx.set_rgb(R,G,B);
OBJECTS.lbx.set_sel_rgb(R2,G2,B2);
OBJECTS.lbx.align = my_align;

local move_lbx1 = {when = Transition.ToNewSelection, property ="x", start = OBJECTS.lbx.x + OBJECTS.lbx.width, end = OBJECTS.lbx.x, time = 1}
local move_lbx2 = {when = When.ToNewSelection, property ="x", start = OBJECTS.lbx.x, end = OBJECTS.lbx.x + (OBJECTS.lbx.width*1.5), time = 600, delay=3500}
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx1));
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx2));

I have the problem when I change the filter with the left and right keys (prev filter, next filter): I do not know what code to include so that pressing the left or right returns the listbox, which it does not do, obviously.

I have tried this, but it does not work well, the actions are duplicated and not synchronized:

Code: [Select]
fe.do_nut("mds/animate.nut");

local lbx = flx*0.74;
local lby = fly*0.17;
local lbw = flw*0.25;
local lbh = flh*0.84;

// Listbox
::OBJECTS <- {lbx = fe.add_listbox(lbx, lby, lbw, lbh)}
OBJECTS.lbx.rows = 21;
OBJECTS.lbx.selbg_alpha=0;
OBJECTS.lbx.set_rgb(R,G,B);
OBJECTS.lbx.set_sel_rgb(R2,G2,B2);
OBJECTS.lbx.align = my_align;

local move_lbx1 = {when = Transition.ToNewSelection, property ="x", start = OBJECTS.lbx.x + OBJECTS.lbx.width, end = OBJECTS.lbx.x, time = 1}
local move_lbx2 = {when = When.ToNewSelection, property ="x", start = OBJECTS.lbx.x, end = OBJECTS.lbx.x + (OBJECTS.lbx.width*1.5), time = 600, delay=3500}
local move_lbx3 = {when = Transition.ToNewList, property ="x", start = OBJECTS.lbx.x + OBJECTS.lbx.width, end = OBJECTS.lbx.x, time = 1}
local move_lbx4 = {when = When.ToNewList, property ="x", start = OBJECTS.lbx.x, end = OBJECTS.lbx.x + (OBJECTS.lbx.width*1.5), time = 600, delay=3500}
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx1));
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx2));
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx3));
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx4));

This does not work either:

Code: [Select]
local move_lbx1 = {when = Transition.ToNewSelection && Transition.ToNewList, property ="x", start = OBJECTS.lbx.x + OBJECTS.lbx.width, end = OBJECTS.lbx.x, time = 1}
local move_lbx2 = {when = When.ToNewSelection && When.ToNewList, property ="x", start = OBJECTS.lbx.x, end = OBJECTS.lbx.x + (OBJECTS.lbx.width*1.5), time = 600, delay=3500}
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx1));
animation.add(PropertyAnimation(OBJECTS.lbx, move_lbx2));

6
Scripting / Variables in a AM layout
« on: May 26, 2019, 04:17:13 AM »
In a AM layout, what difference is there between using this:

Code: [Select]
my_time <- 0;
try {my_time = my_config["_msgs"].tointeger();} catch(e) {}

or use this:

Code: [Select]
local my_time = my_config["_msgs"].tointeger();


7
General / Attract-Mode for Android
« on: April 01, 2019, 11:29:09 AM »
Will there be an Attract-Mode for Android someday?  :-[

The truth is that it would be nice to see Attract-Mode on a GPD XD Plus or on a JXD S192K... or not?  8)

Attract-Mode works on Linux, Android is Linux, the libraries that Attract-Mode uses, as far as i know, are available on Android...  ::)

So what is the problem?  :P

8
General / attract.am file
« on: March 03, 2019, 06:20:52 AM »
What exactly does the attract.am file contain? Thank you.

9
Scripting / Two RomLists in one layout
« on: February 22, 2019, 08:34:46 AM »
Is there any way to use two romlists in a single layout?

For example, to press the 1 and 2 keys to use the romlist 1, and when you press the up and down keys, you will use the romlist 2.

I have not seen it anywhere, so it probably is not possible.

10
Scripting / This script not works. (SOLVED).
« on: February 11, 2019, 01:11:30 PM »
This script works perfectly in raspbian and in ubuntu, but not in lakka:

Code: [Select]
#!/bin/bash

IFS=';'

cd /storage/.attract/romlists
rm Favorites.txt

touch Favorites.txt
chmod 777 Favorites.txt

ls *.tag > tagfiles
while read filename
do
  while read gamename
  do
    romlist=`echo ${filename} |cut -f1 -d '.'`
    cat "${romlist}.txt"|grep "^${gamename};" >> Favorites.txt
  done < "${filename}"
done < tagfiles

rm tagfiles
cat Favorites.txt |sort -u > tmp_favorites.txt
mv tmp_favorites.txt Favorites.txt

sleep 5

The reading of the data is correct, but the redirection >> does not do anything.

In putty ssh this comand runs:

Code: [Select]
cat "Atari2600.txt" |grep "Centipede (USA)" >> Favorites.txt
but the script does not.

Does anyone know why?

11
General / A new question about the English language
« on: February 11, 2019, 05:33:45 AM »
As i said in my previous question, i am Spanish and i do not speak English well. So i would like to know which of these phrases is more correct:

Create new favorites gamelist.

Create new list of favorite games.

Or:

Update favorites gamelist.


It is for a menu option that will erase the current list of favorites and replace it with a new one if there is one, if there is not, simply create the new favorite list.

Thanks.


12
General / A question of language. Only for native english.
« on: January 21, 2019, 12:15:22 PM »
Hi, i am Spanish and my English is not very good. Can you tell me if this sentence is correct?:

"If you press this option, the counters of times played and the time played of all the games will be set to zero."

It is to confirm the reset of [PlayedCount] and [PlayedTime].

Thanks.


13
General / *.stat files (SOLVED)
« on: January 21, 2019, 06:25:14 AM »
Each *.stat file has two numbers inside.

The one that is above is the number of times the game has been played, or to be more exact and even if it is the same, the number of times the game has been selected in the menu.

What i would like to know is what indicates or what the number below means.

Thanks in advance for the help.

I already found out. Logically, it was the time played...  8)

14
Themes / io_pi_refried Theme for pi. Only 4:3 resolutions (WIP)
« on: January 14, 2019, 04:23:00 AM »
I am working on a theme that complements the excellent work of calle81 with its Refried Theme, but only for resolutions of 4:3, and using few resources, specially designed for the Raspberry Pi.

It is based on the original Refried Theme for Launchbox by retrohumanoid.

It will allow to use animated videos or fixed snapshots.

For the moment, some screens of the project in progress.

These would be from the menus io_pi_refried_menu:

15
Scripting / Run a script from Attract-Mode in Linux (lakka)
« on: December 26, 2018, 11:31:02 AM »
Let's see if any of you know how to do this.

I want to launch a script from Attract-Mode on Linux, in this case it's openELEC or Lakka, so i can get information about the system on the screen, but i do not get anything.

The script is this, and by ssh with the putty it works perfectly, but from Attract-Mode i do not know if it does something or not, because nothing remains on the screen.

Code: [Select]
#!/bin/bash
clear
echo "----------- SPACE -----------"
df -h
echo "----------- MEMORY -----------"
free -m
echo "----------- TEMPERATURE -----------"
vcgencmd measure_temp
echo "----------- IP -----------"
ip route get 8.8.8.8 2>/dev/null | awk '{print $NF; exit}'
echo "----------- EXIT -----------"
read -n 1 -s -r -p "Press any key to continue"

This another script runs perfectly:

Code: [Select]
#!/bin/bash
cd /usr/bin
retroarch

And the two have this romlist:

Code: [Select]
retroarch;RetroArch;Extras;;;;;;;;;;;;;;
systeminfo;System Information;Extras;;;;;;;;;;;;;;

and this configuration:

Code: [Select]
executable      /bin/bash
args            "[romfilename]"
rompath $HOME/systems/extras/roms
system Extras
romext .sh
artwork flyer $HOME/systems/extras/flyer
artwork marquee $HOME/systems/extras/marquee
artwork snap $HOME/systems/extras/snap
artwork wheel $HOME/systems/extras/wheel

I'm not a great expert in linux, and maybe you have to give some more command to display the information on the screen, i do not know.


I remind everyone that the biggest complication of working with lakka is that you have to compile Attract-Mode (and any other application) first in raspbian and then copy it with all your lakka libraries, since lakka does not allow native compilation or installation nor update anything that can not be done from within RetroArch or Attract-Mode. Take it into account when making any contribution to this topic.

Thanks in advance for the help.

Note: Yes, i am working on a fully operational Attract-Mode img with Retroarch in Lakka for Raspberry Pi, without Batocera, Retropie, Recalbox or Emulationstation.


Pages: [1] 2 3