freem and Jonathan Payne
ddcf60943e
make a note about DirectX 9 in the NSIS installer script
...
(I'm not sure how to fix it just yet)
2014-08-02 00:38:41 -07:00
freem and Jonathan Payne
f3ffa60bf7
add missing nextrow character for options rows
2014-08-02 00:38:40 -07:00
Kyzentun and Jonathan Payne
2134151b90
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-08-02 00:38:40 -07:00
Kyzentun and Jonathan Payne
2e43a70752
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-08-02 00:38:39 -07:00
Kyzentun and Jonathan Payne
1a18d64f09
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-08-02 00:38:38 -07:00
Kyzentun and Jonathan Payne
8ef6be9a94
Changed LogDisplay to use the full message for IgnoreIdentical.
2014-08-02 00:38:38 -07:00
Thai Pangsakulyanont and Jonathan Payne
1c8436ec91
Make StepMania compile in Xcode 5.1.1
...
project:
- Mac OS X 10.6 SDK is used.
- Architecture has been set to 32-bit. Otherwise, `MemoryCardDriverThreaded_MacOSX` and `HIDDevice` will not compile.
- Replaced the outdated `README` file with a new `README.md`.
libmad:
- Use FPM_64BIT instead of FPM_INTEL. Otherwise, it will not compile. Also, latest Xcode seems not to support `$(...)` expansion in defining macros. Instead, they are hardcoded in the build settings.
stepmania:
- Removed compiler flags `-finline-limit` and `-falign-loops=16`
2014-08-02 00:38:37 -07:00
freem and Jonathan Payne
df825646c7
add missing Class attribute for ScreenOptionsEditProfile
2014-08-02 00:38:36 -07:00
Kyzentun and Jonathan Payne
1398f477c9
Added IgnoreIdentical param to LogDisplay for use in ignoring identical error messages.
2014-08-02 00:38:36 -07:00
sigatrev and Jonathan Payne
ada902140e
add OldStyleStringToDifficulty method
...
because SM recognizes them in .sm files.
2014-08-02 00:38:35 -07:00
sigatrev and Jonathan Payne
e8e617e545
SavePreferences
...
for custom option screens.
2014-08-02 00:38:35 -07:00
Kyzentun and Jonathan Payne
9b08ab5b52
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-08-02 00:38:34 -07:00
Kyzentun and Jonathan Payne
5828b2529b
Fixed two typos.
2014-08-02 00:38:33 -07:00
Kyzentun and Jonathan Payne
adfc259b71
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-08-02 00:38:33 -07:00
sigatrev and Jonathan Payne
fe08728393
add SOUND:IsTimingDelayed method and fixed SOUND:PlayMusicPart
...
PlayMusicPart does not immediately start the new music. IsTimingDelayed
will return true until the new music has started.
The "applyRate" argument of PlayMusicPart was being applied to the
"align_beat" property. Added an additional argument to for "align_beat"
and made "applyRate" work properly.
2014-08-02 00:38:32 -07:00
Kyzentun and Jonathan Payne
4dfeb3eb89
Changed NoteSkinManager::LoadActor to always return a Sprite on failure because some elements must be a sprite.
2014-08-02 00:38:31 -07:00
Kyzentun and Jonathan Payne
32664e7e17
Changed ArbitrarySpeedMods to use a large increment that is not forced to be a multiple of the smaller increment.
2014-08-02 00:38:31 -07:00
Kyzentun and Jonathan Payne
4b7a6d092a
Added Common Error font for use by error reporting so that themes that replace Common Normal won't have a problem.
2014-08-02 00:38:30 -07:00
Kyzentun and Jonathan Payne
8657d70fe1
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-08-02 00:38:29 -07:00
Kyzentun and Jonathan Payne
1ff292ad24
Readded increment_version.pl because it's actually needed for building on OSX.
2014-08-02 00:38:29 -07:00
Dan Guzek and Jonathan Payne
a40b7aa921
new mkrelease script for OS X
...
This commit does a few things:
1. includes a new mkrelease script for OS X devs to bundle releases with
2. removes the old Perl scripts that sort of accomplished the same task
3. includes a README documenting how to use the new script
The old scripts were brittle and inefficient.
The new script is written in Ruby because it is what I'm familiar with and because OS X has shipped with Ruby since version 10.5.0.
2014-08-02 00:38:28 -07:00
Kyzentun and Jonathan Payne
88f56cb0ec
Tested and fixed error reporting for NoteSkinManager. Changed Sprite::Sprite() to load the default texture.
2014-08-02 00:38:27 -07:00
freem and Jonathan Payne
aef6e287f9
[ScreenSystemLayer] restore "Not Present" text in CoinMode_Home
...
(also gave a possible answer to the comment added during the removal of pay mode)
2014-08-02 00:38:27 -07:00
Kyzentun and Jonathan Payne
a9056c20d1
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-08-02 00:38:26 -07:00
Kyzentun and Jonathan Payne
8a6f6a7124
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-08-02 00:38:26 -07:00
Kyzentun and Jonathan Payne
4343a99ea9
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-08-02 00:38:25 -07:00
Kyzentun and Jonathan Payne
5df80b6e0e
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-08-02 00:38:24 -07:00
sigatrev and Jonathan Payne
acf15aed53
SetGame lua docs
2014-08-02 00:38:23 -07:00
sigatrev and Jonathan Payne
ce2b729710
SetGame method
...
Added SetGame method to GameManager.
Altered Stepmania::ChangeCurrentGame() to allow a second input,
selecting which theme will be loaded after game is changed.
2014-08-02 00:38:23 -07:00
Pat Mac and Jonathan Payne
beb8c40ce0
Fixes issue #216 : Cannot build with --without-ffmpeg
2014-08-02 00:38:22 -07:00
freem and Jonathan Payne
c0eff36375
fix autogen freaking out after the Minimaid commit
...
thanks to @spigwitmer for the fix
2014-08-02 00:38:22 -07:00
Kyzentun and Jonathan Payne
cc548a8cb5
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-08-02 00:38:21 -07:00
Kyzentun and Jonathan Payne
8e74a512ad
Changed InputFilter to not assert on unrecognized input devices or buttons.
2014-08-02 00:38:20 -07:00
freem and Jonathan Payne
194c8de8f8
add pkgingo's (Win32) Minimaid driver.
...
* new makefile config option "HAVE_MINIMAID"
* update all Visual Studio projects
2014-08-02 00:38:20 -07:00
Kyzentun and Jonathan Payne
1f979fff5f
Rewrote ScreenSystemOverlay overlay/default.lua to be able to display multiple messages. Added Reload Overlay Screens option to debug menu.
2014-08-02 00:38:19 -07:00
Kyzentun and Jonathan Payne
a74a49af78
Changed many uses of Dialog::OK and LOG->Warn to use ReportScriptError.
2014-08-02 00:38:18 -07:00
Kyzentun and Jonathan Payne
a6c54ebd90
Made Screen not go to next screen if the screen name is empty.
2014-08-02 00:38:17 -07:00
Kyzentun and Jonathan Payne
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
Rémy Léone and Jonathan Payne
cd1292dd18
Adding a .travis.yml file to use the travis-ci.org
...
From wikipedia:
Travis CI is a hosted, distributed continuous integration service used
to build and test projects hosted at GitHub.
Travis CI is configured by adding a file named .travis.yml, which is a
YAML format text file, to the root directory of the GitHub repository.
Travis CI automatically detects when a commit has been made and pushed
to a GitHub repository that is using Travis CI, and each time this
happens, it will try to build the project and run tests. This includes
commits to all branches, not just to the master branch. When that
process has completed, it will notify a developer in the way it has been
configured to do so — for example, by sending an email containing the
test results (showing success or failure), or by posting a message on an
IRC channel. It can be configured to run the tests on a range of
different machines, with different software installed (such as older
versions of a programming language, to test for compatibility).
2014-08-02 00:38:16 -07: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