09 August 2014, 12:15 | #1 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Blitz Basic 2 and Protracker mods
I've been tearing my hair out all day trying to get the most basic code working. In Blitz Basic (AmiBlitz more precisely) I am trying to load a mod, play it and once a user presses a key, load a new mod and play that.
Using the standard tracker code: Code:
StopModule LoadModule 0, x$ + ".mod" PlayModule 0 I tried CIA Tracker Lib (both the one on Aminet and the one xbones one that comes with AmiBlitz) and got the same results. The code: Code:
StopTracker FreeTrackerModule 0 If (LoadTrackerModule (0, x$ + ".mod") = True) retval = StartTracker (0) End If Anyone experienced this and have a workaround? |
10 August 2014, 12:58 | #2 |
Registered User
Join Date: Oct 2011
Location: UK
Age: 47
Posts: 304
|
I couldn't reproduce your problem with the CIA tracker library, although I've run into my own problems before.
I'm using Blitz2 and not Amiblitz, so there could be some skittishness between the versions. Even so it seems very odd that such a commonplace command set is failing like this. But to check: Do you have any other libraries installed that could be causing a conflict? DEFLIBMAN and BlitzLibMan can help (I actually need both to reconstruct deflibs to something that will work). Obvious - but are you getting low on RAM? Otherwise putting the question to Amiforce.de might help. The following didn't work for me (corrupted mods), but may be worth a try. Both examples load the module in binary, the first via INCBIN and the second by loading into a bank and decoding from there. We really need a lib for PHX's new protracker player. Eventually I gave up on protracker and started using Leffmann's excellent Omed player. Code:
DecodeModule 0,?modtest Modtest: INCBIN “path$,module” ;at the end of your code success=BLoad(“path$,module”,0) DecodeModule 0,Start(0) |
10 August 2014, 15:11 | #3 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
You solved it in one. AmiBlitz was the culprit. Once I switched to regular Blitz Basic 2, everything worked as it should.
Thanks for the tip, leathered! |
13 September 2018, 22:55 | #4 |
Registered User
Join Date: Sep 2018
Location: Chesterfield
Posts: 44
|
Does CIA tracker library work on KS 1.3 ?
Last edited by bjadams; 16 September 2018 at 19:39. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blitz basic 2 Help | Havie | Coders. Blitz Basic | 30 | 08 September 2013 09:15 |
blitz basic | petza | request.Apps | 11 | 08 April 2007 01:49 |
Blitz Basic 2 anyone? | jobro | request.Apps | 12 | 28 November 2005 18:15 |
Free Blitz Basic! | Amigaboy | Amiga scene | 0 | 13 November 2001 18:36 |
Blitz Basic 2 | LaundroMat | Retrogaming General Discussion | 5 | 24 July 2001 08:10 |
|
|