Go Back   Flash Flash Revolution > General Discussion > Technology
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 07-6-2013, 09:51 PM   #1
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default .sm to .dwi converter

current progress:
http://pastebin.com/yf013znn

standalone executable:
here

this script is now fully functional, but assumes you have only tap steps; no special kinds of taps. make sure you have the executable located in the root directory of the files you want to convert.

todo:
- erroneous .sm file checking.
- command line support for more features.

known issues:
- certain characters in filenames on non-english locales will cause the converter to crash.
- converter must be run in administrator mode or a .dwi will not be generated.

Last edited by Fission; 08-19-2013 at 10:26 PM..
Fission is offline   Reply With Quote
Old 07-6-2013, 09:52 PM   #2
mi40
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
mi40's Avatar
 
Join Date: Aug 2008
Posts: 3,652
Default Re: .sm to .dwi converter

w0.. g00d luke sir
__________________
mi40 is offline   Reply With Quote
Old 07-6-2013, 10:00 PM   #3
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

i ended up finding a website with better info to get started than the SM website, guess i don't have any questions for now. will post again if anything pops up though.
Fission is offline   Reply With Quote
Old 07-7-2013, 11:00 AM   #4
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

http://pastebin.com/YeAFpYfN making some progress. this isn't nearly as hard as i thought it was going to be. lua's string library makes parsing a breeze.
Fission is offline   Reply With Quote
Old 07-7-2013, 11:03 AM   #5
Choofers
FFR Player
FFR Music Producer
 
Join Date: Dec 2008
Age: 33
Posts: 6,205
Default Re: .sm to .dwi converter

take sm
use blank mp3
put in stepmania
save once
wala u haff dwi (and sm !!)
__________________
Choofers is offline   Reply With Quote
Old 07-7-2013, 11:03 AM   #6
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

i'm trying to eliminate using stepmania altogether for conversions
Fission is offline   Reply With Quote
Old 07-7-2013, 07:58 PM   #7
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

update on what i've done

correct dwi (using carlos' beat it file as reference):
http://pastebin.com/nbHqJVzk

incorrect dwi (trying to generate from .sm):
http://pastebin.com/aVC8KQfF

getting there
Fission is offline   Reply With Quote
Old 07-7-2013, 07:58 PM   #8
mi40
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
mi40's Avatar
 
Join Date: Aug 2008
Posts: 3,652
Default Re: .sm to .dwi converter

yeah i hate turning on sm 3.9 for dwi
__________________
mi40 is offline   Reply With Quote
Old 07-7-2013, 11:31 PM   #9
MarioNintendo
Expect delays.
Retired StaffFFR Simfile AuthorFFR Music ProducerFFR Veteran
 
MarioNintendo's Avatar
 
Join Date: Mar 2008
Location: Montreal, QC
Age: 31
Posts: 4,119
Default Re: .sm to .dwi converter

Cooooooool!!
__________________
Click here to download my complete works!




Quote:
Originally Posted by macgravel View Post
Mario's files are top notch, so every time he submits a file I get excited in my pants.
Quote:
Originally Posted by hi19hi19 View Post
This guy, MarioNintendo?
Click the bricks


MarioNintendo is offline   Reply With Quote
Old 07-8-2013, 12:45 AM   #10
NeoMasterPie
Forum User
 
NeoMasterPie's Avatar
 
Join Date: Jul 2007
Age: 29
Posts: 1,405
Default Re: .sm to .dwi converter

yea this is legit
__________________

NeoMasterPie is offline   Reply With Quote
Old 07-8-2013, 10:53 PM   #11
dAnceguy117
new hand moves = dab
FFR Simfile AuthorFFR Veteran
 
dAnceguy117's Avatar
 
Join Date: Dec 2002
Location: he/they
Age: 33
Posts: 10,094
Default Re: .sm to .dwi converter

that's a neat project, haha. sounds like you're making quick progress!
dAnceguy117 is offline   Reply With Quote
Old 07-8-2013, 10:54 PM   #12
hi19hi19
lol happy
Retired StaffFFR Simfile AuthorFFR Veteran
 
hi19hi19's Avatar
 
Join Date: Oct 2005
Location: DESTINY
Age: 33
Posts: 12,193
Default Re: .sm to .dwi converter

Good.

Glad to see you're making progress, thanks for doin' this :)
__________________


hi19hi19 is offline   Reply With Quote
Old 07-8-2013, 10:55 PM   #13
Wayward Vagabond
Confirmed Heartbreaker
Retired StaffFFR Simfile AuthorFFR Veteran
 
Wayward Vagabond's Avatar
 
Join Date: Jul 2012
Age: 35
Posts: 5,858
Default Re: .sm to .dwi converter

this is sick and is made iller by the fact that you're using a file of mine as a reference
__________________
Wayward Vagabond is offline   Reply With Quote
Old 07-9-2013, 06:55 PM   #14
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

thanks for the support, guys :)

another update, using a file with all different kinds of notes to make sure i have exhaustive enough testing. sooo close, but can't figure out what is wrong atm. here is the note section for two DWIs:

correct - http://pastebin.com/Gb5MiB4E
mine - http://pastebin.com/SBeRn7s0

keep in mind, the different symbols between both the "correct" version and my version are equivalent. for example, <81> and <A4> are exactly the same thing.
Fission is offline   Reply With Quote
Old 07-16-2013, 09:04 PM   #15
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

just posting to say that this is still an active project for me.

with the test file i have been using, i have successfully converted a .sm file to a .dwi file with no errors. i am going to do some more extensive testing tomorrow on multiple files to make sure there is still no conversion errors.

there is still some work to be to done to get this ready to be distributed as a user-friendly executable though. i need to figure out some way to package this into a single executable as well as convert any .sm file in the same directory, not just one of a specific name.
Fission is offline   Reply With Quote
Old 07-17-2013, 09:16 PM   #16
Silvuh
quit
Retired StaffFFR Simfile AuthorFFR Music ProducerFFR Veteran
 
Silvuh's Avatar
 
Join Date: Apr 2005
Location: anywhere but here
Posts: 938
Default Re: .sm to .dwi converter

So I'd actually be doing something with my time, I started going through some lessons in Ruby a few days ago. The first original script I made was to count left- and right-hand arrows in a simfile to check global bias.

Then I saw your Lua script and found it interesting how nice all the stuff with the tables and fields look. I'm wondering, though, what does the most recent version of your script look like? I'd like to see how you fixed the latest version you've linked to.

Arf, but, so I thought I'd try to make one in Ruby ... I've worked a couple days, and here's where I am.

It looks really chunky, some of the stuff I did is convoluted, I didn't put comments to say what any of the weird stuff does, (and it certainly doesn't look as nice as yours) ... but it's worked for the .sm, .ds, and .ssc files I've tried ... as long as they have only one difficulty and only tap steps. This will only be used for files for FFR, so I didn't try to do anything more.

The code:
http://pastebin.com/qdrYyjbg

The executable:
http://www.mediafire.com/download/ah...zlmha/dwi2.zip

Throw dwi.exe into the folder with the file you wish to convert, double-click/run it, and watch a .dwi file magically appear out of nowhere.
I'm sooo not like trying to "steal your thunder" or however you say it, so I'm sorry if this irks you like even the slightest bit, me just doing this after you've been working so hard and you know and sorry and uwrawrf
EDIT: I realized the script had a mistake in it like three weeks ago (used ' instead of ` for opening 192nds) but didn't bother to fix it for this, because like one person downloaded it when I posted it, and I didn't think anyone else would. But I saw it got a second download, so I just uploaded a fix. The batchdwi executable in my second post has already been fixed.
__________________

Last edited by Silvuh; 08-18-2013 at 04:34 PM..
Silvuh is offline   Reply With Quote
Old 07-17-2013, 09:17 PM   #17
Xiz
TWG Chaos
FFR Simfile AuthorFFR Veteran
 
Xiz's Avatar
 
Join Date: Feb 2012
Location: Cali4nia
Age: 32
Posts: 3,399
Send a message via Skype™ to Xiz
Default Re: .sm to .dwi converter

Not sure how I can help, but if you do need any let me know.

You are a champ for taking this on.
Xiz is offline   Reply With Quote
Old 07-17-2013, 09:44 PM   #18
Charu
Snivy! Dohoho!
FFR Simfile AuthorFFR Veteran
 
Charu's Avatar
 
Join Date: Mar 2006
Age: 33
Posts: 6,161
Default Re: .sm to .dwi converter

Hey, thanks to the both of ya. I can see how this could help for steppers who don't use 3.9.
__________________


Quote:
Originally Posted by JohnRedWolf87 View Post
Charu the red-nosed Snivy
Had a very shiny nose
And if you ever saw it
You could even say it glows

All of the other Snivies
Used to laugh and call him names
They never let poor Charu
Join in any Snivy games

(Click the arrow to see the rest)


Quote:
Originally Posted by Vendetta21 View Post
All in all I would say that Charu not only won this game, his play made me reconsider how I play it.
Charu is offline   Reply With Quote
Old 07-18-2013, 10:29 PM   #19
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: .sm to .dwi converter

for those who are interested, here is a pastebin of the source:

http://pastebin.com/MHJtWLXA

some things might be a little sloppy, and i'll work on improving them later. i just wanted to write something that works for now.

this will successfully convert a file named "test.sm" to "test.dwi". this assumes, like silvuh's script, no holds, mines, etc.

i have yet to implement directory searching. going to work on that soon. after that, i'm going to add recursive conversion from a root directory to convert a whole bunch of files at once. that way, everybody can send .sm files to batches instead of having to convert to .dwis

Last edited by Fission; 07-18-2013 at 10:32 PM..
Fission is offline   Reply With Quote
Old 07-18-2013, 10:42 PM   #20
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default Re: .sm to .dwi converter

Quote:
Originally Posted by Fission View Post
for those who are interested, here is a pastebin of the source:

http://pastebin.com/MHJtWLXA

some things might be a little sloppy, and i'll work on improving them later. i just wanted to write something that works for now.

this will successfully convert a file named "test.sm" to "test.dwi". this assumes, like silvuh's script, no holds, mines, etc.

i have yet to implement directory searching. going to work on that soon. after that, i'm going to add recursive conversion from a root directory to convert a whole bunch of files at once. that way, everybody can send .sm files to batches instead of having to convert to .dwis
I love you.
TC_Halogen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution