Samlis / AliasIsolationForEpicGamesStore

AliasIsolation mod tailored for the Epic Games Store
6 stars 0 forks source link

The injector produces an error when starting the game. #5

Open mynamejeffee opened 2 years ago

mynamejeffee commented 2 years ago

I've followed the steps and it works (the cmd window shows the TAA was injected when I run the AI.exe) but after a second in the game, an error appears. The error says "g_device->CreateTexture2D(&texDesc, nullptr, &tempTex) failed." and another window pops up saying something about the Epic Games Overlay. Any help is appreciated. I'm on Windows 10 btw.

Samlis commented 2 years ago

It's caused by Epic overlay - rename the Overlay folder under your Epic installation to something else, e.g. if your Epic is installed under C:\Program Files (x86)\Epic Games

rename folder C:\Program Files (x86)\Epic Games\Launcher\Portal\Extras\Overlay to something else, like C:\Program Files (x86)\Epic Games\Launcher\Portal\Extras\OverlayABC.

Game + mod still work fine for me on Win10.

mynamejeffee commented 2 years ago

I tried that and it works! The issue is that when opening up the Epic Games Store after startup, it finds the "Overlay" folder but throws an error if you renamed it. To fix the issue of having to manually rename the folder every time you start the computer, I've found a way to automate it within the batch script itself. Here's what I've made if you or anyone else are interested:

@ECHO OFF
RENAME "C:\Program Files (x86)\Epic Games\Launcher\Portal\Extras\Overlay" "Overlay1"
%1
for /l %%x in (1, 1, 400) do aliasIsolationInjector.exe
timeout /T 15
RENAME "C:\Program Files (x86)\Epic Games\Launcher\Portal\Extras\Overlay1" "Overlay"

It first renames the folder Overlay folder into something else (I just chose "Overlay1"). Then it executes the injection steps and then waits for 15 seconds before renaming the folder back to "Overlay." That's enough time to fully inject the anti-aliasing so you don't have to rename the folder everytime. I then execute the following command in the RUN program:

"C:\Users\*username*\Downloads\Compressed\aliasIsolation-EpicGamesStore_R1.1\epicisolation.cmd" "D:\Games\AlienIsolation\AI.exe"

The two things to note are (1) that you have to start the EGS launcher first before doing the step above and (2) if you exit the batch script while it is running, you're gonna have to rename the folder back to "Overlay"

MinChoco3007 commented 2 years ago

I followed your step but kept getting this --------------------------- Fatal error

A fatal error was caught by Alias Isolation, and the current process will terminate. A crash dump has been written to C:\Users\newusername\AppData\Local\Temp\aliasIsolationCrashDump.dmp. Press Ctrl+C to copy the contents of this message to the clipboard.

DebugBreak DebugBreak aliasIsolation_hookableOverlayRender ?? ?? ?? ?? ?? ??


OK

Egor179 commented 2 years ago

Check if all paths are correct on the command line

MinChoco3007 commented 2 years ago

I double-checked them again. Still the same error