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

Fix FreeCamere not enter after extract #327

Closed
wants to merge 199 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
7f2fbd7
Update Assembly to 0.14.5.5.29704
paulov-t Apr 16, 2024
c3db15f
Update GlobalUsings.cs to support 0.14.5.5.29704 and any future mods
paulov-t Apr 16, 2024
e02abb9
Update COMPILE document to reflect GlobalUsings.cs
paulov-t Apr 16, 2024
11d7448
Update VersionChecks()
paulov-t Apr 16, 2024
ddcaec3
Change Physical.PhysicalStamina to PhysicalStamina (from GlobalUsings…
paulov-t Apr 16, 2024
4a20f5a
Change Matchmaker.TimeHasComeController to TimeHasComeController (fro…
paulov-t Apr 16, 2024
f252ea9
Change Profile.ProfileHealth to ProfileHealth (from GlobalUsings.cs)
paulov-t Apr 16, 2024
6c395b5
Fix NullStatisticsManager missing interface method
paulov-t Apr 16, 2024
1861095
Cleanup
paulov-t Apr 16, 2024
03a46ee
Update CoopSITGame to support 0.14.5.5
paulov-t Apr 16, 2024
a1c8b53
Update SITGameComponent to support 0.14.5.5
paulov-t Apr 16, 2024
77ac578
Update CoopPlayer to support 0.14.5.5
paulov-t Apr 16, 2024
78fc58f
Update CoopInventoryControllerClient to support 0.14.5.5
paulov-t Apr 16, 2024
bfd12cf
Update CoopPlayerClient to support 0.14.5.5
paulov-t Apr 16, 2024
5521ba3
Update MultiplayerSITGame to support 0.14.5.5
paulov-t Apr 16, 2024
1078362
Cleanup GameClientUDP
paulov-t Apr 16, 2024
44cd4fe
Update FreeCameraController to support 0.14.5.5
paulov-t Apr 16, 2024
50c5497
Update RestoreBodyPartPatch to support 0.14.5.5
paulov-t Apr 16, 2024
ca6373e
Remove EndByTimerPatch (it isn't used)
paulov-t Apr 16, 2024
2bd0398
TradingBackend1 to TradingBackend support for 0.14.5.5
paulov-t Apr 16, 2024
af59891
method_56 to method_58 support for 0.14.5.5
paulov-t Apr 16, 2024
0060c26
method_55 to method_57 support for 0.14.5.5
paulov-t Apr 16, 2024
c55b090
Remove Damage/Pen from UI. BSG now do this.
paulov-t Apr 16, 2024
f54539d
Use FilterCustomizationClass.Default on OwnPlayer (Fix CoopPlayer.Com…
paulov-t Apr 16, 2024
689a18a
Cleanup CoopPlayerClient
paulov-t Apr 16, 2024
0f4e82a
Support 0.14.5.5 BodyPartDictionary
paulov-t Apr 16, 2024
25e1ae4
Assembly/0.14.5.5.29704 (#261)
mihaicm93 Apr 17, 2024
8f8f996
Refactor BSG GC and SIT GC routines into own component
paulov-t Apr 17, 2024
9d0906e
SITGC imprv
devbence Apr 17, 2024
150b4ea
SITGC improv2
devbence Apr 17, 2024
3ea3af7
Update SITGameGCComponent.cs
devbence Apr 17, 2024
f6f1ea1
Refactor BSG GC and SIT GC routines into own component (#262)
mihaicm93 Apr 17, 2024
f898170
Refactor TimeAndWeather Sync into its own Binary Packet & Component
paulov-t Apr 18, 2024
1193535
refactor sit-cd to use linux (again)
devbence Apr 18, 2024
701b6a2
refactor sit-cd to use linux (#264)
paulov-t Apr 18, 2024
f30886d
weathercurves
devbence Apr 18, 2024
b6afd12
GameDateTime is (probably) not needed (here)
devbence Apr 18, 2024
7739e99
add debug weather command
devbence Apr 18, 2024
856d18e
add debug weather command (#267)
paulov-t Apr 19, 2024
466630d
Refactor TimeAndWeather Sync into its own Binary Packet & Component (…
paulov-t Apr 19, 2024
8d5f64d
Fix Single Threaded errors and Memory Leak
paulov-t Apr 18, 2024
64a3880
Fix OnDestroy() Instance should be null (thanks @ArchangelWTF)
paulov-t Apr 19, 2024
008d392
Fix errors when hosting using p2p (thanks Bullet for explaining new l…
paulov-t Apr 19, 2024
a3bea45
Cleanup
paulov-t Apr 19, 2024
1023044
cleanup GameServerUdp unused code
paulov-t Apr 19, 2024
7e7aaba
Refactor GCHelpers to run BSG's GC
paulov-t Apr 19, 2024
7b68751
Fix Bot Initialization bug and Run GC when waiting for players
paulov-t Apr 19, 2024
8aa0443
Use Interlocked.Increment for botIndexer & GC on Game Stop
paulov-t Apr 19, 2024
83aa3e0
Fix Lootable Containers (game breaking bug) using Binary Packet
paulov-t Apr 19, 2024
e1d0501
Add BlockerError Fix
paulov-t Apr 19, 2024
82a7192
Always permit Bosses or Followers to spawn even if max bot count has …
ArchangelWTF Apr 20, 2024
8bc6007
Fixes up: Follower spawning, cultist spawning and time detection code…
ArchangelWTF Apr 20, 2024
3f30ca9
Set log back to debug
ArchangelWTF Apr 20, 2024
3029b75
Revert this function I changed for debugging
ArchangelWTF Apr 20, 2024
a424fb7
Fix Single Threaded errors and Memory Leak (#266)
paulov-t Apr 21, 2024
ead0ce9
[debug] add launch option to start raid automatically
belettee Apr 16, 2024
3af5b1d
[netcode] use flatbuffers to exchange player state data
belettee Apr 3, 2024
e02add5
[optim] lean playerstate packets (#271)
paulov-t Apr 21, 2024
8962fbd
[debug] add autoraid (#263)
paulov-t Apr 21, 2024
29af806
Merge branch 'development' into fix/blocker-error
mihaicm93 Apr 21, 2024
b341b23
Fix Blocker Error in errors log (#269)
paulov-t Apr 21, 2024
eceea42
fix merge woopsie
belettee Apr 21, 2024
a2d9c76
Update SIT-CI-Linux.yml
mihaicm93 Apr 21, 2024
55abebf
Update SIT-CI-Linux.yml (#276)
devbence Apr 21, 2024
f5142a2
fix missing symbol (#275)
mihaicm93 Apr 21, 2024
ab3f5bb
fix flatbuffers not handled correctly
belettee Apr 21, 2024
0a68583
fix flatbuffers not handled correctly (#277)
mihaicm93 Apr 21, 2024
abb5c47
Set ToggleUi to public
ArchangelWTF Apr 22, 2024
4fac0e9
Add Freecam commands to console
ArchangelWTF Apr 22, 2024
94e73d0
Update CI/CD
ArchangelWTF Apr 22, 2024
3bd5e55
Remove unused CI Workflow
ArchangelWTF Apr 22, 2024
b619bf2
Fix boss follower spawning, cultist time detection & spawning (#272)
mihaicm93 Apr 22, 2024
13214a8
Apply requested changes
ArchangelWTF Apr 22, 2024
27f0a0f
[CI] Update CI to use v4 actions (#279)
devbence Apr 23, 2024
2b8639a
custom keybind option for extract
devbence Apr 23, 2024
d5ba95e
[devtools] Add freecam to console commands (#278)
mihaicm93 Apr 23, 2024
cf5534f
[devtool] unlock doors
devbence Apr 23, 2024
8c9fa37
Update to 0.14.5.6.29774
paulov-t Apr 23, 2024
620f76b
freecam culling fix + effect removal + fastmode
devbence Apr 23, 2024
8d2e492
Fix FilterCustomizationClass1 in GlobalUsings.cs
paulov-t Apr 24, 2024
3d496b1
custom keybind option for extract (#280)
devbence Apr 24, 2024
1cfc007
Update to 0.14.5.6.29774 (#283)
devbence Apr 24, 2024
ef81cad
freecam culling fix + effect removal + fastmode (#282)
devbence Apr 24, 2024
d3a6fd5
[devtool] unlock doors (#281)
devbence Apr 24, 2024
337279d
Update version numbers for 1.11
paulov-t Apr 24, 2024
2b8132b
Update version numbers for 1.11 (#286)
mihaicm93 Apr 24, 2024
d35ae46
Assembly 0.14.1.2.29197
paulov-t Apr 25, 2024
220d213
Update NullStatisticsManager to 0.14.1.2
paulov-t Apr 25, 2024
d691acb
Update GlobalUsings to 0.14.1.2
paulov-t Apr 25, 2024
856b3d4
Complete backport to Aki 3.8 / 0.14.1.2.29197
paulov-t Apr 25, 2024
3653d23
Fix SITGameComponent issues
paulov-t Apr 25, 2024
4a72013
Fixes to Assembly to natively support DrakiaXYZ BigBrain & Waypoints
paulov-t Apr 26, 2024
45116fe
Improve Assembly to natively support SAIN (WIP)
paulov-t Apr 26, 2024
11ef311
Compiled against SPT Aki Assembly and tested SAIN. Works.
paulov-t Apr 27, 2024
0835014
If detected. Automatically remove incompatible Aki Custom.
paulov-t Apr 28, 2024
ba49b88
[http] big clean up + aki 3.8.1 compat
belettee Apr 26, 2024
0bcf9a9
[http] big clean up + aki 3.8.1 compat (#290)
paulov-t Apr 28, 2024
5bd9371
Merge branch 'master' into backtrack/Aki3.8
belettee Apr 28, 2024
bfeff33
Remove Disablers for Aki. Works fine without any changes. Maybe remov…
paulov-t Apr 28, 2024
d4ccb03
Ultimate Aki 3.8 & Native Mod Support Package (#291)
devbence Apr 28, 2024
336501e
Merge remote-tracking branch 'upstream/development' into merge-master…
belettee Apr 29, 2024
2b21d32
Process RestoreBodyPart in Packet rather than Patch
ArchangelWTF Apr 29, 2024
7c7c6bd
Cleanup unused Actionpackets & ActionpacketsMovement code, removes re…
ArchangelWTF Apr 29, 2024
5811d84
Process RestoreBodyPart in Packet rather than Patch (#294)
paulov-t Apr 29, 2024
d9041af
Replace old Gesture MRP patch with Packet
paulov-t Apr 29, 2024
5bc76bd
Replace old Gesture MRP patch with Packet (#298)
paulov-t Apr 30, 2024
ec8d178
Backmerge hotfixes (#292)
paulov-t Apr 30, 2024
2a6b186
Change default setting for host to Peer-to-Peer
paulov-t Apr 30, 2024
b03d001
Refactored Player Extraction and Fixed issues with host
paulov-t Apr 30, 2024
ac95b10
Replicate AI despawning on host to client
ArchangelWTF May 1, 2024
b0a427d
Remove unused using's
ArchangelWTF May 1, 2024
2af53a8
Replicate bot despawning to client when host despawns AI (#300)
paulov-t May 1, 2024
43e805a
Adds a compatibility layer to remove select Aki patches if they are d…
paulov-t May 1, 2024
cf0b3ec
Change default setting for host to Peer-to-Peer (#299)
devbence May 1, 2024
95865ac
Compatibility layer to remove Aki patches that break SIT (#301)
paulov-t May 1, 2024
12843d4
no need to say goodbye for the bots
devbence May 1, 2024
025b306
Add own WildSpawnType PrePatcher that can work along side Aki's
paulov-t May 1, 2024
4405145
Disable 3 Aki Patchers that wont work without their PrePatcher being …
paulov-t May 1, 2024
5f6df01
Expand WebSocketPatch.cs to cover the 0.0.0.0 bug that causes Flea Ma…
hickorysb May 2, 2024
6cbc8c3
Use UriBuilder instead
hickorysb May 2, 2024
4ad0ef4
Update solution file with correct workflows
paulov-t May 2, 2024
05a7b4e
Update CD to include PrePatcher
paulov-t May 2, 2024
5fc8206
Assign correct path for Pre Patcher
paulov-t May 2, 2024
99ac311
Remove Newtonsoft.Json.dll from being included in the build
paulov-t May 2, 2024
45e250b
Update CI to include Pre Patcher
paulov-t May 2, 2024
ad53c5b
Remove all pdb
paulov-t May 2, 2024
e7de995
SIT Prepatcher (#305)
paulov-t May 2, 2024
5df7d25
Refactor to support a Raid Status (WAITING, IN GAME etc)
paulov-t May 2, 2024
a2889f8
Rearrange some of the matchmaker screen
paulov-t May 2, 2024
12b61f6
Set PlayerOwnerInventoryController to PlayerInventoryController (As s…
ArchangelWTF May 2, 2024
e307421
Replicate dropping a backpack to everyone else at the same time as it…
ArchangelWTF May 2, 2024
6fe276b
Small nits
ArchangelWTF May 2, 2024
7ede630
Fast backpack replication & PlayerOwnerInventoryController change (#306)
paulov-t May 3, 2024
1cd9cb2
Move despawning to SITGameComponent
ArchangelWTF May 3, 2024
0c9f222
Wrap in try/catch, only DestroyImmediate if gameObject isn't null
ArchangelWTF May 4, 2024
0b3bffc
Remove try/catch, keep null check
ArchangelWTF May 4, 2024
0caf214
Fix up exceptions in CoopSITGame's Cleanup functions
ArchangelWTF May 4, 2024
924c008
Merge branch 'development' into cleanup_unused_replication
ArchangelWTF May 4, 2024
491cdaf
Remove, was included in merge
ArchangelWTF May 4, 2024
4726367
make bot teleport distance configurable.
kapdon May 6, 2024
3fab35b
make bot teleport distance configurable. (#309)
paulov-t May 7, 2024
8472823
Add information bar for further features
paulov-t May 7, 2024
cf2c7e2
Flea Market 0.0.0.0 WS bug (#303)
paulov-t May 7, 2024
a633458
[fix] no update for bots (#302)
paulov-t May 7, 2024
6834296
Raid Statuses (#310)
paulov-t May 7, 2024
4bb2517
Cleanup unused replication out of patches, remove ActionPackets & Ac…
paulov-t May 7, 2024
2f2c473
Refactored Player Extraction and Fixed issues with host
paulov-t Apr 30, 2024
dad9f86
Remove unused fields/properties
paulov-t May 1, 2024
224aab7
Merge branch 'refactor/player-extraction' of https://github.com/stayi…
paulov-t May 7, 2024
6343f59
Fix Player Extraction Sync (#311)
paulov-t May 7, 2024
a4e7ff3
Fix error with mods on Client because IBotGame was not being instanti…
paulov-t May 7, 2024
b69c66d
Fix IBotGame not existing on client (#312)
devbence May 7, 2024
96f8bf6
Fix the sync of usage of bullets in guns between clients
paulov-t May 7, 2024
5ac7d06
Fix Camora / Cylinder bullet use sync
paulov-t May 9, 2024
3bf9032
change role numbers to 47 and 48 as used by aki 3.8.*
paulov-t May 10, 2024
758a255
Cleanup InitiateShotPacket usings
paulov-t May 10, 2024
302ad6a
Fix Sync of usage of bullets between Clients (#313)
devbence May 11, 2024
715ab79
Fix IsHostileToEverybodyPatch sptusecbear numbers (#315)
devbence May 11, 2024
450d394
Refactored Airdrops into serialized packets
paulov-t May 13, 2024
cb63d79
Remove annoying logging from TimeAndWeatherPacket
paulov-t May 13, 2024
da6193e
Cleanup UpdateExfiltrationPointPacket
paulov-t May 13, 2024
4ff98fd
Synchronize Airdrop box Position
paulov-t May 13, 2024
9323565
Synchronize box position from Server
paulov-t May 13, 2024
99e6630
Remove unused WeatherSync coroutine
paulov-t May 13, 2024
e81ac61
Fix issues with Airdrop Sync between Server -> Client
paulov-t May 13, 2024
30fca9f
Squashed commit of the following:
paulov-t May 18, 2024
3a254df
Remove Prefix false of patch. DestroyInfo is required so the AI syste…
paulov-t May 18, 2024
6905de5
Small changes and refactor to code for performance
paulov-t May 18, 2024
0b793c1
Fix conflicts
paulov-t May 18, 2024
c5f8311
Move despawning to SITGameComponent & Fix CleanUp in CoopSitGame (#307)
paulov-t May 18, 2024
b27f8f5
Refactor / fix / cleanup RaidTimer and Weather Sync
paulov-t May 18, 2024
6e76245
retry if asyncrequest fails, (fixes stuck on 0:0:0)
devbence May 19, 2024
c72d3f0
PascalCase AsyncRequest... methods
paulov-t May 19, 2024
bc968c2
Fix issue where Http Attempts were not working and properly use Singl…
paulov-t May 19, 2024
10b2de1
lower timeout, add stopwatch to asyncrequest
devbence May 19, 2024
5b4d60d
postjsonasync server delete
devbence May 19, 2024
32557b1
retry if asyncrequest fails, (fixes stuck on 0:0:0) (#318)
paulov-t May 19, 2024
f4757f3
Refactor GameTimer And Weather (#317)
paulov-t May 19, 2024
7951e38
Remove finally which was causing a delay on ALL (even successful) calls
paulov-t May 20, 2024
8f9d564
Fix AkiBackendCommication bad delay (#320)
devbence May 20, 2024
3fa502c
missing session info on questcontroller
kapdon May 23, 2024
666ad2c
Merge branch 'development' into refactor/airdrops-packets
artehe May 24, 2024
7d49cc6
Have freecam on death and also allow for first person following of pmcs
artehe May 24, 2024
af3ed69
filter to only human players
artehe May 25, 2024
e26eb32
I went too far with the position
artehe May 26, 2024
c547bdd
clean up some bits
artehe May 26, 2024
7f83b7b
Improve switching camera and move the camera to possibly the shoulder
artehe May 30, 2024
395909c
update camera positions better
artehe May 31, 2024
0ac0e35
update airdrop box from SPT
artehe May 31, 2024
524626b
apply change from SPT to flare patch
artehe May 31, 2024
87842d8
switch list to dictionary and clean up airdrops manager
artehe May 31, 2024
dead90f
Update SITGameGCComponent.cs
kapdon Jun 1, 2024
d48d4c6
add patches from spt for botbrain setting
artehe Jun 3, 2024
edd24f2
Update SITGameGCComponent.cs (#325)
Plootie Jun 3, 2024
07a2971
Have freecam on death and also allow for first person following of pm…
mihaicm93 Jun 3, 2024
629e541
SPT bot brain patches (#326)
mihaicm93 Jun 3, 2024
2699ee8
missing session info on questcontroller (#321)
mihaicm93 Jun 3, 2024
85b4733
Airdrops fix (#324)
mihaicm93 Jun 3, 2024
3c9ada9
Fix FreeCamere not enter after extract
JimWails Jun 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 13 additions & 44 deletions .github/workflows/SIT-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: SIT Build Release
on:
workflow_dispatch:


permissions:
contents: write

Expand All @@ -16,78 +15,48 @@ jobs:
matrix:
configuration: [Release]

runs-on: windows-latest
runs-on: ubuntu-latest

env:
SolutionName: StayInTarkov
CSProj: Source/StayInTarkov.csproj
ProjectClient: Source/StayInTarkov.csproj
ProjectPrePatcher: SIT.WildSpawnType.PrePatcher/SIT.WildSpawnType.PrePatcher.csproj

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0


# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

# Restore all projects
- name: dotnet Restore
run: dotnet restore

# Publish the Launcher as Self-Contained Single-File
- name: dotnet Publish
- name: dotnet build
run: |
mkdir ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.CSProj }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.ProjectClient }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.ProjectPrePatcher }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}

- name: Get version from DLL
id: extract-version
run: |
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("${{ env.SolutionName }}-${{ matrix.configuration }}\StayInTarkov.dll").ProductVersion
echo "::set-output name=VERSION::$version"


- name: Remove unnecessary files
run: |
del ${{ env.SolutionName }}-${{ matrix.configuration }}\StayInTarkov.pdb

#- name: Display Version in Logs
# run: echo "The extracted version is ${{ steps.extract-version.outputs.VERSION }}"
version=`monodis --assembly ${{ env.SolutionName }}-${{ matrix.configuration }}/StayInTarkov.dll | grep Version | awk '{print $2}'`
echo "VERSION=$version" >> "$GITHUB_ENV"

- name: Zip remaining files
run: |
Compress-Archive -Path ${{ env.SolutionName }}-${{ matrix.configuration }} -DestinationPath ${{ env.SolutionName }}-${{ matrix.configuration }}.zip

cd ${{ env.SolutionName }}-${{ matrix.configuration }}
zip -r ../${{ env.SolutionName }}-${{ matrix.configuration }}.zip ./*.dll


# Upload artifact unless its merge to master
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: StayInTarkov-${{ matrix.configuration }}
path: ${{ env.SolutionName }}-${{ matrix.configuration }}\
if-no-files-found: error

#- name: Set build date
# run: |
# $NOW=& Get-Date -format yyyy-MM-dd-HH-mm
# echo "NOW=$NOW" >> $env:GITHUB_ENV

# Create release as draft from the compressed file
- name: Create Release
uses: softprops/action-gh-release@v1
if: ${{ matrix.configuration == 'Release' }}
with:
draft: true
generate_release_notes: true
files: ${{ env.SolutionName }}-${{ matrix.configuration }}.zip
tag_name: StayInTarkov.Client-${{ steps.extract-version.outputs.VERSION }}
tag_name: StayInTarkov.Client-${{ env.VERSION }}
14 changes: 8 additions & 6 deletions .github/workflows/SIT-CI-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ jobs:

env:
SolutionName: StayInTarkov
CSProj: Source/StayInTarkov.csproj
ProjectClient: Source/StayInTarkov.csproj
ProjectPrePatcher: SIT.WildSpawnType.PrePatcher/SIT.WildSpawnType.PrePatcher.csproj

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

Expand All @@ -49,12 +50,13 @@ jobs:
- name: dotnet Publish
run: |
mkdir ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.CSProj }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.ProjectClient }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}
dotnet build ${{ env.ProjectPrePatcher }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }}

# Remove unnecessary files
- name: Remove unnecessary files
run: |
rm ${{ env.SolutionName }}-${{ matrix.configuration }}/StayInTarkov.pdb
rm ${{ env.SolutionName }}-${{ matrix.configuration }}/*.pdb

# Zip remaining files
- name: Zip remaining files
Expand All @@ -63,7 +65,7 @@ jobs:

# Upload artifact with GitHub commit SHA
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.SolutionName }}-${{ matrix.configuration }}-${{ github.sha }}
path: ${{ env.SolutionName }}-${{ matrix.configuration }}/
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/SIT-CI.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Andrew-Chen-Wang/github-wiki-action@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#
[Bb]in/
[Dd]ebug/
/vcpkg_installed

# User-specific files
*.rsuser
Expand Down
17 changes: 12 additions & 5 deletions COMPILE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
## How to compile?
## How to compile Master branch?
1. Create Working Directory for all Tarkov Modding {EFT_WORK}
2. Clone this {SIT_CORE} to a {SIT_CORE} directory inside {EFT_WORK}
3. Open the .sln with Visual Studio 2022
4. Rebuild Solution (This should download and install all nuget packages on compilation)

## How to compile on Latest EFT?
1. Create Working Directory for all Tarkov Modding {EFT_WORK}
2. Clone this {SIT_CORE} to a {SIT_CORE} directory inside {EFT_WORK}
3. Copy your Live Tarkov Directory somewhere else {EFT_OFFLINE}
4. Deobfuscate latest Assembly-CSharp in {EFT_OFFLINE} via [SIT.Launcher](https://github.com/paulov-t/SIT.Tarkov.Launcher). Ensure to close and restart Launcher after Deobfuscation.
5. Copy all of {EFT_OFFLINE}\EscapeFromTarkov_Data\Managed assemblies to References {TARKOV.REF} in the folder of this project {EFT_WORK}
4. Deobfuscate latest Assembly-CSharp in {EFT_OFFLINE} via [SIT.Launcher](https://github.com/paulov-t/SIT.Launcher.Classic). Ensure to close and restart Launcher after Deobfuscation.
5. Copy {EFT_OFFLINE}\EscapeFromTarkov_Data\Managed\Assembly-CSharp to References {TARKOV.REF} in the folder of this project {EFT_WORK}
6. You will need BepInEx Nuget Feed installed on your PC by running the following command in a terminal.
```
dotnet new -i BepInEx.Templates --nuget-source https://nuget.bepinex.dev/v3/index.json
```
7. Open the .sln with Visual Studio 2022
8. Rebuild Solution (This should download and install all nuget packages on compilation)
8. Copy the `contents` of `_GlobalUsings.SITRemapperConfig.cs` into `GlobalUsings.cs` in this project. `!Manually remove bad remaps!`
9. Rebuild Solution (This should download and install all nuget packages on compilation)

## Which version of BepInEx is this built for?
## Which version of BepInEx is this project compatible with?
Version 5
Binary file modified References/Assembly-CSharp.dll
Binary file not shown.
28 changes: 28 additions & 0 deletions SIT.WildSpawnType.PrePatcher/SIT.WildSpawnType.PrePatcher.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<AssemblyName>SIT.WildSpawnType.PrePatcher</AssemblyName>
<Configuration>Release</Configuration>
</PropertyGroup>

<PropertyGroup>
<Company>Stay In Tarkov</Company>
<Copyright>Copyright @ Stay In Tarkov 2024</Copyright>
<Description>Stay in Tarkov plugin for Escape From Tarkov</Description>
</PropertyGroup>

<ItemGroup>
<Reference Include="Assembly-CSharp" HintPath="..\References\Assembly-CSharp.dll" Private="False" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" ExcludeAssets="runtime" PrivateAssets="all">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" Private="False" ExcludeAssets="runtime" PrivateAssets="all" />
</ItemGroup>

</Project>
35 changes: 35 additions & 0 deletions SIT.WildSpawnType.PrePatcher/WildSpawnTypePrePatcher.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Collections.Generic;
using System.Linq;
using Mono.Cecil;

namespace StayInTarkov
{
public static class WildSpawnTypePrePatcher
{
public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" };

public static int sptUsecValue = 47;
public static int sptBearValue = 48;

public static void Patch(ref AssemblyDefinition assembly)
{
var botEnums = assembly.MainModule.GetType("EFT.WildSpawnType");

var sptUsec = new FieldDefinition("sptUsec",
FieldAttributes.Public | FieldAttributes.Static | FieldAttributes.Literal | FieldAttributes.HasDefault,
botEnums)
{ Constant = sptUsecValue };

var sptBear = new FieldDefinition("sptBear",
FieldAttributes.Public | FieldAttributes.Static | FieldAttributes.Literal | FieldAttributes.HasDefault,
botEnums)
{ Constant = sptBearValue };

if(!botEnums.Fields.Any(x => x.Name == "sptUsec"))
botEnums.Fields.Add(sptUsec);

if(!botEnums.Fields.Any(x => x.Name == "sptBear"))
botEnums.Fields.Add(sptBear);
}
}
}
34 changes: 34 additions & 0 deletions Source/AI/BlockerErrorFixPatch.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//using EFT;
//using HarmonyLib;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Reflection;
//using System.Security.Cryptography.X509Certificates;
//using System.Text;
//using System.Threading.Tasks;

//namespace StayInTarkov.AI
//{
// /// <summary>
// /// Paulov: Stay in Tarkov causes an error with the phrase BLOCKER ERROR caused by spt WildSpawnTypes
// /// This patch resolves this error by adding the spt WildSpawnTypes to the ServerBotSettingsClass
// /// LICENSE: This patch is only for use in Stay In Tarkov
// /// </summary>
// public sealed class BlockerErrorFixPatch : ModulePatch
// {
// protected override MethodBase GetTargetMethod()
// {
// return AccessTools.GetDeclaredMethods(typeof(ServerBotSettingsClass)).First(x => x.Name == nameof(ServerBotSettingsClass.Init));
// }

// [PatchPrefix]
// public static bool Prefix(Dictionary<WildSpawnType, ServerBotSettingsValuesClass> ___dictionary_0)
// {
// var enumValues = Enum.GetValues(typeof(WildSpawnType));
// ___dictionary_0.Add((WildSpawnType)enumValues.GetValue(enumValues.Length - 2), new ServerBotSettingsValuesClass(false, false, true, "ScavRole/PmcBot"));
// ___dictionary_0.Add((WildSpawnType)enumValues.GetValue(enumValues.Length - 1), new ServerBotSettingsValuesClass(false, false, true, "ScavRole/PmcBot"));
// return true;
// }
// }
//}
Loading
Loading