Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Merging PRG file(s) with D64 containing DirArt from CLI
2023-11-02 13:05
spider-j

Registered: Oct 2004
Posts: 503
Merging PRG file(s) with D64 containing DirArt from CLI

I'd finally like to automate the process of merging PRG file(s) with a d64 containing perpared directory art.

But I don't even know which tools I can use for that task (c1541? cc1541?). Or should I do that in python with this here : https://pypi.org/project/d64/ ?!? Is that library any good?

I need a way to get an ASCII compatible output of the dirart d64 that I can modify with a script and write back to a new d64 containing my prg(s) and the del files.

I don't want to do this manually with DirMaster anymore. Especially since the versions > v3.x stopped working with WINE and I had to revert to v2.2.009.
2023-11-02 13:22
chatGPZ

Registered: Dec 2001
Posts: 11433
This is one of the tools everyone needs to write at least once :=) cc1541 can do it iirc, and a few others. some loaders have it included (eg bitbreakers). I dont dare to upload mine, it lacks all error checking and is ugly as hell :D
2023-11-02 13:48
spider-j

Registered: Oct 2004
Posts: 503
Quoting chatGPZ
and a few others. some loaders have it included (eg bitbreakers)

Thanks for the hint. I see BB has made a seperate tool out of that which can be used without bitfire: https://github.com/bboxy/bitfire/tree/master/d64write

I'll look into that.
2023-11-02 18:17
spider-j

Registered: Oct 2004
Posts: 503
For completeness sake: Sparta pointed me to his tool here https://csdb.dk/release/?id=236120.

But after a little bit of thinking I'm pretty sure I also can just "head | tail | hexdump | cut" the relevant bytes out of the dirart d64 and then feed the output into cc1541 – which seems to take PETSCII characters in filename with #-prefix.
2023-11-19 22:07
GI-Joe

Registered: Sep 2015
Posts: 23
Quote: For completeness sake: Sparta pointed me to his tool here https://csdb.dk/release/?id=236120.

But after a little bit of thinking I'm pretty sure I also can just "head | tail | hexdump | cut" the relevant bytes out of the dirart d64 and then feed the output into cc1541 – which seems to take PETSCII characters in filename with #-prefix.


not so complicated !
The arch user repo AUR always contains the latest version of cc1541. You should install it first.
Then you can use the output of ...
cc1541 -a YourDisk.d64
... to insert it 1:1 into the shellscript. For the sake of clarity, I make after each "-L" a "\" and then start a new line. Then the whole command is clearer ;)

Example ShellScript:
# make "Mayday!" Dir-Art with current date ...
{
cc1541 -m -V \
-P -T DEL -N -f "FR#afRF#c0DEED#60FR#afRF" -L \
-P -T DEL -N -f "#b0#c0#c0#b2#c0#b2#b2#ae#b0#b2#c0#b2#b2#ae#b0#ae" -L \
-P -T DEL -N -f "#dd #dd #dd#dd#ab#bd#dd #dd#dd#dd#dd#dd" -L \
-P -T DEL -N -f "#dd#dd#dd#dd#dd#dd #dd#dd#dd#dd#dd #dd#dd#dd" -L \
-P -T DEL -N -f "#dd#dd#dd#dd #ab #dd #dd #ab #dd#ab#b3" -L \
-P -T DEL -N -f "#ad#b1#b1#b1#b1#b1#c0#b1#c0#b1#b1#b1#c0#bd#ad#bd" -L \
-P -T DEL -N -f " on $DateString " -L \
-P -T DEL -N -f "FR#afRF#c0DEED#60FR#afRF" -L \
"$FinalDiskImageFile"
}
2023-11-20 09:33
spider-j

Registered: Oct 2004
Posts: 503
Quoting GI-Joe
cc1541 -a YourDisk.d64

Thanks for the hint. That -a switch is (almost) exactly what I was looking for and didn't find when I tried RTFM :-)
2023-11-20 15:05
chatGPZ

Registered: Dec 2001
Posts: 11433
If it could be useful to have that sort of output in petconv - file a feature request :)
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
kbs/Pht/Lxt
GI-Joe/MYD!
Zaphod/Hokuto Force
Wiklund/Fairlight
Guests online: 724
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Coma Light 13  (9.6)
5 Mojo  (9.6)
6 Edge of Disgrace  (9.6)
7 Uncensored  (9.6)
8 Comaland 100%  (9.6)
9 Wonderland XIV  (9.6)
10 What Is The Matrix 2  (9.5)
Top onefile Demos
1 Nine  (9.8)
2 Layers  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Libertongo  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Performers  (9.3)
4 Censor Design  (9.2)
5 Triad  (9.2)
Top Diskmag Editors
1 Magic  (10)
2 Jazzcat  (9.5)
3 Newscopy  (9.2)
4 hedning  (9.2)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.574 sec.