Author Topic: Emulation Station  (Read 33601 times)

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #15 on: January 19, 2015, 12:06:25 am »
Good news: I have it running now! Also added an archive of some required toolchain libraries; just copy those over and you shouldn't need to compile any.

opk here
libs here
git repository here

Complains about system entries, buy I'll let you handle that.

Ran a test, but there's no way to get past the config error. Paths are correct as far as I know. I suggest we add a pre-configured file, which is why I'm gathering GCW-Zero emulators. Looking into it now.

I also noticed ES is under emulators. We'll need to move it to applications. The aim of the program is so one may delete the emulators section on the home screen and still access their games. It saves space.

---

Update: I now have a working config thanks to Aloshi. Ran the test for fceux, but after selecting a game, the screen fades out and back in. It may not recognize .opk. We may need to add that.

For those of you who want to check out the progress so far, keep these issues in mind:
ES is under the emulators section. We'll move it to applications.

1. Scraper doesn't work. (We have yet to implement this.)
2. Sound settings does nothing. (We need to program it to change the Zero's volume, or remove it.) If anyone knows how we can accomplish this one, let us know. I haven't seen it used in an app on the GCW-Zero.
3. Emulators don't load. Choosing a game does nothing. (This is because the emulators terminate themselves after ES loads them.)
4. Restart System and Shutdown System in QUIT do nothing. We'll likely remove these.
« Last Edit: January 19, 2015, 03:07:01 am by xXFrostXx »
Dingoonity is the place to be!

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #16 on: January 19, 2015, 03:27:46 am »
I now have a theme working, which will take place of the boring white background with blue text. The emulators still terminate on booting, but we'll figure out why that is.
Dingoonity is the place to be!

com64

  • *
  • Posts: 56
Re: Emulation Station
« Reply #17 on: January 19, 2015, 07:25:29 am »
The correct way to run an application would be,
Code: [Select]
opkrun /data/apps/example.opk
Changing the category is trivial; just need to edit the default.gcw0.desktop file inside the OPK.

I'll have to take a look at how ES tries to change the volume, but power+up/down should work.

Could you post up the config file so I can take a look at everything?

Edit: Got something to load, however PicoDrive and a few other emulators don't seem to accept command-line args for input files. (I've only tried PicoDrive so far)

« Last Edit: January 19, 2015, 07:54:31 am by com64 »

ruffnutts

  • ***
  • Posts: 2379
Re: Emulation Station
« Reply #18 on: January 19, 2015, 09:08:54 am »
Sounds like you making progress well done guys I just loaded up on my zero to see it boot ;)

Thanks
ruffnutts  8)

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #19 on: January 19, 2015, 05:40:14 pm »
https://drive.google.com/folderview?id=0B81YUCHooq0IaUJDcmxDbkRULXc&usp=sharing

Here's the config I wrote for testing. It should show NES, GB, GBC, and GBA, though the emulators don't load.
I also uploaded a preview of the theme, however the text and cover art are too small to read.

We'll need to swap out the text and do some navigational editing to perfect this. Perhaps the list could be shown by itself like in the sneslist image I uploaded. Then, when you select a game, an additional screen could pop up showing the cover art, description, etc. covering the full screen instead of half of the screen. From there, you can select from two options. "Play" and "Back to list".
This would work better on the Zero and will make the text eligible.

The theme itself is fine, but the font and layout need some editing in the code.
« Last Edit: January 19, 2015, 05:43:04 pm by xXFrostXx »
Dingoonity is the place to be!

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #20 on: January 19, 2015, 05:59:16 pm »
Further testing proves that it doesn't matter whether the emulator accepts command line or not, none will load. We need to add this for the test build.

We can add "> ~/emulator_errors.txt 2>&1" to the end of the launch command to redirect the emulator terminal output to a file (emulator_errors.txt in the home directory). That should show us the errors causing the emulators to terminate.

---

Notice: Pressing SELECT on a game brings up the Edit Metadata menu, though it is screwed up. Buttons aren't all within the menu, so their position needs moved.
Also, editing things like Description cause the app to freeze. A pop-up keyboard will need to be implemented for manual editing of the metadata.
« Last Edit: January 19, 2015, 06:14:00 pm by xXFrostXx »
Dingoonity is the place to be!

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #21 on: January 21, 2015, 02:38:18 am »
I now have a working theme which currently lists four game consoles. I will be adding more.

The font used is garbled for games with special characters like Conker's Pocket Tales, but I'm looking into a fix.
Dingoonity is the place to be!

com64

  • *
  • Posts: 56
Re: Emulation Station
« Reply #22 on: January 21, 2015, 04:29:58 am »
Here's a build with debugging flags, (40MB uncompressed).

You will need to extract it to a subfolder (under ~/ or something), unpack the opk posted earlier, (unsquashfs is your friend) copy over the .so files, and run it via telnet:
Code: [Select]
env LD_LIBRARY_PATH=/path/to/folder gdb ./emulationstation
« Last Edit: January 21, 2015, 04:32:15 am by com64 »

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #23 on: January 25, 2015, 05:18:01 am »
I have another quick update on the theme. I just need to fix the garbled text, if possible, and then I will post some screenshots.

Perhaps Opensans in ES just doesn't like special characters. That's what it's looking like so far.
Dingoonity is the place to be!

hi-ban

  • **
  • Posts: 821
Re: Emulation Station
« Reply #24 on: January 25, 2015, 01:35:20 pm »
which characters appear garbled? maybe the font itself doesn't support all existing characters (many fonts only support the most usual character set, and unsupported characters usually show as squares or rectangles)

Also, depending on the characters, if you try to display them at a tiny size they may be blurry and/or difficult to read.
OpenSans supports the following characters: http://www.google.com/fonts/specimen/Open+Sans

Quote
standard ISO Latin 1, Latin CE, Greek and Cyrillic character sets

If you press the "Show missing glyphs" button right on top of the character chart, it will expand the character chart to show all the missing glyphs. Of course, those missing glyphs are not likely to be used ever, but there is always the possibility that someone used them in a rom name or something.

If you need fonts for other languages, such as chinese or japanese, you can take a look at the following:
http://blog.typekit.com/2014/07/15/introducing-source-han-sans/
http://www.google.com/get/noto/#/
« Last Edit: January 25, 2015, 01:50:29 pm by hi-ban »

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #25 on: January 25, 2015, 07:44:40 pm »
which characters appear garbled? maybe the font itself doesn't support all existing characters (many fonts only support the most usual character set, and unsupported characters usually show as squares or rectangles)

No squares or rectangles. It seems if a game name has an apostrophe in it, the name becomes ineligible. So far, ES only seems to accept Opensans, so in the worst case scenario, you'll need to change "Conker's" to "Conkers".

I still have yet to see how the text fits when you show cover art, etc.
That I can't do until the metadata scraper is completed. I had to increase font size for the GCW-Zero, so hopefully the text isn't too big there, otherwise we may need to do some editing of the menu layout.

---

Quick Update: The garbled text for some game names looks better now that I removed the gray background on the game list screen. I have no idea why the background interfered, but it's better now. Games with apostrophes in the name still don't look perfect though.
« Last Edit: January 29, 2015, 10:59:13 pm by xXFrostXx »
Dingoonity is the place to be!

hi-ban

  • **
  • Posts: 821
Re: Emulation Station
« Reply #26 on: January 30, 2015, 03:11:54 pm »
Further testing proves that it doesn't matter whether the emulator accepts command line or not, none will load. We need to add this for the test build.

i got the opk working without problems. Emulators load successfully.

Here is my es_systems.cfg file:

Code: [Select]
<!-- This is the EmulationStation Systems configuration file.
All systems must be contained within the <systemList> tag.-->

<systemList>

<system>
<name>nes</name>
<fullname>Nintendo Entertainment System</fullname>
<path>/media/data/roms/nes/</path>
<extension>.nes</extension>
<command>opkrun /media/data/apps/fceux.opk %ROM%</command>
<platform>nes</platform>
</system>

<system>
<name>gba</name>
<fullname>GameBoy Advance</fullname>
<path>/media/data/roms/gba/</path>
<extension>.gba</extension>
<command>opkrun /media/data/apps/regba-1.45.5.opk %ROM%</command>
<platform>gba</platform>
</system>

<system>
<name>gb</name>
<fullname>GameBoy</fullname>
<path>/media/data/roms/gb/</path>
<extension>.gb</extension>
<command>opkrun /media/data/apps/Ohboy_20141226.opk %ROM%</command>
<platform>gb</platform>
</system>

</systemList>

David Knight

Re: Emulation Station
« Reply #27 on: January 30, 2015, 06:27:29 pm »
Any chance of a video of this?

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #28 on: January 30, 2015, 06:42:01 pm »
Any chance of a video of this?

Com64 and I can upload a video once the theme is finished and the port is ready for the release section. Though we have the emulators running (thanks hi-ban, I realize what was missing now), we still have a lot to do yet.
Dingoonity is the place to be!

xXFrostXx (OP)

  • * Former Staff
  • Posts: 234
Re: Emulation Station
« Reply #29 on: January 30, 2015, 08:10:08 pm »
Added support for Picodrive, though, when you load a game, it opens the emulator and doesn't start the game you chose. This could be because Picodrive doesn't accept command line.

I messaged pcercuei awhile ago and asked him to add this so we may support it, but I haven't heard back for quite awhile.
Dingoonity is the place to be!

 

Post a new topic