Devin J. Pohly
e18bbc72ea
Revert "msys git defaults are stupid and breaking things."
...
This reverts commit 54933034e8 .
We might have to figure out a more selective way to do this. For now,
let's not have people on all the other OSes getting stuck-modified files
like hg did.
2014-03-05 10:47:44 -05:00
Devin J. Pohly
bb1b6a81c6
Special case player number 1/2 in ApplyGameCommand
...
This function, oddly, used to take a 1 or 2 for the player number where
other nearby functions (e.g. IsPlayerEnabled) would take the proper enum
value, 0 or 1. If the old-style syntax (raw number) is used, also use
the old-style interpretation.
2014-02-23 16:41:19 -05:00
Devin J. Pohly
10d872db3f
Accept old-style raw values for enum parameters
...
These will still be checked to ensure they are valid members of the
enumeration, so it's not as ugly or dangerous as it used to be.
2014-02-23 16:39:10 -05:00
Devin J. Pohly
2907fa06a7
Try to resolve enums old-style if new-style fails
...
This makes e.g. cmd(blend,add) work like cmd(blend,'BlendMode_Add').
Resolution in this case is case-insensitive like it used to be.
2014-02-23 15:28:20 -05:00
Devin J. Pohly
5051d85288
Add lowercase strings to Lua enum reverse table
...
Step one toward compatibility with case-insensitive legacy command
syntax.
2014-02-23 15:01:34 -05:00
Devin J. Pohly
1e04f576d2
Debug assert should fire on failure, not success!
2014-02-23 00:23:23 -05:00
Devin J. Pohly
f1cc0a4a19
Correct array bound for ModIcon text
...
Should fix problems with selecting more than NumModIcons mods in SMO.
2014-02-22 23:09:24 -05:00
Devin J. Pohly
d07dd295a4
Fix F3+1 handling in Event Mode
...
Since Event+Pay is treated as Free Play mode, the debug overlay menu
would get stuck on Free if Event Mode was on.
2014-02-22 20:14:20 -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
Devin J. Pohly
77ece5a414
Process FT_Xml as legacy actors
...
Everything from here on out is edge cases.
2014-02-20 10:59:50 -05:00
Devin J. Pohly
60ce34cfaa
Reconnect legacy sprites
2014-02-20 10:59:50 -05:00
Devin J. Pohly
cd526b8e44
ActorUtil: add loading behavior for legacy actors
...
Filetypes are not yet linked in, so this shouldn't change anything.
The loading/guessing logic is ported from OpenITG.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
58eddc2652
Annotate XNode trees with legacy attribute
2014-02-20 10:59:49 -05:00
Devin J. Pohly
a9d5931533
Command/LuaManager: add legacy command parsing
...
Only enabled when compiling via CompileXNodeTree.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
c9ac7e7a53
Resurrect Annotate function for XNodes
...
No-op. Function isn't actually used yet.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
da5eb84730
Player: broadcast StepPN message (compat)
...
For backwards compatibility, broadcast the old StepP1/2 message in
addition to the new Step message. New themes, charts, etc. should of
course use the new message with parameters.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
59674ad6f2
BitmapText: check both File and Font as path
...
Allow BitmapText to specify font from Theme/Fonts as well as locally,
using either the Font or the old-style File attribute.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
000498ba63
Foreground: don't issue a spurious OnCommand
...
We don't need the ending beat until the change has already started, so
just use the legitimate On to calculate things rather than doing
anything hacky.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
9801ec52b2
Foreground: don't propagate OnCommand
...
We load foreground changes at the beginning of the screen, but they
shouldn't be issued an OnCommand until it's time for them to start. The
Foreground layer, however, should get the OnCommand right away. So
don't propagate it, since we already issue On manually to changes.
2014-02-20 10:59:49 -05:00
Devin J. Pohly
3ac15cc1ce
Warn on failed command compilation
2014-02-20 10:59:48 -05:00
Devin J. Pohly
80bf2f8d93
Re-add FT_Xml and FT_Sprite to FileType enum
...
Doesn't associate any behavior with them yet.
2014-02-20 10:59:48 -05:00
Devin J. Pohly
a8018575b8
Use non-const XNode in ActorUtil::LoadFromNode
...
No-op aside from constness. Need this later.
2014-02-20 10:59:48 -05:00
Devin J. Pohly
b2744946c9
fix memory leak in JACK driver
2014-02-08 21:40:40 -05:00
Devin J. Pohly
db894326e7
fix port-choosing logic in JACK driver
2014-02-08 21:40:40 -05:00
Devin J. Pohly
312d2b1226
fix type-punning warning
...
This should be a no-op (though I wouldn't be offended if someone checks
me on that). I think the code's clearer without casting back and forth
anyway.
2014-02-08 21:39:27 -05:00
Devin J. Pohly
6ac4fcdbd3
remove accidentally shadowing declaration
...
With this in place, the orgSel was always Invalid.
2014-02-08 21:39:26 -05:00
Devin J. Pohly
3322fa9144
ensure that GetCreditsMessage returns a value
...
The unhandled case: in Free Play mode and players can't join. Can this
even happen?
2014-02-08 21:39:26 -05:00
Devin J. Pohly
57a142b76f
fix logic/crash in CoinModeNoHome option
...
This option was returning -1 for an index and triggering an assert, and
the logic in the other direction was typoed.
2014-02-08 21:39:26 -05:00
Devin J. Pohly
911a0d6471
remove unnecessary enum-to-int cast
2014-02-08 21:39:26 -05:00
Devin J. Pohly
9916275a8a
fix signed-compare warnings
...
The m_iSelection array could probably be made unsigned... IF we were
confident we never try to assign it a negative number, of which fact I'm
not convinced.
2014-02-08 20:30:33 -05:00
Devin J. Pohly
4298f2542d
Check MakeActor rvs for NULL
2013-11-02 04:11:30 -04:00
Devin J. Pohly
5d9c3aaa59
propagate Attack::GetAttackBeats precondition
2013-11-02 00:58:01 -04:00
Devin J. Pohly
4520186722
ActorMultiTexture: warn on bad SetTextureMode index
2013-11-02 00:24:35 -04:00
Devin J. Pohly
3aee5472f8
ActorMultiTexture: warn on adding nil
2013-11-01 22:34:38 -04:00
Devin J. Pohly
b351b757b4
ActorMultiTexture: actually return number of units
2013-11-01 22:34:22 -04:00
Devin J. Pohly
d797790736
ActorFrameTexture: warn on re-Create
2013-11-01 22:14:18 -04:00
Devin J. Pohly
9f875e9bfb
warn on bad UpdateFunction
2013-11-01 21:52:56 -04:00
Devin J. Pohly
af5022d7a8
warn on bad DrawFunction
2013-11-01 21:52:15 -04:00
Devin J. Pohly
88c0bbf8c9
Merge.
2013-10-23 00:08:31 -04:00
Devin J. Pohly
6a91621f10
Warn on unset or nil command in RunCommands
2013-10-20 23:05:26 -04:00
Devin J. Pohly
824b84655a
Warn on ActorFrame clearzbuffer
2013-10-20 22:44:33 -04:00
Devin J. Pohly
9555ddd82e
BeginTweening: ensure precondition
2013-10-20 18:02:13 -04:00
Devin J. Pohly
0b378d55f5
SetEffectTiming: better precondition, and check it
2013-10-20 17:37:45 -04:00
Devin J. Pohly
70b52946f4
SetEffectPeriod: propagate precondition
2013-10-20 16:59:24 -04:00
Devin J. Pohly
ecdc352e96
Actor: propagate some default parameters
2013-10-20 16:34:19 -04:00
Devin J. Pohly
fb77dd8317
Specify which -Wno-unused we want
2013-10-14 12:54:48 -04:00
Devin J. Pohly
146a77274f
Update changelog
2013-10-14 01:09:57 -04:00
Devin J. Pohly
d363db2132
Clean out strings now that sm-ssc is something else
2013-10-13 23:02:51 -04: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
afe3009c7d
fix lua error
2013-10-07 22:28:26 -04:00
Devin J. Pohly
d9a37be653
finish removing ScreenPackagesSSC
...
Missed it in the Xcode projects and HelloWorld.
2013-09-26 12:45:38 -04:00
Devin J. Pohly
9f4d91418f
fix semantics in XNode compiling
2013-09-24 14:24:11 -04:00
Devin J. Pohly
c3c4da2d65
PIUIO: fix lights mapping for five-panel input
...
Based on info from bug 990.
2013-09-23 15:43:16 -04:00
Devin J. Pohly
d6631caf3c
Wire in new CustomSpeedMods implementation
...
Forgot this little bit earlier. Whoops!
2013-09-20 16:16:21 -04:00
Devin J. Pohly
2844703b60
Adjust indentation
...
No-op.
2013-09-07 17:30:52 -04:00
Devin J. Pohly
366cfae8b9
Fix the LastSeen logic for autokeysounds
...
We were never actually setting iLastSeenRow, so the if statement wasn't
meaningful anyway.
2013-09-07 17:28:19 -04:00
Devin J. Pohly
63a31d41d8
Revert "fix visual glitch on autoplay rolls"
...
This reverts commit 48975f7f1d .
Fixed one visual glitch but introduced a weirder one. Revert.
2013-09-07 16:56:00 -04:00
Devin J. Pohly
5f1936264b
Add missing header. Oops.
2013-09-07 14:48:47 -04:00
Devin J. Pohly
ca1cdbabb0
Make mount ArchHooks match across platforms
2013-09-07 10:53:33 -04:00
Devin J. Pohly
8cbfbf377c
update changelog
2013-09-07 00:53:05 -04:00
Devin J. Pohly
d5345f2f37
Rewrite CustomSpeedMods to use new profile hooks
...
This fixes bug 1054.
2013-09-06 23:38:03 -04: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
9309ee09e9
MemoryCardDriver: parse fstab comments
...
Also silences some unneeded warnings.
2013-09-05 15:34:25 -04:00
Devin J. Pohly
1ef4c16bb5
update a few old sm-ssc URLs
2013-09-01 00:05:11 -04:00
Devin J. Pohly
76fa79caa6
update to a more complete Lua.xml
...
The current placement of the call to GetLuaInformation misses a bunch of our
"singletons." Moving it causes problems, but we can at least include them in
the documentation as if it worked properly. :)
2013-08-31 23:59:22 -04:00
Devin J. Pohly
dc32ee0486
editor: re-enable convert to delay/stop at beat 0
...
This should behave nicely after the previous commit.
2013-08-30 15:10:30 -04:00
Devin J. Pohly
f530fac433
TimingData: don't break indefinite segments when deleting rows
...
We had BPM hard-coded in, but other indefinite segments (scroll, tickcount,
combo, etc.) were not being preserved, causing editor problems/crashes.
2013-08-30 15:09:49 -04:00
Devin J. Pohly
b75975e9bd
editor: don't offset by 1 row when shifting TimingData
2013-08-30 14:43:14 -04:00
Devin J. Pohly
53f861bdd4
fix duplicate removal in editor help
...
The sort was in place for this purpose. Let's use it on the modifier keys, but
not sort the regular keys, since the order matters for those.
This isn't really the right way to do this from the start, but that'll be
something that could be rewritten at another time given that our mappings are
still pretty much hardcoded.
2013-08-30 14:09:03 -04:00
Devin J. Pohly
9b78e150bd
documentation update
2013-08-30 13:33:11 -04:00
Devin J. Pohly
01d6d5a3b3
fix some -Wreorder warnings
...
No-op.
2013-08-30 01:20:05 -04:00
Devin J. Pohly
48975f7f1d
fix visual glitch on autoplay rolls
...
When there were tap notes on the same row as the start of a roll, autoplaying
the roll would result in the receptors on other tracks to glow. This was
because the Step() call would use the roll's head row for a parameter, which
included the other notes. This changes that parameter to -1 to automatically
use the current row in the song, which makes more sense anyway.
Fixes bug 241.
2013-08-29 17:04:22 -04:00
Devin J. Pohly
3233542309
fix hack regarding ModIcons and Lua option rows
...
Since the ModIcon is copied from the option row type, make sure we actually
copy everything it'll need, since Load() isn't called again.
2013-08-29 14:36:57 -04:00
Devin J. Pohly
9ec3b61bd1
editor: don't sort keys in help screen
...
The order of these actually matters; we shouldn't be resorting them.
Fixes issue 86.
2013-08-29 13:32:24 -04:00
Devin J. Pohly
5868571f37
MacOS: fix potential crash due to language preferences
2013-08-28 11:16:41 -04:00
Devin J. Pohly
3527ad1ab8
JACK: let Init do the cleanup on failure
...
Previously, if Init failed, we were calling jack_client_close twice and
segfaulting.
2013-08-26 08:40:52 -04:00
Devin J. Pohly
7b7dfda3bc
Update Changelog with recent commits
2013-08-23 01:12:28 -04:00
Devin J. Pohly
d8d9f466a9
FFmpeg: remove unused PTS logic
...
No-op.
2013-08-23 00:08:25 -04:00
Devin J. Pohly
df543ff86c
FFmpeg: use the cached pkt_dts for timestamps
...
This appears to work far more consistently at the beginnings and ends of
videos.
2013-08-23 00:02:07 -04:00
Devin J. Pohly
9f06195b73
FFmpeg: reinitialize m_fLastFrame in Init()
...
After a Rewind(), the m_fLastFrame wasn't set back to 0. Now it is.
2013-08-23 00:00:00 -04:00
Devin J. Pohly
de74eb5814
FFmpeg: don't unconditionally skip first frame
...
This condition was true when 0 - 0 == 0, so the first frame was being skipped.
2013-08-22 23:58:38 -04:00
Devin J. Pohly
be082b6a7e
FFmpeg: use stream time_base to estimate FPS, not codec
...
Fixes the estimated frame length when we don't get an explicit DTS for the
frame. Also fixes a comment typo.
2013-08-22 16:55:24 -04:00
Devin J. Pohly
cc8ef654ca
MovieTexture_FFmpeg: move class defs to header file
...
No-op. Should make it a little easier to find things in the FFmpeg driver.
2013-08-22 15:11:57 -04:00
Devin J. Pohly
2933a71d5d
JACK: fix race condition with decode thread
...
It was possible for the JACK callback to execute before the decode thread had
been started, causing an assertion.
2013-08-20 09:33:35 -04:00
Devin J. Pohly
dcb5087b1b
default theme: fix saving of ThemePrefs
...
Since this was in a `decorations' layer, the outer ActorFrame was being
stripped along with its OnCommand.
2013-08-14 22:19:59 -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
2ec80d86b1
editor: fix Undo for Alter and Turn menus
...
Looks like someone figured out the problem, implemented the required
functionality... and then just didn't use it.
2013-08-12 20:47:07 -04:00
Devin J. Pohly
c60065a359
woooooooooah changelog.
...
Add yo stuff if I forgot anything (or anyone!).
2013-08-09 14:35:34 -04:00
Devin J. Pohly
424e26ee22
Update IRC channel
2013-08-09 14:03:36 -04:00
Devin J. Pohly
72b490534e
Fix stereo problem - samples, not frames
2013-08-08 18:08:19 -04:00
Devin J. Pohly
eb634bae3e
Finish JACK audio driver: now with actual audio!
2013-08-08 14:56:38 -04:00
Devin J. Pohly
98352844ab
Add JACK sample rate callback
...
This will be necessary once we start the decoding thread, which calls
GetSampleRate a lot.
2013-08-08 14:43:15 -04:00
Devin J. Pohly
982d9e2dbc
Add MixDeinterlaced to RageSoundDriver
...
This complements the read_deinterlace function just added.
2013-08-08 13:30:39 -04:00
Devin J. Pohly
deab7e6f47
Add deinterlacing function to RageSoundMixBuffer
...
JACK processes every channel separately, so we need this. The audio data is
interlaced all the way back at RageSound::GetDataToPlay(), so this is an easier
hack for now than using deinterlaced until it's needed.
2013-08-08 13:24:21 -04:00
Devin J. Pohly
f9208e1276
Add skeletal sound driver for JACK
...
This doesn't make any sound yet, but it creates the JACK client and connects
the requested ports if any.
2013-08-06 19:24:55 -04:00
Devin J. Pohly
db729ff6de
Remove unus(ed|ual) ssasn function to fix warnings
...
Why in tarnation would you assign an int to a string anyway? We're
apparently not using this, so remove it for now. Should fix a lot of
unused-parameter warnings.
2013-07-29 11:58:19 -04:00
Devin J. Pohly
1da76c3a54
fix Lua warning by removing redundant code
2013-07-21 19:29:28 -04:00
Devin J. Pohly
9c1da9cfd4
finish backouts that didn't complete because of merge conflicts
2013-07-19 11:25:36 -04:00
Devin J. Pohly
b423268568
Further simplify GetYOffset
...
And add a comment. *pats self on back*
No-op.
2013-07-18 15:52:56 -04:00
Devin J. Pohly
5c8d021e6e
Simplify logic in GetYOffset for arrows
...
No-op.
2013-07-18 14:40:16 -04:00