Top Gear the 1st game

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Top Gear the 1st game

Post by kurrono on Wed 16 Sep 2015 - 3:45

Here is the link of the video of topgear 1st nobody has upload a video having the motor sounds and remix music on it..well i did thanks to 008196.. im still looking for title screen i found 00ebe4..but that removes even all spc sounds..so not good..still researching with the debugger. here the link of the vid:

https://www.youtube.com/watch?v=4ykd40GxBu8
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Wed 16 Sep 2015 - 13:41

Awesome, that's great to see you try to learn ASM yourself. Usually, there are 3 sound channels involved, $2140-$2142. One of these is for music, the others for sfx. MSU only features one channel and we substitute that one for music. If you disable the sound channel for sfx you surely get the reported problems. Maybe you should post your asm to DS, I don't assume the code for TG2 differs much from that required for TG1.
Or post your asm and I'll take a look at it.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Wed 16 Sep 2015 - 22:05

well what i really did was only removing the audio.. with seek ($008196) rts
u usually instead of rts u use jml or jsr..

but im still looking for the title screen is gotta be other opcode i found 00ebe4 ==> 002140..but it removes music and the sfx..so i cant use that one.. other how i added the music to the game thats the little secret. .wasnt thru msu1...but im trying to learn it wil take years.. it not easy at it seems.. i dont mind.. still want to learn..
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Thu 17 Sep 2015 - 1:05

ah no, you can't use 00ebe4, this is for spc initialization. Use

$00/8077 8D 40 21 instead
(pc: 00/0077)

You can e.g open the rom with an hex editor and set
pc 00/0076: 01 -> 03 and you'll hear a different track on the title screen, so this is the address you want to work with
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Thu 17 Sep 2015 - 2:21

Well 000076 is the one that removed title screen audio without messing the game sfx.thank you Conn..ur the best..how u found all those code so fast...ur 14 yrs of experience..well next step work with msu..now im watching DS 2nd video so i get an idea how to sort it out..itwill take lil time ..wish me luck
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Thu 17 Sep 2015 - 4:02

Wasn't very difficult. Usually 2140 is for music (while 2141 and further are for sfx). The thing I did was a trace log until the title screen music was played with geiger ("CPU" and "Trace Once" hooks on). Then I searched for STA $2140 in the log and tested the very last STA $2140 in the log that was written to.

Much luck Wink
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by DarkShock on Fri 18 Sep 2015 - 10:09

$2140-$2143 are not sound channels, they are communication ports. $2140 is usually used to tell which command to process and $2141-$2143 are arguments to that command.
avatar
DarkShock



Since : 2014-12-29

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Fri 18 Sep 2015 - 12:44

Hey DS u saw my video of chrno trigger with ur msu1 patch i added the fmv on it..as chrono_msu1-0.pcm for the audio and the video as chrono_msu1.msu...
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Tue 20 Oct 2015 - 15:46

Here A 2nd video..any will believe i hacked the game but not yet i need to know some ldeas and some more address to do the jsr so it plays the pcms..im trying to do..but. It breaks the game
.ijust need a lil guidance on msu1 maybe i gwt the reat to. Work it out..somebody is asking for the hack on youtube already Sad..here the video:
https://youtu.be/WqTH2rntKOg
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Mon 16 Nov 2015 - 1:23

long time Conn.. i know ur around.. i supposed to ask u bout this.. and i know ur busy with other things..i found out on sd2snes 008196 the one removes the music from stages doesnt work.. if remains on a black screen.. so the address gotta be closer to the one u gave me 000076 the one for title screen.. that one works on sd2snes.. i found 000076 is aN EOR and 008196 is SBC...im trying to find smthing close like 00ec96 or 000196 still dont work on sd2snes or higan.
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Mon 16 Nov 2015 - 17:42

I take a break. I hacked today 4 hours SMB USA and BS F.zero sram. So now it's all fixed and project closed:

http://bszelda.zeldalegends.net/stuff/Con/bs_smc.zip
Now you can start in week2 and button press at the start. Music is not part of the rom, as well as w2 bowser. I hacked w3 bowser at the end of week2

http://bszelda.zeldalegends.net/stuff/Con/BS_F-Zero_GP1.zip
sram now works. It WAS elaborate. 4 hours. I am tired.

http://bszelda.zeldalegends.net/stuff/Con/BS_smb_USA.zip
fixed the sram issue

Maybe I get time tomorrow to look into your issue. But I have no idea what you are speaking about. Doesn't your code work? In this case I need it. Pm or mail it to me: con.s@gmx.de
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Mon 16 Nov 2015 - 22:14

I understand it tired I saw it release on romhacking.net no kidding...I know ur work hard on ur closings ..asm hacking etc... I just wanted why in Top gear ..The address 008196 don't work on higan or sd2Snes it..work fine on Barnes..it removes the music from the game..but is ok take ur time Conn.I'm not in a hurry I can't wait patiently till u have time...
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Tue 17 Nov 2015 - 3:49

What was your change at  008196? I think here you want to make your hook for msu.
I really cannot help without knowing what you've done. If you're only saying black screen it's no useful information.

Edit: I think I now get what you mean. You want to replace the other themes.
Best is you start the game in zsnes and switch 002140-xx as cheat codes (however, title screen 05 is different as in-game 05).

Anyways. Trace and look where the theme number gets written to 2140; this is for the first track here:
Code:

$07/813A A9 05      LDA #$05                A:8DF0 X
$07/813C 8D 40 21    STA $2140  [$07:2140]  A:8D05

Means hook here, make your msu substitute. I think all other tracks use their own hook as well
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Sun 29 Nov 2015 - 21:10

Ok I've been doing little research on 008196 is not good for the hacking i found other better address 0081a2.. that 1st player has engine motor sound working when u press gas pedal.. with 008196 dont work only the 2nd player...now is time to hack or edit the game can u give a little exanple how to jump a subroutine with the 1st track so i can get the rest is time for me to learn..i just need a little hint jsr or jsl or jmp to that address like 0081a2 or 000076 that is the title screen?.. ived been reading ur asms and dark shock but his are harder than urs ,..he uses nmi routine..other thing sd2snes is worth it for the 200 is awesome..i bought it too
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Mon 30 Nov 2015 - 1:57

Hey that BS Zelda rules..Awesome job..Conn...im impressed with the game.. guidance ..even a full power sword with laser beams with lower hearts..i like it...
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Mon 30 Nov 2015 - 3:24

hm, you need to specify on what exactly you need help. if you remain in the same bank you need a jsr. If your additional code is in another bank you need to hook with a jsl.
Here you must repeat the code that was overwritten by the jsl/jsr and when you are done you need to return with a rts or rtl.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Thu 17 Dec 2015 - 1:51

I need to find the msustoresong..like in top gear 2 hacked from darkshock in order to make msu1 or the spc fall back work..no progress im kinda stuck i want this game working with msu1..maybe is different from topgear2.. i got to find other method.. i already used free space for msu..but still nothing...in tg2 the msustoresong is 9f8136.. in this one no idea..ive been looking a lot of pc adresses..from 0080.. 00081..,00ec.., 0f80.. ,07.... there even the ram adresses 7e.....but nothing..im goin nuts hehe
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Sat 19 Dec 2015 - 3:33

Coon..Dark Shock thank you for ur lil teachings.. i managed to hack top gear 1st is working hahahah.. i almost cried.. i feel so happy now Wink.. i release patch soon Wink...
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Sat 19 Dec 2015 - 4:57

one more thing i need to learn.. how can i add an opcode when u beat the 1st track it can switch to the next track is it a BNE smthing?
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Sat 19 Dec 2015 - 15:28

No, you need to trace when the next track gets stored to $2140 and hook there




I think I now get what you mean. You want to replace the other themes.
Best is you start the game in zsnes and switch 002140-xx as cheat codes (however, title screen 05 is different as in-game 05).

Anyways. Trace and look where the theme number gets written to 2140; this is for the first track here:

Code:
Code:

$07/813A A9 05       LDA #$05                A:8DF0 X
$07/813C 8D 40 21    STA $2140  [$07:2140]   A:8D05


Means hook here, make your msu substitute. I think all other tracks use their own hook as well
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Sat 19 Dec 2015 - 23:31

Yea i did it..but the hook plays the same 1st track ..and i already got title screen with its own music..and the 1st track is working on 1st stage..now on the 2nd stage it plays the same 1st track..i want to play the 2nd track...not the 1st one..what i need to do so it changes... ? like this.. an example:

lorom

org $008077
JSL $009c60 ; hook to msu1
NOP

org $0081a0
JSL $009d50 ; hook to msu1
NOP
NOP
NOP
NOP
NOP

org $009c60

LDA $2002
CMP #$53
BEQ MSU1
LDA #$01 ; Standard music track to play in ZSNES and SNES9X
STA $2140
RTS

MSU1:
lda #$01 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$03
sta $2007

lda #$FF
sta $2006
RTS

org $009d50

LDA $2002
CMP #$53
BEQ MSU1Found
LDA #$05 ; Standard music track to play in ZSNES and SNES9X
STA $2140
CMP #$53
BEQ Continue
LDA #$04 ; Standard music track to play in ZSNES and SNES9X
STA $2140
CMP #$53
BEQ Next
LDA #$03 ; Standard music track to play in ZSNES and SNES9X
STA $2140
CMP #$53
BEQ Last
LDA #$02 ; Standard music track to play in ZSNES and SNES9X
STA $2140
RTS

MSU1Found:
lda #$02 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$01
sta $2007
lda #$FF
sta $2006
RTS

Continue:
lda #$03 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$03
sta $2007
lda #$FF
sta $2006
RTS

Next:
lda #$04 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$03
sta $2007
lda #$FF
sta $2006
RTS

Last:
lda #$05 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$03
sta $2007
lda #$FF
sta $2006
RTS




avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Mon 21 Dec 2015 - 4:38

Sorry but this:
Code:
LDA #$05 ; Standard music track to play in ZSNES and SNES9X
STA $2140
CMP #$53
won't work!

You load e.g., the track 05
LDA #$05
Store it to
STA $2140
and then compare it with
CMP #$53
?!?!
You will never get the branch to work with this setup since you always compare the value 53 with 05


Then this hook is shitty:
Code:
org $0081a0
JSL $009d50 ; hook to msu1

You delete much of the native code, like the a2 00 00

Then you must Return from your hook with a RTL not RTS (wonder why your rom doesn't crash with this code you use...


Here's my cleaned code, try this:

Code:
lorom
org $008075   ; changed this 2 bytes prior to not delete native code
JSL $009c60 ; hook to msu1
NOP


org $00819f  ; changed this 1 byte prior to not delete native code
JSL $009d50 ; hook to msu1

org $009c60 ; track 1 hook
LDA $2002
CMP #$53
BEQ MSU1
LDA #$01 ; Standard music track to play in ZSNES and SNES9X
STA $2140
RTL               ; changed from RTS to RTL (you hooked with a JSL!)
MSU1:    
lda #$01 ; MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$03
sta $2007
lda #$FF
sta $2006
RTL

org $009d50  ; further tracks
INC A           ; repeat deleted native code from hook
PHA             ; push track number into stack
LDA $2002
CMP #$53
BEQ MSU1Found
PLA              ; no msu, pull track number from stack
STA $2140
RTL
MSU1Found:
PLA ;  pull track number from stack, MSU-1 music track to play in BSNES
sta $2004
stz $2005
- bit $2000
bvs -
lda #$01
sta $2007
lda #$FF
sta $2006
RTL
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Mon 21 Dec 2015 - 5:15

Conn love u again.. u did it.. ur the skillful one..im still learning..one day ill get it right...there is only one flaw on the game.. the competing cars get like out of the track of smthing..so still not perfect.. yet maybe has to d owith 2140 but is still playable so i dont mind Smile.. thanks again for ur teachings.. Conn .. you and Dark Shock are the masters of MSU1.. Very Happy
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Re: Top Gear the 1st game

Post by Conn on Mon 21 Dec 2015 - 5:32

You are welcome. What is with
Code:
$07/813A A9 05       LDA #$05                A:8DF0 X
$07/813C 8D 40 21    STA $2140  [$07:2140]   A:8D05

I'd make this hook as well so it plays also theme 05:


I can't tell about the out of track issue. I'd need to trace it to understand the problem... and I am a really bad race game player. Perhaps DS can help further out?

Edit:
Sorry, my code posted didn't work. If you need a hoók playing above track 5, you need to copy/paste the same stuff as for track1.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Top Gear the 1st game

Post by kurrono on Tue 22 Dec 2015 - 0:18

Oh Conn.. title screen music is fine $008075=>009c60
now on the 2nd address $00819f=.009d50 i noticed smthing weird...1st track music and 4th track music are playing together..is double music.. track 2 and 3 are perfect even the cars are fine on the track...could be the 00819f INC A =>address?
avatar
kurrono
Blacksmith
Blacksmith

Since : 2015-03-22

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


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