Commit Graph
35382 Commits
Author SHA1 Message Date
Chris PableandColby Klein 55281cebd2 keep xp on life support a bit longer, check for vista+ stuff (#1456) 2017-05-25 00:34:33 -07:00
Colby Klein c5f51d1e5a Call DwmFlush on VSync (might help with stuttering). Note: Requires Windows Vista or later. 2017-05-24 03:37:25 -07:00
Colby Klein 826b902312 STOP ARGUING ABOUT THIS 2017-05-24 03:12:36 -07:00
Colby Klein 41b602c90f EzSockets: Don't leak WinAPI everywhere this gets included. Fixes #1455 2017-05-24 01:23:22 -07:00
AustenandColby Klein 631523ace3 XInput support for the DirectInput driver (#1443)
* XInput support for the DirectInput driver

The XBox360 controller driver for windows has a flaw where the DirectInput backwards-compatible driver registers dance pad arrows as a hat and will not allow opposite arrows to be pressed at the same time. This is not a problem in the XInput interface since the arrows are registered as a DPad and each arrow is a button.

This patch adds XInput support for the DirectInput driver. On initialization XInput controllers will be detected and registered first, followed by enumerating DirectInput devices. During DirectInput enumeration any XInput-capable controllers will be bypassed so that they aren't registered twice.

* Fix joystick input for xinput driver

Needed to compensate for deadzones, magnitude of the inputs, and that the Y axis was reversed.

* Remove unnecesarry using statement for vectors
2017-05-23 14:57:55 -07:00
MrThatKidandColby Klein c04db55f64 Fix up RageTriangle's fmod usage. (#1447)
This fixes the second argument of fmod to be a float, due to the original form not compiling under XCode.
2017-05-13 14:04:32 -07:00
sillybearandColby Klein e92f19c63d [ScreenEdit] Fixed Player NoteField bug when SCREEN_HEIGHT != 480 (#1357) 2017-05-13 11:49:55 -07:00
MrThatKidandColby Klein e15e0e68be Add nITG's various path shape & other modifiers - V2 (#1435)
* Implemented nITG's Square modifiers

Modifiers added:
Square
SquareOffset
SquarePeriod
SquareZ
SquareZOffset
SquareZPeriod

* Implemented nITG's BumpyX Modifiers

Also fixes up some tiny bits pertaining to the square modifiers.
Modifiers Added:
BumpyX
BumpyXPeriod
BumpyXOffset

* Implemented nITG's TornadoZ Modifiers

Modifiers Added:
TornadoZ
TornadoZPeriod
TornadoZOffset

Another commit is needed to update fallback's metrics

* Update fallback's metrics to accommodate TornadoX

* Implemented nITG's Parabola Modifiers

Modifiers Added:
ParabolaX
ParabolaY
ParabolaZ

* Implemented nITG's Sawtooth Modifiers

Modifiers Added:
Sawtooth
SawtoothPeriod
SawtoothZ
SawtoothZPeriod

* Implemented nITG's Zigzag Modifiers

Modifiers Added:
Zigzag
ZigzagPeriod
ZigzagOffset
ZigzagZ
ZigzagZPeriod
ZigzagZOffset

* Implemented nITG's ModTimer modifiers

Modifiers Added:
ModTimer (Lua method name is ModTimerSetting (takes enums. Ex: 'ModTimerType_Song'). Can be activated with mod strings 'modtimer(song/beat/game/default)' )
ModTimerOffset
ModTimerMult

* Remove Log use from ArrowEffects::GetTime()

* Accidentally removed a CPY(m_BatteryLives)

* Implemented nITG's DrunkZ modifiers

Modifiers added:
drunkz
drunkzspeed
drunkzoffset
drunkzperiod

Another commit is needed to update fallback's metrics

* Update fallback's metrics to accommodate DrunkZ

* Implemented nITG's BeatY & BeatZ Modifers

Modifiers Added:
beaty
beatyoffset
beatyperiod
beatymult	
beatz
beatzoffset
beatzperiod
beatzmult

Another commit is needed to update fallback's metrics

* Updated fallback's metrics to accommodate ...

the new Beat modifiers.

* Implemented nITG's Digital Modifiers

Modifers Added:
digital
digitalsteps
digitalperiod
digitaloffset
digitalz
digitalzsteps
digitalzperiod
digitalzoffset

* Removed duplicate zbuffer check.

* Updated Luadocs with the new modifiers

* Removed accidental duplicate Mini from Luadocs

* Split up long modifier lines.

Hopefully, this makes it a bit easier to read.

* Remove accidental commit to root of repo.

* Split up long modifier lines

Hopefully, this makes it easier to read.

* Redid Square functions to not use FastSin

This implementation is based off of 5.2's square_wave function from ModValue.

* Redid zigzag functions to not use FastSin

This implementation is based off of 5.2's triangle_wave function from ModValue.

* Moved square & zigzag calculation to RageMath.

New RageMath functions:
RageSquare
RageTriangle

* Made Square & Digital have the same period...

as Zigzag and Sawtooth.

* Deduplicate tornado calculations.

* Fixed typo in UpdateTornado, and moved UpdateTornado logic to ArrowEffects::Init because it doesn't depend on anything that changes every frame.  Tornado metrics are also loaded in ArrowEffects::Init.

* Deduplicated Beat mod update logic.

The logic is now placed into a function called UpdateBeat.
The m_fBeatFactor members are now a 1D array, similar to m_MaxTornado and m_MinTornado.
2017-05-13 11:34:34 -07:00
sillybearandColby Klein 31e99dc457 Call SetMessage during CurrentSteps / Difficulty Changed (#1361)
This fixes a bug where player difficulty meter and/or color inside MusicWheelItem don't update when switching between difficulties.
2017-05-06 18:14:45 -07:00
KyzentunandColby Klein dd9fa68fef Sprite:Load lua function can set additional texture hints by having a second argument. Also, rec_count_children slipped in Utilities somehow. (#1426) 2017-04-04 17:24:14 -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
KyzentunandColby Klein f10e3ae36a Improve handling of errors in lua functions and speed up calls. (#1427) 2017-04-04 11:36:23 -07:00
MrThatKidandColby Klein 86dbab0100 Added nITG's various sub-modifiers (#1419)
* Added nITG's Bumpy sub-mods and ...

reorganized PlayerOptions::FromOneModString's Confusion checks
This is to help avoid the nesting level of 128 under Windows

* Added nITG's Tipsy sub-mods

Modifiers added:
TipsySpeed
TipsyOffset

* Add nITG's Drunk sub-mods

Modifiers added:
DrunkSpeed
DrunkOffset
DrunkPeriod

* Added nITG's Wave & Expand sub-mods

Modifiers added:
WavePeriod
ExpandPeriod

* Added nITG's Tornado sub-mods

Modifiers Added:
TornadoPeriod
TornadoOffset

* Added nITG's Beat sub-mods

Modifiers added:
BeatOffset
BeatPeriod
BeatMult

* Documented the new sub-mods
2017-03-14 03:27:18 -07:00
MrThatKidandColby Klein 1c9227db22 Add nITG's new Move modifiers (#1411)
* Implemented NITG's MoveX/Y/Z modifiers

Added modifiers:
MoveX1-n: Moves a column in the x direction, 100% = move left one arrow size. 
MoveY1-n: Moves a column in the y direction
MoveZ1-n: Moves a column in the z direction.
2017-02-25 15:48:03 -08:00
Tyler BrekkeandColby Klein 8f332653e1 Persistent Coins (#1405)
On Coin Insert, a file Save/Coin.ini is created if it does not exist, which stores the number of coins currrently in m_iCoins. Whenever m_iCoins is update, the Coin.ini is updated.

On boot, Coin.ini is read and m_iCoins is set to that value. If coins in coin.ini file is greater then MAX_NUM_CREDITS then reset the value to 0.
2017-02-17 08:21:38 -08:00
Matt McCutchenandColby Klein 4b3507f195 Instantiate MESSAGEMAN first. (#1399)
This fixes a well-formed warning, but does it break anything?

It's not clear off hand. Having this up for discussion.

(Matt McCutchen <[email protected]>: Cherry picked from commit
a565a27da8c5278846c06585cb6e218ff8f0f1b7 with a conflict resolution.
This commit fixes a crash on startup in MessageManager::Broadcast when I
build StepMania with -DCMAKE_BUILD_TYPE=Release and g++ 6.3.1 on Fedora
25.  Apparently g++ is optimizing out the "this != NULL" on the grounds
that calling a method on a null pointer has undefined behavior, so the
"m_Logging" is a null dereference.)
2017-02-10 06:40:43 -08:00
Nickito12andColby Klein d96bcae8de NetRoom/SelectBase/Music lua objects. Scrolling with lua funcs and binded to ctrl+pg up/down. Show prev msgs, binded to pg up/down. Music wheel move, selectmusic screen's select current song, chatbox visibility, input en/disabling and UserList visibility lua functions. (#1394) 2017-02-10 04:58:23 -08:00
Nickito12andColby Klein 6225e114ad Online protocol improvements (#1393)
* Chartkey generation

* Simfile filehash generation

* Read filehash on NSCRSG. Add FLU packets and friendlist vectors. Add
getserverversion method. Send chartkey, filehash and rate on start request.

* Use filehash to find the selected song if it is not empty.

* Friendlist update broadcast.

* Send note row size if it's bigger than 1

* Used for chartkey generation

* Define the ReportScore function with numNotes when WITHOUT_NETWORKING is defined
2017-02-10 04:57:59 -08:00
MrThatKidandColby Klein 854410599f Fix oitg_zoom_mode (#1383) 2017-02-08 10:23:58 -08:00
MrThatKidandColby Klein 388d4ac8ea Add nITG's new Confusion modifiers (#1395)
* Implemented nITG's Confusion modifiers.

Modifiers added:
ConfusionOffset
ConfusionX
ConfusionXOffset
ConfusionY
ConfusionYOffset

* Documented new Confusion modifiers.

* Make ConfusionX mods apply to hold heads
2017-02-08 05:44:33 -08:00
Dan GuzekandGitHub 5e37aeaa90 Merge pull request #1362 from wolfman2000/wolf-ffmpeg-mac-disabling
Allow WITH_FFMPEG to work when disabled for Mac.
2016-12-01 18:33:38 -05:00
Jason Felds 8b555bfb30 Allow WITH_FFMPEG to work when disabled for Mac. 2016-12-01 17:12:52 -05:00
Dan GuzekandJason Felds a7d4919d83 Merge pull request #1302 from dguzek/macOS-10-12
fix compilation on macOS 10.12
2016-12-01 16:29:13 -05:00
KyzentunandGitHub 9944ac3957 Merge pull request #1359 from MrThatKid/no-static-temp-effect-state
Backport commit cd5df01 from master branch
2016-11-30 13:43:27 -07:00
MrThatKidandGitHub 02d863397a Don't use static temp state for actor effects
because actors are nested
2016-11-29 18:00:39 -08:00
Colby Klein 5fcc473648 update version info. why are there so many of these 2016-11-24 19:06:41 -08:00
Colby Klein f5100aee0d Fix NOTESKIN:GetMetric() 2016-11-24 18:57:25 -08:00
Kyzentun Keeslala 7ca46bb93a Added PlayerOptions:FromString. 2016-09-16 18:02:08 -06:00
Kyzentun Keeslala 3d98fc7a60 Add oitg_zoom_mode_actor. Turn off minimaid lights when exiting. 2016-08-29 12:43:04 -06:00
KyzentunandGitHub 45e0787a74 Merge pull request #1248 from stepmania/master
Update 5_0 branch
2016-08-10 17:15:24 -06:00
Kyzentun Keeslala 074d244694 lol whoops 2016-08-05 12:01:48 -06:00
Kyzentun Keeslala 832fd0e1b6 Use case insensitive lookup when removing invalid sound drivers, the same lookup used when creating the sound driver. Change ffmpeg fetching to fetch from stepmania's mirror because ffmpeg.org moved theirs. 2016-08-04 16:57:31 -06:00
Kyzentun Keeslala d215dd99a0 Fix auto set style in course mode. 2016-07-14 18:12:59 -06:00
Kyzentun Keeslala ccc26c305a UsePauseMenuInsteadOfGiveUp wasn't necessary for making start not give up on a song. Changed png load back to use setjmp/longjmp. 2016-07-12 21:00:54 -06:00
KyzentunandGitHub 8e6d44edce Merge pull request #1218 from dguzek/ActorSound
clean up ./Docs/Themerdocs/ActorDef.txt
2016-07-08 07:42:14 -06:00
Dan Guzek 1ca660f034 clean up ActorDef.txt
This should resolve issue #781.
2016-07-08 02:55:07 -04:00
KyzentunandGitHub d22c0a2d5e Merge pull request #1213 from sillybear/patch-10
[Announcer] Fixed a bug that keep "evaluation full combo W4" playing when a player get a Good Full Combo and a failed grade.
2016-07-02 16:48:45 -06:00
sillybearandGitHub a30befeec3 [Announcer] Fixed a bug that keep "evaluation full combo W4" playing when a player get a Good Full Combo and a failed grade. 2016-07-03 01:04:11 +08:00
Jason Felds 78494f857d Preparing for 5.0.12. 2016-06-30 18:40:18 -04:00
Kyzentun Keeslala a9a1b82d8c Fix crash in online mode by not changing the difficulty for P2 when P2 isn't playing. 2016-06-30 13:11:13 -06:00
Kyzentun Keeslala 2a2007b9c8 Trim chart name, description, and credit after loading them from the simfile. 2016-06-29 19:33:36 -06:00
Jason Felds e590616873 Re-enable exceptions for Xcode.
We're at the point where we should have done this awhile ago.
2016-06-29 18:42:50 -04:00
Kyzentun Keeslala 8a7b1d407a Ignore auto set style when filtering songs for the music wheel in online mode. 2016-06-29 15:36:48 -06:00
Kyzentun Keeslala 2f39442ccd Added Docs/Themerdocs/pause_menu.md to explain pause menu logic. Updated changelog. 2016-06-28 21:00:17 -06:00
Kyzentun Keeslala ca9fd7c707 Fixed bug that allowed pausing by pressing two different pause buttons instead of double tapping one. Moved pause logic to script in _fallback to make it easier for other themese to use. 2016-06-28 16:12:45 -06:00
Kyzentun Keeslala 6634f7de04 Fixed autoplay on rolls bug by not flashing ghost row on a hidden note. 2016-06-26 15:50:25 -06:00
Kyzentun Keeslala a2337b7f01 Forgot to mention UsePauseMenuInsteadOfGiveUp metric in changelog. 2016-06-24 17:10:40 -06:00
Kyzentun Keeslala 7bd64c32af Added AllowHoldForOptions preference.
Back button now only backs out of a screen on a press.
Updated changelog.
2016-06-24 16:55:01 -06:00
KyzentunandGitHub 019ef5728a Merge pull request #1173 from kyzentun/no_alloca_in_sound
Alloca problems
2016-06-24 16:50:45 -06:00
KyzentunandGitHub 4305c8a786 Merge pull request #1105 from sillybear/patch-7
Springtime simfile song offset, bpm/bpm changes and other cosmetic ssc text updates
2016-06-24 16:49:57 -06:00