Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull latest JKEnhanced version #42

Merged
merged 103 commits into from
Aug 6, 2020
Merged

Conversation

SomaZ
Copy link
Owner

@SomaZ SomaZ commented Aug 6, 2020

No description provided.

xycaleth and others added 30 commits January 28, 2018 20:45
* Fix Travis CI build

Add missing dependencies - why doesn't aptitude just download them??

* Try apt packages using apt add-on in Travis

* Remove some packages and fix host env variable

* Add libglib2.0-dev dependency for i686

* Maybe Release and Debug flavours?

* Split Debug and Release travis builds

* Add macOS build

* Brew install for OSX build

And reorder the builds

* Try using install script again

* Fix typo when running install script

* Fix install script for macOS

* Whitespace fixes

* Add missing space
…e power now

Previously, the console command "give force" only allowed the amount of force power to go up to 100 and not the actual limit of the current playermodel, because it was set to go until FORCE_POWER_MAX, which was defined as 100. Now, if you are using a playermodel with an increased amount set, that amount will be used as the maximum.
Hopefully this works better than the previous attempt and does not bork things.  CMake 3.4 is required on Windows for this to work. Leaving version as is for now due to other work being done on CMake support elsewhere.

Should fix DPI awareness / scaling on Windows + Have proper version info.
The renderer isn't initialized until the first frame after the restart.
The game frame can run before this happens which will try to do some
operations with the renderer, causing the process to crash.
Upgrade to newest version of SDL2 (2.0.8)
Shared: Add missing audio format types for newer SDL
Prevent null pointers reaching the underlying G2 code as is done for cgame.
Also fix minor bug in an unused G2 API UI function.
Also minor code cleanup in cgame G2 API functions.
In original game if the g2 pointer/ref was invalid it would return -1.  In the new modules it seems to have changed to returning to 0 here causing an inconsistency.  UI already returns -1 properly but cgame and server did not.
Fixes some derpiness in cases where handle is invalid and also adds missing calls to check model pointers in some functions.
…ul2-api

Fix Ghoul2 API on server and UI for legacy mods
And update all the copyright years in those files
Some of the tools were purpose-made for assets to be used on the Xbox.
We don't need these anymore so let's remove them.
This will make the macOS app bundle completely self-contained (as it
should be), i.e. the client will not need to install SDL2 separately.
Remove tools which were moved to OpenJK-Tools
And remove s_sdlSpeed
Travis-CI's macOS worker image currently has libpng installed at a
slightly outdated version. Unlike "apt install", "brew install"
will not upgrade a package that is already installed, and will exit
unsuccessfully when asked to do so. There does not seem to be a
Homebrew command for "upgrade these packages if installed, or install
them if not installed", so the most straightforward way seems to be
to upgrade everything before invoking brew install.

Fixes: JACoders#987
SomaZ and others added 29 commits October 25, 2019 21:47
…aira.tga instead of crosshairb.tga, does not allow negative index
… declaration

Discovered by C++ compilation not finding an exact linker match
Draw stencil shadows in one drawcall when possible
Ubuntu 14.04 reached EOL for mainstream support in April 2019, and I'm
about to add a dependency on a version of SDL newer than the one in
14.04. Instead of going via 16.04, which only has about a year of
support lifetime left itself, let's go directly to 18.04, currently the
latest LTS release.

Update build-dependencies accordingly.

Signed-off-by: Simon McVittie <smcv@debian.org>
This requires SDL >= 2.0.4.

Since <https://bugzilla.libsdl.org/show_bug.cgi?id=2464> was fixed in
SDL 2.0.4, SDL behaves as a CMake "config-file package", even if it was
not itself built using CMake: it installs a sdl2-config.cmake file to
${libdir}/cmake/SDL2, which tells CMake where to find SDL's headers and
library, analogous to a pkg-config .pc file.

As a result, we no longer need to copy/paste a "find-module package"
to be able to find a system copy of SDL >= 2.0.4 with find_package(SDL2).
Find-module packages are now discouraged by the CMake developers, in
favour of having upstream projects behave as config-file packages.

This results in a small API change: FindSDL2 used to set SDL2_INCLUDE_DIR
and SDL2_LIBRARY, but the standard behaviour for config-file packages is
to set <name>_INCLUDE_DIRS and <name>_LIBRARIES. Use the CONFIG keyword
to make sure we search in config-file package mode, and will not find a
FindSDL2.cmake in some other directory that implements the old interface.

In addition to deleting redundant code, this avoids some assumptions in
FindSDL2 about the layout of a SDL installation. The current libsdl2-dev
package in Debian breaks those assumptions; this is considered a bug
and will hopefully be fixed soon, but it illustrates how fragile these
assumptions can be. We can be more robust against different installation
layouts by relying on SDL's own CMake integration.

When linking to a copy of CMake in a non-standard location, users can
now set the SDL2_DIR or CMAKE_PREFIX_PATH environment variable to point
to it; previously, these users would have used the SDL2DIR environment
variable. This continues to be unnecessary if using matching system-wide
installations of CMake and SDL2, for example both from Debian.

Mitigates: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951087
Signed-off-by: Simon McVittie <smcv@debian.org>
Fixes JACoders#1038

ofst over-reads past the end of the pSoundData buffer. Add a bounds check
similar to S_CheckAmplitude() in codemp/client/snd_dma.cpp.

JACoders@69800e8
Sounds that use dopplerScale (e.g., rocket launcher) exhibited a buffer
over-read. S_PaintChannelFrom16's ofst reads past end of sfx->pSoundData buffer.
To resolve this, take dopplerScale increments of ofst into consideration when
calculating count, which controls the loop for ofst.

Resolves: JACoders#1038
See also: JACoders@69800e8
…es issues at large timescales such as during cutscene skipping.
…es. causes issues at large timescales such as during cutscene skipping."

This reverts commit 968b8ac.
…ities. causes issues at large timescales such as during cutscene skipping when the event time is before the entity free time and cent->gent is used. Also remove unnecessary setting of NPC->count on takeoff/landing for boba and rockettrooper.
@SomaZ SomaZ merged commit 8e6ab4a into SomaZ:JKEnhanced-master Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.