Sonic and Sega Retro Message Board: Basic Questions & Answers thread - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 396 Pages +
  • ◄ First
  • 390
  • 391
  • 392
  • 393
  • 394
  • Last ►
    Locked
    Locked Forum

Basic Questions & Answers thread NEWBIES: Start here!

#5866 User is offline Knucklez 

Posted 17 June 2017 - 02:30 PM

  • Posts: 547
  • Joined: 10-May 11
  • Gender:Male
  • Location:Florida

View PostMarkeyJester, on 16 June 2017 - 05:49 AM, said:

SegaPCM:	incbin	sound\segapcm.bin
		even

Replace it with the following:

SegaPCM:	incbin	sound\segapcm.wav,$3A
SegaPCM_End	even

Then replace "segapcm.bin" with this .wav file, this should make it easier for you to edit. The $3A represents the starting offset from inside the .wav "RIFF" file where the actual PCM data starts.

The PCM sample itself is 8-bit mono PCM. I will say though, you have to be careful with which programs you use to edit the .wav file. Some programs like to insert "xtra" data on the end of the sample, some write the header of the "RIFF" data larger/smaller than expected. But the standard expected should be $3A with no "xtra" tag. You should be fine.

Thanks a lot. I'll work on getting the audio sample I need and put it together as best as I can. This one's just for fun.

But I actually have plans to do what you guys would consider a "small-scale" hack of KiS2 as my first and most extensive work from my part. As much as I don't like S2, the rev with Knuckles is simpler, less buggy and I prefer Knuckles anyway. There's a short list of things I want to change and fix for consistency that I'd be proud of. So I'll try getting around to learning that disasm and modifying it with luck :specialed:

#5867 User is online CHRdutch 

Posted 17 June 2017 - 03:11 PM

  • There's no dog food in it, I swear.
  • Posts: 54
  • Joined: 30-September 16
  • Gender:Male
  • Location:Earth, I think.
  • Project:A generic Sonic 1 ROMhack

View Postlordxernom, on 16 June 2017 - 06:03 PM, said:

Ok, I found and replace code and segapcm.bin file with segapcm.wav file and I got error like this: "C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2618) : Error : Could not open file 'sound\segapcm.wav'
segapcm: incbin sound\segapcm.wav,$3a"


You're using the GitHub version, right? Try changing

SegaPCM: incbin sound\segapcm.wav,$3A

to this:

SegaPCM: incbin sound\dac\segapcm.wav,$3A


#5868 User is offline lordxernom 

Posted 17 June 2017 - 04:40 PM

  • Posts: 46
  • Joined: 26-May 12
  • Gender:Male
  • Project:Tails Adventure LX
Now I have this error:
"C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2618) : Error : more than one label specified
segapcm: segapcm: incbin sound\dac\segapcm.wav,$3a
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2621) : Error : Expression must evaluate
if segapcm_end-segapcm>$8000
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2622) : Fatal error : Sega sound must fit within $8000 bytes, but you have a $
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2622) : Error : Expression must evaluate
inform 3,'Sega sound must fit within $8000 bytes, but you have a $%h byte Sega sound.',segapcm_end-segapcm
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2624) : Error : Expression must evaluate
if segapcm_end-segapcm>size_of_segapcm
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2625) : Fatal error : Size_of_SegaPCM = $6978, but you have a $
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2625) : Error : Expression must evaluate
inform 3,'Size_of_SegaPCM = $%h, but you have a $%h byte Sega sound.',size_of_segapcm,segapcm_end-segapcm
Errors during pass 1 - pass 2 aborted
Assembly completed.
5 error(s) from 53237 lines in 0.24 seconds"

#5869 User is offline MarkeyJester 

Posted 17 June 2017 - 05:36 PM

  • The architect of the universe, didn't build a stairway, leading nowhere.
  • Posts: 1807
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
The first line clearly says "Error : more than one label specified", and it even showed you the line:

"segapcm: segapcm: incbin sound\dac\segapcm.wav,$3a"

You have two "segapcm:" labels there, you only need one label.

Those other errors occur because they reference "segapcm:" label, but since the assembler couldn't deal with the label (because you have two), it cannot use the label for those other things. Fixing this one label problem will fix the other problems automatically =3

#5870 User is offline lordxernom 

Posted 17 June 2017 - 08:07 PM

  • Posts: 46
  • Joined: 26-May 12
  • Gender:Male
  • Project:Tails Adventure LX
Still got this: C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2621) : Error : Expression must evaluate
if segapcm_end-segapcm>$8000
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2622) : Fatal error : Sega sound must fit within $8000 bytes, but you have a $
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2622) : Error : Expression must evaluate
inform 3,'Sega sound must fit within $8000 bytes, but you have a $%h byte Sega sound.',segapcm_end-segapcm
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2624) : Error : Expression must evaluate
if segapcm_end-segapcm>size_of_segapcm
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2625) : Fatal error : Size_of_SegaPCM = $6978, but you have a $
C:\USERS\MACIEK\DESKTOP\MACIEK KUKLA\SONIC HACKING AND FAN GAMING\HACKS\SONIC 1\SONIC LIMBO - COPY\S1.SOUNDDRIVER.ASM(2625) : Error : Expression must evaluate
inform 3,'Size_of_SegaPCM = $%h, but you have a $%h byte Sega sound.',size_of_segapcm,segapcm_end-segapcm
Errors during pass 1 - pass 2 aborted
Assembly completed.
4 error(s) from 53237 lines in 0.26 seconds

#5871 User is offline MarkeyJester 

Posted 17 June 2017 - 08:33 PM

  • The architect of the universe, didn't build a stairway, leading nowhere.
  • Posts: 1807
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
It seems the disassembly you are using has put in extra measures to ensure the ROM assembles correctly, and in the process has made it more difficult to edit.

The original Sonic the hedgehog title expects the SEGA sample to be at a specific location. What's worse, is the Z80 code for playing back the sample does not change the window address while playing, so if the sample crosses over a $8000 68k memory boundary, the Z80 will wrap its address back to 0000, and start reading the Z80 RAM data as PCM data. The messages you are getting are measures to help ensure that none of the conditions I've just mentioned are breached.

I would probably throw this at you: http://info.sonicret..._the_SEGA_Sound Since this will ensure the 68k writes the data instead of the Z80, but the disassembly you are using is structured differently, and you'll have to rip out all of those "helpful measures" that the disassembly creators have so kindly provided you =|

#5872 User is offline Chainspike 

Posted 19 June 2017 - 05:08 PM

  • ?ZONE ACT 1¿
  • Posts: 56
  • Joined: 22-February 17
  • Gender:Not Telling
  • Location:Death Egg Zone
  • Project:Sonic Spring (A compilation of 8-bit stages made 16-bit!)
I was trying to get the Sonic 2 clone driver to work in my hack following this guide. It was not hard to follow until it said that the driver only works with the AS Macro Assembler. I have been trying for hours to get the disassembly to assemble using it and I have no idea how do it. Help is very much appreciated.

#5873 User is offline Clownacy 

Posted 19 June 2017 - 07:45 PM

  • Layin' the Wax and Spinnin' the Sounds
  • Posts: 644
  • Joined: 06-July 13
  • Gender:Male
  • Location:Englandland
You can't just copy/paste a new assembler into an existing disassembly and expect it to work. Converting is a pretty insane task, when you get down to it. You'd be better off rebasing your hack on a different disassembly, that's already been ported to AS.

#5874 User is offline Chainspike 

Posted 20 June 2017 - 01:42 PM

  • ?ZONE ACT 1¿
  • Posts: 56
  • Joined: 22-February 17
  • Gender:Not Telling
  • Location:Death Egg Zone
  • Project:Sonic Spring (A compilation of 8-bit stages made 16-bit!)
Okay then, do I have to use the Sonic 2 Xenowhirl disassembly or is there another good disassembly that uses AS?

#5875 User is offline Clownacy 

Posted 20 June 2017 - 02:49 PM

  • Layin' the Wax and Spinnin' the Sounds
  • Posts: 644
  • Joined: 06-July 13
  • Gender:Male
  • Location:Englandland
There's a list of supported disassemblies here. The only common non-AS disassembly I know of is Sonic 1 Hivebrain/Git.

#5876 User is offline Chainspike 

Posted 20 June 2017 - 04:49 PM

  • ?ZONE ACT 1¿
  • Posts: 56
  • Joined: 22-February 17
  • Gender:Not Telling
  • Location:Death Egg Zone
  • Project:Sonic Spring (A compilation of 8-bit stages made 16-bit!)
I tried using the sound driver with the Sonic 2 Github disassembly and I got this: '"win32/asw"' is not recognized as an internal or external command, operable program or batch file."

#5877 User is offline True Dude 

Posted 24 June 2017 - 03:06 AM

  • Posts: 1300
  • Joined: 07-January 06
  • Gender:Male
  • Wiki edits:980
So, I followed this guide as a basis to begin adding a new playable character for Sonic 3 and Knuckles. Problem is, while I've done everything the tutorial told me to do and it works, there's one part it mentions I haven't understood:

Quote

Note that Blue Knuckles’ picture in the Save screen shows part of the “Del” sign seen when deleting a save, instead of a picture of a blue Knuckles. You will have to repoint manually the art to a suitable picture for blue knuckles. Use SonMapED and modify General\Save Menu\Map - Save Screen General.asm


It doesn't go into any greater detail. I have an extra sprite added into the mappings and art tiles, but if I put the new sprite in after Knuckles and before the "Del" it shifts every sprite afterwards to the next space. I have the new sprite at the end of the mappings, but no clue how to get it to appear.

Also, how should I go about getting other things to work such as the life icon, character sprites, continue icon, etc.? And disable the gliding and breakable rocks for the character like Sonic too, if possible.

#5878 User is offline lordxernom 

Posted 10 July 2017 - 05:25 AM

  • Posts: 46
  • Joined: 26-May 12
  • Gender:Male
  • Project:Tails Adventure LX
I started experimenting with S1 Dual PCM sound driver and I have one issue - I replaced S1 Kick sample with Postal 1 OST Outskirts sample, but in ROM it plays S1 Kick instead of that sample. I used ConvPCM.exe - doesn't work. Somebody knows how to fix it? Here's a video how my issue looks:



#5879 User is offline MarkeyJester 

Posted 10 July 2017 - 04:50 PM

  • The architect of the universe, didn't build a stairway, leading nowhere.
  • Posts: 1807
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
You'll need to elaborate. When you said "I used ConvPCM.exe", how did you use it? What did you do exactly? You did not use it in that video from what I could see.

I can help you, but I need more information.

#5880 User is offline lordxernom 

Posted 10 July 2017 - 07:14 PM

  • Posts: 46
  • Joined: 26-May 12
  • Gender:Male
  • Project:Tails Adventure LX
Well, I drag/drop S1 Kick.wav after I replaced original S1 Kick.wav and renamed with my sample and no changes. Before that my sample was 8-bit 16000hz Mono.

  • 396 Pages +
  • ◄ First
  • 390
  • 391
  • 392
  • 393
  • 394
  • Last ►
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users