Posted By 
		 
		
			 
			Message 
		 
  	 
	
	
		
  			Chaoz (Tri-Life Gaming)  
Registered    29/07/2005
Points    11
 
  		 
  		
  		
  		 
  			 1st August, 2006 at 16:38:44 - 
  		
			
		
  			 
  		 
  			
			
			
			 
			How do i open a mod file (ex: music.xm) using the DMC2 object? i tried stuff with $apppath + "music.xm" and $appdrive + $appdir + "music.xm" ,but i didn't work...please help me...
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
		
  			AndyUK  Mascot ManiacRegistered    01/08/2002
Points    14587
 
  		 
  		
  		
  		 
  			 1st August, 2006 at 19:38:42 -
  		
			
		
  			 
  		  
  			
				if your xm or mod file is in the same folder as your game then you need to.
 
 
Always - initialize bass
 
Always - openmodule ("music.mod")    < change mod for whatever
 
once upon loop - playmodule
 
mod stopped - play module
 
 
 
that should work.
 
 
if your mod is in a folder called folder change the second line to^ 
 
 
Always - openmodule ("folder/music.mod")
			
  	     
  			.
  		
  		 
  	 
  	
  	
  	
  	
		
  			Klikmaster  Master of all things KlikRegistered    08/07/2002
Points    2599
 
  		 
  		
  		
  		 
  			 1st August, 2006 at 19:54:01 -
  		
			
		
  			 
  		  
  			
				And I think you need something like
 
End of frame -> terminate bass
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
  	
  	
		
  			Evil-Ville  
Registered    20/12/2004
Points    283
  		 
  		
  		
  		 
  			 1st August, 2006 at 20:13:05 -
  		
			
		
  			 
  		  
  			
				You only need to terminate bass when the program ends.
			
  	     
  			yay
  		
  		 
  	 
  	
  	
  	
  	
		
  			Werbad  
Registered    18/09/2002
Points    235
  		 
  		
  		
  		 
  			 2nd August, 2006 at 09:22:28 -
  		
			
		
  			 
  		  
  			
				I agree with Phizzy, why Always? Isn't it enough to load the mod once?
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
  	
  	
		
  			Chaoz (Tri-Life Gaming)  
Registered    29/07/2005
Points    11
 
  		 
  		
  		
  		 
  			 2nd August, 2006 at 09:44:43 -
  		
			
		
  			 
  		  
  			
				Alright,thanks to you guys i've fixed it using:
 
> Start of level
 
- InitBASS()
 
 
>Timer = 00'-05
 
-Open module "music.xm looping=0"
 
 
>Timer = 00'-10
 
-Play module
 
 
> End of game
 
- TerminateBASS()
 
 
>DMC2:Mod Stopped
 
- Playmodule
 
 
works  fine now,just need to put looping on and stuff
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
  	
  	
		
  			Chaoz (Tri-Life Gaming)  
Registered    29/07/2005
Points    11
 
  		 
  		
  		
  		 
  			 2nd August, 2006 at 09:47:17 -
  		
			
		
  			 
  		  
  			
				lol,if you load using always,the game crashes,or runs slowly
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
  	
  	
		
  			Klikmaster  Master of all things KlikRegistered    08/07/2002
Points    2599
 
  		 
  		
  		
  		 
  			 2nd August, 2006 at 10:31:29 -
  		
			
		
  			 
  		  
  			
				Yeah, I dunno why Andy said always :s
			
  	     
  			n/a 
  		
  		 
  	 
  	
  	
  	
  	
		
  			AndyUK  Mascot ManiacRegistered    01/08/2002
Points    14587
 
  		 
  		
  		
  		 
  			 2nd August, 2006 at 11:08:56 -
  		
			
		
  			 
  		  
  			
				not if you close the group afterwards.
 
 
alright, switch 'always' with 'once upon loop'  Edited by the Author. 
			
  	     
  			.
  		
  		 
  	 
  	
  	
  	
  	
		
  			The   Chris StreetAdministrator  
Unspeakably Lazy AdminRegistered    14/05/2002
Points    51562
 
  		 
  		
  		
  		 
  			 3rd August, 2006 at 08:17:42 -
  		
			
		
  			 
  		  
  			
				Bah, ModFusion is better. Use that! (unless you're using TGF)
			
  	     
  			n/a