3222 Commits

Author SHA1 Message Date
Stefanos Kornilios Mitsis Poiitidis
33b9dd1c8a Merge branch 'skmp/protect-from-zero-delta-times' into 'main'
CAnimBlendNode::GetCurrentTranslation: Protect against zero delta times

See merge request skmp/dca3-game!15
2025-01-16 06:13:03 +00:00
Stefanos Kornilios Mitsis Poiitidis
5786eeecb8 Merge branch 'falco/fuck_da_fences' into 'main'
Fixed the goddamn fences.

See merge request skmp/dca3-game!14
2025-01-16 06:11:54 +00:00
Stefanos Kornilios Mitsis Poiitidis
20864fdac6 Merge branch '49-game-crash-when-entering-parking-garage-on-staunton-island' into 'main'
Resolve "Parking garage crash fix"

See merge request skmp/dca3-game!16
2025-01-16 06:09:08 +00:00
mark wallace
1587d707a8 Parking garage bug fix. 2025-01-16 04:11:34 +00:00
Stefanos Kornilios Mitsis Poiitidis
911b93bd0f CAnimBlendNode::GetCurrentTranslation: Protect against zero delta times 2025-01-14 23:18:24 +02:00
Falco Girgis
e86fb27a48 Fixed the goddamn fences.
Colliding with and/or brushing against the metal chain-linked fences in
the game caused severe performance degredation as the SH4 struggled to
keep up with the physics.

The PSVita REGTA3 port also struggled, somehow, with its bazillion times
faster CPU. The PS2 version has no fences. The Xbox version implemented
an interesting compromise, where fences could be collided with and
knocked over, but individual links did not interact with one-another,
only with the car.

So that's what I've essentially done here. Intersection testing is still
happening between all of the previous CPhysical entities in question
(player vs fences vs fences); however, the contact resolution for fence vs
fence collisions is now being essentially canceled.

Apparently that's all that was needed, as you can now mow down long-ass
fences with no performance impact and a response that looks like what
the Xbox does.
2025-01-12 00:29:42 -06:00
Stefanos Kornilios Mitsis Poiitidis
2065c9a93f Merge branch 'skmp/fix-AllocateBoatWakeArray' into 'main'
Some checks failed
re3 conan+cmake / build-cmake (openal, glfw, macos-latest, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, glfw, ubuntu-18.04, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, glfw, windows-latest, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, windows-latest, d3d9) (push) Has been cancelled
re3 cmake devkitA64 (Nintendo Switch) / build-nintendo-switch (push) Has been cancelled
re3 premake amd64 / build (Debug, win-amd64-librw_d3d9-oal) (push) Has been cancelled
re3 premake amd64 / build (Debug, win-amd64-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake amd64 / build (Release, win-amd64-librw_d3d9-oal) (push) Has been cancelled
re3 premake amd64 / build (Release, win-amd64-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled
Fix AllocateBoatWakeArray, it needs RpGeometryCreate with HAS_TRIANGLES

See merge request skmp/dca3-game!12
2025-01-06 11:46:50 +00:00
Stefanos Kornilios Mitsis Poiitidis
a2caa56275 Merge branch 'skmp/material-alpha-override-pt' into 'main'
Perform full blending for mat.a != 0xFF, should fade-in sprites (eg, Trees)

See merge request skmp/dca3-game!11
2025-01-06 11:41:11 +00:00
Stefanos Kornilios Mitsis Poiitidis
fa65f637ad Fix AllocateBoatWakeArray, it needs RpGeometryCreate with HAS_TRIANGLES 2025-01-06 13:40:31 +02:00
Stefanos Kornilios Mitsis Poiitidis
0a0a664428 Perform full blending for mat.a != 0xFF, should fade-in sprites (eg, Trees) 2025-01-05 15:40:18 +02:00
Stefanos Kornilios Mitsis Poiitidis
5abd0641a4 Merge branch 'skmp/fix-staring-into-the-void' into 'main'
Some checks are pending
re3 conan+cmake / build-cmake (openal, glfw, macos-latest, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, glfw, ubuntu-18.04, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, glfw, windows-latest, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, windows-latest, d3d9) (push) Waiting to run
re3 cmake devkitA64 (Nintendo Switch) / build-nintendo-switch (push) Waiting to run
re3 premake amd64 / build (Debug, win-amd64-librw_d3d9-oal) (push) Waiting to run
re3 premake amd64 / build (Debug, win-amd64-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake amd64 / build (Release, win-amd64-librw_d3d9-oal) (push) Waiting to run
re3 premake amd64 / build (Release, win-amd64-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
Revert buggy optimizations in CMatrix::Rotate*. Didn't investigate much, they aren't often called

Closes #8 and #6

See merge request skmp/dca3-game!9
2025-01-05 08:21:54 +00:00
Stefanos Kornilios Mitsis Poiitidis
ca866bdb2a Fix sim build 2025-01-05 10:15:30 +02:00
Stefanos Kornilios Mitsis Poiitidis
bf0e36858e Use fipr in CMatrix::Rotate, simplifies it so it doesn't ICE 2025-01-05 09:19:02 +02:00
Stefanos Kornilios Mitsis Poiitidis
b90e8433da Revert buggy optimizations in CMatrix::Rotate*. Didn't investigate much, they aren't often called 2025-01-05 09:12:56 +02:00
Stefanos Kornilios Mitsis Poiitidis
133110c15c Merge branch 'skmp/async-pedsfx-load' into 'main'
Some checks are pending
re3 conan+cmake / build-cmake (openal, glfw, macos-latest, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, glfw, ubuntu-18.04, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, glfw, windows-latest, gl3) (push) Waiting to run
re3 conan+cmake / build-cmake (openal, windows-latest, d3d9) (push) Waiting to run
re3 cmake devkitA64 (Nintendo Switch) / build-nintendo-switch (push) Waiting to run
re3 premake amd64 / build (Debug, win-amd64-librw_d3d9-oal) (push) Waiting to run
re3 premake amd64 / build (Debug, win-amd64-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake amd64 / build (Release, win-amd64-librw_d3d9-oal) (push) Waiting to run
re3 premake amd64 / build (Release, win-amd64-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-mss) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-oal) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-mss) (push) Waiting to run
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-oal) (push) Waiting to run
PedSfx: Read from I/O thread, load them on the background

See merge request skmp/dca3-game!10
2025-01-04 19:15:39 +00:00
Stefanos Kornilios Mitsis Poiitidis
6f71cfc458 PedSfx: Read from I/O thread, load them on the background 2025-01-04 17:46:48 +02:00
Stefanos Kornilios Mitsis Poiitidis
02d0103b20 Redirect to dca3.net 2024-12-31 09:05:08 +00:00
Stefanos Kornilios Mitsis Poiitidis
72da27ef0b Edit README.md 2024-12-29 22:23:08 +00:00
Stefanos Kornilios Mitsis Poiitidis
ff9df6c760 Merge branch 'soniccd123/HintMessagesV2' into 'main'
Hints V2 + Controller layout images

See merge request skmp/dca3-game!8
alpha
2024-12-29 21:34:46 +00:00
Stefanos Kornilios Mitsis Poiitidis
0c0d8c88b6 Merge branch 'thegang/cull-atomics-if-vbuf-full' into 'main'
Cull atomics if vbuf is nearly full

See merge request skmp/dca3-game!7
2024-12-29 19:22:51 +00:00
Stefanos Kornilios Mitsis Poiitidis
ab6a65ba4f Cull atomics if vbuf is nearly full 2024-12-29 21:15:18 +02:00
Soniccd123
d8b6a02494 Update to hints, add help layout images to controller setup page (WIP) 2024-12-29 13:13:12 -03:00
Stefanos Kornilios Mitsis Poiitidis
d6e5be5a5d Edit README.md 2024-12-29 14:58:09 +00:00
Stefanos Kornilios Mitsis Poiitidis
a6a3b9e7b4 Merge branch 'skmp/dca3-kos-gdrom' into 'main'
Update dca3-kos with gdrom dma code

See merge request skmp/dca3-game!5
2024-12-29 09:41:40 +00:00
Stefanos Kornilios Mitsis Poiitidis
ddfc21dd97 Update dca3-kos with gdrom dma code 2024-12-29 11:35:59 +02:00
Soniccd123
62bfbbc3a7 Fix Labels, Fix compiling error 2024-12-28 20:16:14 -03:00
Soniccd123
a4342f3abf Merge remote-tracking branch 'origin/main' into soniccd123/HintMessagesV2 2024-12-28 18:09:58 -03:00
Stefanos Kornilios Mitsis Poiitidis
8023daf18a Merge branch 'soniccd123/rstickquerytest-2' into 'main'
Implement dual stick, new bindings, lots of other things

See merge request skmp/dca3-game!4
2024-12-28 15:45:48 +00:00
Stefanos Kornilios Mitsis Poiitidis
6c39b294ca Add cdi baking instructions 2024-12-28 07:07:31 +00:00
Soniccd123
2e0dcf9c3f Try fix Sim building 2024-12-28 03:14:06 -03:00
Soniccd123
77e43aa727 Typos, need to wait for merging of some dependencies on other PR 2024-12-27 20:19:29 -03:00
Soniccd123
e7b97ed558 Hints V2
Made the hints change depending on controller scheme selected, corrected some mis-bindings
2024-12-27 20:13:16 -03:00
Soniccd123
d0c97eedb5 Added command to center camera on player when walking, double click X button to do it 2024-12-28 00:03:54 +02:00
Soniccd123
267f39b9fd Should actually fix the unpluggin problem, also reset Dual analog state when reconnected, in case a normal controller is connected 2024-12-28 00:03:54 +02:00
Soniccd123
76c5fae015 Fixes unplugging and pluggin back controller bug 2024-12-28 00:03:54 +02:00
Soniccd123
f179638f46 More fixes, added dead zone for analogs 2024-12-28 00:03:54 +02:00
Soniccd123
8e6a952da3 New RightStick querying code 2024-12-28 00:03:54 +02:00
Soniccd123
970ac8c691 Bug fix: Camera falling 2024-12-28 00:03:54 +02:00
Soniccd123
fcd2e4bb91 Test new query method for Right Stick availability 2024-12-28 00:03:54 +02:00
Soniccd123
1e03ff65d8 Fixed controll bugs, Enabled controller config menu, PS2 like layout is finished, Testing is needed on Xbox and PS2 dual stick modes 2024-12-28 00:03:54 +02:00
Soniccd123
c458e6c466 Implement dual stick, new bindings
Create bindings options for PS2 and Xbox like controll schemes, PS2 and Xbox bindings for dual stick
2024-12-28 00:03:54 +02:00
Stefanos Kornilios Mitsis Poiitidis
a12489844b tweak the build id a bit 2024-12-27 19:33:43 +02:00
Stefanos Kornilios Mitsis Poiitidis
d06d827833 Merge branch 'skmp/git-build-ci-ids' into 'main'
tag executables with build, git and CI ids

See merge request skmp/dca3-game!3
2024-12-27 17:21:06 +00:00
Stefanos Kornilios Mitsis Poiitidis
0e3fd254b0 Refactor makefiles, a bit 2024-12-27 19:07:30 +02:00
Stefanos Kornilios Mitsis Poiitidis
0bfd0a3b06 limit build id t0 10 chars, add to menus 2024-12-27 18:52:41 +02:00
Stefanos Kornilios Mitsis Poiitidis
9a91660f50 Git, Build and CI ids, show them on crash screens; stash a copy of the source in the cdi on repack 2024-12-27 18:22:51 +02:00
Stefanos Kornilios Mitsis Poiitidis
5a7dd57720 Add cdi success messages 2024-12-27 09:23:20 +02:00
Stefanos Kornilios Mitsis Poiitidis
292a83165b Merge branch 'skmp/add-C565-C4444-textures' into 'main'
Add support for C565 and C4444 on texture import, some game distro uses those in particle.txd

See merge request skmp/dca3-game!2
2024-12-26 19:06:44 +00:00
Stefanos Kornilios Mitsis Poiitidis
4e8f09ac66 Add support for C565 and C4444 on texture import, some game distro uses those in particle.txd 2024-12-26 21:01:15 +02:00
Stefanos Kornilios Mitsis Poiitidis
d523140fa4 Silence all touches for faster build 2024-12-26 17:17:46 +02:00