scene.org File Archive

File download

<root>­/­resources­/­tools­/­amiga/ifft0975.lha

File size:
23 316 bytes (22.77K)
File date:
2024-08-11 05:45:01
Download count:
all-time: 64

Preview

  • IFFTrasher 33.23K
  • IFFTrasher.dox 16.21K
  • important.readme 1.00K
  • The_PIT.TXT 1.24K
  • TRSI 1.30K

file_id.diz

	           ________                   /\   __
	           \_      \               __/ /_ /_/
	            /  _   /__  /\    __/\/_  __/__ _/\  _  __
	           /  //  /   \/ / /\/ _  \/ /  / / _  \/ \/  \
	          /  //  / /  / / / / //  / /  / / //  /      /
	        _/      / ___/  \/ / //  /  \_/ / //  / /\   /
	       /_______/\____\____/_____/\___/_/_____/_/ /__/
	      =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[RvG]
           		      P R E S E N T S

   		         IFFTRASHER v0.975 ßeta Relese

                       -*- THE ULTIMATE IFFCONVERTER -*-
                       -*-     Coded By Revenger     -*-
		       -*-      In 100% Assembly     -*-

			      © 1993 DEVOTiON

       Freely Distributable as long it's not sold without my permission

		       Only works on OS 2.04 & higher

	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	|		   This is a BETA Version!		    |
        |                BUT IT'S STILL VERY USEFULL		    |
	|	 (but dont blame me if your computer crashes)	    |
	|	The final version will have FULL support for AGA    |
	|	and support for loading ANIM files. 		    |
	|							    |
	|							    |
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


   I'AM VERY GREATFUL IF YOU REPORT ANY BUGS YOU FIND, OR IF YOU HAVE ANY
                        SUGGESTIONS FOR INPROVMENTS

Thanks To:

Kjell Cederfelth
for answering my stupid questions about the GUI progamming.

---------------------------- WHAT IS THIS???? -------------------------

First of all it's ShareWare so if you like this and want version 1.0
when its ready, you haft to pay me :) send 100Sek to:
Tomas Larsson
Drottninggatan 40
66233 Åmål
Sweden


This is program for converting IFF picture to RAW data for using in
demos/games or were else you need a picture in pure bitmap data.
This is not the only iffconverter but i think it is one of the better ones.
I made this because the other converters was a pain to use, and if it's
a pain to use it,   then it's CRAP!!.......
(guess witch converter i used to the convert the IFFTrasher logo :).. )


------------------------------- CHANGES ------------------------------------

*------------------------------- V0.961 -----------------------------------*
Relesed 930511
Changes since V0.96

Changed the filerequester size & position.
Added some error checks.
Fixed some BUGS.

*------------------------------- V0.975 -----------------------------------*
Relesed 9308??
Changes since V0.961
I have been real lazy, but this things is added.

!!!O.B.S Preference file is changed, so save a new one.!!!

1.
Added a cut funktion & a "ToolWindow" to the viewpic screen, press HELP
when you display the picture. You can change the resolution etc there.

Read Chapter 13 for more info.

2.
Press DEL button to remove/display Cross on the picture screen

3.
Always opens a screen in maximum size, so if the picture is 32x32
the screen will be 320x256. (doesn't work on hire,lace pictures YET)
But it will be 32x32 if you save it.
You can clip out a area bigger then the original picture and save it
with the "Save Brush" gadget that appers when you press HELP.
NOT! the gadget in the mainwindow!!!!
because the picture screen MUST be open!.


4.
Added a Zoom Gadget to the window.

5.
A new IFFTrasher logo. (got bored of the old one)

6.
A new option. "Add Word"
Adds a word(16pixels) on the rigth or the left side of the picture.
Needed when shifting data with the blitter to move a BOB horizontal.
(will proably change this so YOU can deside how many words to add)

7.
Now you can overwrite the picture you have loaded.
Was not possible before, because the file was "in use".

8.
Now IFFTrasher checks if a suffix allready is present, so you won't
get file names like this "pic.RAW.RAW" but you can get "pic.RAWB.RAW"
but who cares.

9.
You can type a name for the brush in the "Brush FileName" string gadget
if you dont want to use the picture name.



10.
FIXED (i hope) A HOLE BUNCH OF BUGS!!!!
And fixed the error handlig for ifftrasher's memory allocating
this was not working so good before.


NOTE:
It works on AGA pictures as long as you don't saves the colors in any way
but this is the next thing i will fix so don't kill yourself.
 

------------------------------- INFORMATION --------------------------------



For Bug Reports & Suggestions Use SnailMail:

Tomas Larsson
Drottningatan 40
66233 Åmål
Sweden

Or Call These Boards

^OLYMPiA^ 	+46-(0)532 10510
ONE HOUR	+46-(0)612 10612

And leave a mess to REVENGER

(You can allways find the newest version of IFFTrasher on these boards....)


!!!!!!!!!!!!!!!!!!!!! KNOWN BUGS !!!!!!!!!!!!!!!!!!!!!

When you are clipping a area and the end position is 0,0 it wont mark the
area correctly.
Start the marking at 0,0 THEN i works, shall fix this later.


DONT have the Color Formate gadget set on Behind/Before Pic when you
load a RAW/RAWB picture that DONT have a color map attached to the rawdata
because if you do, the computer 9 times of 10 totally freaks out!!!
Not really a bug, but good to now.
I think i gonna add something to the file comment so ifftrasher knows were
the cmap is.



LIBS NEEDED.
------------
ASL.LIBRARY
IFFPARSE.LIBRARY

--------------------------------- CONTENTS --------------------------------

----------------
PICTURE OPTIONS:					     Chapter
----------------
*= Not Working in this version!!!

	Load Formate............................................ 1

		IFF ILBM........................................ 1.1
		RAW............................................. 1.2
		RAW BLITT....................................... 1.3
		AUTO CHECK...................................... 1.4

	Save Formate............................................ 2

		RAW BLITT....................................... 2.1
		RAW............................................. 2.2
		SPRITE 4........................................ 2.3
		SPRITE 16....................................... 2.3
	*	SPRITE 16 AGA................................... 2.4
	*	SPRITE 32 AGA................................... 2.5
	*	SPRITE 64 AGA................................... 2.6
		IFF ILBM........................................ 2.7
		NONE............................................ 2.8

	Color Formate........................................... 3

		COPPER USE...................................... 3.1
		ASM SOURCE...................................... 3.2
		PURE DATA....................................... 3.3
		BEHIND PIC...................................... 3.4
		BEFORE PIC...................................... 3.5
		NONE............................................ 3.6

	Sprite Formate.......................................... 4

		ASM SOURCE...................................... 4.1
		DATA............................................ 4.2

	Add Word................................................ 4.5

------------
PREFERENCES:
------------

		Load Path....................................... 5
		Save Path....................................... 6
		Cmap Path....................................... 7
		Size Comment.................................... 8
		Save Mask....................................... 9
		File Suffix..................................... 10
	*	AGA Chip........................................ 11
	*	Sprite Colors................................... 11.5

--------------
ACTION BUTTONS:
--------------
		Save Pref...................................... 12
		View Pic....................................... 13
		Load Pic....................................... 14
		Save Pic....................................... 15


-----------------------------------------------------------------------------

-1-.Load Formate.

	This is the picture formates that the converter can read.
	You can select multiple files in the Filerequester.
	If you do so, all the files will be converted and saved without
	you pressed the "SAVE" gadget!! so make sure the setting are as you
	want them.


1.1	IFF ILBM.

	Reads the picture as a standard IFF file
	(you can also read the first picture in a anim file with this.)


1.2	RAW

	Reads a picture in ordinary raw (bitmap) formate.

	If the picture was saved with IFFTrasher and the "Size Comment"
	checkbox gadget was checked, then IFFTrasher will get the display
	sizes of the picture from the filecomment.
	If not, you will be asked for the sizes.

	If the cmap lies behind/before the rawdata you haft to set the
	"Color Formate" gadget on the right option!.
	If you don't have the cmap with the rawdata you must have loaded a
	picture with a cmap before this picture, if not it will be black!
	(I will do somthing about that later.)


1.3	RAW BLITT

	Reads a picture in raw blitt formate (InterLeaved).
	See Chapt 1.2 for more info.  (Above)


1.4	AUTO CHECK

	If this option is selected ifftrasher will try to recognise the
	picture formate with help of the file Suffix.
	IFF pictures is recognised by the ILBM header in the
	file.
        It checks for .RAW & .RAWB in the file name to recognise the
	raw formate, if you don't have a suffix you haft to use
	RAW or RAW BLITT as load formate.

----------------------------------------------------------------------------

-2-.Save Formate.

	The formate that the picture can be saved in is.

2.1	RAW BLITT

	Saves the picteure as raw blitt (InterLeaved).
	Ex.
	line1plane1,line1plane2
	line2plane1,line2plane2


2.2	RAW

	Saves the picture as ordinary raw, the bitplanes lies behind
	eachother
	Ex.
	line1plane1,line2plane1
	line1plane2,line2plane2


2.3	SPRITE 4

	Saves a 4 colors sprite, The picture must be 16 pixels wide and
	in 2 bitplanes.

	You select save method with the "Sprite Formate" gadget.
	AsmSource or Data.
	You can also set the "Color Formate" gadget on "COPPER USE",
	"PURE DATA" or "ASM SOURCE" to save the sprite colors.

	NOTE.
	If you saves a cmap, the color regs will start on $dff1a0 in the
	cmap file.


2.4	SPRITE 16

	Saves a 16 colors sprite (Attached), the picture must be 16 pixels
	wide and in 4 bitplanes.
	See Chapt 2.3 for more info (Above).


2.5	SPRITE 16 AGA

	** IN VERSION 1.00 **


2.6	SPRITE 32 AGA

	** IN VERSION 1.00 **


2.7	SPRITE 64 AGA

	** IN VERSION 1.00 **


2.8	IFF ILBM

	Saves the picture as a IFF file.
	(The picture data will not be compressed, Comes in a later version.)


	NOTE.
	If you have loaded a raw file and the cmap wasen't behind/before the
	raw data and you haven't loaded a picture with a cmap before this one
	you don't have any colors! (all colors will be set to zero).


2.9	NONE

	Dosen't saves the picture data.
	(Usefull if you only want to save the cmap)

----------------------------------------------------------------------------

-3-.Color Formate.

3.1	COPPER USE

	Saves the colors for copper use. (as ascii)
	The file will look like this.

	dc.w	$0180,$0rgb,$0182,$0rgb,$0184,$0rgb,$0186,$0rgb
	dc.w	$0188,$0rgb,$018a,$0rgb,$018c,$0rgb,$018e,$0rgb
	dc.w	....

	NOTE.
	If the picture data was saved as a sprite the color regs in the cmap
	file start on $01a0.


3.2	ASM SOURCE

	Saves the colors as assembler code without the color regs.
	Ex.
	dc.w	$0rgb,$0rgb,$0rgb,$0rgb
	dc.w	$0rgb,$0rgb,....


3.3	PURE DATA

	Saves the colors as a pure data file without the color regs.


3.4	BEHIND PIC

	Saves the colors behind the picture data.


3.5	BEFORE PIC

	Saves the colors before the picture data.


3.6	NONE

	Dosen't save any cmap at all 8-(.

-----------------------------------------------------------------------------

-4-.Sprite Formate.

4.1	ASM SOURCE

	Saves the sprite data as ascii, like this.

		    /--VSTART
		   / /--HSTART
		  / /   /-VSTOP
	dc.w	$0000,$0000	;control words.
	dc.w	$xxxx,$xxxx	;Sprite data.
	dc.w	$xxxx,$xxxx
	dc.w	$xxxx,$xxxx
	dc.w	$0000,$0000	;End Of Sprite


	And for the 16 colors sprite (Attached) it will look like this.

		    /--VSTART
		   / /--HSTART
		  / /   /-VSTOP
	dc.w	$0000,$0000	;control words1.
	dc.w	$xxxx,$xxxx	;Sprite data, bitplan 1 & 2, line 1
	dc.w	$xxxx,$xxxx
	dc.w	$xxxx,$xxxx
	dc.w	$0000,$0000	;End Of Sprite1
	dc.w	$0000,$0080	;control words2 + attached bit set
	dc.w	$xxxx,$xxxx	;Sprite data, bitplan 3 & 4
	dc.w	$xxxx,$xxxx
	dc.w	$xxxx,$xxxx
	dc.w	$0000,$0000	;End Of Sprite2

	The VSTART,HSTART,VSTOP must be set to the same values in both
	control words1 and control words2.


4.2	DATA

	Saves the sprite data as pure data (no ascii), but the formate will
	be the same as above.

-----------------------------------------------------------------------------
-4.5-.Add Word.

	Adds 16 pixels to the left or rigth of the picture.


	Note:
	Not executed if you save as IFF.
-----------------------------------------------------------------------------

-5-.Load Path.

	Default load pathern.
	Press the getfile gadget at the end of the stringgadget to select
	path or just type your path.

-----------------------------------------------------------------------------

-6-.Save Path.

	save Pathern. (must be something, no file requester will appere)
	Press the getfile gadget at the end of the stringgadget to select
	path or just type your path.

-----------------------------------------------------------------------------

-7-.Cmap Path.

	path for the cmap file.
	(must be something. No file requester will appere)
	Press the getfile gadget at the end of the stringgadget to select
	path or just type your path.

-----------------------------------------------------------------------------

-8-.Size Comment.

	If this checkbox is checked ifftrasher will when converting to
	raw/rawblitt write the picture size as a file comment to the
	converted file!.
	It looks like this. "Size WIDTHxHEIGTHxDEPTH", when you loads a file
	that have this comment ifftrasher will read it to get the information
	it needs to display the raw picture.


-----------------------------------------------------------------------------

-9-.Save Mask.

	If this is checked ifftrasher will
	Save a mask of the picture. If the picture is saved as raw the mask
	will be in 1 bitplane, but if the picture is saved as raw blitt then
	it will have the same depth and formate(raw blitt) as the picture.

-----------------------------------------------------------------------------

-10-.File Suffix.

	If this is checked ifftrasher will add the suffix to the converted
	file namne.

	ColorMap File = .CMAP
	Sprite   File = .SPRT
	Mask     File = .MASK
	Raw      File = .RAW
        RawBlitt File = .RAWB
	Iff ilbm File = .IFF

	NOTE.
	the suffix for cmap,mask and sprite files will always be added.

-----------------------------------------------------------------------------

-11-.AGA Chip.

	** WILL WORK IN VERSION 1.00 **


11.5	SPRITE COLORS

	When you save a sprite in AGA formate you can select witch
	palette you want to use for the sprite colors.
	** IN VERSION 1.00 **


-----------------------------------------------------------------------------

-12-.Save Pref.

	This button saves all the settings on the ifftrasher in a file
	called S:IFFTrasher.Pref, This file is then loaded on the startup
	of the ifftrasher.
	So you can have your own paths m.m.

-----------------------------------------------------------------------------

-13-.ViewPic.

	This one displays the picture.
	If the picture is bigger then the screen, you can scroll around by
	moving the mouse pointer to the edges.
	Pressing RMB will close the screen.

*NEW*
	When you presses LMB the cut funktion is activated, keep LMB down
	& move the mouse to change Brush size, relese LMB when done.
	Now you can move the market area around with your arrow keys
	& you can change the Brush size with 2,4,8,6 if you are't happy
	with the size/position.
	Press HELP and you kan see the Brush size in the toolwindow
!IMPORTANT!
	The Xsize you sees here (in the toolwindow) is the Brush size, the
	size typed in the MAIN WINDOW (Brush Xsize: xxx) is the
	REAL width that will be saved.
	As you probely now it must be even by 16, if you clip 12 pixels
	wide the other 4 pixels are cleared and the converter saves a
	16xYY brush.


-----------------------------------------------------------------------------

-14-.Load Pic.

	Guess what...., opens a filerequster & you kan select the
	file/files! to convert.
	Hold down shift and you kan select more than one file!.
	As soon you presss OK IFFTrasher starts to convert all the files.



-----------------------------------------------------------------------------

-15-.Save Pic.

	Saves the picture.

-----------------------------------------------------------------------------


			       THE  END
				  Of
			      A True Story

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-