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

Vc #19

Open
wants to merge 1,950 commits into
base: master
Choose a base branch
from
Open

Vc #19

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1950 commits
Select commit Hold shift + click to select a range
ceb22d7
update librw
aap Mar 2, 2021
1817727
Small Acos fix
Sergeanur May 9, 2021
3dda658
Use some GetMatrix/SetMatrix logic based on SA
Sergeanur May 9, 2021
4da7331
fix
Sergeanur May 9, 2021
fc1bfcb
fabs -> fabsf
Sergeanur May 10, 2021
2fc431d
Complete sfx enum, rename some sounds + fixes of missing ped comments
Sergeanur May 12, 2021
8a728fa
Fixes to sfx names
Sergeanur May 16, 2021
3a7cb9c
Fix oneshot audio crash
Sergeanur May 17, 2021
0c41734
Fix quiet police scanner on OpenAL
Sergeanur May 17, 2021
618d689
Pool fixes + peds not forming circle fix
erorcun Mar 6, 2021
bd94c16
Fix C3dMarkers::PlaceMarker calls in Radar
Sergeanur May 22, 2021
5bcdb93
Use bool8 in audio code
Sergeanur May 22, 2021
42e655b
some fixes for CPed
majesticCoding May 17, 2021
59ed4d0
Fix MAX_DIGITAL_MIXER_CHANNELS
Sergeanur May 22, 2021
0265531
Increase the number of audio channels to PS2 count and some small aud…
Sergeanur May 23, 2021
be019c6
Undef PS2_AUDIO_CHANNELS for SQUEEZE_PERFORMANCE and VANILLA_DEFINES
Sergeanur May 23, 2021
93e9929
CEntity and C(Vu)Vector fixes and cleanup
aap May 23, 2021
f2c8522
Fix IsSphereVisible calls
Sergeanur Jun 5, 2021
6e4a294
Fix sin & cos calls
Sergeanur Jun 5, 2021
fad6466
Fix some timer calls
Sergeanur Jun 5, 2021
793e122
fix
Sergeanur Jun 5, 2021
23755fd
Fix bullet trace sound offset
Sergeanur Jun 12, 2021
6426963
Fix cAudioManager::ProcessCarHeli
Sergeanur Jun 12, 2021
1b5dbc4
Add macros to set sample loop offsets
Sergeanur Jun 12, 2021
2b8ae07
forgot
Sergeanur Jun 12, 2021
0f0cb40
Fix use of enum in ped comment banks switch
Sergeanur Jun 12, 2021
4b8b0a6
Small fix
Sergeanur Jun 12, 2021
fe65f20
forgotten field in CBaseModelInfo::Shutdown
majesticCoding Jun 22, 2021
5156626
Make sampman stream functions default to stream 0 + type fixes
Sergeanur Jun 23, 2021
b8cf8c5
Don't restart OAL device when switching EAX
Sergeanur Jun 24, 2021
14c71f3
High FPS Fixes
Sergeanur Jun 24, 2021
e5aa150
Frontend fix
Sergeanur Jun 24, 2021
4660491
Timer fix
Sergeanur Jun 24, 2021
f464613
Refactor CTimer::Update
Sergeanur Jun 24, 2021
5341840
fix cmake build.
withmorten Jun 25, 2021
4e3fc35
add no-git-hash option to premake
withmorten Jun 23, 2021
0b057f3
Update invite link
erorcun Jun 25, 2021
9382e86
Fix Particle FPE
erorcun Jun 25, 2021
c869602
Merge pull request #1148 from withmorten/miami-githash
withmorten Jun 25, 2021
225530e
Fix premature CTimer calls
Sergeanur Jun 26, 2021
85d60b3
fix tabs in premake
withmorten Jun 26, 2021
d8f5e86
swap out codewarrior reVC.mcp with xml export
withmorten Jun 26, 2021
9ab4f1a
fix screenshot name space
withmorten Jun 26, 2021
107c4df
Multi-threaded audio streams
erorcun Jun 25, 2021
9c8ef3c
Merge pull request #1151 from erorcun/miami
erorcun Jun 26, 2021
ab38b00
reVC: Update Linux 64bit build download link
leanndroguedes Jun 26, 2021
05a29c7
Multi-threaded audio fixes
erorcun Jun 26, 2021
3587cb0
Remove waiting for stream closure in multi-thread audio
erorcun Jun 27, 2021
f8297df
Redo ReadSaveBuf + common.h cleanup
Sergeanur Jun 28, 2021
d17d437
rename clamp macro to Clamp to fix compilation with g++11 (and clamp2…
withmorten Jun 28, 2021
fdbd414
Fix MP3 finding stack crash
erorcun Jun 28, 2021
de4699a
fix no VALIDATE_SAVE_SIZE build
withmorten Jun 28, 2021
9f0daee
Sanitizer fixes
erorcun Jun 30, 2021
cac1c5b
Saner loop
erorcun Jun 30, 2021
d31a7e2
Fix text in elevator cam
Sergeanur Jun 30, 2021
abe57fe
fix some string sizes to be MAX_PATH
withmorten Jun 30, 2021
b1c9340
Fix unused code
Sergeanur Jun 30, 2021
a73a2c9
Pause radio when game is paused
Sergeanur Jun 30, 2021
cb72fee
fix
Sergeanur Jun 30, 2021
2d38eb9
zero out work_buff before writing padding in save
withmorten Jul 1, 2021
3988fec
Fix sound of water when changing MSAA or windowed/fullscreen mode
Sergeanur Jul 1, 2021
6521936
fix compilation when ctype.h is included
withmorten Jul 1, 2021
8e6e46a
Fix collision loading for mission entities
Sergeanur Jul 1, 2021
ae4bfef
Refactor OnscreenTimer
Sergeanur Jul 2, 2021
9ea3549
GameLogic - type fixes
Sergeanur Jul 2, 2021
987e095
Fix use of integer in RemoveBuildingsNotInArea call
Sergeanur Jul 2, 2021
4eea98c
Peds: Efforts to find the reason of crashes on GCC 7.5.0
erorcun Jul 2, 2021
f9f854c
smol fix
withmorten Jul 2, 2021
43631ba
smol fix 2
withmorten Jul 2, 2021
1c0878f
Sanitizer fixes 2
erorcun Jul 2, 2021
a92dcaa
premake: add no-full-paths option for CI builds, rename lto to with-lto
withmorten Jul 3, 2021
3ed4cdf
Fix overflow in audio code
Sergeanur Jul 3, 2021
1d51734
Fix Mac M1 premake
erorcun Jul 3, 2021
3750124
Add MacOS to Readme
erorcun Jul 3, 2021
70876d3
fix screenshot name
withmorten Jul 3, 2021
10d7b30
Update README.md
withmorten Jul 3, 2021
2029ac3
Update librw
AGraber Jul 4, 2021
74fd585
Merge pull request #1203 from AGraber/miami_librw_update
erorcun Jul 4, 2021
0b27a3d
fix cmake workflow
withmorten Jul 5, 2021
c5e896c
fix: add missing limits.h includes to enable bulding on musl.
gottaeat Jul 1, 2021
37a43eb
fix: printHash.sh; replace echo -n, check if $1 is set.
gottaeat Jul 1, 2021
e6544a6
fix sampman_null build
withmorten Jul 6, 2021
79c010f
fix macro redefinition warnings on win-glfw build
withmorten Jul 7, 2021
72f6780
Use CPad functions to check key states in script loader
Sergeanur Jul 8, 2021
0b26957
add librw defines to vanilla defines undefs
withmorten Jul 9, 2021
ffe1992
fix jittery cars at 15fps
withmorten Jul 9, 2021
026cd10
Update german.txt
withmorten Jul 9, 2021
ddf2b09
Update GXT compiler with fix of German
Sergeanur Jul 9, 2021
df8ef2d
Merge pull request #1135 from RuesanG/patch-2
withmorten Jul 9, 2021
41f3d4d
recompile german.gxt
withmorten Jul 9, 2021
61c2398
readme: fix lto option
withmorten Jul 9, 2021
6f103a3
finish COMPATIBLE_SAVES and FIX_INCOMPATIBLE_SAVES
withmorten Jul 7, 2021
9f0a96a
Physical: division by zero fix
erorcun Jul 10, 2021
8a11451
fix hotring flap stat line
withmorten Jul 10, 2021
58de524
tiny diff fix
withmorten Jul 11, 2021
f686065
get rid of // done comments in audiomanager.h
withmorten Jul 11, 2021
dc29e7c
Add PED DENSITY and CAR DENSITY lines to GXT
Sergeanur Jul 11, 2021
02e84b4
Merge pull request #1150 from withmorten/miami-saves
erorcun Jul 11, 2021
6f52ad1
miami: switch out current ini_parser.hpp with pulzed/mINI
withmorten Jul 10, 2021
3f5fdc3
Reorganize config.h
Sergeanur Jul 12, 2021
2f7ae61
Vanilla config for Windows and win-x86 only
withmorten Jul 12, 2021
6c09739
fix FixGarages
withmorten Jul 12, 2021
b69cee3
fix premake
withmorten Jul 12, 2021
c982700
Enable cutscene shadows
Sergeanur Jul 12, 2021
523b233
disable USE_CUTSCENE_SHADOW_FOR_PED if COMPATIBLE_SAVES isn't defined
withmorten Jul 12, 2021
6665b16
Nintendo Switch support
AGraber Jul 12, 2021
7f544f9
Fix artifact path
AGraber Jul 12, 2021
fb5a207
Fix NearPed count going negative
Nopey Jul 13, 2021
02c4ada
Remove stupid cast
Sergeanur Jul 14, 2021
780cd22
Make PS2 VB files work together with PC audio files
Sergeanur Jun 30, 2021
c8cb1ed
Merge pull request #1219 from withmorten/miami-ini
withmorten Jul 15, 2021
c937bdb
render -> renderer (original name)
Sergeanur Jul 17, 2021
76558e9
fix garbage data written in garage save block
withmorten Jul 19, 2021
a1444b9
Fix Predator shooting sound
Sergeanur Jul 22, 2021
bbbe9b2
Fix enum use
Sergeanur Jul 22, 2021
953e4fc
Fix falling damage
Sergeanur Jul 22, 2021
5e34b1e
Possible fix of RemoveAndAdd crash
Sergeanur Jul 22, 2021
aec7976
Fix aiming with minigun and flamethrower with PC controls
Sergeanur Jul 22, 2021
bf757fc
Fix CPlayerInfo distance types
Sergeanur Jul 23, 2021
601f63f
Sync fix from master
Sergeanur Jul 25, 2021
5032d24
Fix
Sergeanur Jul 25, 2021
a510a03
Small fix
Sergeanur Jul 25, 2021
ed9c911
Fix traffic light corona facing wrong side
Sergeanur Jul 26, 2021
1aac4d8
Fix Tommy looking at one spot due to crouching + shooting
Sergeanur Jul 26, 2021
123f2fd
Fix ridiculously accurate bullets when you shoot behind with enabled …
Sergeanur Jul 26, 2021
f7a2c26
Remove deceiving comment
Sergeanur Jul 26, 2021
250727c
Fix muzzleflash rotation
Sergeanur Jul 26, 2021
371f1be
Fix smooth spray when using chainsaw or when you stop shooting while …
Sergeanur Jul 26, 2021
1180f32
Fix bike kick sound
Sergeanur Jul 26, 2021
c0488b3
Fix stuck looking flag when answering phone and idle weapon animation
Sergeanur Jul 26, 2021
782d38c
Sort AudioCollision functions into original order
Sergeanur Jul 27, 2021
7aa8d7c
AudioManager.cpp reordering
Sergeanur Jul 27, 2021
9dbaa7a
PolRadio type fixes
Sergeanur Jul 27, 2021
16f892b
AudioLogic type fixes and reordering (before peds)
Sergeanur Jul 27, 2021
49ee711
AudioLogic type fixes and reordering (after peds)
Sergeanur Jul 27, 2021
61176ac
Ped comments ordering and type fix + vice function(s) fix
Sergeanur Jul 28, 2021
8960ffa
Get rid of audio getters
Sergeanur Jul 28, 2021
2aa3781
cAudioManager declaration reordering
Sergeanur Jul 28, 2021
cce9758
Reverse unused audio functions from mobile
Sergeanur Jul 28, 2021
7bacf3b
Reverse unused audio functions
Sergeanur Jul 28, 2021
3006139
CVisibilityPlugins and CRenderer fixes; pulled MLO back in
aap Jul 29, 2021
835fa4e
Make cars and peds to not despawn when you look away
Sergeanur Jul 23, 2021
d923cd2
Allow sector ped count to exceed gap-list size
Nopey Jul 27, 2021
e80cbf8
Fix radio scroll when player controls disabled
erorcun Jul 31, 2021
70080f1
mission replay
Nick007J Aug 1, 2021
1479093
Merge remote-tracking branch 'upstream/miami' into miami
Nick007J Aug 1, 2021
1921907
Add ped and car density slider to menu, remove dumb collision "optimi…
erorcun Jul 11, 2021
418bf3a
Fix R* optimization that prevents peds to spawn
erorcun Aug 1, 2021
ae1deb2
Merge pull request #1267 from erorcun/miami
erorcun Aug 2, 2021
4a047f5
CPhysical fixes and cleanup
aap Aug 2, 2021
5999ddc
Merge remote-tracking branch 'upstream/miami' into miami
Nick007J Aug 3, 2021
8bcbee4
move debug script stuff to a separate file
Nick007J Aug 1, 2021
5a22896
move debug
Nick007J Aug 3, 2021
6fbb7da
cherrypick fixes
Nick007J Aug 3, 2021
80d00fe
more cherry-pick fix
Nick007J Aug 3, 2021
bec1cbc
CVehicle fixes and cleanup
aap Aug 4, 2021
e947081
Merge pull request #1266 from Nick007J/miami
Nick007J Aug 7, 2021
88b4c7b
merge
Nick007J Aug 8, 2021
668311a
Merge branch 'master' into miami
Nick007J Aug 8, 2021
478bdcc
merge
Nick007J Aug 8, 2021
873840a
merge
Nick007J Aug 8, 2021
8d9508b
Merge branch 'master' into miami
Nick007J Aug 8, 2021
4673f50
Revert "small fix"
Nick007J Aug 8, 2021
e17504a
Merge branch 'master' into miami
Nick007J Aug 8, 2021
f887d51
Sync fix from miami
Sergeanur Aug 8, 2021
76a22c0
Fix
Sergeanur Aug 8, 2021
42ad9c4
Comment out text following #endif
Aug 8, 2021
2ee32ab
fix bug in CCurves
Nick007J Aug 8, 2021
3869369
Merge remote-tracking branch 'upstream/miami' into miami
Nick007J Aug 8, 2021
ab5965c
fix steam saves
withmorten Aug 9, 2021
0544beb
Add sprite to the waypoint marker
Sergeanur Aug 11, 2021
d7a28c4
Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls
Sergeanur Aug 11, 2021
463fdab
Fix a bunch of CModelInfo::GetModelInfo->GetColModel calls, part 2
Sergeanur Aug 11, 2021
75f812c
Merge branch 'master' into miami
Sergeanur Aug 11, 2021
b99edf9
mission retry fix
Nick007J Aug 12, 2021
43fbf29
Waypoint text fix
Sergeanur Aug 12, 2021
92c5cf1
Sync audio changes from master
Sergeanur Aug 12, 2021
0a2df3c
Fix sampman_null
Sergeanur Aug 12, 2021
81c6c5e
map memory usage high default
withmorten Aug 12, 2021
3a95c77
Revert "map memory usage high default"
erorcun Aug 12, 2021
958e2f3
ginput script
Nick007J Aug 14, 2021
4a5f746
Switch PR & remove X11 part from CMakeLists
erorcun Aug 14, 2021
eadf049
fixed heli buoyancy
Nick007J Aug 14, 2021
fd52285
Fix premature .ini saving leading to missing bindings
erorcun Aug 15, 2021
0db14d7
All the sliders, unite
erorcun Aug 15, 2021
f4e723e
Fix .ini fix for glfw
erorcun Aug 15, 2021
3441714
lil fix
Nick007J Aug 15, 2021
435b8fe
Fix impossible bullets
erorcun Aug 14, 2021
042284d
actual fix
Nick007J Aug 15, 2021
26e5a7e
bruh
Nick007J Aug 15, 2021
6bdfb0d
merged correct switch
Nick007J Aug 15, 2021
9deabc7
Merge pull request #1295 from erorcun/miami
erorcun Aug 15, 2021
dec09bd
fix
Nick007J Aug 15, 2021
7d1cfe5
Merge remote-tracking branch 'upstream/miami' into miami
Nick007J Aug 15, 2021
77f692c
some CAutomobile fixes
aap Aug 15, 2021
9ed94f3
Fix CW build
Sergeanur Aug 16, 2021
c7e05c7
Fix cAudioManager::ProcessVehicleEngine return type, rename Sound Int…
Sergeanur Aug 16, 2021
d6fbf9f
PS2 audio reflections
Sergeanur Aug 16, 2021
76f2191
Remove not needed entry from config
Sergeanur Aug 16, 2021
cd0a765
Merge branch 'master' into miami
Sergeanur Aug 16, 2021
176cadf
Merge branch 'master' into miami
Sergeanur Aug 16, 2021
4e40c6f
Auto-detect X11 dependency
erorcun Aug 15, 2021
e73e965
Merge pull request #1300 from erorcun/miami
erorcun Aug 16, 2021
dc4ee41
fix opengl; update librw
aap Aug 17, 2021
a9604a8
update librw
aap Aug 17, 2021
ba07534
re3 -> reVC on Switch build workflow file
AGraber Aug 18, 2021
dff327d
Merge pull request #1304 from AGraber/patch-1
withmorten Aug 18, 2021
a13089c
Port audio changes from master
Sergeanur Aug 18, 2021
296e7ed
Possible fix of ProcessVehicleOneShots crash
Sergeanur Aug 18, 2021
2120d4d
Fix acceleration sound playing when exiting the vehicle, code fixes i…
Sergeanur Aug 18, 2021
51ba90d
Audio: ifdef more things that aren't on ps2
Sergeanur Aug 19, 2021
71e0895
Add AUDIO_REVERB define
Sergeanur Aug 19, 2021
a9798d0
Fix police yelling from empty or destroyed boats
Sergeanur Aug 19, 2021
843b430
update librw
withmorten Aug 19, 2021
c8623cf
CAutomobile fixes
aap Aug 20, 2021
a401f92
Audio refactoring:
Sergeanur Aug 20, 2021
2393676
Rename unknown audio field
Sergeanur Aug 20, 2021
11f2d94
small refactoring
Nick007J Aug 20, 2021
8b7f469
fix
Nick007J Aug 20, 2021
0256790
Fix some auto-aim problems
erorcun Aug 20, 2021
80b7d52
Auto switch to remote grenade after detonator
erorcun Aug 20, 2021
fe51abd
Audio: bits of PS2 code
Sergeanur Aug 21, 2021
7c80093
Remove cMissionAudio, move cAMCrime array outside of cPoliceRadioQueu…
Sergeanur Aug 21, 2021
d4ce6bc
Fix a bug about switching to previous weapon unintendedly
erorcun Aug 21, 2021
d81890f
Add forgotten bit from X11 detection
erorcun Aug 21, 2021
285fee0
PedIK: fix fix
erorcun Aug 22, 2021
09f693b
Cam: Fix can't look to right on BEHINDCAR
erorcun Aug 22, 2021
ef0ba76
Make ped comments update position and volume + fix cPedComments::Process
Sergeanur Aug 23, 2021
abbfb09
Audio enhancements:
Sergeanur Aug 24, 2021
a5ec7a4
Merge branch 'master' into miami
Sergeanur Aug 24, 2021
d4a2113
Audio: fix PS2 ifdefs
Sergeanur Aug 24, 2021
c8492ab
Audio: refactoring, type fixes, renaming cAudioManager fields
Sergeanur Aug 25, 2021
f87f14b
Refactor cPedComments
Sergeanur Aug 25, 2021
b7db2a1
keep noinline only for broken vs versions
Nick007J Aug 25, 2021
8de1ffb
Fix reflections with audio time scale
Sergeanur Aug 26, 2021
a94812b
Fix acceleration sound on exiting the vehicle
Sergeanur Aug 26, 2021
915888d
fixed debug teleport
Nick007J Aug 26, 2021
b2daa0e
Merge remote-tracking branch 'upstream/miami' into miami
Nick007J Aug 26, 2021
7a80acf
fix debug teleport
Nick007J Aug 26, 2021
8ef1e29
fix
Nick007J Aug 28, 2021
9a7b469
Audio: fixing bugs, fixing types, making code more accurate to original
Sergeanur Aug 29, 2021
355c260
Fix Squalo render out poly
Sergeanur Aug 29, 2021
320624e
Audio: ps2 code ifdef
Sergeanur Aug 30, 2021
4b747e5
replace ugly else if with switch
Fire-Head Aug 30, 2021
669c8c8
Audio: add separate buffer for player comments like on PS2 to fix ove…
Sergeanur Sep 1, 2021
abe6c22
Fix heli sound
Sergeanur Sep 2, 2021
a04a84e
Audio: small refactoring
Sergeanur Sep 2, 2021
a16fcd8
Fixes from master
Sergeanur Sep 2, 2021
28e1bfb
Update README.md
TheArtemMaps Nov 8, 2023
37e9ec0
Merge pull request #16 from TheArtemMaps/patch-1
halpz Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/build-cmake-conan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: re3 conan+cmake
name: reVC conan+cmake
on:
pull_request:
push:
Expand Down Expand Up @@ -96,13 +96,13 @@ jobs:
conan export re3mss miles-sdk/master@
- name: "Download/build dependencies (conan install)"
run: |
conan install ${{ github.workspace }} re3/master@ -if build -o re3:audio=${{ matrix.audio }} -o librw:platform=${{ matrix.platform }} -o librw:gl3_gfxlib=${{ matrix.gl3_gfxlib || 'glfw' }} --build missing -pr:h ./host_profile -pr:b default -s re3:build_type=RelWithDebInfo -s librw:build_type=RelWithDebInfo
conan install ${{ github.workspace }} reVC/master@ -if build -o reVC:audio=${{ matrix.audio }} -o librw:platform=${{ matrix.platform }} -o librw:gl3_gfxlib=${{ matrix.gl3_gfxlib || 'glfw' }} --build missing -pr:h ./host_profile -pr:b default -s reVC:build_type=RelWithDebInfo -s librw:build_type=RelWithDebInfo
env:
CONAN_SYSREQUIRES_MODE: enabled
- name: "Build re3 (conan build)"
- name: "Build reVC (conan build)"
run: |
conan build ${{ github.workspace }} -if build -bf build -pf package
- name: "Package re3 (conan package)"
- name: "Package reVC (conan package)"
run: |
conan package ${{ github.workspace }} -if build -bf build -pf package
- name: "Create binary package (cpack)"
Expand All @@ -113,5 +113,5 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: "${{ matrix.os }}-${{ matrix.platform }}"
path: build/*.zip
path: build/*.tar.xz
if-no-files-found: error
7 changes: 4 additions & 3 deletions .github/workflows/build-switch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: re3 cmake devkitA64 (Nintendo Switch)

name: reVC cmake devkitA64 (Nintendo Switch)
on:
pull_request:
push:
Expand All @@ -14,7 +15,7 @@ jobs:
submodules: 'true'
- name: "Build files"
run: |
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DRE3_AUDIO=OAL -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW -DRE3_WITH_OPUS=False -DRE3_VENDORED_LIBRW=True -DRE3_INSTALL=True
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -S. -Bbuild -DREVC_AUDIO=OAL -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW -DREVC_WITH_OPUS=False -DREVC_VENDORED_LIBRW=True -DREVC_INSTALL=True
cmake --build build --parallel
- name: "Create binary package (cpack)"
working-directory: ./build
Expand All @@ -24,5 +25,5 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: "switch-gl3"
path: build/*.zip
path: build/*.tar.xz
if-no-files-found: error
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: re3 premake amd64
name: reVC premake amd64

on:
pull_request:
Expand Down Expand Up @@ -37,27 +37,27 @@ jobs:
./premake5 vs2019 --with-librw --no-full-paths --glfwdir64=${{env.GLFW_BASE}}
- name: Build
run: |
msbuild -m build/re3.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
msbuild -m build/reVC.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
# - name: Pack artifacts
# run: |
# 7z a re3_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/*
# 7z a reVC_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/*
- name: Move binaries to gamefiles
run: |
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.exe ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.pdb ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.exe ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.pdb ./gamefiles/
- name: Move dynamic dependencies to gamefiles
run: |
mv ./vendor/mpg123/dist/Win64/libmpg123-0.dll ./gamefiles/
mv ./vendor/openal-soft/dist/Win64/OpenAL32.dll ./gamefiles/
- name: Upload artifact to actions
uses: actions/upload-artifact@v2
with:
name: re3_${{matrix.buildtype}}_${{matrix.platform}}
name: reVC_${{matrix.buildtype}}_${{matrix.platform}}
path: ./gamefiles/*
# - name: Upload artifact to Bintray
# uses: hpcsc/upload-bintray-docker-action@v1
# with:
# repository: re3
# repository: reVC
# package: ${{matrix.buildtype}}_${{matrix.platform}}
# version: 1.0-$(echo ${GITHUB_SHA}
# sourcePath: ./bin/${{matrix.platform}}/${{matrix.buildtype}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: re3 premake x86
name: reVC premake x86

on:
pull_request:
Expand Down Expand Up @@ -37,14 +37,14 @@ jobs:
./premake5 vs2019 --with-librw --no-full-paths --glfwdir32=${{env.GLFW_BASE}}
- name: Build
run: |
msbuild -m build/re3.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
msbuild -m build/reVC.sln /property:Configuration=${{matrix.buildtype}} /property:Platform=${{matrix.platform}}
# - name: Pack artifacts
# run: |
# 7z a re3_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/*
# 7z a reVC_${{matrix.buildtype}}_${{matrix.platform}}.zip ./bin/${{matrix.platform}}/${{matrix.buildtype}}/*
- name: Move binaries to gamefiles
run: |
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.exe ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/re3.pdb ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.exe ./gamefiles/
mv ./bin/${{matrix.platform}}/${{matrix.buildtype}}/reVC.pdb ./gamefiles/
- if: contains(matrix.platform, 'oal')
name: Move dynamic dependencies to gamefiles
run: |
Expand All @@ -53,12 +53,12 @@ jobs:
- name: Upload artifact to actions
uses: actions/upload-artifact@v2
with:
name: re3_${{matrix.buildtype}}_${{matrix.platform}}
name: reVC_${{matrix.buildtype}}_${{matrix.platform}}
path: ./gamefiles/*
# - name: Upload artifact to Bintray
# uses: hpcsc/upload-bintray-docker-action@v1
# with:
# repository: re3
# repository: reVC
# package: ${{matrix.buildtype}}_${{matrix.platform}}
# version: 1.0-$(echo ${GITHUB_SHA}
# sourcePath: ./bin/${{matrix.platform}}/${{matrix.buildtype}}
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ vendor/glfw-3.3.2.bin.WIN64/

sdk/

codewarrior/re3.mcp
codewarrior/re3_Data/
codewarrior/reVC.mcp
codewarrior/reVC_Data/
codewarrior/Release/
codewarrior/Debug/

Expand Down
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"src/peds",
"src/renderer",
"src/rw",
"src/save/",
"src/skel/",
"src/skel/glfw",
"src/save",
"src/save/glfw",
"src/skel",
"src/text",
"src/vehicles",
"src/weapons",
Expand Down
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)

set(EXECUTABLE re3)
set(PROJECT RE3)
set(EXECUTABLE reVC)
set(PROJECT REVC)

project(${EXECUTABLE} C CXX)
set(${PROJECT}_AUTHOR "${PROJECT} Team")
Expand All @@ -11,13 +11,14 @@ include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1 "ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR")
message(STATUS "Building ${CMAKE_PROJECT_NAME} GIT SHA1: ${GIT_SHA1}")


if(NINTENDO_SWITCH)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/nx")
include(NXFunctions)
endif()

if(NOT COMMAND re3_platform_target)
function(re3_platform_target)
if(NOT COMMAND reVC_platform_target)
function(reVC_platform_target)
endfunction()
endif()

Expand Down Expand Up @@ -94,6 +95,6 @@ if(${PROJECT}_INSTALL)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}")
set(CPACK_GENERATOR "ZIP")
set(CPACK_GENERATOR "TXZ")
include(CPack)
endif()
56 changes: 24 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
<img src="https://github.com/GTAmodding/re3/blob/master/res/images/logo_1024.png?raw=true" alt="re3 logo" width="200">
<img src="https://github.com/GTAmodding/re3/blob/miami/res/images/logo_1024.png?raw=true" alt="reVC logo" width="200">

[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FGTAmodding%2Fre3%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/GTAmodding/re3/goto?ref=master)
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FGTAmodding%2Fre3%2Fbadge%3Fref%3Dmiami&style=flat)](https://actions-badge.atrox.dev/GTAmodding/re3/goto?ref=miami)
<a href="https://discord.gg/RFNbjsUMGg"><img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" /></a>

## Intro

In this repository you'll find the fully reversed source code for GTA III ([master](https://github.com/GTAmodding/re3/tree/master/) branch) and GTA VC ([miami](https://github.com/GTAmodding/re3/tree/miami/) branch).
In this repository you'll find the fully reversed source code for GTA III ([master](https://github.com/halpz/re3/tree/master/) branch) and GTA VC ([miami](https://github.com/halpz/re3/tree/miami/) branch).

It has been tested and works on Windows, Linux, MacOS and FreeBSD, on x86, amd64, arm and arm64.\
Rendering is handled either by original RenderWare (D3D8)
or the reimplementation [librw](https://github.com/aap/librw) (D3D9, OpenGL 2.1 or above, OpenGL ES 2.0 or above).\
Audio is done with MSS (using dlls from original GTA) or OpenAL.

The project has also been ported to the [Nintendo Switch](https://github.com/AGraber/re3-nx/),
[Playstation Vita](https://github.com/Rinnegatamante/re3) and
[Nintendo Wii U](https://github.com/GaryOderNichts/re3-wiiu/).

We cannot build for PS2 or Xbox yet. If you're interested in doing so, get in touch with us.

## Installation

- re3 requires PC game assets to work, so you **must** own [a copy of GTA III](https://store.steampowered.com/app/12100/Grand_Theft_Auto_III/).
- Build re3 or download the latest build:
- [Windows D3D9 MSS 32bit](https://nightly.link/GTAmodding/re3/workflows/re3_msvc_x86/master/re3_Release_win-x86-librw_d3d9-mss.zip)
- [Windows D3D9 64bit](https://nightly.link/GTAmodding/re3/workflows/re3_msvc_amd64/master/re3_Release_win-amd64-librw_d3d9-oal.zip)
- [Windows OpenGL 64bit](https://nightly.link/GTAmodding/re3/workflows/re3_msvc_amd64/master/re3_Release_win-amd64-librw_gl3_glfw-oal.zip)
- [Linux 64bit](https://nightly.link/GTAmodding/re3/workflows/build-cmake-conan/master/ubuntu-18.04-gl3.zip)
- [MacOS 64bit x86-64](https://nightly.link/GTAmodding/re3/workflows/build-cmake-conan/master/macos-latest-gl3.zip)
- Extract the downloaded zip over your GTA 3 directory and run re3. The zip includes the binary, updated and additional gamefiles and in case of OpenAL the required dlls.
- reVC requires game assets to work, so you **must** own [a copy of GTA Vice City](https://store.steampowered.com/app/12110/Grand_Theft_Auto_Vice_City/).
- Build reVC or download the latest build:
- [Windows D3D9 MSS 32bit](https://nightly.link/GTAmodding/re3/workflows/reVC_msvc_x86/miami/reVC_Release_win-x86-librw_d3d9-mss.zip)
- [Windows D3D9 64bit](https://nightly.link/GTAmodding/re3/workflows/reVC_msvc_amd64/miami/reVC_Release_win-amd64-librw_d3d9-oal.zip)
- [Windows OpenGL 64bit](https://nightly.link/GTAmodding/re3/workflows/reVC_msvc_amd64/miami/reVC_Release_win-amd64-librw_gl3_glfw-oal.zip)
- [Linux 64bit](https://nightly.link/GTAmodding/re3/workflows/build-cmake-conan/miami/ubuntu-18.04-gl3.zip)
- [MacOS 64bit x86-64](https://nightly.link/GTAmodding/re3/workflows/build-cmake-conan/miami/macos-latest-gl3.zip)
- Extract the downloaded zip over your GTA VC directory and run reVC. The zip includes the binary, updated and additional gamefiles and in case of OpenAL the required dlls.

## Screenshots

![re3 2021-02-11 22-57-03-23](https://user-images.githubusercontent.com/1521437/107704085-fbdabd00-6cbc-11eb-8406-8951a80ccb16.png)
![re3 2021-02-11 22-43-44-98](https://user-images.githubusercontent.com/1521437/107703339-cbdeea00-6cbb-11eb-8f0b-07daa105d470.png)
![re3 2021-02-11 22-46-33-76](https://user-images.githubusercontent.com/1521437/107703343-cd101700-6cbb-11eb-9ccd-012cb90524b7.png)
![re3 2021-02-11 22-50-29-54](https://user-images.githubusercontent.com/1521437/107703348-d00b0780-6cbb-11eb-8afd-054249c2b95e.png)
![screen_ 1613087332](https://user-images.githubusercontent.com/1521437/107714111-f84f3200-6ccc-11eb-902e-d757481d579a.png)
![screen_ 1613086852](https://user-images.githubusercontent.com/1521437/107714115-fa18f580-6ccc-11eb-9de5-eb4cd04865d3.png)
![screen_ 1613086989](https://user-images.githubusercontent.com/1521437/107714103-f38a7e00-6ccc-11eb-88a3-c8c2033c51d6.png)
![screen_ 1613087193](https://user-images.githubusercontent.com/1521437/107714106-f4bbab00-6ccc-11eb-96a9-13821d9b9684.png)

## Improvements

Expand All @@ -44,25 +40,22 @@ Some of them can be toggled at runtime, some cannot.

* Fixed a lot of smaller and bigger bugs
* User files (saves and settings) stored in GTA root directory
* Settings stored in re3.ini file instead of gta3.set
* Settings stored in reVC.ini file instead of gta_vc.set
* Debug menu to do and change various things (Ctrl-M to open)
* Debug camera (Ctrl-B to toggle)
* Rotatable camera
* XInput controller support (Windows)
* No loading screens between islands ("map memory usage" in menu)
* Skinned ped support (models from Xbox or Mobile)
* Rendering
* Widescreen support (properly scaled HUD, Menu and FOV)
* PS2 MatFX (vehicle reflections)
* PS2 alpha test (better rendering of transparency)
* PS2 particles
* Xbox vehicle rendering
* Xbox world lightmap rendering (needs Xbox map)
* Xbox ped rim light
* Xbox screen rain droplets
* More customizable colourfilter
* Menu
* Map
* More options
* Controller configuration menu
* ...
Expand All @@ -75,7 +68,6 @@ The following things would be nice to have/do:

* Fix physics for high FPS
* Improve performance on lower end devices, especially the OpenGL layer on the Raspberry Pi (if you have experience with this, please get in touch)
* Compare code with PS2 code (tedious, no good decompiler)
* [PS2 port](https://github.com/GTAmodding/re3/wiki/PS2-port)
* Xbox port (not quite as important)
* reverse remaining unused/debug functions
Expand All @@ -93,9 +85,9 @@ Sorry for the inconvenience.

## Building from Source

When using premake, you may want to point GTA_III_RE_DIR environment variable to GTA3 root folder if you want the executable to be moved there via post-build script.
When using premake, you may want to point GTA_VC_RE_DIR environment variable to GTA Vice City root folder if you want the executable to be moved there via post-build script.

Clone the repository with `git clone --recursive https://github.com/GTAmodding/re3.git`. Then `cd re3` into the cloned repository.
Clone the repository with `git clone --recursive -b miami https://github.com/halpz/re3.git reVC`. Then `cd reVC` into the cloned repository.

<details><summary>Linux Premake</summary>

Expand All @@ -110,7 +102,7 @@ Install python and conan, and then run build.
conan export vendor/librw librw/master@
mkdir build
cd build
conan install .. re3/master@ -if build -o re3:audio=openal -o librw:platform=gl3 -o librw:gl3_gfxlib=glfw --build missing -s re3:build_type=RelWithDebInfo -s librw:build_type=RelWithDebInfo
conan install .. reVC/master@ -if build -o reVC:audio=openal -o librw:platform=gl3 -o librw:gl3_gfxlib=glfw --build missing -s reVC:build_type=RelWithDebInfo -s librw:build_type=RelWithDebInfo
conan build .. -if build -bf build -pf package
```
</details>
Expand All @@ -131,20 +123,20 @@ For FreeBSD using premake, proceed: [Building on FreeBSD](https://github.com/GTA

Assuming you have Visual Studio 2015/2017/2019:
- Run one of the `premake-vsXXXX.cmd` variants on root folder.
- Open build/re3.sln with Visual Studio and compile the solution.

- Open build/reVC.sln with Visual Studio and compile the solution.
Microsoft recently discontinued its downloads of the DX9 SDK. You can download an archived version here: https://archive.org/details/dxsdk_jun10

**If you choose OpenAL on Windows** You must read [Running OpenAL build on Windows](https://github.com/GTAmodding/re3/wiki/Running-OpenAL-build-on-Windows).
</details>

> :information_source: premake has an `--with-lto` option if you want the project to be compiled with Link Time Optimization.

> :information_source: There are various settings in [config.h](https://github.com/GTAmodding/re3/tree/master/src/core/config.h), you may want to take a look there.
> :information_source: There are various settings in [config.h](https://github.com/GTAmodding/re3/tree/miami/src/core/config.h), you may want to take a look there.

> :information_source: re3 uses completely homebrew RenderWare-replacement rendering engine; [librw](https://github.com/aap/librw/). librw comes as submodule of re3, but you also can use LIBRW enviorenment variable to specify path to your own librw.
> :information_source: reVC uses completely homebrew RenderWare-replacement rendering engine; [librw](https://github.com/aap/librw/). librw comes as submodule of re3, but you also can use LIBRW enviorenment variable to specify path to your own librw.

If you feel the need, you can also use CodeWarrior 7 to compile re3 using the supplied codewarrior/re3.mcp project - this requires the original RW33 libraries, and the DX8 SDK. The build is unstable compared to the MSVC builds though, and is mostly meant to serve as a reference.
If you feel the need, you can also use CodeWarrior 7 to compile reVC using the supplied codewarrior/reVC.mcp project - this requires the original RW34 libraries, and the DX8 SDK. The build is unstable compared to the MSVC builds though, and is mostly meant to serve as a reference.

## Contributing
As long as it's not linux/cross-platform skeleton/compatibility layer, all of the code on the repo that's not behind a preprocessor condition(like FIX_BUGS) are **completely** reversed code from original binaries.
Expand Down
2 changes: 1 addition & 1 deletion cmake/nx/NXFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set(CMAKE_EXECUTABLE_SUFFIX ".elf")

function(re3_platform_target TARGET)
function(reVC_platform_target TARGET)
cmake_parse_arguments(RPT "INSTALL" "" "" ${ARGN})

get_target_property(TARGET_TYPE "${TARGET}" TYPE)
Expand Down
File renamed without changes.
File renamed without changes.
Loading
Loading