Author Topic: Pi3 image  (Read 73815 times)

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #30 on: June 11, 2017, 10:02:44 PM »
I used your module, but had to make a few small changes so far to make it work.

Sent from my SM-G920F using Tapatalk


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #31 on: June 12, 2017, 01:12:43 PM »
MAME2016 core works well; just need to figure out how to get that launching fixed. I may need to kill  off the SDL window before launch, but I'd prefer not to.

Sent from my SM-G920F using Tapatalk


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #32 on: June 13, 2017, 12:46:49 PM »
I've launched a few questions on the boards to figure out how to do this. The problem is that if I have to destroy the renderer and window, I also have to destroy all textures created for that renderer, and then recreate them when the game returns, and in that case also do that for other pages on the stack. It's quite a code change to do that, so I'd rather first try to see if there's a way around this without breaking everything down. :) That's even aside from the fact that it's not a very pretty solution, because it briefly shows what's behind the front-end before and after launching the game. If anyone has a suggestion while I try to get answers from elsewhere, please let me know. :)

MisterB

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #33 on: June 14, 2017, 02:55:45 AM »
Outside of the launching issues you are working through (can you share the thread you posted to?), could you please let me know what other changes you made to the module to get up & running to your liking?  I can update it accordingly...

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #34 on: June 14, 2017, 07:31:32 AM »
Outside of the launching issues you are working through (can you share the thread you posted to?), could you please let me know what other changes you made to the module to get up & running to your liking?  I can update it accordingly...

I'll upload the script soon; it's just a small change to installed packages: the plugin change, and I added alsa support (to get sound in video). I'm still playing around with the C++ code to see if I can solve the launch issues.
https://discourse.libsdl.org/t/program-launched-from-sdl-program-is-launched-behind-the-sdl-program/22628/2
https://raspberrypi.stackexchange.com/questions/68383/emulator-launches-behind-sdl-front-end
https://retropie.org.uk/forum/topic/11002/adding-retrofe-emulator-launches-behind-the-front-end
It is my intention to add default launchers for all supported emulators in the bitbucket repository before this is done so they can simply be added to the installation by the script. First though I need to figure out how to actually properly launch an emulator. :)
« Last Edit: June 14, 2017, 08:55:55 AM by Pieter Hulshoff »

MisterB

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #35 on: June 14, 2017, 12:26:19 PM »
Are you using launchers that invoke the runcommand.sh script? Or did you configure one that calls an emulator directly?  If you are bypassing run command, that could be where the problem is coming from.

Unfortunately, I still don't have my Pi to help troubleshoot with you.  I might be able to get it back this weekend.

MisterB

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #36 on: June 14, 2017, 12:41:49 PM »
One other thing...I saw in the other threads that you wanted to see if auto booting into RF would help.  You can change from ES to RF by editing /opt/Retropie/config/all/autostart.sh.  If that file doesn't exist for some reason, you can also enable/disable/edit the autostart through RetroPie-Setup.  It is the 2nd option under "Configuration/Tools".

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #37 on: June 14, 2017, 01:40:35 PM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0
« Last Edit: June 14, 2017, 01:45:59 PM by Pieter Hulshoff »

MisterB

  • Newbie
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Pi3 image
« Reply #38 on: June 14, 2017, 04:21:58 PM »
Yes, that kind of configuration is essentially what my module script sets up. If you haven't already done so, try setting up a collection to use the launchers that should have been created on a per-system basis. You will see that those launchers use runcommand.sh

Ah...I also see the note about configuring RetroFE to use the SDL2 driver...maybe that helps too. Let us know!
« Last Edit: June 14, 2017, 04:24:48 PM by MisterB »

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #39 on: June 16, 2017, 05:59:37 AM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0

This link doesn't work for me.

I followed the links to your posts above and saw you asking about directly booting RetroFE and hiding boot text. You can modify the /opt/Retropie/config/all/autostart.sh file as MisterB suggests to boot to RetroFE. Here's how to hide the boot text https://github.com/retropie/retropie-setup/wiki/FAQ#how-do-i-hide-the-boot-text.


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #40 on: June 16, 2017, 06:48:58 AM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0

This link doesn't work for me.

I followed the links to your posts above and saw you asking about directly booting RetroFE and hiding boot text. You can modify the /opt/Retropie/config/all/autostart.sh file as MisterB suggests to boot to RetroFE. Here's how to hide the boot text https://github.com/retropie/retropie-setup/wiki/FAQ#how-do-i-hide-the-boot-text.

The link isn't working, because the old site is down; I made sure to save a copy on my computer before this happened. :)

I already had a closer look, but unless I want to change the video driver for all the emulators I guess I'll have to properly break down the SDL layers like EmulationStation does. I guess I'd better take care of that. :)
Thanks for the link; I'll have a closer look, and work on that as well. I want the RetroFE installation script to take care of all these things, so that after it's complete you'll have a fully operational RetroFE setup.

I did notice though that RetroPie does not look kindly upon people hosting their work elsewhere, so I'll have to see how best to handle that. Perhaps just an installation script with instructions, combined with a link to their site, and hopefully integration into a next version would be best.

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #41 on: June 16, 2017, 07:18:12 AM »
I think adding onto RetroPie via a script makes the most sense. It won't rub anyone the wrong way and it will also allow people using SD images (I dislike this) to try the FE.

Why not leverage the original script as a base and install the same way - "bash <(curl -s https://bitbucket.org/teamretro/retrofe/raw/default/Scripts/Raspi2/install.sh)"? Getting built into a future release of RetroPie might be good but in the case of Attract-Mode, it's less than desirable.

I'll post a couple of the scripts that I made for my RetroPie to Attract-Mode migration with a twist to support RetroFE. They should be similar to some of the things you might want for RetroFE.

DB_From_HS.sh
Code: [Select]
wget http://hyperlist.hyperspin-fe.com/genall.php?system=311 -O "/home/pi/retrofe/meta/hyperlist/Atari 2600.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=1 -O "/home/pi/retrofe/meta/hyperlist/Atari 5200.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=31 -O "/home/pi/retrofe/meta/hyperlist/Atari 7800.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=2 -O "/home/pi/retrofe/meta/hyperlist/Atari Lynx.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=6 -O "/home/pi/retrofe/meta/hyperlist/MAME.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=16 -O "/home/pi/retrofe/meta/hyperlist/NEC TurboGrafx-16.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=44 -O "/home/pi/retrofe/meta/hyperlist/Nintendo 64.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=316 -O "/home/pi/retrofe/meta/hyperlist/Nintendo Entertainment System.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=125 -O "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=35 -O "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy Advance.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=124 -O "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy Color.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=14 -O "/home/pi/retrofe/meta/hyperlist/Sega 32X.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=56 -O "/home/pi/retrofe/meta/hyperlist/Sega CD.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=48 -O "/home/pi/retrofe/meta/hyperlist/Sega Dreamcast.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=302 -O "/home/pi/retrofe/meta/hyperlist/Sega Game Gear.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=319 -O "/home/pi/retrofe/meta/hyperlist/Sega Genesis.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=308 -O "/home/pi/retrofe/meta/hyperlist/Sega Master System.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=319 -O "/home/pi/retrofe/meta/hyperlist/Sega Genesis.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=309 -O "/home/pi/retrofe/meta/hyperlist/Sony PlayStation.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=310 -O "/home/pi/retrofe/meta/hyperlist/Sony PSP.xml"
wget http://hyperlist.hyperspin-fe.com/genall.php?system=303 -O "/home/pi/retrofe/meta/hyperlist/Super Nintendo Entertainment System.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Atari 2600.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Atari 5200.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Atari 7800.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Atari Lynx.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/MAME.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/NEC TurboGrafx-16.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Nintendo 64.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Nintendo Entertainment System.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy Advance.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Nintendo Game Boy Color.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega 32X.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega CD.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega Dreamcast.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega Game Gear.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega Master System.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sega Genesis.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sony PlayStation.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Sony PSP.xml"
attract -i "/home/pi/retrofe/meta/hyperlist/Super Nintendo Entertainment System.xml"

Menu_Plus_Setup.sh
Code: [Select]
mkdir /home/pi/RetroPie/roms/setup
cat >> /home/pi/RetroPie/roms/setup/EmulationStation.sh << EOF
clear
echo "Switching default boot system to EmulationStation and rebooting"
echo ""
sed -i 's/attract/emulationstation/g' /opt/retropie/configs/all/autostart.sh
sudo reboot
EOF
cat >> /home/pi/RetroPie/retropiemenu/Attract-Mode.sh << EOF
echo "Switching default boot system to Attract-Mode and rebooting"
echo ""
sed -i 's/emulationstation/attract/g' /opt/retropie/configs/all/autostart.sh
sudo reboot
EOF
chmod +x /home/pi/RetroPie/retropiemenu/Attract-Mode.sh
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/audiosettings.rp >> "/home/pi/RetroPie/roms/setup/Audio Settings.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/bluetooth.rp >> /home/pi/RetroPie/roms/setup/Bluetooth.sh
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/configedit.rp >> "/home/pi/RetroPie/roms/setup/Configuration Editor.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/wifi.rp >> "/home/pi/RetroPie/roms/setup/Configure Wifi.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/filemanager.rp >> "/home/pi/RetroPie/roms/setup/File Manager.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/raspiconfig.rp >> "/home/pi/RetroPie/roms/setup/Raspberry Pie Setup.sh"
echo sudo reboot >> /home/pi/RetroPie/roms/setup/Reboot.sh
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/retroarch.rp >> "/home/pi/RetroPie/roms/setup/Retroarch Setup.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/retronetplay.rp >> "/home/pi/RetroPie/roms/setup/Retroarch Netplay.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/rpsetup.rp >> "/home/pi/RetroPie/roms/setup/RetroPie Setup.sh"
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/runcommand.rp >> /home/pi/RetroPie/roms/setup/RunCommand.sh
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/showip.rp >> "/home/pi/RetroPie/roms/setup/Show IP Address.sh"
echo sudo poweroff >> /home/pi/RetroPie/roms/setup/Shutdown.sh
echo sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu launch /home/pi/RetroPie/retropiemenu/splashscreen.rp >> "/home/pi/RetroPie/roms/setup/Splash Screen.sh"
mkdir /home/pi/RetroPie/roms/setup/box
mkdir /home/pi/RetroPie/roms/setup/cart
mkdir /home/pi/RetroPie/roms/setup/box
mkdir /home/pi/RetroPie/roms/setup/marquee
mkdir /home/pi/RetroPie/roms/setup/snap
mkdir /home/pi/RetroPie/roms/setup/video
mkdir /home/pi/RetroPie/roms/setup/wheel
cp /home/pi/RetroPie/retropiemenu/icons/audiosettings.png "/home/pi/RetroPie/roms/setup/snap/Audio Settings.png"
cp /home/pi/RetroPie/retropiemenu/icons/bluetooth.png /home/pi/RetroPie/roms/setup/snap/Bluetooth.png
cp /home/pi/RetroPie/retropiemenu/icons/configedit.png "/home/pi/RetroPie/roms/setup/snap/Configuration Editor.png"
cp /home/pi/RetroPie/retropiemenu/icons/wifi.png "/home/pi/RetroPie/roms/setup/snap/Configure Wifi.png"
cp /home/pi/RetroPie/retropiemenu/icons/filemanager.png "/home/pi/RetroPie/roms/setup/snap/File Manager.png"
cp /home/pi/RetroPie/retropiemenu/icons/raspiconfig.png "/home/pi/RetroPie/roms/setup/snap/Raspberry Pie Setup.png"
cp /home/pi/RetroPie/retropiemenu/icons/retroarch.png "/home/pi/RetroPie/roms/setup/snap/Retroarch Setup.png"
cp /home/pi/RetroPie/retropiemenu/icons/retronetplay.png "/home/pi/RetroPie/roms/setup/snap/Retroarch Netplay.png"
cp /home/pi/RetroPie/retropiemenu/icons/rpsetup.png "/home/pi/RetroPie/roms/setup/snap/RetroPie Setup.png"
cp /home/pi/RetroPie/retropiemenu/icons/runcommand.png /home/pi/RetroPie/roms/setup/snap/RunCommand.png
cp /home/pi/RetroPie/retropiemenu/icons/showip.png "/home/pi/RetroPie/roms/setup/snap/Show IP Address.png"
cp /home/pi/RetroPie/retropiemenu/icons/splashscreen.png "/home/pi/RetroPie/roms/setup/snap/Splash Screen.png"
chmod +x /home/pi/RetroPie/roms/setup/*.sh
wget http://attractmode.org/images/logo.png
mv logo.png /home/pi/RetroPie/retropiemenu/icons/Attract-Mode.png
cat >> /home/pi/.attract/emulators/Setup.cfg << EOF
# Generated by Attract-Mode v2.2.1
#
executable           /bin/bash
args                 "[romfilename]"
rompath              /home/pi/RetroPie/roms/setup
romext               .sh
system               Setup
artwork    box       /home/pi/RetroPie/roms/setup/box
artwork    cart      /home/pi/RetroPie/roms/setup/cart
artwork    flyer     /home/pi/RetroPie/roms/setup/box
artwork    marquee   /home/pi/RetroPie/roms/setup/marquee
artwork    snap      /home/pi/RetroPie/roms/setup/video;/home/pi/RetroPie/roms/setup/snap
artwork    wheel     /home/pi/RetroPie/roms/setup/wheel
EOF
sed -i '/\<sound\>/i \display Setup' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \        layout               Basic' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \        romlist              Setup' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \        in_cycle             yes' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \        in_menu              yes' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \        filter               all' /home/pi/.attract/attract.cfg
sed -i '/\<sound\>/i \ ' /home/pi/.attract/attract.cfg
sed -i 's/window_mode          default/window_mode          fullscreen/g' /home/pi/.attract/attract.cfg
attract -b Setup
sed -i '/<\<gameList\>>/a \        </game>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sed -i '/<\<gameList\>>/a \                <image>./icons/Attract-Mode.png</image>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sed -i '/<\<gameList\>>/a \                <desc>Change system boot to the Attract-Mode frontend and reboot.</desc>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sed -i '/<\<gameList\>>/a \                <name>Attract-Mode</name>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sed -i '/<\<gameList\>>/a \                <path>./Attract-Mode.sh</path>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sed -i '/<\<gameList\>>/a \        <game>' /opt/retropie/configs/all/emulationstation/gamelists/retropie/gamelist.xml
sudo reboot
« Last Edit: June 16, 2017, 07:29:47 AM by progets »

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #42 on: June 16, 2017, 08:05:22 AM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0

BTW - Was this post from me (I know that I was trying to get people interested in the Pi on the old site)? If so, I might be able to give some insight. Can you re-post this?

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Pi3 image
« Reply #43 on: June 16, 2017, 08:17:13 AM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0

BTW - Was this post from me (I know that I was trying to get people interested in the Pi on the old site)? If so, I might be able to give some insight. Can you re-post this?

No, but you did participate in the dicussion. :)

progets

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Pi3 image
« Reply #44 on: June 16, 2017, 08:23:32 AM »
Thanks, I will give both things a closer look. I'm not familiar with the run command, so I'll have to look into that.
Ah, this may help: http://www.retrofe.com/forum/index.php?topic=427.0

BTW - Was this post from me (I know that I was trying to get people interested in the Pi on the old site)? If so, I might be able to give some insight. Can you re-post this?

No, but you did participate in the dicussion. :)

Sorry, my mistake.

I think that you'll find most of my posts on the old site about the Pi if that helps you.