English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 04 February 2017, 14:39   #1
carrion
Registered User

carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 99
DecodeILBM working only from editor?

Hi Wile working on my project I stumble upon new problems
Question today is:

I have a simple program that IncBins a iff file then I use DecodeILBM and Decode Palette ( Actually I have two pic for dual playfield)
it works well from Editor on A1200 but when run from CLI It stops at DecodePalette (both A500 and A1200 - all) emulated on fs-uea
why?

[edit]
the same program but with images loaded from disk works well.

Last edited by carrion; 04 February 2017 at 14:59.
carrion is offline  
Old 04 February 2017, 20:28   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,929
Have you tried doing only the minimal program, i.e. just incbinning and decoding and nothing else?
idrougge is offline  
Old 05 February 2017, 09:48   #3
carrion
Registered User

carrion's Avatar
 
Join Date: Dec 2016
Location: Warsaw area
Posts: 99
yes. the program is very basic. decode the iff file and show it. but again it works from editor.
I think I have some suspicions that DecodePalette may have some bug. Iexported the iff file (8colors) from Grafx2 - the one that causes problems. The result in A500 is a Software Failure requester when it gets to DecodePalette command (debuged with nprint).
But I tried other image exported from PPaint and it worked (???). so grafx2 probably messes something up with iff format

but still why it works from Ted is a mystery for me.

Last edited by carrion; 05 February 2017 at 10:00.
carrion is offline  
Old 05 February 2017, 13:45   #4
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,929
Post the source.
idrougge is offline  
Old 01 December 2019, 06:08   #5
earok
Registered User

 
Join Date: Dec 2013
Location: Auckland
Posts: 2,228
Confirmed that I've had the same issue with DecodePalette, the issue appears to be CPU related (eg, it works just fine when emulating 68020 upwards, but crashes on 68000). I have no idea if it's for these specific IFF's, or if it's a general issue.

I assume this has something to do with the 68000's ability to only read words that are word aligned. I'll do a bit more experimenting and report back.

Edit 1: ILBMPalette from RIPACKLIB seems to work, except it doesn't appear to be able to handle cycling/animated palettes

Edit 2: Given that the memory footprints of palettes are fairly minimal, my recommendation would be to use alternatives to DecodePalette (such as, storing the palette colors in the code, or using a custom palette format and loading/saving to that)

Last edited by earok; 01 December 2019 at 07:47.
earok is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
External Disk Drive working and not working fc.studio support.Hardware 12 10 August 2009 03:04
Cygnus Editor Djay request.Apps 22 29 July 2006 14:15
The settlers Editor Johnyt request.Apps 4 10 February 2005 16:20
tracker editor Djay Amiga scene 3 25 December 2001 02:29

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.07975 seconds with 15 queries