Commit Graph
35960 Commits
Author SHA1 Message Date
quietly-turning a892cbc4dd update Classes and Enums in bundled Lua.xml
This updates Actor classes, class methods, and Enums listed in the
bundled copy of Lua.xml to be current.

I used the command-line arg --ExportLuaInformation, to generate a wholly
new file, then manually removed some methods (e.g. literally numbered
PlayerOptions methods ported from notitg, CamelCase aliases of
spline-related methods) to keep previous manual modifications intact.

This doesn't touch GlobalFunctions in Lua.xml; those need further
review.
2020-05-11 05:59:08 -04:00
quietly-turningandGitHub d03ec2658f Merge pull request #1994 from DinsFire64/itgio
ITGIO Support for Linux
2020-05-09 17:30:01 -04:00
din e799b292da ITGIO Support for Linux 2020-05-08 19:49:40 -05:00
aeubanksandGitHub bbafb49b3a Don't force libc++ with clang (#1984)
Clang works with libstdc++.
2020-04-30 13:24:58 -07:00
aeubanksandGitHub e16017bd1a Clean up InputHandler_SextetStream (#1985)
Before, this ended up calling a virtual method in the constructor,
which C++ does not allow, and I got weird crashes.

This removes a lot of unused code and gets rid of unnecessary abstractions.
2020-04-30 13:24:23 -07:00
quietly-turningandGitHub f79dc3dbda Merge pull request #1990 from quietly-turning/more-aspect-ratios
add 21:9 and 9:16 to ConfAspectRatio in _fallback
2020-04-29 23:08:32 -04:00
quietly-turning 21eed3f235 add 21:9 and 9:16 to ConfAspectRatio in _fallback
This adds choices for 21:9 (Ultrawide) and 9:16 (widescreen display in
portrait mode) to the _fallback theme.  Previously, users would have to
manually edit Preferences.ini to achieve either of these.

Since "21:9" is the common marketing term for what is actually 64:27,
I've slightly extended GenChoices() in ConfAspectRatio() to use a "name"
string from the winFracs table is one is provided. If not, the original
behavior of generating user-facing choices from the raw values is
preserved.

See: https://wikipedia.org/wiki/21:9_aspect_ratio

I updated the global AspectRatios table in _fallback/02 Utilities.lua to
match.
2020-04-28 22:47:54 -04:00
quietly-turningandGitHub 8650fc420e Merge pull request #1982 from quietly-turning/API-doc-cleanup
fix + clarify multiple issues in LuaDocumentation.xml
2020-04-18 00:35:51 -04:00
quietly-turning 79272eedde fix+clarify multiple issues in LuaDocumentation
* removed ClearEnterMappedKeys from global functions
* typo fix in rawequal
* fix explanations of global SecondsToXXXX functions
* add to explanation of lua.ReportScriptError
* explain how ActorSound class can be used in Lua as "Sound"
* fix explanation for Course.GetCouseDir
* fix specified args for GAMESTATE.GetPreferredDifficulty
* remove HighScore.GetHighScore since it doesn't exist
* document special args for ScreenSelectProfile.SetProfileIndex
* fix specified args for Style.GetColumnInfo
* add examples of return value for Style.GetColumnInfo
* remove lingering mentions of SM4
2020-04-17 17:30:26 -04:00
tertuandGitHub c306c13112 fix documentation for lua.RunWithThreadVariables 2020-04-16 08:39:32 -05:00
quietly-turningandGitHub fe9034aa91 Merge pull request #1977 from teejusb/5_1-new
Fix float parsing errors
2020-04-10 15:23:09 -04:00
teejusb 620ef3609d Revert to use std::strtof insted of std::stof to make travis happy 2020-04-08 22:41:19 -07:00
teejusb 1d365fbc18 Fix float parsing errors 2020-04-08 22:01:16 -07:00
quietly-turningandGitHub caf2f6522e Merge pull request #1960 from Prcuvu/texture_font_generator_fix
Fix Texture Font Generator for Windows x64 build
2020-02-13 14:46:05 -05:00
quietly-turningandGitHub 2b1de03fbb Merge pull request #1958 from Prcuvu/split_zh_language
Split Chinese language into two different locales based on Simplified or Traditional script
2020-02-13 14:40:35 -05:00
x0rblandGitHub 0b34a0df3a Fix crash with AllowMultipleHighScoreWithSameName (#1963) 2020-02-12 06:10:28 -08:00
x0rblandGitHub 50de3a1f2d Fix two disqualification bugs: C-mods and rate mods now properly disqualify (#1965) 2020-02-11 12:15:16 -08:00
Prcuvu 360db59e0d Fix Texture Font Generator for Windows x64 build 2020-02-11 01:46:29 +08:00
Prcuvu b38377403e Add LOG->Warn on fallback to English, for consistency on all platforms 2020-02-08 17:08:25 +08:00
Prcuvu 2baade1dd7 ArchHooks modified for macOS 2020-02-08 17:03:27 +08:00
Prcuvu d893c84b7b ArchHooks modified for Unix 2020-02-08 16:08:02 +08:00
Prcuvu de4dc62846 Split Chinese language into Simplified script and Traditional script
ArchHooks function modified for Windows.
2020-02-08 15:46:00 +08:00
Tracy WardandGitHub eca21d6b29 Merge #1951: Fix XInput library linkage for compatibility down to Windows Vista 2020-02-07 07:42:09 -05:00
quietly-turningandGitHub 500b03a611 Merge pull request #1952 from Prcuvu/readme-lua-url
Update URLs in README.md
2019-12-31 13:43:08 -05:00
Prcuvu a124b129d1 Update URLs in README.md 2019-12-31 23:19:03 +08:00
Prcuvu 532c430d8f Fix XInput library linkage for compatibility down to Windows Vista 2019-12-31 16:04:17 +08:00
tertuandGitHub 3716e8ae56 Merge pull request #1947 from Prcuvu/lua_error
Force Lua to be compiled as C++ code when using MSVC
2019-12-29 18:13:00 -06:00
quietly-turningandGitHub 49b99e702c Merge pull request #1941 from dwmh/5_1-new
Fix leftover macro loop in JACK sound driver
2019-12-23 05:54:01 -05:00
Prcuvu 123b01930e Force Lua to be compiled as C++ code when using MSVC
The setjmp/longjmp error handling mechanism may fail with Microsoft C++ since
they utilize the same stack-unwinding mechanism with C++ exception handling.
Lua calling longjmp after luaD_rawrunprotected returns causes unpredictable
behaviour. On Windows x64 build, this causes lua_error to crash the whole
StepMania program.

Lua provides the same macros to utilize C++ throw/catch, which effectively
solve the problem. Just specify Lua library as C++ code to enable them.

Reference: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/longjmp
2019-12-22 18:38:07 +08:00
dguzekandGitHub 35b557b8d6 Merge pull request #1945 from DinsFire64/autogenlightsfix
restore autogen lights
2019-12-17 20:35:31 -05:00
dinsfire64 95122bbccb restore autogen lights 2019-12-16 20:44:02 -06:00
dguzekandGitHub ced9249b01 Merge pull request #1942 from dguzek/local-variables
change a few global Lua variables to be local
2019-12-09 20:57:22 -05:00
Dan Guzek 9666bb0ae2 change a few global Lua variables to be local
Running StepMania with the command line argument of --ExportLuaInformation while the current 5.1's default theme (Lambda) was selected added some seemingly stray Lua variables to the Constants table in ./Docs/Luadoc/Lua.xml.

I spotted them here: http://dguzek.github.io/Lua-For-SM5/LuaAPI#Constants

I'm assuming num, bPreference, and bCategory don't need global scope, so I added the local keyword where appropriate.
2019-12-09 19:45:57 -05:00
Matias Hilden cb10b61d34 fix leftover macro loop in JACK sound driver 2019-12-08 13:52:07 +02:00
Martin NatanoandColby Klein c5096d24de Update vertex count stats when drawing smooth lines (OGL) (#1932)
The statistics are updated in the generic codepath, which is not used by
RageDisplay_Legacy::DrawLineStripInternal() when rendering smooth lines.

Note, that the output vertex count can differ a lot between smooth lines
(2) and non-smooth lines (~38 output vertices per input vertex), so
updating the statistics can not be done in RageDisplay::DrawLineStrip()
like it is donw for the other draw functions.
2019-11-14 12:40:35 -08:00
Martin NatanoandColby Klein 6a4551f958 Detect 8:3 as widescreen (#1929)
The IsUsingWideScreen() function only checked 16:10 and 16:9, now we just
check that the ratio is greater than 16:10. (Coincidentally that's also
what the documentation states about this function.)
2019-11-03 12:10:05 -08:00
Martin NatanoandColby Klein 7dae1384e6 Sort input devices on Linux (#1926)
* Remove unused function

* Sort input devices on Linux

The readdir() function doesn't guarantee any specific ordering, so the
numbers of joysticks might change when restarting StepMania.
(Empirically this usually only happens after a reboot.)

Let's sort the input devices alphabetically before opening them to have
more consistent numbering and avoid annoying remapping of controllers.
2019-10-29 08:05:29 -07:00
Tracy WardandGitHub b0765e9c56 Merge: Remove DirectX from README.md (#1925) 2019-10-26 00:40:14 -04:00
Prcuvu 35fe976d5b Update README.md 2019-10-26 10:42:54 +08:00
Elias KunnasandColby Klein 0bd2365ebc Use libXtst again with CMake (#1908)
* Use libXtst again with CMake

It seems that Xtst was never used after the transition to CMake.

This is related to https://github.com/stepmania/stepmania/issues/1902.

* Travis: install libxtst-dev
2019-10-24 08:22:42 -07:00
Tracy WardandGitHub 9bf8f40a1c Merge: Upgrade to libtomcrypt 1.18.2 (#1919) 2019-10-23 20:10:16 -04:00
Prcuvu 333abe5934 Upgrade to libtomcrypt 1.18.2 2019-10-15 17:43:01 +08:00
Martin KröningandColby Klein 65a69ea874 Linux: Use GLVND if available. (#1860)
Fixes #1859.
Uses CMake's FindModule for OpenGL.
2019-10-13 13:30:41 -07:00
Tracy WardandGitHub 81ce0e94d9 Merge: Windows x64 build support (#1899) 2019-10-13 15:56:04 -04:00
Prcuvu a51971f58d Remove existing DLLs in Program folder before copying 2019-10-14 01:03:08 +08:00
Tracy WardandGitHub a5a4bb5827 Add support for Raw Thrills I/O (DDR X2 US cabinets) on Windows (#1894) 2019-10-13 03:59:35 -04:00
Tracy WardandGitHub 04f7a8c466 Rewrite BG/FG changes parsing (#1916)
* Handle commas and equals in BG/FG change tags

Rewrote parsing of BGCHANGES and FGCHANGES tags to be able to
handle people putting commas and equals in the filenames. For the
value positions which can be filenames, check to see if we can
recognize any filename from the song directory followed by a comma,
equal, or end of string. If we can, use that. If not, just treat it
the same as before, looking for the next comma or equal.
2019-10-12 11:41:39 -04:00
Tracy WardandGitHub fd92cc2ed8 Delay writing image cache index while loading songs (#1917) 2019-10-12 11:37:38 -04:00
Tracy Ward f104e813c4 Delay writing image cache index until after load complete
While loading all songs, disable writing the index file for the image
cache, in order to speed up loading and cache generation, similar to
how the song cache index file write is delayed.
2019-10-12 11:24:13 -04:00
PrcuvuandGitHub 44b76446bb Merge branch '5_1-new' into win64 2019-10-06 00:55:50 +08:00