Posted: 30th Jun 2003 21:25
Way, way back in the past (whilst I was waiting for Patch 3 - sorry, Update 3), I devised a loading system (ie can load graphics, music etc) in one function call.
Its been used by a few people (hello Puffster), so I thought I would update it so that any valid type of file can be loaded in one go. In addition, it displays a little progress bar along the bottom of the screen.
Note : Whilst the program runs fine, I haven't actually used it to load anything yet.

Test Program:
+ Code Snippet
a$="F.X,1"
for x=1 to 656
   a$=a$+"-F.X,1"
   cls 0
   text 0,0,str$(x)
   sync
next x
x=loadData(a$,1)
wait key
end


Note 2 : You will need a lot of my plug-ins to run it.
Posted: 30th Jun 2003 23:17
which plug-ins???
Posted: 1st Jul 2003 1:15
String and Memory should be the only ones needed.
Posted: 1st Jul 2003 12:13
Now I've got some spare time (I'm at work), I can now describe how to use the routine :

You need to create a list of filenames and the bank/object/music number that file will be going into. Each one of these is seperated by a -. The filename and object/bank number is seperated by a comma, like so :

C:\TEST.X,1 - This would load an X object into object number 1 (if its free and the file can be found).
C:\TEST.X,1-C:\MUSIC.WAV,1 - This would load an X object into object number 1 and a WAV file into sound 1.