New tools in the OSDK

Questions, bug reports, features requests, ... about the Oric Software Development Kit. Please indicate clearly in the title the related element (OSDK for generic questions, PictConv, FilePack, XA, Euphoric, etc...) to make it easy to locate messages.

User avatar
Dbug
Site Admin
Posts: 2389
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

New tools in the OSDK

Post by Dbug » Sun Nov 24, 2013 4:04 pm

Today I did a bit of update of the SVN version of the OSDK and added two of the tools I used for my latest demos which I realised were not available:
- Ym2Mym
- Makedisk

now a disclaimer: These two tools are super old, they compile with warnings all over the place, and for makedisk I'm not even sure this is the version that worked (the code is not from me), so since I had plenty of problems with it (it crashes when files are missing or read only, the syntax is complicated, etc...) I will try to fix it.

That will be the new base version for making floppy based games and demos, I will provide sample code on how to build a floppy and how to load data. That should help everybody. (And with Cumulus coming, we may expect more floppy based stuff in the pipeline)

User avatar
ibisum
Squad Leader
Posts: 879
Joined: Fri Apr 03, 2009 8:56 am

Re: New tools in the OSDK

Post by ibisum » Sun Nov 24, 2013 5:29 pm

Since a goal for Cumulus is going to be getting .DSK support up and running as fast as possible, I'm sure I'll be interested in helping/looking at the makedsk code to update it for more modern compilers/build-environments .. so thanks for the info Dbug!

By my point of view, it'd be nice to have a FUSE filesystem that can handle .DSK image mounts. ;)

User avatar
barnsey123
Flight Lieutenant
Posts: 379
Joined: Fri Mar 18, 2011 10:04 am
Location: Birmingham

Re: New tools in the OSDK

Post by barnsey123 » Sun Nov 24, 2013 7:39 pm

Things are looking up dudes! :D

christian
Officer Cadet
Posts: 50
Joined: Sun Nov 24, 2013 9:58 pm

Re: New tools in the OSDK

Post by christian » Sun Nov 24, 2013 10:38 pm

I'm writing a FUSE filesystem.

Here are its features:
- can read and write FTDOS disks and read Sedoric disks.
- can create new empty .dsk image
- If you copy a BASIC source file in the filesystem it is translated into BASIC token file and vice versa if you copy from the filesystem.
- can create a .tap file from a file in .dsk image or copy a .tap to a dsk image (extracting the file)
- can can display FTDOS help file (ASCII colors used)
- can display assembleur source from a binary file
- can transfert a file from a Sedoric dsk image to a FTDOS dsk image

I can add write capabilities to Sedoric dsk image but i'm more familiar with FTDOS.

This tool is written in Python.

User avatar
ibisum
Squad Leader
Posts: 879
Joined: Fri Apr 03, 2009 8:56 am

Re: New tools in the OSDK

Post by ibisum » Mon Nov 25, 2013 10:31 am

christian: sounds great - and for sure we would benefit from having the FUSE utility while debugging the Cumulus hardware, it'll make things a lot easier to inspect if we have access to this tool .. will you be sharing it with us under F/OSS terms, or can we somehow otherwise rely on it as a tool in the kit?

christian
Officer Cadet
Posts: 50
Joined: Sun Nov 24, 2013 9:58 pm

Re: New tools in the OSDK

Post by christian » Mon Nov 25, 2013 11:55 am

ibisum: I'm a CEO member and of course i can share this tool, although the code needs some cleaning.

g0blinish
Private
Posts: 4
Joined: Thu Nov 20, 2014 2:41 pm

Re: New tools in the OSDK

Post by g0blinish » Tue Dec 02, 2014 10:41 am

Sorry if my message offtopic, can't find thread.
Here is an issue with ym2mym:

tool stopped with message:
Only interleaved data supported.

As I see some .ym's has this format.
How to avoid issue?

.YM in attachment.
Attachments
einstein.zip
(9.1 KiB) Downloaded 188 times

User avatar
Dbug
Site Admin
Posts: 2389
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: New tools in the OSDK

Post by Dbug » Tue Dec 02, 2014 9:25 pm

I'm going to take a look.

The original code did not handle that many formats in first place, I already had to extend it a couple of time for the selection of musics had in my slideshow.

I guess the relevant part of the documentation is:
16 4 DWORD Song attributes (see below)
(...)
Data block contents now values for 16 registers (14 AY registers plus 2 virtual registers
for Atari special effects). If bit 0 of field Song Attributes is set, data block are stored
in YM3-style order (interleaved). If this bit is reset, then data block consists first
16 bytes of first VBL, then next 16 bytes for second VBL and so on. In second case YM5 file
is compressed more badly.
So basically your song is probably stored as 0123456...0123456....0123456 instead of 0000....11111....2222....333 etc.

Should be easy to fix.

Can that wait the week-end :) ?

User avatar
Dbug
Site Admin
Posts: 2389
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: New tools in the OSDK

Post by Dbug » Sat Dec 06, 2014 12:55 pm

So, I made a new version of the MYM converter, that now supports the interleave mode.

I will try to publish a new version of the OSDK later, but meanwhile you can find the version 1.5 of the converter attach to this message.
ym2mym.zip
Ym2Mym version 1.5
(50.54 KiB) Downloaded 215 times
Also, I modified my small demo test project to play the music.
g0blinish_music.zip
Complete replayer code for the Einstein music - requires Ym2Mym 1.5 or later.
(44.31 KiB) Downloaded 194 times
Have fun :)

User avatar
peacer
Flight Lieutenant
Posts: 351
Joined: Wed Jun 09, 2010 9:23 pm
Location: Turkey
Contact:

Re: New tools in the OSDK

Post by peacer » Sat Dec 06, 2014 1:08 pm

Had fun :D

Thank you !

User avatar
iss
Squad Leader
Posts: 516
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: New tools in the OSDK

Post by iss » Sat Dec 06, 2014 3:18 pm

I tested the dsk version - very good, I like it!
Cool color scheme and nice colored basic comments - absolute professional touch!
Just line 270 is not needed in 'main.bas' ;)
g0blinishmusic.jpg

User avatar
ibisum
Squad Leader
Posts: 879
Joined: Fri Apr 03, 2009 8:56 am

Re: New tools in the OSDK

Post by ibisum » Sun Dec 07, 2014 5:39 pm

Sounds great on my Atmos! I was hoping for a bit more BASS in the demo track, though .. ;P

g0blinish
Private
Posts: 4
Joined: Thu Nov 20, 2014 2:41 pm

Re: New tools in the OSDK

Post by g0blinish » Thu Dec 11, 2014 9:51 am

great!:)

thank you!

User avatar
Dbug
Site Admin
Posts: 2389
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: New tools in the OSDK

Post by Dbug » Thu Dec 11, 2014 10:16 am

By the way, I reduced the size of the player source code, from 658 to 400 bytes.

Not that it matters a lot considering the size requirement for the buffers and music data, but that makes it leaner and slightly faster decompressing.

Godzil
Squad Leader
Posts: 756
Joined: Sat May 21, 2011 7:21 pm
Location: Between UK and France
Contact:

Re: New tools in the OSDK

Post by Godzil » Thu Dec 11, 2014 12:19 pm

Dbug wrote:By the way, I reduced the size of the player source code, from 658 to 400 bytes.

Not that it matters a lot considering the size requirement for the buffers and music data, but that makes it leaner and slightly faster decompressing.
That could matter for some demos, 258Bytes IS 258Bytes, it's event more than a full page!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests