I cant get this to work, ive tried the script to make a playlist. It gives me this error on every game: ./mame.sh: line 22: +1]: not found
this is my current script:
#!/bin/bash
COUNTER=1
echo “Enter the absolute path to your core”
read core
echo “Enter the absolute path to the directory you want to scan”
echo “(exclude trailing slashes)”
read content
echo “Enter the name of the playlist”
read name
for i in $content/; do
echo “$i” >> $name
echo $i | sed 's/.[^.]$//’ | sed ‘s/.///’ >> $name
echo “$core” >> $name
echo “$core” | sed 's/.[^.]$//’ | sed ‘s/.*///’ >> $name
echo “$COUNTER|crc” >> $name
echo “” >> $name
COUNTER=$[$COUNTER +1]
done
this is my current MAME.lpl in /storage/playlists:
/storage/roms/mame/contra.zip
contra.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/doubledr.zip
doubledr.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/mk.zip
mk.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/mk2.zip
mk2.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/mk3.zip
mk3.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/sf1.zip
sf1.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
/storage/roms/mame/sf2.zip
sf2.zip
/tmp/cores/mame2014_libretro.so
mame2014_libretro.so
1|crc
the playlist shows in the ui but i cannot run any mame games.
i have tried using both mame2014_libretro.so and mame_libretro.so as my cores for mame.
I had these games working earlier on RetroPie but wanted to test out Lakka, to get some perspective.