Due to me being utterly incompetent with anything to do with ASM and such, I made a layout without them for the time being. Would have been nice, but I'l definitely use them properly in the future Another dumb question, I want to completely remove the 'water gushing' sections in Labyrinth / SBZ3. In my layout, suddenly Sonic begins flying through the water due to him entering the space where the gush used to be. I looked in the code, is it this segment? Code (ASM): yrinth Zone "wind tunnels" subroutine ; --------------------------------------------------------------------------- ; ||||||||||||||| S U B R O U T I N E ||||||||||||||||||||||||||||||||||||||| LZWindTunnels: ; XREF: LZWaterEffects tst.w ($FFFFFE08).w ; is debug mode being used? bne.w locret_3F0A ; if yes, branch lea (LZWind_Data).l,a2 moveq #0,d0 move.b ($FFFFFE11).w,d0 lsl.w #3,d0 adda.w d0,a2 moveq #0,d1 tst.b ($FFFFFE11).w bne.s loc_3E56 moveq #1,d1 subq.w #8,a2 loc_3E56: lea ($FFFFD000).w,a1 LZWind_Loop: move.w 8(a1),d0 cmp.w (a2),d0 bcs.w loc_3EF4 cmp.w 4(a2),d0 bcc.w loc_3EF4 move.w $C(a1),d2 cmp.w 2(a2),d2 bcs.s loc_3EF4 cmp.w 6(a2),d2 bcc.s loc_3EF4 move.b ($FFFFFE0F).w,d0 andi.b #$3F,d0 bne.s loc_3E90 move.w #$D0,d0 jsr (PlaySound_Special).l ; play rushing water sound loc_3E90: tst.b ($FFFFF7C9).w bne.w locret_3F0A cmpi.b #4,$24(a1) bcc.s loc_3F06 move.b #1,($FFFFF7C7).w subi.w #$80,d0 cmp.w (a2),d0 bcc.s LZWind_Move moveq #2,d0 cmpi.b #1,($FFFFFE11).w bne.s loc_3EBA neg.w d0 loc_3EBA: add.w d0,$C(a1) LZWind_Move: addq.w #4,8(a1) move.w #$400,$10(a1) ; move Sonic horizontally move.w #0,$12(a1) move.b #$F,$1C(a1) ; use floating animation bset #1,$22(a1) btst #0,($FFFFF602).w ; is up pressed? beq.s LZWind_MoveDown ; if not, branch subq.w #1,$C(a1) ; move Sonic up LZWind_MoveDown: btst #1,($FFFFF602).w ; is down being pressed? beq.s locret_3EF2 ; if not, branch addq.w #1,$C(a1) ; move Sonic down locret_3EF2: rts ; =========================================================================== loc_3EF4: ; XREF: LZWindTunnels addq.w #8,a2 dbf d1,LZWind_Loop tst.b ($FFFFF7C7).w beq.s locret_3F0A move.b #0,$1C(a1) loc_3F06: clr.b ($FFFFF7C7).w locret_3F0A: rts ; End of function LZWindTunnels ; =========================================================================== dc.w $A80, $300, $C10, $380 LZWind_Data: dc.w $F80, $100, $1410, $180, $460, $400, $710, $480, $A20 dc.w $600, $1610, $6E0, $C80, $600, $13D0, $680 ; XREF: LZWindTunnels even If I added an rts command to the start of each of them sections, would that stop them all together?
+ - Why don't you try it out before posting? =P Basically, that would do it, but it's also enough if you just put an rts at the beginning of LZWindTunnels, as all the other routines of it are impossible to get reached now anyway.
Well, sorry to bring this up after so long but I tried redownloading the files and now it doesn't crash but it gives me no files...
OK, I've written something here which you should be able to use provided you have a megadrive emulator to run it on. Inside you'll see an assembly source, DAC.bin is the compressed sample you want to decompress, replace it with whatever lossy compressed sample you want, when done, run "Assemble.bat" (Hoping that the assembler can run on your 64-bit system as I don't know =$), and it'll build "Rom.bin", run that rom on a megadrive emulator, it'll decompress the sample, then the screen will turn green and start playing that sample uncompressed in a loop. Next up, make a savestate, open the savestate with a hex editor, your sample will be stored uncompressed from 00002478 to 00012478 in that savestate.
Golden, Sir! A thousand thanks! Quick question, however. What rate are the decompressed samples at? Somewhere near 22Khz is sounding about right currently.
well the pitch is set to $1B and it appears to be playing at the correct pitch, and $1B is the standard stall time for 22.050hz, so I would asume that yes, it is, unless it plays quicker and higher pitch than normal, to which it would be lower.
Well, either my post was missed or everyone's tired of me. :v: I redownloaded the stuff and ran the split file, it doesn't crash anymore, but it gives me no folders. Before, it just gave me empty folders and crashed.
I really have no idea then, Volpino. We're probably missing something obvious. I have a question of my own: I'm trying to write a custom camera routine, and while I can get objects to respond in exactly the way I want them to, the tiles get corrupted. Am I putting it in the wrong place/order, and if so, where should I put it?
Only thing I can suggest is, make sure it's called s2, and is a binary file. Do not call it s2.bin. .bin is the extension.
Objection. It depends if he has Explorer set to display file extensions or not, and if the .bin extension is known to his system. For example I've set my Explorer to ALWAYS show file extensions, so that file MUST be called s2.bin for me. Assuming that everyone has Explorer set to hide file extensions is a wrong assumption which can lead to errors if your post will be referenced by other people in the future. So here's how it works (in XP; it might be different in Vista and 7): open any Explorer windows and go to Tools -> Folder Options -> View -> Hide extension for known file types. If that checkbox is checked, and .bin is a known file extension to your system, your file should appear as s2 in the Explorer window If that checkbox is checked, but .bin is not a known file extension to your system, your file should appear as s2.bin in the Explorer window If that checkbox is not checked, your file should appear as s2.bin in the Explorer window. Please integrate/confirm these directions for Vista/7. Personally I don't get why that option is available in the first place, as I don't get what benefit you obtain by hiding file extensions, I actually think it's counterproductive. It's something that annoys me, and I always disable it when I have to use a computer which has that option set.
Try putting it in a folder near the root, it might be a problem with old applications expecting 8.3 filenames. Good: C:\disasm Bad: C:\documents and settings\yourname\desktop\let's hack sonic 2!!!\disasm And just as a test, uncheck that option for a moment and make sure it's displayed as s2.bin; you can check that option again once you've verified this. Furthermore, you can open split.bat in notepad and add "PAUSE" (without quotes) on a new line at the end of the file so it will give you the time to read the error(s) it's giving. It's also possible to get the output to be logged to a file but it requires further editing of the batch file so I'm not advising you to do so. Also I might be stating the obvious, s2(.bin) is a renamed Sonic 2 Rom which was in bin format to begin with, if you're using a Sonic 2 Rom which was in smd format then it won't work and you'll need another rom or to convert your one from smd to bin.
I unchecked the box, now it's just displayed as s2. When I hover over it, it says "Type: File" so I tried renaming it and then the program would run and give me folders, but they were empty again. I'm pretty sure it's a bin file, I remember trying to find a BIN file because the SMD file I had wasn't working but I have no idea how to convert files. It is near the C drive. It's as close to it as I can put it.
Good that you could get the filename issue sorted, at least. As I said, that checkbox only brings confusion to the mix. Now try adding "PAUSE" to the batch file to see if there are meaningful warnings/errors in the output. Just right click on the batch file and click on Edit. Then add a line at the end by pressing enter, and add "PAUSE" without quotes. Then save, run again.
If you renamed the SMD to a BIN, stop right there. From what I know they have different headers or something... If you can't find a BIN (which you should if you look carefully), you can use smd2bin to convert a SMD to a BIN. I think ESEII also has that feature too, but I'm unsure.
This is really weird. Also sorry for the delay but technically I'm at work and I'm not even supposed to post here :v: Open a command prompt from Start -> Programs -> Accessories -> Command Prompt It should say C:\documents and settings\yourname Type "CD\" without quotes and press enter It should say C:\ Type "CD " without quotes, don't forget the space, and don't press enter yet Open an Explorer window on the folder where you have your split.bat and s2.bin files Click on the folder icon in the top left of the Explorer window, drag it to the command prompt and drop it in any place. The complete path of that folder should now appear after the "CD " you typed before (e.g. "CD c:\disasm") Press enter Type "DIR /s > file.txt" without quotes and press enter Type "notepad file.txt" without quotes and press enter It should open a notepad with some stuff written in it. Copy it all and paste it here. Feel free to hide sensitive information from the path but do not alter filenames.
Well, first, what came up in the notepad was a wall of text that could have ended in China and when I tried to copy it and paste it in the browser, it froze my browser and I had to restart it...
Then you're doing something wrong. When you type the "DIR /s > file.txt", what path do you see in the Command Prompt? It should say "C:\disasm>" or something like that. If it says "C:\>" you got the previous command wrong. When you drag and drop the little folder icon from the explorer window to the Command Prompt make sure it adds some text after the "CD " you previously typed. I'd let you enter the path by hand but I'm not sure if you're familiar with DOS command so I thought drag and drop was the easiest option.