Page 1 of 7

AUFIT Program

Posted: Mon Jan 06, 2014 5:20 pm
by DrCoolZic
Important Note: This thread is located in SuperCard Pro subforum, but it could have been located in the KryoFlux subforum as currently the program read flux images from these two devices.

AUFIT is the acronym for Atari Universal Floppy-Disk Image Tool.
The program can read many Floppy Disk image’s formats used with the Atari platform including images generated at the flux level by devices like SuperCard Pro, KryoFlux, and Discovery Cartridge.
Once read the FD image can be analyzed and the content can be displayed using Graphical and Text outputs.
Usage has been designed to be as simple as possible for casual users. However the program also provides powerful features for advanced users.

Re: AUFIT Program

Posted: Mon Jan 06, 2014 5:21 pm
by DrCoolZic
I have received several requests to get the Aufit program. Normally I would not do this because the program is still in early development
However I believe it can already be useful to some people

So I just do an alpha release today of the program and I have written a very preliminary doc to get you started

Feel free to provide feedback here, but remember alpha software :)
Please read the doc, even preliminary, before asking ;)

In order to run the program you need to have .net framework 4.5 or above installed http://www.microsoft.com/en-us/download ... x?id=30653
It also need the Ookii class lib provided as a DLL

The code run on Window 7 or 8 more info to come
aufit.rar

Aufit00.rar

Re: AUFIT Program

Posted: Mon Jan 06, 2014 7:16 pm
by JimDrew
Thanks for this tool! It will come in handy.

Re: AUFIT Program

Posted: Mon Jan 06, 2014 11:02 pm
by DrCoolZic
added the missing DLL
Tested on an XP and does not seems to work probably because requires Framework 4.5 not available on XP

Re: AUFIT Program

Posted: Tue Jan 07, 2014 1:00 am
by JimDrew
It's compiled for 64 bit only, at least this is the error message according to Microsoft.

Re: AUFIT Program

Posted: Tue Jan 07, 2014 8:37 am
by DrCoolZic
Well it is a bit more complex than that but yes unfortunately it wont run on XP. The reason is that in order to read asynchronously 170 files at the same time I use some Tasking features only available with framework 4.5 and windows XP is limited to framework 4.0.
As 4.5 is not supported by XP it complains and returns a message saying it is not a 32 bits application and sorry no solution (I dont even think it would run on a X64 XP).

On Windows 7/8 it should run on 32 or 64 bits OS as I have compiled for any CPU (but again not tested at this stage).
I will not changed the code to run with 4.0 because the new 4.5 framework features are much nicer ans simpler to use ... So no XP support sorry

Re: AUFIT Program

Posted: Tue Jan 07, 2014 9:12 am
by DrCoolZic
I have just tested on Windows 7 X86 (32 bits) virtual machine and it works but ... you MUST install .NET framework 4.5. If not the program will "stop working" without information :(

Also tested on Windows 8.1 X64 and works fine. Here no need to install anything as 4.5 (and even 4.5.1 is already installed)

Re: AUFIT Program

Posted: Thu Jan 09, 2014 11:21 am
by DrCoolZic
New version 0.1b of the program. Still alpha as not much tests has been done.
This version includes a reasonable documentation of the main features.
The main difference with the previous release is that the protection analysis is fully implemented. It is activated when a track is displayed or analysis of the complete FD can be done using the Protections button.

known problems:
- run out of memory. If I was still writing in C++ I would have suspected a memory leak but this is suppose not to exist in C# where the GC is suppose to do that for you :)
next release will use optimized data structures to hopefully resolve this problem. Meanwhile if this happen to you try to restart the program between analysis of different images
- GUI Freeze: despite the fact that I am using asynchronous calls of heavy GUI operation the program freeze when displaying Disk Data graph. For now just wait ...
- Do not use SCP files generated with SCP 0.96 there is an error in the file format

Bug fixed
- many ... Now you should be able to still use the GUI to select tracks etc while the Track Layout and Track Data command execute (used to crash)
- Fixed one very nasty and tough to find bug. For info: in .Net framework. When you click a form to select a file the click event is not flushed and you get it back as a button click ... :evil:

Aufit01b.rar

Re: AUFIT Program

Posted: Thu Jan 09, 2014 7:23 pm
by dlfrsilver
i have .net framework 4.5 under Win7 32 bits, and AUFIT refuse to work.

What can i do ?

Re: AUFIT Program

Posted: Thu Jan 09, 2014 7:50 pm
by DrCoolZic
dlfrsilver wrote:i have .net framework 4.5 under Win7 32 bits, and AUFIT refuse to work.

What can i do ?

What message do you have?
I have run it under Win 7 x86 virtual machine without problem?

Re: AUFIT Program

Posted: Thu Jan 09, 2014 8:02 pm
by dlfrsilver
DrCoolZic wrote:
dlfrsilver wrote:i have .net framework 4.5 under Win7 32 bits, and AUFIT refuse to work.

What can i do ?

What message do you have?
I have run it under Win 7 x86 virtual machine without problem?


no message in particular, once i load the SCP file, it crash directly.

Can i contact you via skype ?

Re: AUFIT Program

Posted: Thu Jan 09, 2014 9:56 pm
by DrCoolZic
dlfrsilver wrote:no message in particular, once i load the SCP file, it crash directly.

I suspect that the SCP file has been generated yesterday or taday using SCP v0.96
If you look in my release note you will see:

Code: Select all

- Do not use SCP files generated with SCP 0.96 there is an error in the file format


The file generated by SCP 0.96 have a problem that Jim is investigating
Try to use SCP 0.94 just place the executable in the SCP directory, double click it, and do not accept update
Then regenerate the scp immage it should work

Re: AUFIT Program

Posted: Thu Jan 09, 2014 10:27 pm
by dlfrsilver
thanks, but before i need to buy a new floppy cable. Mine has just broken, and i don't have another one.

Re: AUFIT Program

Posted: Thu Jan 09, 2014 10:57 pm
by DrCoolZic
Hope the file format will be fixed before you get your cable :)

Re: AUFIT Program

Posted: Fri Jan 10, 2014 4:08 am
by JimDrew
Aufit works perfectly with Windows Vista w/Network Frame 4.5 installed.

Re: AUFIT Program

Posted: Fri Jan 10, 2014 10:32 pm
by tteclado
AUFIT+Discovery Cart?

ATARI AUFIT program; is posible?!

Re: AUFIT Program

Posted: Sat Jan 11, 2014 8:25 am
by DrCoolZic
tteclado wrote:AUFIT+Discovery Cart?

ATARI AUFIT program; is posible?!

Yes supporting DC is on the list as I already have a prser for the file. But it is low priority
Porting to Atari don't even think about it language C#, Graphics WPF, .NET framework, memory size huge :D

Re: AUFIT Program

Posted: Sat Jan 11, 2014 11:57 am
by Eero Tamminen
DrCoolZic wrote:- run out of memory. If I was still writing in C++ I would have suspected a memory leak but this is suppose not to exist in C# where the GC is suppose to do that for you :)


GC deals only with leaks where you've lost a reference to an allocation without freeing it. It won't free allocations to which you still keep references, although they wouldn't be anymore needed by your program.

Re: AUFIT Program

Posted: Sat Jan 11, 2014 4:40 pm
by JimDrew
My Amiga editor (like SCP's analyzer) is just 8K in size, and the copier is about 15K. Times have changed!

Re: AUFIT Program

Posted: Sat Jan 11, 2014 5:59 pm
by DrCoolZic
Eero Tamminen wrote:
DrCoolZic wrote:- run out of memory. If I was still writing in C++ I would have suspected a memory leak but this is suppose not to exist in C# where the GC is suppose to do that for you :)


GC deals only with leaks where you've lost a reference to an allocation without freeing it. It won't free allocations to which you still keep references, although they wouldn't be anymore needed by your program.

Yes I understand but it is suppose to "dispose" data without references.
During read operation there is lot of data that are read in buffers and these buffers are not used anymore and when doing graphical operations like drawing the layout of a disk the data are not used anymore when the window is closed.
In all those cases the GC is supposed to go to work and free memory (and indeed when looking at memory used it does) ...

C# is nice as you do not have to worry about memory management, but I am so much used to control every single byte of memory allocated that I need to get use to it :oops:
But I have done cleanup and situation seems much better now ;)

Re: AUFIT Program

Posted: Sat Jan 11, 2014 9:39 pm
by Eero Tamminen
DrCoolZic wrote:C# is nice as you do not have to worry about memory management


You do need to worry about & manage memory still, just not raw memory in form of pointers, but in form of objects... :-)

And when you have GC, it significantly increases your base memory needs (GC needs extra space to be able to effectively manage the memory). Nowadays with machines having GBs of RAM, that's not really a worry, like it was when machines had just MBs of RAM.

Re: AUFIT Program

Posted: Sun Jan 12, 2014 7:33 am
by DrCoolZic
Eero Tamminen wrote:
DrCoolZic wrote:C# is nice as you do not have to worry about memory management


You do need to worry about & manage memory still, just not raw memory in form of pointers, but in form of objects... :-)

And when you have GC, it significantly increases your base memory needs (GC needs extra space to be able to effectively manage the memory). Nowadays with machines having GBs of RAM, that's not really a worry, like it was when machines had just MBs of RAM.

I know that I still have a lot to do! :cry:
Learning C# was relatively easy but I am probably not yet using it in an optimum way. But I really appreciate the language that allow to develop quickly and provides all the things that used to be in lib like STL ...
WPF is nice also but tough to learn especially when you do not have GUI background ... I probably only know and use a very small subset of the .Net framework/WPF and this is why the current UI is far from being what I want
But all in all I have been able to put together 7631 lines of code (just checked this morning) in a couple of months doing other dev at the same time
The next major step is writing Pasti file. I have completed a Pasti reader/writer test program viewtopic.php?f=47&t=19904&start=25#p243932
So hopefully if time permit I should be able to have this in Aufit soon.
After will come time to clean the mess (in fact not so messy as relatively clean OO patterns have been used but not really MVVM) and work on the UI

Forgot the KFReader lib an extra 862 lines! So thiats over 8000 8O

Re: AUFIT Program

Posted: Sun Jan 12, 2014 4:01 pm
by JimDrew
I found the issue with SCP generating data files with v0.96 and that has been corrected for v0.97. I need to make the new firmware flasher because the AUFIT program crashes with Turrican on tracks 7-10 (the NFA). You will need the new firmware to determine why. Aufit also crashes on any track when I click on "protections"... it shows the info in a popup window and then crashes. I don't think this is related to the .scp files though. Also, if you change the revolution to view by clicking on the '-' when the current revolution is 1 or '+' when at the maximum revolution, the data becomes invalid and it shows revolution "0"... no crash, just bad data. It does step forward/backwards in tracks/heads, but shows the revolution as 0 instead of 1.

Re: AUFIT Program

Posted: Sun Jan 12, 2014 5:27 pm
by dlfrsilver
Hello There :) I have found a cable to use again my super card pro. I have used v0.94 and indeed, v0.96 is knackered.

Viaje al centro de la Tierra Amiga use GAP protection, and Lorna use GAP + fuzzy bits (bad CRC).


however i have now another problem : it's impossible to write back an SCP image back to a fresh disk. My amiga 1200 is unable to recognize the disk written back.

Re: AUFIT Program

Posted: Mon Jan 13, 2014 8:14 am
by DrCoolZic
JimDrew wrote:I found the issue with SCP generating data files with v0.96 and that has been corrected for v0.97. I need to make the new firmware flasher because the AUFIT program crashes with Turrican on tracks 7-10 (the NFA). You will need the new firmware to determine why. Aufit also crashes on any track when I click on "protections"... it shows the info in a popup window and then crashes. I don't think this is related to the .scp files though. Also, if you change the revolution to view by clicking on the '-' when the current revolution is 1 or '+' when at the maximum revolution, the data becomes invalid and it shows revolution "0"... no crash, just bad data. It does step forward/backwards in tracks/heads, but shows the revolution as 0 instead of 1.

As I said Aufit is still in alpha test so not too much surprise it crashes!
What do yo mean by bad data? As explained in the doc rev 0 is supposed to display all the revolutions like this
fire-forget-scp-79-3-rev.JPG


I have just run 0.96 and it does not find any update? Is 0.97 already available?