ThomasSpeedrunner Help Thread

Discussion in 'Discussion and Q&A Archive' started by ThomasThePencil, Jan 29, 2013.

Thread Status:
Not open for further replies.
  1. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    I wasn't really shouting. I was just making my point clear. This post is an example of shouting.
     
  2. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    In cases like that, however, it is justifiable to use bigger text to emphasize a point if someone just doesn't get it. You know:

    • please don't do that
    • really, PLEASE don't do that
    • this is your final warning, DO NOT do that
    • <gigantic font>KA ME HA ME HAAAAAAAAAAAAAAAAAAAA</gigantic font>
     
  3. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    XD

    Didn't see his post before.  Anyway, I just wanted to be sure before I jumped into conclusions.
     
  4. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    How was that funny it was uncalled for he could of said it in a nicer way, I have not been warned about it before either, maybe if I was warned a couple times before this then it would be. Not trying to sound like a dick but I just think it was unnessasary.
     
  5. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Probably because he's told many other members and he's just sick of repeating himself.  Maybe he thought shouting would get it in not just yours, but everyone's heads.
     
  6. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Alrihgt sorry for the attitude then.
     
  7. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Erm...so anyway, I've been trying to figure out a way to move the copyright text over so that it doesn't show up like this:

    [​IMG]

    However, I can't really figure it out, so if someone could point me in the right direction, I would be quite grateful.
     
  8. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Right, You're going to figure this out for yourself.  Time to learn how to figure these things out.

    First of all, look at the code that you made to make it say "2013 THOMASSPEEDRUNNER".  Should look similar to this:


    lea ($FFFF0858).l,a1
    lea (CopyrightText).l,a2
    moveq #$A,d6
    - move.w (a2)+,(a1)+ ; load mappings for copyright 1992 sega message
    dbf d6,-



    You must of change the "moveq #$A" to make the text longer to come out longer, so you know that "moveq" is about adding (or reducing) the amount of letters.  So, what to do about moving the text?  Just think about it.  Or better yet, why not experiment with the code?
     
    Last edited by a moderator: Apr 9, 2013
  9. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Ah, now I understand what fixes the problem. The line controlling the positioning of the copyright text is apparently this line:


    lea (Chunk_Table+$858).l,a1


    Increasing the value added to Chunk_Table moves the text farther to the right, and decreasing it moves the text to the left, if I'm interpreting my results correctly. So I can just increase that value to one that fits my liking.  Many thanks for assisting me, redhotsonic.
     
  10. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    You're welcome.  You just need to experiment first.
     
  11. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Erm...new question...

    So, I've ported some songs from S3K, right? Well, they don't sound right, namely the fact that both Death Egg Zone tracks are missing their drums. So, I feel the need to ask: How would I go about porting the DAC samples from S3K to the Sonic 2 Clone Driver?
     
  12. vladikcomper

    vladikcomper Well-Known Member Member

    Joined:
    Dec 2, 2009
    Messages:
    415
    You can get all the samples you need from Flamewing's modified SK driver: http://forums.sonicretro.org/index.php?showtopic=26876

    Note that SK driver uses samples in DPCM format. Sonic 2 Clone Driver uses JMan's DAC driver if I'm right, which only supports PCM format, so to play new samples properly, you'll need to convert them first, which, unfortunately, will increase their size by 2 times without improving the quality. You could also use Mega PCM that supports both sound formats, so you can play the original samples without any conversion (If you manage to port it to the Clone Driver. I believe this is not too hard, since this driver is mostly the same as Sonic 1's, someone has ported it already.)
     
  13. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    I will see if this works. Expect results in about an hour or so.
     
    Last edited by a moderator: Apr 10, 2013
  14. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Well, I think I'll just convert the DAC samples, but how exactly would I go around doing it?
     
  15. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Why did you have to make a double post? Surely you can edit existing posts.
     
  16. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?

    Why did you have to make a double post? Surely you can edit existing posts.

    Oh, damnit. Usually I apologize in advance when I do that, but I forgot like an idiot.

    Sorry for the double post :(

    Anyway, how would I be able to convert the DAC samples to a format compatible with the Sonic 2 Clone Driver?
     
    Last edited by a moderator: Apr 11, 2013
  17. vladikcomper

    vladikcomper Well-Known Member Member

    Joined:
    Dec 2, 2009
    Messages:
    415
    I recall there was a JMan's converter, but I can't find it anymore and, frankly, it was too tricky to work with, so I just wrote my own converter today:

    https://dl.dropboxusercontent.com/u/44757401/dpcm2pcm.7z

    Just pass a DPCM sample to it and it'll produce a SND-file in proper PCM format, which you can play with S2 Clone Driver. SND file means raw sound stream with no header (unlike WAV files, that have header). If you want, you can open these files with any sound editors that supports raw streams, like GoldWave.
     
  18. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Thanks, vladikcomper. The converter works perfectly.

    Now, one other question on the subject of DAC. Here's my driver's PCM_Table right now:


    PCM_Table: dc.l $A00200, DAC1
    dc.w $352
    dc.b $19,0
    dc.l $A00208, DAC2
    dc.w $770
    dc.b $4,0
    dc.l $A00210, DAC3
    dc.w $576
    dc.b $8,0
    dc.l $A00218, DAC4
    dc.w $BB5
    dc.b $A,0
    dc.l $A00220, DAC5
    dc.w $1016
    dc.b $1D,0
    dc.l $A00228, DAC6
    dc.w $622
    dc.b $C,0
    dc.l $A00230, DAC7
    dc.w $5C4
    dc.b $1D,0
    dc.l $A00238, SK_DAC1 ; <--
    dc.w $0 ; <--
    dc.b $0,0 ; <--

    The lines with arrows next to them are the ones I've added so far. Are the lower two lines important for something related to the DAC sample itself?
     
    Last edited by a moderator: Apr 13, 2013
  19. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    (sorry for double post)

    Erm...there's an issue with my new SK DAC file. When I try to build, it gives the following fatal error:


    > > >s2.clonedriver.asm(2857): error: error in opening file
    > > > No such file or directory
    > > > SK_DAC1: include "soundskdac81.bin"
    fatal error, assembly terminated



    The weird thing is, I already have said file. I've tried using BINCLUDE, I've tried using include, and I tried renaming both the reference and the file, all with no success. Am I missing something here?
     
  20. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    For .bin's, it's BINCLUDE, asm and it's INCLUDE

    Is the file definitely spelt right?  And in the same location?  Also, isn't it meant to be a / and not a ?  Maybe that's why.
     
Thread Status:
Not open for further replies.