PCM's for a possible future Super Star Wars patch

Go down

PCM's for a possible future Super Star Wars patch Empty PCM's for a possible future Super Star Wars patch

Post by Relikk Sat 7 Apr 2018 - 11:33

In case anyone is interested in doing a patch for the Super Star Wars games in the future, here are some PCM's for the first game in the series to test with. I can provide ESB and RotJ versions should they be necessary.

https://1drv.ms/u/s!Ahue7izQZmouiwGw_tRvoCVhZExS

The LucasArts intro is missing for obvious reasons, but it's possible to create something Star Wars-esque to replace it. There is also no death PCM. Everything else is present.
Relikk
Relikk

PCM's for a possible future Super Star Wars patch Image211

Since : 2017-02-17

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Sun 8 Apr 2018 - 8:33

That's definitely one of the needed titles. I remember I stole... errr... ported the intro mode7 code for Conker Highrule Tail.
However, I'm rather burnout at the moment after helping K on the 7 games he recently requested and SB... and it is a Trilogy (3 games) - ok, shouldn't differ much, as soon you cracked one. I hope Pev (he seems to just finish Valkyrie), K, or DS will take on this Wink
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Mon 9 Apr 2018 - 9:10

Ok, couldn't resist and sent you a patch for SSW1 per mail Wink
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by kurrono Tue 10 Apr 2018 - 2:00

Conn im doing indiana jones trilogy.. but it has a lot shared ..tracks. plus repeating music from all,movies in almost all stages is dope.. i rather hack it on Ram same way,u did with pitfall and knock it out with different themes on,all,stages.. i wait to,weeks for this.. im gaving up the mask,anyways.. maybe u,can help soon.. thanks Conn
kurrono
kurrono

PCM's for a possible future Super Star Wars patch Image111

Since : 2015-03-22

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Tue 10 Apr 2018 - 8:17

Conn im doing indiana jones trilogy.. but it has a lot shared ..tracks. plus repeating music from all,movies in almost all stages is dope.. i rather hack it on Ram same way,u did with pitfall and knock it out with different themes on,all,stages.. i wait to,weeks for this.. im gaving up the mask,anyways.. maybe u,can help soon.. thanks Conn
Maybe in a possible future. I felt owing Relikk a favour for making all the MK themes.
I'll look if I can find a ram address for Indiana Jones, but you are skilled enough doing the rest on your own Wink

Edit: difficult...
the stages are easy, it 7e003f. But this value doesn't change with the map and cutscreens. So here you must find something else to differl.
Then you need to check whether you are in a cutscreen or a level, this can happen with 7e0006 (01 in level / 00 in cutscreen).
But now you still need to check whether in a cutscreen or on map.


Last edited by Conn on Tue 10 Apr 2018 - 9:58; edited 1 time in total
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by pev Tue 10 Apr 2018 - 9:48

@Conn, Kurrono Can we use a NMI and set a flag to keep track on how many times a track is played and use that to help play an alternate track for IJGW? For example, if stage 1 and 3 share the same track, when stage 1 plays (set a flag that stage 1 played already), then when stage 3 comes along (check if stage 1 played, if so, play alternate track). Something, like that.

I encountered something similar in Mickey Mania (wanted to implement the missing audio not found in the SNES version). My problem is finding the write place to hook from for a NMI.

pev

PCM's for a possible future Super Star Wars patch Image211

Since : 2017-10-16

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Tue 10 Apr 2018 - 10:27

The stages can easily be differed by 7e003f - this goes rather linear (00-start, 01-boulder following you, 02- icy, 03-burning house, etc).
The problem is the cutscreens: these can be differed from a level with 7e0006: 01-level, 00-not level.
So far so good, you can play all different themes checking these values.
But: the map has again a different theme than the cutscreen, so I'd not know yet how to differ here.

I'd not implement a nmi hook this doesn't seem necessary. But your idea tracking the theme played it rather good: What you could do is implementing a free ram (e.g., $7EFFF0) and save a flag here to signal you already heard the cutscreen music.

Like you finished boulder level (theme 01), then you play the track 11 (clc - adc #$0A to the value at $3f if $06 is 00). Then when the next track change occurs (you are on the world map, check if your free ram is $01 (so you are hearing the cutscreen music), and if yes, add further $14 so it plays track 21 at the world map. It's confusing and difficult but for now I can't come up with a better solution for now Sad

So, a pseudocode at music change

LDA $7e0006; check if not on map
CMP #$01
BEQ playLevel
; here we go if 7e0006 is 00 (cutscreen or map
LDA $7EFFF0
CMP #$01 ; did we already see a cutscreen
BEQ playMap
; here we go if we are in the first music change after a level, like cutscreen
LDA $7e003f ; load level
CLC
ADC #$0a    ; add value 10
STA $2004  ; play theme for cutscreen
LDA #$01
STA $7efff0 ; set flag to mark we already saw a cutscreen and now viewing the map
RTL

playLevel:
LDA $7e003f
STA $2004
LDA #$00
STA $7EFFF0 ; erase free ram flag
RTL

playMap:
LDA $7e003f
CLC
ADC #$14; (add value 20)
STA $2004
LDA #$00
STA $7EFFF0 ; erase free ram flag
RTL
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by kurrono Tue 10 Apr 2018 - 12:52

Awesome guys. I love u for this im,buying my new sd2snes on thursday just got. Chhange the check..and ..put it on that momentum card and buy,it at krikkz.com revision H
kurrono
kurrono

PCM's for a possible future Super Star Wars patch Image111

Since : 2015-03-22

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by kurrono Tue 10 Apr 2018 - 13:38

In the map i,will keep it with one song for all of them..
The stages.. and cutscnes with different themes
kurrono
kurrono

PCM's for a possible future Super Star Wars patch Image111

Since : 2015-03-22

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Tue 10 Apr 2018 - 15:51

This is in any case adiceable...

simply check for
7e0006 first, if 00 play cutscreen theme (you could also play different cutscreen music in dependence of the level (7e003f)

7e0006, if 01 simply store the value at 7e003f to 2004

LDA $7e0006
cmp $00
BEQ cutscreen
LDA $7e003f  ; load stage
STA $2004
(don't forget the rest, 2007, 2005 bit 2000 bvs loop)
RTL

cutscreen:
LDA $7e003f ; load level to play different cutscreens
CLC ; clear carry
ADC #$14  ; add value 20 to the stage index
STA $2004
(don't forget the rest, 2007, 2005 bit 2000 bvs loop)
RTL

With this technique, themes 00-19 are stage themes, 20-xx are cutscreen themes, unique to ech level.

BTW: You may encounter a problem which is none, Title screen music and Level 1 music can't be differ this way (7e003f is 00 in both cases), but you are lucky, both have 7e0006-01 when introduced... AND: both L1 music and title screen music is the same Very Happy - no conflicts here!
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by kurrono Tue 10 Apr 2018 - 16:08

Thanks ,conn ..tonight i will work on that in full.. Very Happy
kurrono
kurrono

PCM's for a possible future Super Star Wars patch Image111

Since : 2015-03-22

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by kurrono Tue 10 Apr 2018 - 16:32

But Conn the .. A6A4A6.. should. Keep that hookup like i did on pitfall?
kurrono
kurrono

PCM's for a possible future Super Star Wars patch Image111

Since : 2015-03-22

Back to top Go down

PCM's for a possible future Super Star Wars patch Empty Re: PCM's for a possible future Super Star Wars patch

Post by Conn Tue 10 Apr 2018 - 16:41

No idea where you hooked or what you're brewing together. That is just how I'd code it, a concept... I'm also out now and can't check anything.
Conn
Conn

PCM's for a possible future Super Star Wars patch Image212

Since : 2013-06-30

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum