NVIDIAGameWorks / rtx-remix

Combined repo for the RTX-Remix runtime
https://www.nvidia.com/en-us/geforce/rtx-remix/
MIT License
1.37k stars 69 forks source link

Battlefield 2 not launching #43

Closed heakasr closed 4 months ago

heakasr commented 1 year ago

Describe the bug

Attach logs!

To Reproduce Steps to reproduce the behavior:

  1. install remix
  2. bf2.exe or shortcut
  3. Darkness...

Expected behavior Would have thought it would on early DX9 versions, have tried disabling intro videos, running windowed mode, etc. no luck

heakasr commented 1 year ago

Hmm ok, will reinstall full game and 1.5 sometime soon. In the meantime:

Clearing Shader Optimizations: When you change the graphical settings BF2 attempts to optimize the shaders used in the game for the best performance on your particular hardware. These optimized files are stored in your \Documents and Settings\[username]\My Documents\Battlefield 2\mods\bf2\cache\ directory. If you've changed your settings several times, I recommend you finalize your changes, close BF2, go to the above directory and delete everything under the \cache\ directory. The next time you start the game and play single or multiplayer, your shaders will be optimized again. Close BF2 one more time, defragment your hard drive, and now things should be much smoother and load much faster the next time you go to play BF2.

This may be a way to bypass shader opti... launch game, drop settings to lowest, restart and load into a map, shut down game and relaunch with rtx remix and load into same map again... may help to do "read only" on the config file to prevent changes that may happen cause I remember bf2 doing that back in the day...

PS accidentally thumbed the close with comment button while typing this on mobile... opened again lol

heakasr commented 1 year ago

I have considered that possibility prior to starting on BF2... hence why I started on the earliest build of the game (BF2 Demo). The minimum requirements ask for directx9a/b and shader model 2.0 capable cards such as the radeon x700 and the geforce FX 5800.

I wouldnt doubt that later patches to BF2 increased these requirements due to the introduction of Expansions such as Special Forces and the other two (intro to night maps and other effects)...

I feel that there is still a chance in making progress here but it definitely may be an easier time switching over to BF 'Nam... BF1942 is already proven with the Portal version.

Anyhow I will attempt BF2 retail release with the Dedicated Server workaround you discovered.

heakasr commented 1 year ago

I cant get autologin to work on the shortcut via +playerName defaultPlayer... so I get stuck on log in screen, which is still preventing my from successfully hooking nvremix... +joinServer gets interrupted in my case

Here is the demo version in case anyone else wants to try. (Demo installer comes with Dedicated server tools as well, so link below is redundant but may be useful just in case) https://www.gamefront.com/files/battlefield-2-demo-client-files/download https://www.gamefront.com/files/battlefield-2-demo-windows-server-files/download

heakasr commented 1 year ago

only have the defaultPlayer offline account, it just wont skip the menu... Could be some of these commands did not exist until later patches but thats just a wild guess...

have tried various different combos of shortcut commands from joining server to creating an offline ai bot match but the roadblock is still auto logging into offline account...

regardless my bf2_d3d9.log is giving me D3D9DeviceEx::SetRenderState: Unhandled render state D3DRS_MULTISAMPLEANTIALIAS

which im sure is just being caused by the main menu

heakasr commented 1 year ago

Can you share your bf2_d3d9.log, d3d9.log and NvRemixBridge.log please?

heakasr commented 1 year ago

Just tried it again, even manually deleted default profiles... no combination of commands (with +playerName and without, with create local server, joining dedicated server)... These commands just wont work for demo version BF2 I guess... so Im hard locked unless theres a way to trick into hooking after the Menu

You definitely had it successfully hooked though! I feel like a modder from BF:PR or something can probably get around the loading menu and make it bypass some functions to skip your current roadblock though...

On a side note have you started to mess with BF:'Nam?

NV-LL commented 5 months ago

Hello! Will you please test this on the latest release and let us know if the issue persists? Thank you!