English Amiga Board


Go Back   English Amiga Board > Other Projects > project.WHDLoad

 
 
Thread Tools
Old 27 November 2021, 15:50   #1
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
WHDLoad collection ordered by year?

I'd like to have an alternative ordered by release year, not name. Any ideas on how to do it without sorting every single game manually?


It's possible using Mega AGS image (it has in-built filters), but I'd prefer having my own collection (a bunch of "1986", "1987", etc, drawers in WB), without going through this or any other frontend.
dreadnought is offline  
Old 27 November 2021, 18:31   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
with a whdload installed games tree and a small python script I think this can be done in a few minutes.

yes it is easy. and it's done

git repository containing the sort_whdgame_per_year.py script here: https://github.com/jotd666/amiga68ktools

script uses whdload_slave.py which is also in the repository.

Note that some old slaves haven't been updated to include the "info" part and manual move will be required on 200+ old slaves. Damn.

Quote:
2375 games found, 22 years ranging from 1985 to 2019
243 too old slaves
that is the result of the run on a copy of whdload xmas cd

Last edited by jotd; 27 November 2021 at 19:07.
jotd is offline  
Old 27 November 2021, 19:24   #3
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Many thanks for looking into it. But I'm a complete noob when it comes to python, not quite sure what to do. I downloaded the whole git and tried the sort_whdgame_per_year.py but it closes immediately upon starting.

I'm pretty sure I do have python installed, but what else should I do?
dreadnought is offline  
Old 27 November 2021, 22:21   #4
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
you need to have "whdload_slave.py" in the same folder. It's in "lib" directory.

Then it's a command line tool (command line / shell). No GUI.

sort_whdgame_per_year.py root/dir/of/your/whdload/games new_root_dir

There's also a "-t" option (test, do nothing). Try that first

There's also a "-c" option (copy, don't move) for instance if you're working from a read only media. This copies so it's longer. But will preserve input dir
jotd is offline  
Old 02 December 2021, 20:51   #5
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Sorry, only had time to come back to this now. Thanks again for the advice.

I've tried to do it with: .\sort_whdgame_per_year.py h:\WHDL h:\WHDL\sorted

This is using Win 10 Powershell. When I press enter, a window opens, parses something very quickly (too quick to read, though I glimpsed "move manually") and closes. There's nothing in "sorted" dir.

h:\WHDL has all my WHDLoad A-Z directories with unpacked game directories inside. I also put sort_whdgame_per_year.py & whdload_slave.py in there.

Anything you could see I'm doing wrong here?
dreadnought is offline  
Old 02 December 2021, 21:27   #6
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
Making progress though

Well, don't use powershell, use normal dos command prompt. You'll get the output in the
current window

"move manually" is the message that is printed when the date could not be found. Surprising that nothing could be detected as a date though. Post your findings
jotd is offline  
Old 02 December 2021, 22:12   #7
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
Ok, so we can read it now.



This is just a part of it, but the pattern is the same throughout, the same few error messages are repeated. And as you can see only a fraction of the whole collection has been parsed.

It is indeed old, I think I downloaded it in July 2019.
dreadnought is offline  
Old 02 December 2021, 23:13   #8
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
oh I see. Needs to be more tolerant and also robust, and mostly I have broken the tool when I added the test mode so nothing could be processed, like AT ALL ...

this is now fixed. Get the new version on my github.
jotd is offline  
Old 05 December 2021, 17:49   #9
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899
The battle continues


[IMG][/IMG]
dreadnought is offline  
Old 05 December 2021, 18:26   #10
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
great. That is the last issue. Please check the update
jotd is offline  
Old 05 December 2021, 18:46   #11
dreadnought
Registered User
 
Join Date: Dec 2019
Location: Ur, Atlantis
Posts: 1,899





Thanks a million...I really appreciate it!

The other reason it wasn't parsing all the stuff is because some of the games weren't unpacked, which I've just realized now. That's ok, I think I will first grab the latest WHDLoad anyway, unpack it, and then run your script on it.
dreadnought is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-ordered an ACA1221lc from iComp voyager_1701e Amiga scene 13 29 February 2020 00:12
Pre-Ordered an ACA1233n-55 Dellamorte Amiga scene 40 20 December 2019 12:45
Just Ordered Amiga OS 4.1 - emulation book fondpondforever Amiga scene 4 09 May 2017 19:54
From What year to what year You can use a stock Commodore Amiga 500? The Brave Ant Nostalgia & memories 3 10 June 2014 18:34
WHDLoad's New Year gifts MethodGit Amiga scene 3 22 January 2002 01:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:02.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12255 seconds with 15 queries