Git Product home page Git Product logo

rickdangerousupdate's People

Contributors

aidanjacobson avatar h3xp avatar holly79 avatar lizardwiz avatar mrludo001 avatar wolfrevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rickdangerousupdate's Issues

overwriting gamelist.xml

If there is a gamelist.xml present in an improvement the script would overwrite any personal changes someone might have added.
The script should take in account for that and keep personal preferences.

Update script

Let the installed tool update itself based on version...

starting the update tool from options menu throws error

starting the update tool from options menu throws this error:
/dev/fd/63: line 10: update: command not found
/dev/fd/63: line 11: update: command not found
/dev/fd/63: line 12: update: command not found
/dev/fd/63: line 13: update: command not found
/dev/fd/63: line 14: update: command not found
/dev/fd/63: line 15: update: command not found
/dev/fd/63: line 16: update: command not found
/dev/fd/63: line 17: update: command not found
this doesn't seem to affect the process, it just continues to work afterwards, but still something to get rid off

Gamelist check and clean possible enhancements

While the check and clean already works impressive there are possible improvements.

  1. gamelists/retropie/gamelist.xml
Oct 06 15:25:36 lvl2:   Parsing XML file "/home/pi/.emulationstation/gamelists/retropie/gamelist.xml"...
Oct 06 15:25:36 lvl1:   File "/home/pi/RetroPie/retropiemenu/+Start PICO8.sh" does not exist! Ignoring.
  1. collections/custom-PC ENGINE.cfg
Oct 06 15:25:37 lvl2:   Loading custom collection config file at /home/pi/.emulationstation/collections/custom-PC ENGINE.cfg
Oct 06 15:25:37 lvl2:   Couldn't find game referenced at '/home/pi/RetroPie/roms/pcengine/Street Fighter II' - Champion Edition (Japan).zip' for system config '/home/pi/.emulationstation/collections/custom-PC ENGINE.cfg'
  1. collections/custom-strategy.cfg
Oct 06 15:25:38 lvl2:   Loading custom collection config file at /home/pi/.emulationstation/collections/custom-strategy.cfg
Oct 06 15:25:38 lvl2:   Couldn't find game referenced at '/home/pi/RetroPie/roms/amigacd32/e Fodder (Europe).cue' for system config '/home/pi/.emulationstation/collections/custom-strategy.cfg'
Oct 06 15:25:38 lvl2:   Loading custom collection config file at /home/pi/.emulationstation/collections/custom-trackball.cfg
  1. missing items like referenced pictures in the themes xml files (see emulationstation log file: ~/.emulationstation/es_log.txt)

Keep track of installed updates

Put in update_tool.ini
[INSTALLED_UPDATES]
update_name=datetime.datetime.utcnow().strftime("%Y%m%d-%H%M%S")

that way we can automatically check the ones that need to be implemented for the "Apply Selected" option.

Clean gamelists processes orphaned m3u files incorrectly

Process orphaned files puts all files supposed to be in .data folder into a single file called .data in roms directory.

You can't undo these changes

shutil.move(file_path, dir_backup)
needs to be changed to:
if not os.path.exists(dir_backup):
os.makedirs(dir_backup)
shutil.move(file_path, dir_backup)

Clean Auto-Cleans on Bad Roms

If the image/video is used in a previous gamelist entry, the file will be removed from supporting_files(i.e. directory of snaps/boxart), and it will not be counted as a found file...
Since the rom is not found, when the image/video file do not appear in found_files, it is auto cleaned.

process_supporting files:
# delete validated files
if len(file) > 0:
if file in supporting_files:
if file not in found_files:
found_files.append(file)
index = supporting_files.index(file)
del supporting_files[index]

process_gamelist:
# check for auto gamelist removal
if len(found_files) == 0:
if rom_file not in remove_entries:
remove_entries.append(rom_file)

# remove entry that shouldn't be there
for entry in remove_entries:

Dump game list from counts.

make a tab delimited file with system/name.

Change menu option to games/counts, or something to reflect the change.

add progress bars

Downloads can take a while. Progress bars make the waiting more bearable.

Reset Emulationstation controls

Resetting the emulation station controls takes a few clicks which can be unintuitive for novice users, the script could make this very easy

installation/uninstallation should reboot the system/ES

After installing the script or uninstalling the script the system should automatically reboot.
At least a prompt to reboot the system to apply changes is mandatory. Without the reboot the menu option does not show up after installation and it stays in the menu after uninstallation until the system is rebootet.

Download Fixes

Process after each download.
Remove "i" reference before assignment.

updates are not recognized on next tool-run

The tool shows me all available updates.
But when I start them and leave for several hours the screensaver is active and when I run the tool again it has not updated the installed improvements.
I think it might happen when it failed to update an improvement (maybe of mega download-limits).
You should update the installed improvments right after each installation and not at the end (if this is the casee ;) )

Parse m3u fails on amastradcpc update

Rick has put in commands so the file entries look like this:
#COMMAND:RUN"AFOX
.data/Arctic Fox (1988)(Electronic Arts)[a].dsk

Discard anything that begins with #

Error handling

When errors occur during improvement installation the script does not exit gracefully and temporary files in /tmp do not get deleted.

Sorting Algorithm of Updates

I suspect that we may cross the 100 mark at some point. We need to plan for that. Parse out the number portion and sort on that int value, rather than using list.sort() method...

I we don't we will see:
Update 09
Update 10
Update 100
Update 101
Update 102
Update 11
Update 12
etc...

Manually fix gamelist genres

For people who add games manually, scan gamelist entries and allow them to pick a genres that aligns with Rick's

Installer script

Write installer script so that it will be native on retropie and show on the options menu.

check wrong permissions function is wrong

the check wrong permissions function is checking a wrong directory/file for wrong permissions.
This only needs the correct path to work correctly.
We need to ask someone who did not fix the permissions yet which file is wrong.

root privileges?

Does the script work for updates that require root privileges?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.