Commit Graph

60 Commits

Author SHA1 Message Date
teejusb 7e3789b131 Integrate C++11 branch into 5_1-new 2019-06-22 12:35:38 -07:00
Kyzentun 2aee27a276 Backport custom song support. Prefs are CustomSongsEnable, CustomSongsMaxCount, CustomSongsLoadTimeout, CustomSongsMaxSeconds, CustomSongsMaxMegabytes. Metrics are NumProfileSongGroupColors and the colors with it. Profile custom load function is passed PlayerNumber now. Stepmania must run as root to save USB profile scores. (#1470) 2017-06-06 05:30:06 -07:00
Colby Klein b4e02821e8 Revert "Improve handling of errors in lua functions and speed up calls. (#1427)"
This reverts commit f10e3ae36a.

(it was a joke PR, do not fear)
2017-04-04 17:21:55 -07:00
Kyzentun f10e3ae36a Improve handling of errors in lua functions and speed up calls. (#1427) 2017-04-04 11:36:23 -07:00
Kyzentun Keeslala 75daad9d43 Fix bug that cleared display name and other editable profile fields when the stats prefix is changed. 2016-03-17 20:24:34 -06:00
Kyzentun Keeslala 88227dd610 Added stats prefix feature to ProfileManager for managing scores that need to be separated. 2016-03-15 18:13:53 -06:00
Jason Felds 80542a5a7d Require reasons for checkpoints. 2015-06-08 18:37:13 -04:00
Kyzentun c905965aca Added Profile:GetTotalDancePoints. 2014-12-18 22:41:19 -07:00
Kyzentun 23fca56582 Fixed Profile swap by making it walk the arrays so that Visual Studio's std swap won't choke on it. 2014-12-14 17:56:05 -07:00
Kyzentun 49b8f77a3e Merged changelog. 2014-12-08 16:08:49 -07:00
Kyzentun 4f95bf08ad Function chaining for actors and singletons. 2014-12-01 22:31:30 -07:00
Kyzentun b43af6dce9 Added Guest and Test profile types, and profile priorities so the position of a profile in the list can be controlled. Fixes crash bug that occurs when a profile dir is renamed to a non-number and a new profile is made. 2014-11-28 21:56:25 -07:00
Kyzentun a580d54662 Profile loading no longer clears out scores for songs that can't be found. Profile merging functions added to ProfileMan and ScreenManageProfiles for profile migration. HighScore operators rewritten to follow good practice. 2014-11-25 21:37:15 -07:00
freem ab4cceff31 explicit float postfix added to some numbers in order to get visual studio to shut up 2014-08-02 00:38:50 -07:00
Kyzentun a74a49af78 Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError. 2014-08-02 00:38:18 -07:00
Kyzentun 95fe1a17e9 Replaced every use of lua_call with RunScriptOnStack. Modified RunScriptOnStack to report an error to log and system message using a passed in context string. Modified every use of RunScriptOnStack to avoid crashing so that the reported error can be seen. 2014-08-02 00:38:17 -07:00
Kyzentun 9a9da05cfb Added doc explaining what a theme needs to support heart rate calorie calculation. 2014-07-01 02:21:24 -06:00
Kyzentun 947479f154 Added heart rate based calorie counting method to Profile as an alternative to step count based calorie counting. Removed unused IsWeightSet from Profile::SaveGeneratlDataCreateNode. 2014-07-01 01:36:00 -06:00
Kyzentun f8e1e28286 Exposed StepMania::SaveScreenshot to Lua. Added prefix and suffix args for setting the screenshot name and removed the unused index arg. Added GetHighScore to PlayerStageStats and AddScreenshot to Profile so that Lua can imitate ScreenEvaluation's code for adding a screenshot to the profile. Removed hungarian notation from variable names in StepMania::SaveScreenshot. 2014-06-17 00:29:09 -06:00
Kyzentun 7e41d88feb Fixed fake conflict in Profile.cpp. 2014-06-16 22:57:33 -06:00
Kyzentun 6db1199db5 Added PROFILE:GetHighScoreListIfExists for limiting memory footprint on searches. Added PROFILE:GetAllUsedHighScoreNames to provide a non-brute force way for obtaining a list of names. Added HighScoreList:GetHighestScoreOfName so the C++ side could do the iteration. Added HighScoreList:GetRankOfName for the same reason. 2014-05-13 13:34:38 -06:00
Kyzentun c8476738f5 Exposed GAMESTATE:StoreRankingName and Profile:SetLastUsedHighScoreName to Lua. StoreRankingName no longer forces uppercase. 2014-05-12 22:01:22 -06:00
sigatrev f1fc291989 run profile's CustomLoadFunction when changing theme or assigning a local profile to a player
This should make the custom load functions a lot more useful.
2014-04-30 21:30:30 -05:00
Kyzentun 3c7bb93bbc Added ComboContinuesBetweenSongs back in. And if that line in ResetStageStatistics is committed as FOREACH_HumanPlayer, I'm going to punch git. 2014-02-16 11:43:28 -07:00
AJ Kelly 7787efdaa9 Add Lua bindings for RankingCategory
(Sourced from shakesoda/stepmania.)
2013-10-04 07:43:41 -05:00
Devin J. Pohly cc38fa1d5a Profile: add custom load/save hooks
Themes can use these to implement custom per-profile data, such as
SpeedMods.txt.  For memory cards, they will be executed while the card is
mounted and should read/write everything they will need at that point.
2013-09-06 23:36:54 -04:00
Devin J. Pohly 1220dbe085 Revert "Round 2-2 of this."
This reverts commit 0ae4183f7b.
2013-06-04 23:47:22 -04:00
Devin J. Pohly bf20306d07 Revert "Missed more of these darned spots."
This reverts commit bbb57b1600.
2013-06-04 23:46:11 -04:00
Jason Felds 25c3c7d4f1 Change our auto_ptr's to unique_ptr's.
auto_ptr is deprecated in c++11.
2013-05-04 14:11:47 -04:00
Jason Felds f5c877cbb6 Replace StringToInt with the std version.
Again, RageUtil isn't the right home.
2013-05-04 11:59:25 -04:00
Jason Felds 328c41eec0 The big NULL replacement party part 4.
...okay, not as big of a commit.
2013-05-03 23:24:23 -04:00
Jason Felds a3f37dc2b4 The big NULL replacement party part 3.
Getting there I think.
2013-05-03 23:16:39 -04:00
Jason Felds ba59dd1656 The big NULL replacement party part 2.
This may take a bit. Trying to do this by operator/command.
2013-05-03 23:11:42 -04:00
Jason Felds 9f24627bf9 The big NULL replacement party part 1.
This is meant to be a safer alternative since
NULL can often be 0. Let's not rely on that.

And yes, I know this is a lot of files. This is
a safer thing to do in big commits vs for loops.
2013-05-03 23:01:54 -04:00
Jason Felds c67419ecc8 There goes the macro file.
This is one of my bigger commits in this branch.

Still, shouldn't cause a problem.
2013-05-01 23:54:39 -04:00
Jason Felds 4dc2b5e636 More loops. 2013-04-30 20:01:58 -04:00
Jason Felds b6cbb511f8 So much to convert...
this may have worked better with auto.

Still, I'd rather be explicit when possible.
2013-04-27 15:12:47 -04:00
Jason Felds f66883aa1b Forgot to utilize references.
Still compiled, but wasn't the best move.
2013-04-27 13:33:05 -04:00
Jason Felds eac4dc231d Handle the set loop here. 2013-04-27 13:29:34 -04:00
Jason Felds bbb57b1600 Missed more of these darned spots.
Gah, losing my touch.
2013-04-18 22:56:57 -04:00
Jason Felds 0ae4183f7b Round 2-2 of this. 2013-04-16 00:16:02 -04:00
Colby Klein a1fc6a38b1 Revert "No point in saving CoinData anymore."
This reverts commit 3d90a33394.
2013-02-11 12:11:11 -08:00
Jason Felds 3d90a33394 No point in saving CoinData anymore. 2013-02-10 10:32:11 -05:00
Jason Felds 1fc16698ba War on -Werror, part 12: explicit bool usage.
It may save a few cycles, but it's best to be
explicit on boolean operations, especially with
ASSERT.
2012-12-27 11:38:53 -05:00
AJ Kelly b4bd8e82d9 Add various new bindings for ProfileManager, also GetGUID binding for Profile. [asorenson] 2012-11-22 12:42:12 -06:00
AJ Kelly c07d41cecb [Profile] Added GetLastPlayedSong and GetLastPlayedCourse Lua bindings. 2012-04-25 19:56:33 -05:00
AJ Kelly 4cfc1af8db remove leftover catalog stuff 2011-10-27 21:31:34 -05:00
Mark Cannon b5d8d67079 "UserData" -> "UserTable" in Profile; more accurate name. 2011-08-21 20:20:59 -04:00
Jason Felds da51e26d07 Standardize conversion processes.
Too many arguments for or against the many methods:
stick to one inside a common function.

This commit will force recompilation of many files.
2011-05-11 15:58:31 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00