How to add items to the menu?
  • hello!

    so last night i was playing around with trying to add some other emu's to the menu, but i had no luck.

    in 'config.yami' i tried just copying the structure of other items and altering them with the new emu's info, and then adding them in front of the sections for 'restart', but when i restart i get line errors.

    not sure where i'm going wrong here. also i see in some people's setups they are able to create extra rows of icons on their main page instead of having to go to next. how do you do this? i see where to increase the number of icons in a rom with 'num_items_per_rom: 5' but do i need to manually resize the icons with 'item_height:220' and 'selection_size:11' to get them to fit properly?

    any ideas? thanks for any info!
  • ok, i've been able to increase the size of the rows to fit all current items on one page(minus a few i've hid), but i still cant seem to add items, even if some are removed. is there a max allotted amount of items?

    anyone have any experience with adding?
  • I have to start messing around with the .8 menu in the next week or so. If you still haven't gotten an answer by then, I'll look into it for you.
  • excellent! thank you sir!

    i'll keep digging around as well and see if i cant break stuff too bad, haha.
  • I only have one row of items on my menu screen. Below it i would like to add an image or a text file with instructions of how to use the arcade machine. If anyone can help me out with this i would appreciate it.
  • so far my findings are thus:

    there were a few emulators i didn't plan on using, so i had them set to invisible. if i alter those entries in the code to be used as other emulators (ex: changing neo-geo to pc engine) then it shows up no problem.

    if i try and add a whole new section to the code it wont even load the menu, i just get line errors. it crashes to command line.

    strange! so the maybe the menu was written for a set allotment of items?

    EDIT: also, if i have added that item to the menu, but make it invisible, the menu loads fine! so it must be related to making added items visable
  • It should work just fine... Could you post your config.yaml file?
    Thanks!
  • options:
    max_fps: 20
    show_ip: Yes
    show_update: Yes
    num_items_per_row: 8
    fullscreen: Yes
    resolution: "0,0"
    item_height: 220
    padding: 10
    selection_size: 11
    header_height: 140
    disabled_alpha: 128
    background_color: "200,200,200"
    selection_color: "74,239,76"
    text_color: "0,0,0"
    text_highlight_color: "255,255,255"
    item_color: "255,255,255"
    header_color: "255,255,255"
    rom_dot_color: "228,56,65"
    icon_pack_path: "icons/default/"
    font_size: 19
    font_file: "assets/fonts/Lato-Bold.ttf"
    sort_items_alphanum: No
    sort_items_with_roms_first: Yes
    hide_items_without_roms: No
    menu_items:
    - label: SNES
    visible: Yes
    icon_file: snes.jpg
    roms: /home/pi/pimame/roms/snes/
    full_path: yes
    override_menu: no
    command: /home/pi/pimame/emulators/pisnes/snes9x

    - label: MAME4All
    visible: Yes
    icon_file: mame4all.jpg
    roms: /home/pi/pimame/roms/mame4all/
    full_path: no
    override_menu: no
    command: /home/pi/pimame/emulators/mame4all-pi/mame

    - label: Game Gear
    visible: yes
    icon_file: gamegear.jpg
    roms: /home/pi/pimame/emulators/retro/roms/
    full_path: yes
    extension: yes
    command: /home/pi/pimame/emulators/retro/sms

    - label: AdvMAME
    visible: Yes
    icon_file: advmame.jpg
    roms: /home/pi/pimame/roms/advmame/
    full_path: no
    command: advmame

    - label: Final Burn
    visible: Yes
    icon_file: fba.jpg
    roms: /home/pi/pimame/roms/pifba/
    full_path: yes
    extension: yes
    override_menu: no
    command: /home/pi/pimame/emulators/fba/fba2x

    - label: Genesis
    visible: Yes
    icon_file: genesis.jpg
    roms: /home/pi/pimame/roms/genesis/
    full_path: yes
    command: /home/pi/pimame/emulators/dgen-sdl-1.32/dgen

    - label: NES
    visible: Yes
    icon_file: nes.jpg
    roms: /home/pi/pimame/roms/nes/nes/
    full_path: yes
    extension: yes
    command: /home/pi/pimame/emulators/nes/fceux

    - label: PC Engine
    visible: yes
    icon_file: pce.jpg
    full_path: yes
    command: /home/pi/pimame/emulators/retro/retroarch
    roms: /home/pi/pimame/roms/pcengine/
    override_menu: no

    - label: Playstation 1
    visible: Yes
    icon_file: psx.jpg
    full_path: no
    command: /home/pi/pimame/emulators/pcsx_rearmed/pcsx
    override_menu: yes
    roms: /home/pi/pimame/roms/psx/

    - label: N64
    visible: yes
    icon_file: n64.jpg
    roms: /home/pi/pimame/roms/n64/
    full_path: no
    override_menu: no
    command: /home/pi/pimame/emulators/mupen64plus-rpi/test/mupen64plus

    - label: Pc Engine CD
    visible: yes
    icon_file: pcecd.jpg
    full_path: no
    command: /home/pi/pimame/emulator/retro/retroarch
    override_menu: no
    roms: /home/pi/pimame/roms/pcecd/


    - label: Gameboy
    visible: Yes
    icon_file: gameboy.jpg
    roms: /home/pi/pimame/roms/gb/
    full_path: yes
    command: /home/pi/pimame/emulators/Gearboy/platforms/raspberrypi/Gearboy/gearboy.bin

    - label: Gameboy Advance
    visible: Yes
    icon_file: gba.jpg
    full_path: no
    command: /home/pi/pimame/emulators/gpsp/gpsp
    override_menu: yes
    roms: /home/pi/pimame/roms/gba/

    - label: sega CD
    visible: Yes
    icon_file: segacd.jpg
    full_path: no
    command: /home/pi/pimame/emulators/retro/retroarch
    override_menu: yes
    roms: /home/pi/pimame/roms/segacd


    - label: Restart
    visible: Yes
    full_path: no
    icon_file: restart.jpg
    command: sudo reboot
    override_menu: yes

    - label: Shutdown
    visible: Yes
    full_path: no
    icon_file: shutdown.jpg
    command: sudo poweroff
    override_menu: yes

    - label: Update PiMAME
    visible: Yes
    full_path: no
    icon_file: update.jpg
    command: wget -O - http://pimame.org/update.sh | bash
    override_menu: yes

  • so everything functions (as far as the menu loading correctly and displaying rom lists, but i'm still working on getting them up and running) except the one that i've added which is the sega cd item. without that its fine, but once its added/made visable it breaks the menu and it wont load. so far i've only been able to alter existing item entries.

    thanks for any help!
  • OK, I copied your config file to my Pi and ran PiPlay. I got the error message. But if I remove Sega cd, it still gives me the error.
    So in the end I got a clean config file, then copied all your added emulators including Sega CD into it. I think the problem was the indentation of some lines.
    Here is my version, sorry if I missed something:
    https://www.dropbox.com/s/cj1l82nviqi8c5n/config.yaml

    Good luck
    PM me if you need anything!
  • I'm not sure if it's the same for the config.yaml file, but in python, there is a difference between 4 spaces and a tab-space. They look identical on the screen. If I get an error of this sort, I often do a find and replace of all 4-space with tab-space. I hope that this makes sense, it's a little hard to describe.
  • thanks a million guys! i'll give both a try and report back!
  • also, i dont suppose you guys have any idea how i can add cavestory? ive been trying:

    -label: Cavestory
    visible: yes
    icon_file: cstory.jpg
    full_path: no
    extension: no
    command: cave
    override_menu: yes

    not sure if i'm on the right path, i've been going by trial and error so much guess work i can do, hehe
  • I'll test cavestory tonight.
  • Conno123009 you are the man! i swaped out for your config.yaml and whatever you did fixed it! brill! thanks again! was there anything you did specifically so that i can remember not to screw it up in the future?
  • Awesome! Glad to help :D
    I think you have to make sure each line is properly indented. Using spaces instead of tabs seems to work.
    Good luck and thanks!
  • hey shea, any luck with cavestory?

    i keep getting:

    sh: 1: cave: not found

    even if i point directly at the executable such as:

    command: /usr/local/bin/indiecity/InstalledApps/nxengine/Full/cave

    still no dice, same error. do i need to move the executable somewhere for it to be recognized? if i'm in command line and type cave i'm golden, so i'm confused what i'm doing wrong.
  • So, my laptop died the other day. It should be repaired today, and then I can look at it some more. I think I know whats going on, but I need my laptop with my dev environment :)
  • Thanks Shea!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!