how to load alternate art for "SONIC GOT THROUGH" obj in s1

Discussion in 'Discussion and Q&A Archive' started by Dark Lips, Feb 4, 2010.

Thread Status:
Not open for further replies.
  1. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    I have been trying to understand how this works for the last two days and I think i must be missing something really small/simple - I have made my art, and included it and also added an entry on the pattern load cues for it but i dont know what to change in obj3A to make it use the alternate art.
     
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Well, what do you mean by seperating it? You mean different letter art for the text or different textes? If the second thing, my program should help you, as I have a generator for that text included.


    EDIT: Aaaand there it is, the first member with 1,000 posts. Awesome.
     
    Last edited by a moderator: Feb 4, 2010
  3. EMK-20218

    EMK-20218 The Fuss Maker Exiled

    Joined:
    Aug 8, 2008
    Messages:
    1,067
    Location:
    Jardim Capelinha, São Paulo
    No, Selbi... I think he wants to load another different titlecard graphics for the "Sonic Got Through" instead of just the text. You can get as example the Sonic 3, that loads in the end level card different graphic stuff than the main level titlecard
     
  4. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    yes eduardoknuckles thats exactly what i want to do... I have already made the art but I have no idea how to load it - as I say I have included the file and made an entry in the pattern load cues but I dont know where to go from there.
     
  5. Zero

    Zero Active Member Member

    Joined:
    Jan 26, 2009
    Messages:
    37
    What you could do is create a new PLC for the new title card art. Also it helps if you look for


    lea Nem_TitleCard


    or something like that under the Level: subroutines


    EDIT:


    replace LoadPLC2 with this:



    Code:
    LoadPLC2: 		
    
    		movem.l	a1-a2,-(sp)	
    
    chkp1:
    
    		cmpi.b  #$01, ($FFFFFFFE)
    
    		bne.s   chkp2
    
    		lea	(ArtLoadCues2).l,a1	
    
    		bra.s   ContLoadPLC2
    
    chkp2:
    
    								lea	 (ArtLoadCues).l,a1
    
    ContLoadPLC2:
    
    
    
    		add.w	d0,d0
    
    		move.w	(a1,d0.w),d0
    
    		lea	(a1,d0.w),a1
    
    		bsr.s	ClearPLC
    
    		lea	($FFFFF680).w,a2
    
    		move.w	(a1)+,d0
    
    		bmi.s	loc_15D8
    and find loc_37b6 and replace it with this:



    Code:
    loc_37B6:
    
    		bsr.w	ClearPLC
    
    		bsr.w	Pal_FadeFrom
    
    		tst.w	($FFFFFFF0).w
    
    		bmi	Level_ClrRam
    
    		move	#$2700,sr
    
    		move.l	#$70000002,($C00004).l
    
    chkply1:
    
    		cmpi.b	#$01, ($FFFFFFFE); is the multiple character flag set to $01 (Shadow)?
    
    		bne.s	NormalTitl&#59; if not, load Sonic's art
    
    		lea	(Nem_TitleCard2).l,a0; load Shadow's art
    
    		bra	Continue&#59; branch to rest of code 
    
    NormalTitl:
    
    		lea	(Nem_TitleCard).l,a0; load title card patterns
    
    Continue:
    
    		bsr.w	NemDec
    
    		move	#$2300,sr
    
    		moveq	#0,d0
    
    		move.b	($FFFFFE10).w,d0
    
    		lsl.w	#4,d0
    
    		lea	(MainLoadBlocks).l,a2
    
    		lea	(a2,d0.w),a2
    
    		moveq	#0,d0
    
    		move.b	(a2),d0
    
    		beq.s	loc_37FC
    
    		bsr.w	LoadPLC&#59; load level patterns

    and that should allow you to have a different set of titlecards. The Flag checks were from that multiple character guide (don't know who wrote it though...) so you might need to check that for safety measures.
     
    Last edited by a moderator: Feb 5, 2010
  6. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Wow thank you - that worked a treat... I wasnt far off, I was trying to add the new art to the original plc :s
     
    Last edited by a moderator: Feb 5, 2010
Thread Status:
Not open for further replies.