Flash Flash Revolution

Flash Flash Revolution (http://www.flashflashrevolution.com/vbz/index.php)
-   Technology (http://www.flashflashrevolution.com/vbz/forumdisplay.php?f=74)
-   -   .sm to .dwi converter (http://www.flashflashrevolution.com/vbz/showthread.php?t=130892)

Fission 07-6-2013 09:51 PM

.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.

mi40 07-6-2013 09:52 PM

Re: .sm to .dwi converter
 
w0.. g00d luke sir

Fission 07-6-2013 10:00 PM

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 07-7-2013 11:00 AM

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.

Choofers 07-7-2013 11:03 AM

Re: .sm to .dwi converter
 
take sm
use blank mp3
put in stepmania
save once
wala u haff dwi (and sm !!)

Fission 07-7-2013 11:03 AM

Re: .sm to .dwi converter
 
i'm trying to eliminate using stepmania altogether for conversions

Fission 07-7-2013 07:58 PM

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

mi40 07-7-2013 07:58 PM

Re: .sm to .dwi converter
 
yeah i hate turning on sm 3.9 for dwi

MarioNintendo 07-7-2013 11:31 PM

Re: .sm to .dwi converter
 
Cooooooool!!

NeoMasterPie 07-8-2013 12:45 AM

Re: .sm to .dwi converter
 
yea this is legit

dAnceguy117 07-8-2013 10:53 PM

Re: .sm to .dwi converter
 
that's a neat project, haha. sounds like you're making quick progress!

hi19hi19 07-8-2013 10:54 PM

Re: .sm to .dwi converter
 
Good.

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

Wayward Vagabond 07-8-2013 10:55 PM

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

Fission 07-9-2013 06:55 PM

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 07-16-2013 09:04 PM

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.

Silvuh 07-17-2013 09:16 PM

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.

Xiz 07-17-2013 09:17 PM

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.

Charu 07-17-2013 09:44 PM

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.

Fission 07-18-2013 10:29 PM

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

Xiz 07-18-2013 10:33 PM

Re: .sm to .dwi converter
 
Requesting sticky


All times are GMT -5. The time now is 11:10 PM.

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