!!!HELP on Speed Shoes Music!!!

Discussion in 'Discussion and Q&A Archive' started by c1owd, Dec 22, 2008.

Thread Status:
Not open for further replies.
  1. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    I need help getting music to play when you get the speed shoes........well i mean i did get it playing but now it won't stop playing even when the speed shoes run out!!! please help me!!! here my code:



    Code:
    Obj2E_ChkShoes:
    
    		cmpi.b	#3,d0		; does monitor contain speed shoes?
    
    		bne.s	Obj2E_ChkShield
    
    		move.b	#1,($FFFFFE2E).w ; speed up the	BG music
    
    		move.w	#$4B0,($FFFFD034).w ; time limit for the power-up
    
    		move.w	#$C00,($FFFFF760).w ; change Sonic's top speed
    		move.w	#$18,($FFFFF762).w
    		move.w	#$80,($FFFFF764).w
                    move.w	#$F5,d0
    		jmp	(PlaySound_Special).l ;	play sound

    thank you!!!!
     
    Last edited by a moderator: Dec 22, 2008
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    The problem is: You start the music, but you don't stop it! The section to stop the music is:



    Code:
    Obj01_ChkShoes:
    
    		tst.b	($FFFFFE2E).w&#59; does Sonic have speed	shoes?
    
    		beq.s	Obj01_ExitChk&#59; if not, branch
    
    		tst.w	$34(a0)	&#59; check	time remaining
    
    		beq.s	Obj01_ExitChk
    
    		subq.w	#1,$34(a0)&#59; subtract 1 from time
    
    		bne.s	Obj01_ExitChk
    
    		move.w	#$600,($FFFFF760).w&#59; restore Sonic's speed
    
    		move.w	#$C,($FFFFF762).w&#59; restore Sonic's acceleration
    
    		move.w	#$80,($FFFFF764).w&#59; restore Sonic's deceleration
    
    		move.b	#0,($FFFFFE2E).w&#59; cancel speed	shoes
    
    	->	move.w	#$E3,d0
    
    	->	jmp	(PlaySound).l&#59; run music at normal speed
    But I don't know, how to use it! If you always play GHZ, then simply change the E3 to 81, but I guess, this is a bad idea!
     
  3. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    it dosen't want to build.......
     
  4. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Open your "build.bat" with an editor (like notepad) and put "pause" (without the ") at the end of the file, to see your problem!


    Edit: Then post the problem or fix by yourself!
     
    Last edited by a moderator: Dec 22, 2008
  5. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    okay...........and now what? :p
     
  6. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Write down the Error and click on "Add Reply"! :p
     
  7. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    [​IMG]


    heres a pic.........
     
    Last edited by a moderator: Dec 22, 2008
  8. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Uhhh.... you know, you have to edit this line:



    Code:
    		move.w	#$E3,d0
    So, if you want to play the LZ music after that, just replace E3 with 82

    Code:
    		move.w	#$82,d0
    . I don't know what's the problem!
     
  9. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    still errors.......
     
  10. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Wait, there is "Label 'Obj01_ChkShoes' multiply defined"! You've copyied this routine and pasted it somewere (<- correct english?). Press F3 and search for the second routine! Delete it and the errors should be gone! (MAKE BACKUPS!)
     
  11. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    nope still errors......deleted the other Obj01_ChkShoes:
     
  12. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Ok, a last try: Upload your sonic1.asm and give me the link! I will fix it by myself!
     
  13. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    ill give you my back up asm with no changes.........i send it to you through a personal message..........
     
  14. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada
    Here's what I did for mine, but since you're working with sonic 1 you may want to make some adjustments.


    First off, restore your original speed shoes code.


    Replace 'Speed Up Music' to Playmusic the song you're wanting to play. Now look in the actual speed shoes routine and look for the part that tells the game that the speed shoes have worn out, and it should have a 'slow music down' or something similar. Change that to Current_Act_Zone (or whatever sonic 1 uses)
     
  15. c1owd

    c1owd Previously 'CarrascoZX0' Member

    Joined:
    Dec 13, 2008
    Messages:
    364
    hmmmmm........i'll try it and thanks!!! if you got a code tell me please.......
     
Thread Status:
Not open for further replies.