Forums » General StepMania » PHP 5.4 Stepfile Parser and Model

1
For those interested i have created a SM file parser and model for easy manipulation of SM files in php. With the start of reviving the old SMMIX project this was a logical 1st step to getting back into things.

Feel free to us it, as it is an MIT license. I hope this helps someone out in the future, and feel free to help me improve the code on github.

there is still a bunch to do, but it's a good start

https://packagist.org/packages/zanson/sm-parser

I will also be updating the old Planet Rathstar Stepchart generator to this new model to update the codebase and get it PSR-4 compliant. Once i have made some progress on that code i will post a link to the github and packagist repos.

Last edited: 26 August 2015 4:37pm

Reply
Does it also support the new format (.ssc)?
Reply
i dont have a full spec for the file type, but if you can upload a few example files/links to how the file is formatted,i can easily make it work.
Reply
Actually, just went into a song and edited the crap out of it to generate some ssc files and crazy ass data...

i'll see what i can make of it all and get it working.

EDIT:
Updated the models, just need to fix the parser properly and test it all out.

Last edited: 26 August 2015 10:10pm

Reply
Version 1.2 now available.

Added in SSC parsing and a function to convert SM to SSC and SSC to SM.

EDIT:
File export created.

https://packagist.org/packages/zanson/sm-parser#v1.2

Last edited: 30 August 2015 8:49am

Reply