Commodore 64 (C64) Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AS-Gen v0.4 - SD2IEC autoswap.lst generator (disk swapping)

 
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> New Releases
View previous topic :: View next topic  
Author Message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Sat Aug 11, 2012 3:21 pm    Post subject: AS-Gen v0.4 - SD2IEC autoswap.lst generator (disk swapping) Reply with quote

Hi everyone, I recently picked up an SD2IEC card and I wanted autoswap lists set up for each game directory. This is a painful thing to do manually so I wrote a program to do it for me as well as providing options to clean up all the "junk" files (i.e. anything other than .d64 and .prg files) that I didn't want in my games folder.

AS-Gen v0.4
https://dl.dropbox.com/u/68787224/AS-Gen_v0.4.zip

Included in the zip file is the program and the readme. AS-Gen is written in java so you'll need to have the JRE (Java Runtime Environment) installed - after that my program should work fine on any platform.

Here's the README.TXT on its own:
https://dl.dropbox.com/u/68787224/README.TXT

Let me know if you found it useful or have bug-reports / ideas for improvement. Thanks.


Last edited by kokapetl on Fri Aug 17, 2012 2:06 am; edited 14 times in total
Back to top
View user's profile Send private message
datronics
Groupie in Training
Groupie in Training


Joined: 13 Jan 2011
Age: 43
Posts: 80
Location: Iran

PostPosted: Sun Aug 12, 2012 5:09 pm    Post subject: Reply with quote

Hi,

It is a nice tool, but sometimes the images order is not correct in the generated autoswap.lst, like the following:

Sentinel_Worlds_I_-_Future_Magic_(Fixed)_Side_3.d64
Sentinel_Worlds_I_-_Future_Magic_(FBI_Crew)_Side_0.d64
Sentinel_Worlds_I_-_Future_Magic_(FBI_Crew)_Side_1.d64
Sentinel_Worlds_I_-_Future_Magic_(FBI_Crew)_Side_2.d64
Sentinel_Worlds_I_-_Future_Magic_(FBI_Crew)_Side_3.d64
Sentinel_Worlds_I_-_Future_Magic_(None)_Side_1.d64
Sentinel_Worlds_I_-_Future_Magic_(None)_Side_2.d64
Sentinel_Worlds_I_-_Future_Magic_(None)_Side_3.d64
Sentinel_Worlds_I_-_Future_Magic_(Fixed)_Side_1.d64
Sentinel_Worlds_I_-_Future_Magic_(Fixed)_Side_2.d64

I am on ubuntu.
_________________
SEARCHING FOR LIGHT
LOADING
READY.
Back to top
View user's profile Send private message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Sun Aug 12, 2012 6:14 pm    Post subject: Reply with quote

datronics wrote:
It is a nice tool, but sometimes the images order is not correct in the generated autoswap.list.

Thanks for the reply. I didn't read your example properly before.

Will post a fix soon.
Back to top
View user's profile Send private message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Mon Aug 13, 2012 1:13 am    Post subject: Reply with quote

Fixed now and the file linked to in my opening post has been updated, sorry about that - and thanks for bringing it to my attention. I thought I explicitly ordered files alphabetically but it turns out I forgot to. It just so happens that my games folder that I tested this on was already naturally ordered correctly.

You can re-run the new version of the program and it will replace any existing autoswap.lst files.

I think I'll also add another change soon so that my program generates autoswap lists that use carriage-returns as well as a new-line to separate entries. Some editors (such as notepad on windows) will show the list as all being on a single line because I only used the latter. This could confuse someone wanting to make a manual edit or having a look at the file. I'm fairly certain that SD2IEC will be fine with either approach, but I'll confirm before making the change as I don't have my C64 with me at the moment.
Back to top
View user's profile Send private message
Mamejay
Newbie


Joined: 10 Aug 2012
Posts: 43
Location: Melbourne, Australia

PostPosted: Mon Aug 13, 2012 1:55 am    Post subject: Reply with quote

Good stuff mate!! Works a treat.

Would be awesome for someone to put together an archive of multi-game disks in folders

i have been going through my set that I have and copying D64 images to separate folder. Its a bit of a pain as I have to rename the disk image to 8:3 format.
Back to top
View user's profile Send private message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Mon Aug 13, 2012 2:19 am    Post subject: Reply with quote

Thanks.
Mamejay wrote:
Would be awesome for someone to put together an archive of multi-game disks in folders
I came across an archive of games that had games in individual folders not long ago. That's actually the archive I wrote/used my program for. It had a lot of .T64 files, and occasionally had .SID, .TXT and other stuff in there which is why I added the delete options ( though the autoswap.lst files generated will ignore them either way).

Here it is:
http://thepiratebay.se/torrent..._Emulators

I was meaning to find a tool to extract the contents out of .T64 files. Anyone know a good command-line tool to do this?


Last edited by kokapetl on Tue Oct 02, 2012 9:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Unseen
Forum Junkie
Forum Junkie


Joined: 26 Feb 2008
Posts: 440

PostPosted: Mon Aug 13, 2012 10:19 pm    Post subject: Reply with quote

kokapetl wrote:
I'm fairly certain that SD2IEC will be fine with either approach, but I'll confirm before making the change as I don't have my C64 with me at the moment.

diskchange.c, lines 128-129:
Code:
    /* Skip line terminator */
    while (*str == '\r' || *str == '\n') str++;


kokapetl wrote:
I was meaning to find a tool to extract the contents out of .T64 files. Anyone know a good command-line tool to do this?

cbmconvert should be able to do it
_________________
Code:
10 a=rnd(-1294):fori=1to52:a=rnd(1):next
20 fori=1to5:printchr$(rnd(1)*11+69);:next
30 printint(rnd(1)*4711)-3590

sd2iec homepage
Back to top
View user's profile Send private message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Tue Aug 14, 2012 4:03 am    Post subject: Reply with quote

Unseen wrote:
diskchange.c, lines 128-129:
Code:
    /* Skip line terminator */
    while (*str == '\r' || *str == '\n') str++;

Perfect, I'll use \r\n then to keep notepad users (and whoever else) happy.
edit: I found something better: System.getProperty("line.separator"); This is the cleanest way I can think of doing it. This will mean that in the highly unlikely case that someone running this program with JVM on am old version of QNX OS, the autoswap.lst won't be compatible with SD2IEC (but not even unicode standard seems to consider it so I certainly won't. ;)

Unseen wrote:
cbmconvert should be able to do it

Thanks, I'll check it out.


Last edited by kokapetl on Wed Aug 15, 2012 6:29 am; edited 1 time in total
Back to top
View user's profile Send private message
stu232
C64 Enthusiast
C64 Enthusiast


Joined: 31 Jul 2012
Age: 45
Posts: 846
Location: Glasgow

PostPosted: Sun Sep 30, 2012 5:10 pm    Post subject: Reply with quote

kokapetl wrote:
T
Here it is:
http://thepiratebay.se/torrent/5840165/

My ISP has blocked access to TPB however it is possible to visit the site via a proxy, can someone give me the name of this file so as I can search for it.
_________________
6581 Baby!
Back to top
View user's profile Send private message
mrnukem
Newbie


Joined: 22 Apr 2012
Posts: 9

PostPosted: Sun Sep 30, 2012 9:54 pm    Post subject: Reply with quote

This is a great utility. Ran it on my uIEC 8 GB SD card and it worked perfectly so thank you very much!
Back to top
View user's profile Send private message
stu232
C64 Enthusiast
C64 Enthusiast


Joined: 31 Jul 2012
Age: 45
Posts: 846
Location: Glasgow

PostPosted: Sun Sep 30, 2012 9:56 pm    Post subject: Reply with quote

Care to give me the file name please? Smile
_________________
6581 Baby!
Back to top
View user's profile Send private message
kokapetl
Newbie


Joined: 23 Jan 2012
Age: 32
Posts: 43

PostPosted: Tue Oct 02, 2012 10:20 am    Post subject: Reply with quote

stu232 wrote:
Care to give me the file name please? Smile

The torrent title was "Commodore_64_-_Games__-Z___Emulators". I can't check the filename as thepiratebay is down at the moment.

mrnukem wrote:
This is a great utility. Ran it on my uIEC 8 GB SD card and it worked perfectly so thank you very much!

Thanks, glad it helped Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> New Releases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Tip: Get C64 Forever for super-comfy C64 emulation with pre-installed games, demos and other goodies!