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

2
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

3
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));

4
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();


5
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

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

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

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

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


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


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

12
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:

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


14
Themes / ioamiga. Theme for Amiga Computers.
« on: October 04, 2018, 03:15:04 AM »
ioamiga. Theme for Amiga Computers.

I have created this simple system for the Commodore Amiga at the request of my friend Empardopo.

The background is the work of Toni Bratincevic and is like wallpaper on many websites. I tried to contact Bratincevic to ask for permission to use it, but i have not got it.

By the way, that wonderful image has a name: "16 Bit Memories"

It works in 4:3, 16:9 and 16:10. The layout checks the screen resolution and depending on it, loads some graphics or others and chooses the correct coordinates.
For my part I have checked it in 1440x900 and 1920x1200 (16:10), 1366x768 and 1920x1080 (16:9) and 1024x768 (4:3) and it works perfectly.

It has two list options:listbox and shuffle list.
I have also put the search system without keyboard and the option to align the lists to the left, right or center.
You can choose marquee or wheel for the superior art.
And finally there is another option to see more data of the games or just the basics.

Download:
https://mega.nz/#!L0VC3QxS!stpAKm4OtIPtl7CD-BDivoctmFOdo3ht4oz97pUG1Us

Screenshot:


Video:
https://www.youtube.com/watch?v=sXKT4xms2hY

15
Themes / Retro Gui AM Theme --> From MALA/Mamewah to Attract-Mode.
« on: October 02, 2018, 06:49:57 AM »
Retro Gui AM Theme.

Years ago I saw the Retro Gui theme of Nexus6 for MALA, and I liked its retro and simple style so much that I started to try MALA. Very little time, because I got fed up with him.

Well, the fact is that after re-encoding the Ring Blue for AM, I remembered the RetroGui theme, I searched my old hard drives and found the original layout, so I've also recoded it for AM, even changing the way the backgrounds are displayed of the machines.

It works in 4:3, 16:9 and 16:10. The layout checks the screen resolution and depending on it, loads some graphics or others. For my part I have checked it in 1440x900 (16:10), 1920x1080 (16:9) and 1024x768 (4:3) and it works perfectly.

In addition to the original listbox, I have added a shuffle option, for those who prefer it, and another option to use scanlines in the videos of the games. I have also put the search system without keyboard and the option to align the lists to the left, right or center. And finally there is another option to see more data of the games or leave it as the original layout.

I have not wanted to add any type of marquee or any other graphic to respect as much as possible the original design, which in the end, is what attracted my attention.

I do not think that it will be used by many people, but as of MALA there is no web, official forum, or anything, I did not want to let that RetroGui die that I liked so much in his day. Today I still like it, but technically it is already very much surpassed.

You can download it here: https://mega.nz/#!Wkdl2CjQ!QnC1vMRNxXlJV2kiXAdDM99WRsirikXnNKVLcpCSzdE

Here is a screenshot:


And finally, the video is here: https://www.youtube.com/watch?v=3bX-9sVtl7A

Pages: [1] 2 3