English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 22 January 2018, 22:12   #1
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 323
2 Icon/object banks?

I appreciate that you can only have one object/icon bank at a given time, but does anyone know of a fast work-around to the problem as loading times are critical?

I thought about pre loading them to ramdisk and loading them from there but it's rather fiddly and not ideal for low memory systems.

I *could* have all the items in one large icon/object bank, but I do some grabbing during my program, which make the manipulation awkward again.

Any ideas gladly recieved

TIA
V1
volvo_0ne is offline  
Old 23 January 2018, 09:50   #2
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 44
Posts: 1,117
Send a message via Yahoo to Samurai_Crow
Bank Swap is useful....
Samurai_Crow is online now  
Old 23 January 2018, 10:40   #3
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,665
Yes, Bank Swap.
idrougge is offline  
Old 23 January 2018, 20:55   #4
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 323
Thanks guys, for some reason I didn't think that would work, but it works perfectly.

Much appreciated

V1
volvo_0ne is offline  
Old 29 January 2018, 00:33   #5
volvo_0ne
Registered User

 
Join Date: Mar 2015
Location: Sheffield UK
Posts: 323
I Knew there was a reason...

If you try to load an object/Icon bank from disk to anywhere other than the same kind, it will not work so you need to load then swap then load again which works a treat.

Thanks guys
volvo_0ne is offline  
Old 29 January 2018, 01:42   #6
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 3,665
You can load one bank as sprites/bobs and one as icons and swap between them — at least basically. There may be some snags when AMOS treats your sprites as icons or vice versa.
idrougge is offline  
Old 24 April 2018, 11:06   #7
Brick Nash
Registered User

Brick Nash's Avatar
 
Join Date: Mar 2015
Location: Glasgow, Scotland
Posts: 207
I always felt that the singular image bank was one of Amos' weak points. Some sort of structured and order-movable folder type system for the images instead of just one huge container for absolutely everything would be a bit easier to keep track of. I realise that's just how things were back in the day, but maybe something for a future update?

In fact, I'm wondering just how hard it would be to write an extension that does this which is built on top of the existing image bank number system as a foundation? The theory would be pretty straightforward - make nameable containers with slots allocated to numbers in the image bank. If Folder 1 is images 0-9 and Folder 2 is images 10-20, then if Folder 2 was moved to Folder 1's position then the image numbers would be swapped (if that's even possible....I think it might be).

Adding an image slot into a Folder (Making say Folder 2 images 10-21) would activate some sort of nudge system where everything after in all folders would be shifted up an image number. This would probably render the image bank's numbers largely invisible unless specifically called on.

Some sort of GUI using Icons could maybe represent it on screen and some custom functions and instruction for animation to make use of the system.

I'm probably talking bullshit, but it's just an idea.
Brick Nash is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Structure of CopList object? earok Coders. Blitz Basic 9 29 August 2018 23:19
Object not found Brick Nash support.WinUAE 5 22 March 2015 18:13
...file is not an object module Vaninna support.Apps 8 11 March 2015 12:53
Object width mritter0 Coders. C/C++ 2 20 September 2014 00:06
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 05:39

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 16:56.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06599 seconds with 13 queries