Skip to content

Commit a1f7649

Browse files
committed
optimization, fixed sstatic effects, visuals
- Optimized initialization of cinetools to make it instant - Updated the proper game build to where it says it was made for the latest - Added functionality to: - FilmicEffects - Vignette - FilmGrain - RadialBlur - SpriteDOFNearEnable - DepthOfField (glitchy) - Disabled the Animator tab in misc until the options are fixed (@ Nat just remove the patch as labed in main.efptxt)
1 parent d81479b commit a1f7649

File tree

5 files changed

+28
-10
lines changed

5 files changed

+28
-10
lines changed

Updater/CTUpdater/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private void FetchUpdate(string zipAddress)
146146
{
147147
if (zipArchiveEntry.FullName.Contains("Updater"))
148148
{
149-
zipArchiveEntry.ExtractToFile("./Updater.exe", true);
149+
zipArchiveEntry.ExtractToFile("./NewUpdater.exe", true);
150150
}
151151
else
152152
{

builddate.efptxt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// This is required to get updating working as the updater checks if the timestamp is larger or not to update.
22
// I'm gonna pretty much change this into an int that is a version number since thats easy to manage.
33
GOTO 0x150
4-
INT32 1020
4+
INT32 1040

gameversion.efptxt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
// Most updated version: '2020-08-13'
44
// Notes: we cant actually do this as cinetools acts differently as a result :/
55
GOTO 0xade050
6-
WRITESTRINGN "2077-69-42"
7-
// WRITESTRINGN "2020-08-13"
6+
// WRITESTRINGN "2077-69-42"
7+
WRITESTRINGN "2020-08-13"

main.efptxt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
// Fix animation loading
5959
0x8ebf5 WRITE 18 04 // idk what this does lmao
6060

61+
// TEMP: Disable "Animator" menu until it is fixed (!!REMOVE TO WORK ON IT)
62+
0xa843c WRITE EB 1A // turns the call for creating the menu item into a jmp
63+
64+
65+
// Fix crash on rotate effect
66+
0x98a71 WRITE 58 // shift a func in vtable by 8 bytes
67+
0x98a96 WRITE 58
6168

6269
// god i hope this works
6370
// this attempts to put the input manager as the argument instead of
@@ -66,4 +73,15 @@
6673

6774
// skips everything to do with fb::setMouseState because it
6875
// has an extremely bad crash we cant fix rn
69-
0xa7497 WRITE 90 90 90 90 90 90 90 90 90 90 90 90 // NOP x 12 or 0xB times
76+
0xa7497 WRITE 90 90 90 90 90 90 90 90 90 90 90 90 // NOP x 12 or 0xC times
77+
78+
79+
// Visual toggle fixes
80+
// in 0xd480
81+
0xa33f8 WRITE F4 0C // FilmicEffects - 0xCF4
82+
0xa3454 WRITE 50 0E // Vignette - 0xE50
83+
0xa341e WRITE 98 0E // FilmGrain - 0xE98
84+
0xa3431 WRITE 00 13 // RadialBlur - 0x1300
85+
0x8a6fd WRITE 23 0E // DOF - 0xE23
86+
// in 0x918
87+
0xa381c WRITE 37 02 // SpriteDofNearEnable - 0x237

staticoffsets.efptxt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
@LittleEndian
88

99
// OFFSET_DXRENDERER
10-
0x3f386 INT64 0x143FFBA28
10+
0x3f1e2 INT64 0x143FFBA28
1111

1212
// OFFSET_DX12RENDERER
13-
0x3f410 INT64 0x143D5D3B8
13+
0x3f2f8 INT64 0x143D5D3B8
1414

1515
// OFFSET_GAMERENDERER
1616
0x3f386 INT64 0x143FFBE10
@@ -28,7 +28,7 @@
2828
0x3f5ae INT64 0x143DED728
2929

3030
// OFFSET_MESHSETTINGS
31-
0x3f638 INT64 0x143D685E0
31+
0x3f638 INT64 0x143D78820
3232

3333
// OFFSET_CLIENTGAMECONTEXT
3434
0x3f6c2 INT64 0x143DD7948
@@ -64,13 +64,13 @@
6464
0x3fc2d INT64 0x141D9C920
6565

6666
// OFFSET_DISABLEAI
67-
0x3fcb9 INT64 0x1401941F1
67+
0x3fcb9 INT64 0x140354245
6868

6969
// OFFSET_DEPTHBUFFER
7070
0x3fd45 INT64 0x1415FCD40
7171

7272
// OFFSET_SETMOUSESTATE
73-
0x3fdd1 INT64 0x145DB49F1
73+
0x3fdd1 INT64 0x145DB49F1 // OGC: 0x1415FCD40
7474

7575
// OFFSET_FACTORYUPDATE
7676
0x3fe5d INT64 0x14090EB90

0 commit comments

Comments
 (0)