Commit Graph
3754 Commits
Author SHA1 Message Date
sigatrev 81080ce9ce Add SetCurrentPlayMode and SetCurrentStyle methods
because there needs to be a way other than using antiquated GameCommands
2014-08-13 22:04:54 -05:00
Kyzentun eb7ac082ae Report error on fetching empty string metric instead of crashing. 2014-08-11 15:56:41 -06:00
Kyzentun c368fc1b47 Didn't realize RollingNumbers was supposed to have negative velocity. 2014-08-08 13:55:51 -06:00
Kyzentun bdb2b373bc Added NoteSkinManager::GetDefaultNoteSkinName so that PlayerOptions can avoid clearing the noteskin when the clearall mod is used. 2014-08-07 18:36:42 -06:00
AJ Kelly ab61c11606 Merge pull request #255 from sigatrev/SyncMachine
fix ScreenGameplaySyncMachine crash
dear github: our travis build is broken in a pretty serious way (The command "sudo apt-get install libc6-dev" failed and exited with 100), and I know this isn't travis-support nor the right place for it but I thought I should let someone outside of IRC know the reason for it thanks
2014-08-07 18:38:31 -05:00
sigatrev dabf62b055 fix ScreenGameplaySyncMachine crash
was not setting steps to null, caused access violations
2014-08-07 17:46:20 -05:00
freem 84a8d3adfb replace psychopathic mapconv.exe with one compiled by "g++ (rev5, Built by MinGW-W64 project) 4.8.1"
This is probably the part where someone says "why do we have the compiled binaries in the source tree anyways if they're just going to cause problems like this?"
2014-08-05 13:52:10 -05:00
freem 38aa07ce38 Kyzentun: it's not your fault that our mapconv.exe is psychopathic 2014-08-05 13:49:05 -05:00
Kyzentun 75a1defea0 ifdef'ed out AddATIToList and RemoveATIFromList on WIN32 because they cause mapconv to crash. 2014-08-05 11:52:31 -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
Kyzentun d1a84f979d Changed GradeDisplay::SetGrade to print errors instead of segfaulting on unloaded actors. 2014-08-04 20:08:56 -06:00
freem f311902765 fix REALLY BAD TYPO in GradeDisplay:SetGrade Lua function.
this is dumb and I'm too lazy to find out who's REALLY to blame so I want to assume it's my fault, probably. If anyone wants to bother clearing my name, check the stepmania SVN history. I don't care enough :v
2014-08-04 18:46:29 -05:00
Kyzentun f3f7af7045 Changed RollingNumbers to not set NAN velocity. 2014-08-03 22:38:01 -06:00
Kyzentun bffeda6dc0 Pretend I didn't forget the +1. 2014-08-02 19:44:25 -06:00
Kyzentun f58f111cfd Changed GetStylesForGame to not traverse the list of styles twice. 2014-08-02 19:34:39 -06:00
Kyzentun e907454943 Merge branch 'GetStylesForGame' of https://github.com/sigatrev/stepmania 2014-08-02 17:17:17 -06:00
sigatrev 3478bc7650 added GetStylesForGame method 2014-08-02 18:09:52 -05:00
sigatrev 6487261f32 maintain music rate speed adjust after music has finished
Keeps things like BGA effect clocks consistent when music stops.
2014-08-01 23:45:21 -05:00
Kyzentun f0d6bce62a Disabled AddATIToList on Windows because it makes mapconv crash. 2014-08-01 11:16:17 -06:00
Kyzentun 392ac045eb Added MusicWheel:GetSelectedSection. 2014-07-31 14:57:00 -06:00
Kyzentun 18b2d73bb1 Fixed invalid note type trace to use correct escape sequence. 2014-07-31 11:25:05 -06:00
freem 48425fa998 <Mad_Matt> hahaha. apparently I accidentally included my libtomcrypt and libtommath in my TapNote enum pull request
<Mad_Matt> someone should probably remove those
2014-07-31 11:58:58 -05:00
kyzentun d7fade2f0b Merge pull request #244 from sigatrev/TapNote-enums
Enums for TapNoteType, TapNoteSubType, and TapNoteSource
2014-07-30 23:03:51 -06:00
kyzentun 97bcfb37de Merge pull request #240 from sigatrev/UpdatePlayerSongPositions
UpdateSongPositions
2014-07-30 23:03:41 -06:00
kyzentun 77e0d70f39 Merge pull request #236 from kyzentun/RevalidateNoteDataATIs
Added revalidation scheme to NoteData's all_tracks_iterator
2014-07-30 23:02:13 -06:00
kyzentun 9a0219c6b6 Merge pull request #231 from kyzentun/ChangeGame
SetGame
2014-07-30 23:01:59 -06:00
Kyzentun 076d67132d Reverted BitmapText::LoadFromNode back to previous logic.
BitmapText now looks up font names in Fonts/ if the path doesn't resolve, so LoadFont is obsolete.
Added optional arg to ActorUtil::ResolvePath and GetAttrPath to make them not report an error when something is optional.
2014-07-29 12:09:40 -06:00
freem 9038056ba4 Make default value for NumBackgrounds preference 10.
(The previous value, 8, was unable to be selected in the menu, so it was always getting changed. Thanks to Mad Matt for pointing this out)
2014-07-28 17:54:50 -05:00
Kyzentun a5db63657c Changed GameCommand screen validation to allow OptionsList to work again. 2014-07-27 01:47:30 -06:00
AJ Kelly 52ed5c3f55 Merge pull request #245 from sigatrev/ActorScroller
fix ActorScroller wrapping
2014-07-26 19:27:34 -05:00
freem bc73e053bb telling Visual Studio to shut up about more warnings wrt/double and float 2014-07-26 19:01:49 -05:00
freem 71abf53d3c we dropped Visual C++ 6 support a long time ago, so remove most of the boolean operator hacks.
However, the == one is still required (at least on Visual Studio 2008, not sure about others).
Feel free to revert this if it's causing problems elsewhere.
2014-07-26 19:00:50 -05:00
sigatrev b0cac56864 fix ActorScroller wrapping
looping actor scrollers would never reach destination items with number
higher than the number of items.
2014-07-26 18:55:39 -05:00
freem ec66fc21bb explicit float postfix added to some numbers in order to get visual studio to shut up 2014-07-26 16:06:18 -05:00
sigatrev e81af8c131 Enums for TapNoteType, TapNoteSubType, and TapNoteSource
I intend to make additional useful information available on judgments,
such as TapNoteType and TapNoteSubType( for hold judgments ).

I am submitting this part as a separate pull request because it is more
generally applicable to anything TapNote related.
2014-07-25 18:45:02 -05:00
Kyzentun 32e5d7e90c Improved three-key support. Default theme should be completely usable with three-key cabinets if ThreeKeyNavigation pref is true. Added ThreeKeyNavigation pref. ScreenOptions:NavigationMode metric now uses that pref to decide between normal and toggle modes. Added GoToFirstOnStart to OptionRowHandlerLua so an option row can control that behavior. Rewrote input for default's ScreenSelectProfile to use an input callback to take advantage of menu button mapping. Fixed inconsistent indentation in ORHL documentation. 2014-07-25 14:33:15 -06:00
freem 0756bfa5f4 make [ScreenHowToPlay] CharacterName metric work again 2014-07-25 01:39:33 -05:00
Kyzentun c05a173d52 Fixed UpdateHasteRate and PlayerInfo:GetLifeMeter to check whether the life meter is null before using it. 2014-07-25 00:20:38 -06:00
sigatrev acd3340c57 UpdateSongPositions
It is useful to have Player SongPositions update off of ScreenGameplay
for use with things like ArrowEffects.

ScreenGameplay, ScreenHowToPlay, and ScreenEdit stop GameSoundManager
from running GameState:UpdateSongPosition and do it themselves, so this
has no impact on the screen classes that cared about, and thus updated,
player SongPositions.
2014-07-24 19:45:17 -05:00
freem 166ae6ea11 fix really awkward positioning of this line (was using spaces instead of tabs) 2014-07-24 17:51:02 -05:00
Kyzentun bc7217908d Added Sprite::NewBlankSprite for use by NoteSkinManager. Removed default texture loading from Sprite::Sprite. Should fix problems with white banners and garbage on videos. 2014-07-24 03:38:17 -06:00
Kyzentun ba0a0c69d2 Fixed Course::GetTotalSeconds to work on courses that don't have a medium difficulty. A course with only double charts was probably the one that made the crash manifest. 2014-07-23 13:25:04 -06:00
Kyzentun dc55f1391a Added revalidation scheme to NoteData's all_tracks_iterator so that it can be made valid again after the NoteData is transformed by something adding or removing steps. This fixes the crash on courses that use transform mods on the second song. ITG2's Getting Started is an example. 2014-07-23 05:34:23 -06:00
AJ Kelly 020b3916e8 Merge pull request #233 from sigatrev/StringToDifficulty
add OldStyleStringToDifficulty method
2014-07-22 17:54:36 -05:00
sigatrev 7622c7d423 add OldStyleStringToDifficulty method
because SM recognizes them in .sm files.
2014-07-22 17:39:55 -05:00
sigatrev 49c8846cc0 SavePreferences
for custom option screens.
2014-07-22 16:52:42 -05:00
Kyzentun c3fb210291 Created GameLoop::ChangeGame analogous to GameLoop::ChangeTheme. Changed ChangeTheme to use the AfterThemeChangeScreen metric instead of a passed in screen name from the theme being changed away from. ChangeGame uses the AfterGameChangeScreen and AfterGameAndThemeChangeScreen metrics to pick the screen to load after the change. New metrics are optional and default to InitialScreen. Changed ScreenManager::ThemeChanged to not duplicate the code in ReloadOverlayScreens. Fixed ScreenManager::IsScreenNameValid to check with HasMetric before using GetMetric. Changed game ConfOption logic to set the preference and work in a similar way to the theme ConfOption. Added THEME:SetTheme lua function. 2014-07-20 20:59:12 -06:00
Kyzentun 35ce025a1c Merge branch 'SetGame' of https://github.com/sigatrev/stepmania into ChangeGame 2014-07-20 02:12:39 -06:00
Kyzentun 69b5f1ae61 Fixed two typos. 2014-07-19 16:05:16 -06:00
Kyzentun 4c97ff64a0 Changed CheckEnum to use lua_isnoneornil so that enum args can be made properly optional. Changed PlayMusicPart to allow nil for optional args so optional args would be independent. 2014-07-19 15:20:02 -06:00