The Daily Click ::. Forums ::. Klik Coding Help ::. How to Open mod (.xm file) with DMC2 ?
 

Post Reply  Post Oekaki 
 

Posted By Message

Chaoz (Tri-Life Gaming)



Registered
  29/07/2005
Points
  11

VIP MemberAttention GetterWii Owner
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 Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
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 Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
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

VIP MemberAttention GetterWii Owner
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

VIP MemberAttention GetterWii Owner
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 Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
2nd August, 2006 at 10:31:29 -

Yeah, I dunno why Andy said always :s

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14456

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
2nd August, 2006 at 11:08:56 -

not if you close the group afterwards.

alright, switch 'always' with 'once upon loop'

Image Edited by the Author.

 
.

The Chris Street

Administrator
Unspeakably Lazy Admin

Registered
  14/05/2002
Points
  50116

Game of the Week WinnerClickzine StaffAcoders MemberKlikCast StarVIP MemberPicture Me This Round 35 Winner!Second GOTW AwardYou've Been Circy'd!Picture Me This Round 38 Winner!GOTM December Third Place!!
I am an April FoolKliktober Special Award Tag
3rd August, 2006 at 08:17:42 -

Bah, ModFusion is better. Use that! (unless you're using TGF)

 
n/a
   

Post Reply



 



Advertisement

Worth A Click