Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Brick Nash on May 26, 2016, 01:51:36 PM

Title: Load Iff screen "can't fit picture in current screen"
Post by: Brick Nash on May 26, 2016, 01:51:36 PM
Hi folks, well here's my first question.

I've been working through the Game Maker's manual and it's great but I came to the section on screens and loading iff screens which I assume means a pre made background in a paint program.

I made an .iff file from a random sprite sheet (just to see what something looks like on the screen) in paint shop pro and put it in my DH1: virtual hard drive but I can't seem to load it.

I made a screen and then used the command- Load iff "DH1:cody.iff" but it just keeps saying "can't fit picture into current screen" and the section on loading iff's in the Game Makers's manual is only a short paragraph which doesn't go into any detail about this or any other error.

I tried cutting the image down to the screen size but now it says I/O error and I'm stumped at what to do now.

Thanks!

Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: bruceuncle on May 27, 2016, 12:56:39 AM
I also use Paint Shop Pro in Windows.  Unfortunately, whilst it will quite happily read files produced on an Amiga, its own IFF format is incompatible.  So files saved on the PC side won't load on the Amiga emulation side.  The IFF format underwent lots of changes and isn't always compatible across platforms.
Deluxe Paint is probably the easiest to use for creating compatible graphics.
When you load IFF piccies into AMOS, the file format must exactly match the screen you're loading to - width, height and colour depth.  When you've got it to load successfully, save the screen in AMOS's own pac pic format and any hassles disappear.
Good luck.  It's been a while since I used IFF loads so I'll have a play with it in case there's any gotchas I can't remember.
Sent from my Lumia 640 using Tapatalk
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Brick Nash on May 27, 2016, 06:55:30 AM
Thanks for the reply, I'll make a note of matching the screen size from now on.

As for compatibility I managed to get one image saved in Paint Shop Pro loaded into DPaintIV in WInUAE ok but the rest don't seem to be compatible. I've got a bunch of sprite sheets and backgrounds that I got from the internet so how would I go about converting them to be used on Amiga? If there another program that can be used to convert?

In fact can deluxe paint read things like bitmap graphics? Or is there maybe a windows version of Dpaint that can save in a compatible format?

Thanks!
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: SamuraiCrow on May 27, 2016, 08:22:57 AM
If you use AmigaOS 3, you can use datatypes to load picture files and save them in IFF ILBM format.  Also, Personal Paint supports loading PNG and GIF image files.  When you import images, be careful about palette remapping if you plan on using palette cycling.
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Brick Nash on May 29, 2016, 10:27:03 AM
Also, Personal Paint supports loading PNG and GIF image files.  When you import images, be careful about palette remapping if you plan on using palette cycling.

I'm having a look at Personal Paint right now. Seems great, I loaded up a PNG right from windows and saved as an ILBM IFF file with no hassle. (I assume this file type is Amos compatible!)

It even has an animation studio which I'm overjoyed about as it'll be great for checking sprite and bob animations.

Thanks once again! :)
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: LuisCoCo on June 02, 2016, 05:18:06 PM

I suggest using Pain pro shop and then Dpain before using AMOS Load IFF
, The Dpaint fixes some excess paint shop pro information
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Xertese on June 04, 2016, 10:11:13 AM
ACDSee is a PC image editor and allows you to manipulate and save files as iff which are compatible with DPaint IV and 3 if resized properly
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Amiten on July 01, 2016, 02:09:01 PM
Load iff "image.iff",0 will open the correct screen format if are Ocs/ecs compatible in screen 0

Enviado desde mi SM-N9005 mediante Tapatalk

Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Kaligon75 on September 12, 2016, 04:46:14 PM
Hi... another issue to load Iff picture is for images more large than 960 pixel. In my case I need to load a 1280x200 pixel large  Iff image as background for my game project but Amos returns me an error. Is it possible to load it in any way ?
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: SamuraiCrow on September 12, 2016, 05:31:23 PM
The Amiga OCS machine has a maximum width of 1024 pixels per screen.  Going bigger would require ECS or AGA support.
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Amiten on September 12, 2016, 10:44:09 PM
Hello what is the max width in ECS?? And in AGA? Amos limit from I know is 1024 Width any one here know some way to break this limit? Regards

Enviado desde mi LG-E460 mediante Tapatalk

Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: SamuraiCrow on September 13, 2016, 07:44:36 AM
The limit of ECS and AGA is 32768.
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Kaligon75 on September 13, 2016, 03:22:09 PM
Ok, so I think the limit is attributable to AmosPro because I work on Amiga 1200 with 9 megs of fast ram. Is there an extension that break down this limit ?
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Amiten on September 13, 2016, 07:57:37 PM
32768!!! Woaaauuu Only now need to know how to break or a extension to let Amos use almost ECS limit... regards

Enviado desde mi LG-E460 mediante Tapatalk

Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: SamuraiCrow on September 13, 2016, 08:00:39 PM
You would have to use the OS functions more directly with an OS devkit or Intuition extension and use a different graphic loader also.  You won't be able to use the Amos graphics commands either.
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: Amiten on September 14, 2016, 07:39:59 AM
What about to add ASM routines in amos For these task?? May work?

Enviado desde mi LG-E460 mediante Tapatalk
Title: Re: Load Iff screen "can't fit picture in current screen"
Post by: SamuraiCrow on September 14, 2016, 01:32:26 PM
@Amiten

Yes, that would work.  Or better still, just use Kickstart 2 library functions with Gfx Call or Intui Call.  Unfortunately, Amos only supports version 1.3 function calls by default.

Kickstart 2/ECS and Kickstart 3/AGA support is supposed to be added in AmosPro 3.0 if we could just get the bugfix relelase 2.1 out the door.