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.
How to code .dwi files (or .sm)
Collapse
X
-
Tags: None
-
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. -
Re: How to code .dwi files (or .sm)
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
-
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 codedComment
-
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:
#TITLE
name of song here);
#SUBTITLE
song's subtitle here);
#ARTIST
song's artist here);
TITLETRANSLIT
song's name might be different language, or have symbols. Typle the real name here);
ARTISTTRANSLIT
artist's might be different language, or have symbols. Typle the real name here);
#CREDIT
type who you give credit to here);
#BANNER
type the path of the banner here); (more on part 2)
#BACKGROUND
type the path of the background here); (more on part 2)
#CDTITLE
type the path of the cdtitle here); (more on part 2)
#MUSIC
type the path of the music here); (more on part 2)
#OFFSET
type the offset of the song here); (more on part 2)
#SAMPLESTART
type the preview music of the song here);
#SAMPLELENGTH
how long the music preview);
#SLECTABLE
YES means the song will be shown in regular mode, NO means it will be shown in roulette in regular mode);
#BPMS
first type what beat, then "=", then the BPM); (more on part 2)
#STOPS
first type what beat, then "=", then how many seconds the stop is); (more on part 2)
#BGCHANGES
first 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" .KappaComment
-
Re: How to code .dwi files (or .sm)
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
-
Comment
-
Re: How to code .dwi files (or .sm)
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.
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
-
Comment
Comment