How to code .dwi files (or .sm)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psychofish25
    FFR Player
    • Aug 2006
    • 50

    #1

    How to code .dwi files (or .sm)

    I was wondering what numbers or symbols i had to type in to make various combinations of arrows. Basically, how does cwi (or sm) coding work? I am making a program that reads stepfiles so I need to know hwo they are programmed.
  • sjoecool1991
    FFR Player
    • Mar 2006
    • 2302

    #2
    Re: How to code .dwi files (or .sm)

    I think sm files work like this:
    0001 for right tap arrow
    0010 for up
    0100 for down
    1000 for left

    Im not sure how to separate measures.


    2 for freeze arrow start, 3 for freeze arrow end.

    Comment

    • Relambrien
      FFR Player
      • Dec 2006
      • 1644

      #3
      Re: How to code .dwi files (or .sm)

      Originally posted by sjoecool1991
      I think sm files work like this:
      0001 for right tap arrow
      0010 for up
      0100 for down
      1000 for left

      Im not sure how to separate measures.


      2 for freeze arrow start, 3 for freeze arrow end.
      In addition, each measure is divided into steps based on the fastest arrow in that measure (i.e. if you have a 12th note, there will be 12 of those lines in that measure, if you have all quarters, then it's just four lines.) You have to figure out where the step should be based on the number of those "fastest" steps that passed.

      But I'm no expert on hand-coding, so someone else should probably elaborate/refute/etc. what I've written.

      Comment

      • Yesssss
        FFR Player
        • Jul 2005
        • 2522

        #4
        Re: How to code .dwi files (or .sm)

        If you're going to be making sims, then just use the editor in Stepmania.
        YOU JUST WON THE GAME! CONGRATULATIONS!

        Comment

        • psychofish25
          FFR Player
          • Aug 2006
          • 50

          #5
          Re: How to code .dwi files (or .sm)

          I am making a program that reads stepfiles. Thats why I need to know how they're coded

          Comment

          • Vidik
            FFR Player
            • Feb 2007
            • 144

            #6
            Re: How to code .dwi files (or .sm)

            ok, i can't help you with .dwi because i don't know how to code it XD! But i'll tell you how to make sm...

            The easy way:
            Use the stepmania editor to create songs, and take the sm file, and paste it into own your songs folder whatever(not sure of course).

            The BLAZING MIND-KILLING HARD way(part 1):
            First create a document and select "save as" in the file and type "(name of song here).sm" . then initalize the song.

            Heres the layout:
            #TITLEname of song here);
            #SUBTITLEsong's subtitle here);
            #ARTISTsong's artist here);
            TITLETRANSLITsong's name might be different language, or have symbols. Typle the real name here);
            ARTISTTRANSLITartist's might be different language, or have symbols. Typle the real name here);
            #CREDITtype who you give credit to here);
            #BANNERtype the path of the banner here); (more on part 2)
            #BACKGROUNDtype the path of the background here); (more on part 2)
            #CDTITLEtype the path of the cdtitle here); (more on part 2)
            #MUSICtype the path of the music here); (more on part 2)
            #OFFSETtype the offset of the song here); (more on part 2)
            #SAMPLESTARTtype the preview music of the song here);
            #SAMPLELENGTHhow long the music preview);
            #SLECTABLEYES means the song will be shown in regular mode, NO means it will be shown in roulette in regular mode);
            #BPMSfirst type what beat, then "=", then the BPM); (more on part 2)
            #STOPSfirst type what beat, then "=", then how many seconds the stop is); (more on part 2)
            #BGCHANGESfirst type what beat, then "=", then the path of the BG); (more on part 2)

            I will make part 2 later, for now, figure out how to use this. experiment with it! You have more features using "The BLAZING MIND-KILLING HARD way" .
            Last edited by Vidik; 04-25-2007, 08:20 PM. Reason: ummm... trying to fix smilies
            Kappa

            Comment

            • flooger
              Banned
              • Jan 2007
              • 301

              #7
              Re: How to code .dwi files (or .sm)

              Originally posted by psychofish25
              I am making a program that reads stepfiles. Thats why I need to know how they're coded
              Um thats exactly what stepmania does...

              Comment

              • Relambrien
                FFR Player
                • Dec 2006
                • 1644

                #8
                Re: How to code .dwi files (or .sm)

                Originally posted by flooger
                Um thats exactly what stepmania does...
                I can't speak for him, but my guess is that he wants to make another program that does the same thing, for whatever reason, so let's try to help him out.

                Unfortunately, I've given all the information I know, but I'll ask around and see what I can figure out. I have a friend who coded an entire simfile in Notepad, so he should know how things go.

                Comment

                • psychofish25
                  FFR Player
                  • Aug 2006
                  • 50

                  #9
                  Re: How to code .dwi files (or .sm)

                  Originally posted by flooger
                  Um thats exactly what stepmania does...
                  Its for a project in my computer science class

                  Comment

                  • I like it
                    Housekeeper
                    FFR Simfile Author
                    • Jan 2007
                    • 2122

                    #10
                    Re: How to code .dwi files (or .sm)

                    uhh i dont have a clue
                    Last edited by I like it; 04-29-2007, 11:27 AM. Reason: TYPO YO

                    Comment

                    • Ramengan
                      FFR Player
                      • Nov 2006
                      • 772

                      #11
                      Re: How to code .dwi files (or .sm)

                      Originally posted by psychofish25
                      Its for a project in my computer science class
                      Ooh, what fun. Well, I think SM files are much easier to code than DWI, so I'll talk about the .sm format.

                      Notes are one of the more important things in a simfile, so here we go.
                      #NOTES:<NotesType>:<Description>:<DifficultyClass>:<DifficultyMeter>:<RadarValues>:<NoteData>;
                      That's all the header stuff before the code for the actual steps. Example below:

                      #NOTES:
                      dance-single:
                      :
                      Easy:
                      3:
                      0.284,0.346,0.111,0.244,0.000:

                      There's no semicolon ( in the example because the steps go between it and the above data.

                      For the steps themselves:

                      0 = No step.
                      1 = Tap note.
                      2 = Beginning of a hold/freeze.
                      3 = End of a freeze or roll.
                      4 = Beginning of a roll.

                      Notes that are pressed at the same time are grouped in a row. A row of 1001 is a LR Jump (0s are in place of the up and down), and 1111 is a quad. Pretty easy. Also, I'm assuming you're going to be reading files that are "Dance-Single", which uses 4 numbers per row, but if you wanted to read a "Double" file, you'd need 8 numbers per row. (And 6 for Solo)
                      Rows are grouped by measure. The number of rows in a measure determines the snap of the arrows (4 rows = quarter notes, 8 rows = eigths, and so on). The measures is separated by commas.

                      Ex.
                      //Measure 1 (Notes divided into quarters) <-- // is a comment for .sm files too
                      1000
                      0200
                      0010
                      0301
                      ,
                      //Measure 2 (Notes divided into eighths)
                      1000
                      0000
                      0010
                      0100
                      1000
                      0000
                      0010
                      0001
                      ; (end of steps)

                      In reality, the steps should be much longer than that, but the format is consistent. Have fun coding!
                      In all honesty, I forgot how DWIs were coded. Maybe I'll remember later, but you probably won't need it. Both formats result in the same steps.

                      Originally posted by Relambrien
                      I have a friend who coded an entire simfile in Notepad
                      So you have to go and PM me about this thread.
                      Have a pad simfile that you're proud of? Send it to:


                      <-- This is the Edit button. It's at the bottom-right of all of your own posts. The Edit button is your friend; use it.

                      Comment

                      • Relambrien
                        FFR Player
                        • Dec 2006
                        • 1644

                        #12
                        Re: How to code .dwi files (or .sm)

                        Originally posted by Ramengan
                        So you have to go and PM me about this thread.
                        Yes, I do :P

                        Comment

                        Working...