Commit Graph

178 Commits

Author SHA1 Message Date
Kyzentun 064aead73c Added autosave to edit mode. 2015-03-09 19:47:43 -06:00
Kyzentun fa0478affa Merged per-chart music. Updated changelog. 2015-03-09 19:06:57 -06:00
Kyzentun ebb79d0ea6 Use cached song length instead of hitting the disk to read the music file. 2015-03-04 18:54:57 -07:00
Kyzentun 46d215aed3 Added preview tag to NotesLoaderBMS. Changed Song to check the preview file for sample length instead of the simfile if the preview file is set. 2015-03-04 13:10:51 -07:00
Kyzentun 0318f07d2d Implement preview music properly as a new optional tag in the ssc file. Changed ScreenManager to emit an error instead of asserting if a screen attempts to use SetNewScreen inside an InitCommand. Changed decorations layer to be a proper child instead of stripping away the ActorFrame. 2015-03-04 01:31:02 -07:00
Kyzentun fc8da6b485 Update file cache version. 2015-03-02 19:01:17 -07:00
Kyzentun 846f79879c Added MUSIC tag to note data to allow each chart in a simfile to use a different music file. 2015-03-02 18:44:01 -07:00
Kyzentun 9381276fd3 Changed ScreenSelectMusic and Song to look for preview.ogg and use it for a sample if it exists instead of the music file. Sample length still comes from simfile. Changed foreach_ordered to work on tables with string and number keys. 2015-03-01 15:40:16 -07:00
Kyzentun c400794d50 Added ForceStateUpdate and SetDecodeMovie to AMV. Fixed SetStateProperties and SetQuadState off by one errors. Added size lua functions to RageTexture. Added GetBGChanges to Song. 2015-02-02 23:28:33 -07:00
Kyzentun 3b36858cf8 Merge pull request #366 from kyzentun/bgm_formats
Unduplicate file extension lists.
2014-12-01 16:18:09 -07:00
Kyzentun 1a51b06934 Fixed mistake that caused steps from non-ssc or non-sm files have blank StepsTypeStr. 2014-11-23 01:50:58 -07:00
Kyzentun e22e99251e Added functions to ActorUtil for converting the extension to a file type and changed various places that had lists of extensions to use ActorUtil instead of duplicating the list of extensions. Added webm and wmv to list of video types. 2014-11-09 00:04:47 -07:00
Kyzentun c16f045cb4 Fixed UnknownStyleSupport. 2014-10-20 05:14:54 -06:00
Jason Felds 395107d3d5 Revert "Preserve Steps of unknown Style."
This reverts commit 8edd929e24.

This also updates the song cache.
2014-10-19 10:06:40 -04:00
Kyzentun e8b8bfdb60 Song cache version bump. 2014-10-03 19:05:39 -06:00
Kyzentun 8edd929e24 Preserve Steps of unknown Style. 2014-10-01 17:12:01 -06:00
freem 6a39fb5ded Changelog_SSCformat.txt said we were on v0.82, but Song.h said we were on v0.81... fix that.
also update FILE_CACHE_VERSION to regenerate cache for #PREVIEWVID tag (if it isn't already)
2014-08-05 10:45:15 -05:00
Devin J. Pohly b98e5e6dba Bump cache version for XML changes
The XML patchset includes more items in the FGCHANGES line, which is
stored in cache.  Previous caches wouldn't include these entries.

Sorry 'bout that folks.
2014-02-20 15:32:58 -05:00
Ben "root" Anderson a16a42cb02 Edit loading overhaul: Load edits from song folders; Allow a songfolder-style hierarchy in profile edit folders; Make the #SONG tag optional if we can infer the intended song from the directory hierarchy. 2013-11-14 13:29:00 -06:00
Devin J. Pohly 4c7fcc4e0c Resolve more song assets relative to song
Check to see if file exists in relative path before assuming it's
absolute.
2013-10-12 23:50:44 -04:00
Devin J. Pohly fca57e2569 editor: fix crash on revert from disk
This still doesn't read in the timing data from disk, but hey, at least it
doesn't crash now.
2013-08-13 11:43:31 -04:00
Devin J. Pohly 4aee1ed738 Allow more movie types for bgchanges 2013-06-02 03:41:33 -04:00
Jason Felds b4d4b9805b Bloody cache. 2013-05-31 23:17:56 -04:00
Jason Felds b8313cc3c7 Make doubly sure we enforce a cache reload. 2013-05-30 22:19:45 -04:00
Jason Felds 51027a3904 Revert "Fix problem when loading from cache"
This reverts commit 7c3a9eb427.

Also force increment the cache in case others
got the prior commit.
2013-05-28 21:45:56 -04:00
Devin J. Pohly 27940bc572 Bump cachever from -bpm fix, and fix some EOLs 2013-05-22 13:29:02 -07:00
Jason Felds 9c61d060f0 Fix compile, put in the right spot. Thanks Henke. 2013-05-20 18:12:36 -04:00
Jason Felds c6ec5a4390 Forced to invalidate the cache due to the commits.
Cue the hate!
2013-05-20 18:07:28 -04:00
Jason Felds 20d94d4b7e Cat is back in the bag. Revert commits.
A-mods need to be tested more.

...and this is what happens when you forget to
stash changes before a merge. Lesson learned.
2013-04-19 21:49:55 -04:00
Jason Felds 489a9312fc Forced a merge. Should be good. 2013-04-18 22:58:30 -04:00
Devin J. Pohly 900d04e624 replace gotos with if blocks where appropriate 2013-01-25 17:57:03 -05:00
Devin J. Pohly ce507b9800 use empty TimingData in Steps to signify fallback on Song timing.
This required using the new Steps::GetTimingData function and the allowEmpty
parameter to TimingData::TidyUpData when appropriate, as well as clearing the
TimingData to remove step timing rather than coping the song timing over it.

Fixes some odd editor behavior when changing song timing, and is overall a
slightly less hacky way of doing things.
2013-01-23 14:51:18 -05:00
Devin J. Pohly 0ae7b0da85 TimingData: add allowEmpty parameter to TidyUpData. always false for now... 2013-01-23 14:38:57 -05:00
Devin J. Pohly afaa382b84 Steps: set Song pointer to associated song when constructing 2013-01-20 19:23:28 -05:00
Jason Felds 4f07a0ea8b war on -Werror, part 7: start informal params.
I'm preserving our numbering Pohly. ;)
2012-12-26 23:23:59 -05:00
AJ Kelly 451a56b0c6 fix case; fixes linux build 2012-07-01 15:27:50 -05:00
AJ Kelly 3afd1b930b no, really. fix it this time. and stop telling me about createzip, local st command 2012-07-01 12:39:10 -05:00
AJ Kelly 2806f86699 do it right this time. 2012-07-01 12:30:14 -05:00
AJ Kelly 64e7b85a9e add SaveToJsonFile() function from SM4 betas. 2012-07-01 12:24:39 -05:00
Thai Pangsakulyanont 2b6670c2df optimize adding background changes
I have a song with 5841 background changes and it took 3 seconds to load that song.
2012-05-21 14:27:17 +07:00
Jason Felds 26f5e8d78c Replace Steps:UseSplitTiming.
Instead, use Song:IsStepsUsingDifferentTiming.
2012-04-08 23:56:28 -04:00
Marcio Barrientos 11a02660be Change #PREVIEWBG to #PREVIEWVID and update the changelog 2012-01-11 14:21:55 -06:00
Marcio Barrientos da84ef04ad Added tags #PREVIEW for .sma and #PREVIEWBG for .ssc
Added HasPreviewBG() and GetPreviewBGPath() lua bindings
2012-01-11 13:53:30 -06:00
Jason Felds 6249177647 Guess this hack isn't needed now. 2012-01-09 15:11:59 -05:00
AJ Kelly 46524e1b20 another spaces->tabs thing but idk who did this so *shrug* 2012-01-09 12:51:56 -06:00
AJ Kelly ac49164f7e please use tabs 2012-01-09 12:48:00 -06:00
Thai Pangsakulyanont cb25966cf5 merge 2012-01-09 22:13:22 +07:00
Thai Pangsakulyanont dd51b200a9 if( !duringCache ) should be if( !fromCache ). My bad. :( 2012-01-09 22:09:11 +07:00
Jason Felds c1c63611ef Guess I was it. 2012-01-08 19:27:18 -05:00
Jason Felds 4a6bf9282f DWI files can't get the speedy goodness.
Upgrade your files people!
2012-01-08 16:37:08 -05:00