Commit Graph
33910 Commits
Author SHA1 Message Date
Kyzentun cb168e29aa Added Common Error font for use by error reporting so that themes that replace Common Normal won't have a problem. 2014-07-18 18:04:51 -06:00
Kyzentun a2e6d186e3 Created Def.LogDisplay for displaying messages in a log. Changed error reporting layer to use Def.LogDisplay. Changed engine error reporting to not clip errors to a single line. 2014-07-18 16:29:46 -06:00
Kyzentun 8a65dfaefa Tested and fixed error reporting for NoteSkinManager. Changed Sprite::Sprite() to load the default texture. 2014-07-16 02:03:06 -06:00
Kyzentun 0f72d7cc6b Changed NoteSkinManager to use new error reporting and avoid crashing. Fixed DoChangeTheme to switch to the InitialScreen if the screen doesn't exist in the theme being changed to. Fixed error reporting in MeterDisplay. 2014-07-15 13:28:06 -06:00
Kyzentun 273b76d3c7 ActorUtil::ResolvePath updated for error reporting. Changed BitmapText to work with either a font name or a path. ThemeManager::GetPathInfoRaw fixed to use correct error dialog. ThemeManager::GetPathInfo fixed to report correct error for missing theme elements. 2014-07-14 18:02:28 -06:00
Kyzentun 6cf23c4dc3 Changed many parts of GameCommand to improve error reporting. Fixed GameCommand setpref to not set when loading the command. Minor fix to ScreenOptionsExample.ini to explain that SongInCurrentSongGroup is unusable. CommonMetrics, CourseContentsList, HoldJudgent, OptionRowHandler all have minor changes to fix crashes on malformed theme data. 2014-07-14 15:41:04 -06:00
Kyzentun fb1a251b7a Changed many places that used RageException to use ReportScriptError instead. Wrote ScreenOptionsExample.ini as documentation example for the OptionRow system. Rewrote gamecommands.txt to include all GameCommands. Fixed Commands::GetOriginalCommandString to insert the semicolons that separated the original commands. Changed nonsensical boolean |= true statements in GameCommand.cpp to just use =. Added protection to ReportScriptError to keep it from recursing through itself when an error occurs in error reporting. Added UseAbort option to ReportScriptError for places that want to use an AbortRetryIgnore dialog to query the user. Added ScriptErrorMessage for places that need to handle the warning/dialog part separately. Added logging flag to MESSAGEMAN so that all messages broadcast can be logged when desired. Changed OptionRowHandler::LoadInternal to return a boolean success value as part of error handling. 2014-07-12 14:59:10 -06:00
Kyzentun 63311ab62f Moved error reporting to ScreenSystemLayer error.lua. ScreenSystemLayer overlay/default.lua restored to previous. Error messages are now broadcast with the ScriptError message instead of SystemMessage. Added show/hide error messages toggle and clear error messages to debug menu. Nuked ScreenConsoleOverlay for being unfinished and duplicating ScreenSystemLayer. Changed Actor:tween and Tween::CreateFromStack to use ReportScriptError on invalid tween params. Changed some OptionRowList things to use ReportScriptError on invalid metrics. 2014-07-08 20:01:33 -06:00
Kyzentun bee284d0c7 Rewrote ScreenSystemOverlay overlay/default.lua to be able to display multiple messages. Added Reload Overlay Screens option to debug menu. 2014-07-08 01:02:36 -06:00
Kyzentun 026f968fa4 Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError. 2014-07-07 00:39:27 -06:00
Kyzentun ff1392cdba Made Screen not go to next screen if the screen name is empty. 2014-07-05 14:14:23 -06:00
Kyzentun a7a98a690e 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-07-05 01:34:05 -06:00
Kyzentun e9220c56b7 Added Actor:GetDestX/Y/Z to Lua API. 2014-07-04 02:03:05 -06:00
kyzentun 3c028c2321 Merge pull request #206 from kyzentun/InputCallbacks
This seems solid in my testing, I've converted Consensual to use it instead of CodeMessageCommand.
2014-07-03 23:15:03 -06:00
Kyzentun dfd0a5e897 Added semicolon that moshekaplan forgot. 2014-07-03 11:47:06 -06:00
Kyzentun a117b38f38 Merge branch 'patch-3' of https://github.com/moshekaplan/stepmania 2014-07-03 11:24:18 -06:00
Kyzentun 0d060a0e5c Merge branch 'patch-2' of https://github.com/moshekaplan/stepmania 2014-07-03 11:23:19 -06:00
Moshe Kaplan e52ff00295 Remove memory leak in RageSurfaceUtils::Palettize 2014-07-03 11:27:22 -04:00
Moshe Kaplan 240d1715c9 Minor performance enhancement
`list.empty()` runs in constant time; `list.size` can run in linear time.
`list.empty()` runs in constant time; `list.size` can run in linear time.

Sources:
http://www.cplusplus.com/reference/list/list/size/
http://www.cplusplus.com/reference/list/list/empty/
2014-07-03 10:10:40 -04:00
Moshe Kaplan c0b790cb1f = Operator should check for self-assignment 2014-07-03 09:33:25 -04:00
Kyzentun 63f1eea7ca Changed SCREENMAN:SetNewScreen and AddNewScreenToTop to emit an error for an invalid screen instead of crashing stepmania. 2014-07-01 22:40:00 -06:00
AJ Kelly d9dc82e9d6 Merge pull request #210 from kyzentun/HeartCalories
Heart calories
2014-07-01 10:58:57 -05: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 e25995267c Fixed invalid LineNames in ScreenOptionsExtended in _fallback metrics. 2014-06-29 12:43:10 -06:00
Kyzentun 0cd1584b01 Documentation from Matt for ArrowEffects namespace. 2014-06-29 11:30:11 -06:00
sigatrev 466718e016 created ArrowEffects namespace
and exposed all arrow effects functions. This can allow themed elements
to move with columns during gameplay, such as column specific judgments,
flashes, or whatever else.
2014-06-28 01:26:57 -05:00
AJ Kelly fffcdd08e6 Merge pull request #208 from kyzentun/AutoSetStyleInSetCurrSteps
AutoSetStyle convenience
2014-06-27 22:16:27 -05:00
Kyzentun 6cb9dec854 Changed SetCompatibleStyle to only change when incompatible. 2014-06-27 21:11:34 -06:00
Kyzentun afc090ca73 Changed GAMESTATE:SetCurrentSteps and GAMESTATE:SetCurrentTrail to attempt to set a compatible style if AutoSetStyle is true. 2014-06-27 20:20:50 -06:00
freem f6af8fc685 update repo Lua.xml to try and match generated one better.
PlayerOptions is still organized differently (keep it this way, it's better).
(ControllerStateDisplay isn't in Linux Makefile, hence its absence here... dunno if we're gonna bother keeping it or not.)
2014-06-27 16:11:56 -05:00
freem 6643c50eee add missing ActorMultiVertex to VS2008 project file 2014-06-27 16:09:38 -05:00
freem 330fe36a8e update Lua.xml a bit, before I smack the VS2008 project into building ActorMultiVertex 2014-06-27 16:02:26 -05:00
Kyzentun b08d766657 Fixed fake conflict in ThemeAndGamePrefs.lua. 2014-06-26 23:57:40 -06:00
kyzentun c29c9c0cee Merge pull request #201 from kyzentun/FixSetFail
Fix global fail setting overriding song options.
2014-06-26 22:25:21 -06:00
Kyzentun 27c6a54d82 Added AddInputCallback and RemoveInputCallback to Lua API for screen. ScreenManager now passes input to the lua side of each screen in addition to the engine side. 2014-06-26 21:33:54 -06:00
Kyzentun dcf819d297 Moved all sanity checking for OptionRowHandlerLua to a separate function so that a malformed row does not crash StepMania, and instead prints an error to the log file, and creates a row that does nothing. Added AllowAnything arg to CheckEnum. 2014-06-25 12:08:57 -06:00
AJ Kelly 0b7ca07576 Merge pull request #199 from kyzentun/RateCompensation
Changed GetYOffset to make CMods an MMods compensate for music rate.
2014-06-23 14:53:24 -05:00
kyzentun 2ee02c442f Merge pull request #197 from kyzentun/SaveScreenshot
SaveScreenshot for Lua
2014-06-23 12:51:55 -06:00
Kyzentun d472d28490 Fixed accidental old name for ArbitrarySpeedMods in metrics for edit mode. 2014-06-23 00:25:18 -06:00
Kyzentun de8799ebdc Renamed ArbSpeedMods to ArbitrarySpeedMods to avoid the wrath of the OpenGL Architecture Review Board. Added option rows for controlling the size of the increments used by ArbitrarySpeedMods. Simplified logic in ASM and added rounding to avoid excessive precision. Removed pointless setmetatable calls from various lua option rows. 2014-06-20 22:48:00 -06:00
Kyzentun 3a788651e5 Fixed bug that caused global fail setting to override setting the fail type from song options. Added GAMESTATE:SetFailTypeExplicitlySet so that a theme with a custom song options screen can protect its fail setting from being overridden the same way the engine ScreenSongOptions does. 2014-06-20 13:54:56 -06:00
Kyzentun c02a17f393 Revised documentation example for OptionRowHandlerLua to make it slightly more clear. 2014-06-19 21:02:35 -06:00
Kyzentun 045e9edcdd Added ArbSpeedMods function for a better way of setting speed modifiers. Added NotifyHandlerOfSelection to OptionRowHandler to support this. Changed exceptions thrown by OptionRowHandlerLua into log warnings because crashing out is not helpful to themers. Fixed SetEnabledForPlayers in OptionRowHandlerLua to correctly read the PlayerNumber enum. Removed silly git add Docs/Themerdocs/Examples/OptionRowHandlerLua.lua and second check for ExportOnChange. 2014-06-19 06:41:18 -06:00
Ben "root" Anderson 006fcd84a7 Merge pull request #198 from kyzentun/RemoveBadCodes
Disabled pad codes that change modifiers in dance game mode.
2014-06-18 13:57:18 -05:00
Kyzentun b756386fda Changed GetYOffset to make CMods an MMods compensate for music rate. 2014-06-17 03:14:17 -06:00
Kyzentun ba78c38c8b Disabled pad codes that change modifiers in dance game mode. 2014-06-17 01:22:30 -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 f7b808ca29 Merge pull request #195 from kyzentun/AMV_in_projects
AMV in projects
2014-06-17 00:18:07 -06:00
Kyzentun e4f1682964 ASSERT broken into two lines, as per shakesoda's suggestion. 2014-06-16 23:05:31 -06:00