xenia-project / game-compatibility

https://xenia.jp
BSD 3-Clause "New" or "Revised" License
456 stars 145 forks source link

4D5307EA - Forza Motorsport 2 #145

Open sephiroth99 opened 8 years ago

sephiroth99 commented 8 years ago

Marketplace

Tested with benvanik/xenia@76efd13

Old Log

Issues:

Game goes through intro titles fine, displays a black menu

Screenshots:

xenia_2015-11-01_14-25-11

xenia_2015-11-05_20-33-41

DrChat commented 8 years ago

Should be able to find the section, it clearly exists under XEX_HEADER_RESOURCE_INFO. Try it again maybe?

sephiroth99 commented 8 years ago

Yeah it goes past that point now

Updated status:

Tested with benvanik/xenia@c3ecb1b

Log

Crashes with unhandled exception error when querying priority of a thread (see here). thread_ is "empty" as per VS debugger.

It may be just because I only have 4 logical processors on my machine, I know I have problems with other games e.g. Minecraft doesn't work for me.

Stacktrace:

>   xenia.exe!xe::kernel::XThread::QueryPriority() Line 597 C++
    xenia.exe!xe::kernel::xboxkrnl::KeSetBasePriorityThread_shim(xe::cpu::frontend::PPCContext_s * ppc_context, xe::kernel::KernelState * kernel_state) Line 282    C++
    [External Code] 

Tags : state-crash

DrChat commented 8 years ago

thread should not be NULL in that state. ExCreateThread calls XThread::Create which initializes thread.

According to your logs, thread creation is successful. Could you look into why thread_ is still NULL? I'm also assuming you're running Windows, not Linux.

sephiroth99 commented 8 years ago

Yeah I'm on Windows 10 (on Linux, xenia does not fully compile yet anyway).

I'll try to find what is happening with thread_, might not have time soon, so in a coupe of days I should have an update.

sephiroth99 commented 8 years ago

So I tried to find the cause of the crash, but wasn't successful...

By debugging, I found out that sometimes the "thread_" value is not NULL (but points to garbage), and once it even started the game properly! This tells me it's either memory corrpution somehow, or the value gets destroyed (unique_ptr decides the value is not used anymore).

Other than that, I don't know what is happening...

sephiroth99 commented 8 years ago

Found it.

KeSetBasePriorityThread(0000183C, 00000011)

0x183c is a thread handle, not a pointer. The workaround here needs to be incremeted. With 0x2000 it works well :)

I guess the same workaround here needs to be updated right? @DrChat it was you who introduced the workaround in KeSetBasePriorityThread_shim, is it safe to increase it?

As for the game, will update the status once the fix is commited.

DrChat commented 8 years ago

Yeah, though I'm wondering why they're even doing that. The first parameter is supposed to be a pointer, not a handle. Xboxkrnl would crash if they did that there.

Edit: Should be fixed in benvanik/xenia#447

sephiroth99 commented 8 years ago

Tested the fix and it does works, good job on the real fix :)

DrChat commented 8 years ago

Okay, cool. Could you update the issue with new info on how far it gets/etc?

sephiroth99 commented 8 years ago

Sure!

With ignore_undefined_externs=true, the game crashes.

With ignore_undefined_externs=false, you get the error message box for undefined extern, which says undefined extern call to 8294F2E8 KeSetCurrentStackPointers

If you leave the message box there, the game continues in the background. Audio works (you hear the intro videos of Turn 10, Microsoft Studios, the intro video, etc). I get no display, black screen only (because AMD GPU...).

There are some libav errors in the log, only at the beginning though: 1st

!> 0000000C libav: overflow in spectral RLE, ignoring

2nd (Various frame numbers and size for this one, biggest frame number I see is 77)

w> 0000000C libav: frame[0] would have to skip 432 bits 

3rd

w> 0000000C libav: Reserved bit
w> 0000000C libav:  is not implemented. Update your Libav version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
w> 0000000C libav: If you want to help, upload a sample of this file to ftp://upload.libav.org/incoming/ and contact the libav-devel mailing list.
A> 0000000C libav failed to decode a frame!

4th

!> 0000000C libav: invalid number of fill bits
A> 0000000C libav failed to decode a frame!

I can upload the full log if needed, I let xenia go until Catalyst had enough and crashed, so the log is ~170MB!

DrChat commented 8 years ago

https://gist.github.com/DrChat/47a7ce5225a0a5a85613

Stuff that into xboxkrnl_threading.cc and see what happens

sephiroth99 commented 8 years ago

Unhandled exception at 0x00007FF62DE36596 in xenia.exe: 0xC0000005: Access violation writing location 0x0000000000C4A070. capture

DrChat commented 8 years ago

I updated the gist link - retry it please

DrChat commented 8 years ago

Got a hold of a copy. The game now suffers from the same issue as #217.

Ale100000 commented 8 years ago

something new fzm2

Sleepy93 commented 7 years ago

Update

just tested for update logs and see the results. Xenia drawn correctly the intro but after into Xenia crash with stopped working.

Tested

On (https://github.com/benvanik/xenia/commit/a148b965f19a99e4ea6c346075bd19de19f085fc)

Issues

crash after intros

Log

File (http://www.mediafire.com/file/2bfjuja5u68lh15/Forza2_161030.rar)

Labels

Sleepy93 commented 7 years ago

Update

plays the intro but after them Xenia has crashed.

Unhandled exception at 0x000000006DFBF0F0 (nvoglv64.dll) in xenia.exe: Fatal program exit requested.

Tested

On (https://github.com/benvanik/xenia/commit/70bd283e80125932339f23a54e5efcb3c74f0456)

Log file

Forza2_70db283e_161210.zip

Labels

Sleepy93 commented 7 years ago

Update

Unhandled exception at 0x000000005DE9E094 (nvoglv64.dll) in xenia.exe: Fatal program exit requested.

Tested

On (https://github.com/benvanik/xenia/commit/39cb957f1b827bc7f991dc19ee5f7a6f25aa50fb)

Log file

FM2_39cb957f_intro_crash_gpu.zip

Labels

Sleepy93 commented 6 years ago

Update:

Instant crash...

!> 00000044 ResolvePath(\Device\Harddisk0) failed - no root found

GPU:

writes to unk. register

Unimplemented:

Tested:

On (https://github.com/benvanik/xenia/commit/eecc9d0aea1a0c841d9ddfa0d182c22a10ea4f86)

Log:

forza2.txt

Labels:

NotActuallyTerry commented 5 years ago

Tested on https://github.com/xenia-project/xenia/commit/2de0e26 Runs fine with slight stuttering up until ~36s of gameplay, then it completely locks up Xenia and closes (last screenshot). 1544963426 1544963523 1544963552

!> 00000044 ResolvePath(\Device\Harddisk0\) failed - no root found
!> 00000044 ResolvePath(update:\) failed - no root found
!> 00000044 ResolvePath(Placeholder.fsb) failed - no root found
!> 00000044 ResolvePath(UIFrontEnd.fsb) failed - no root found
!> 00000044 ResolvePath(UIInGame.fsb) failed - no root found
!> 00000044 Unimplemented XLIVEBASE message app=000000FC, msg=00058037, arg1=00CA1000, arg2=4032F870
!> 00000044 undefined extern call to 8294E778 NetDll_getsockopt
!> 000018AC ResolvePath(Transmissions.fsb) failed - no root found
!> 000018AC ResolvePath(SuperChargers.fsb) failed - no root found
!> 000018AC ResolvePath(Turbos.fsb) failed - no root found
!> 000018AC ResolvePath(Damage.fsb) failed - no root found
!> 000018AC ResolvePath(Wind.fsb) failed - no root found
!> 000018AC ResolvePath(Tires.fsb) failed - no root found
!> 000018AC ResolvePath(Suspension.fsb) failed - no root found
!> 000018AC ResolvePath(Collisions.fsb) failed - no root found
...

xenia.zip

strangermoon commented 5 years ago

start 35 fps then crash in race after 3 minute.

Slo2018 commented 4 years ago

I have only black screen in latest build.

Margen67 commented 4 years ago

@Slo2018 Which renderer? d3d12, or Vulkan?

illusion0001 commented 4 years ago

Can confirm on latest master Renderer: D3D12

illusion0001 commented 4 years ago

Last ingame commit is https://github.com/xenia-project/xenia/commit/2507f1a819310220230e5a9f03c34f40f634098b  Regression caused by https://github.com/xenia-project/xenia/commit/003c02c6404a0b795afe1309076fb629b1394be5

Slo2018 commented 4 years ago

@Slo2018 Which renderer? d3d12, or Vulkan?

D3D12.

illusion0001 commented 4 years ago

ingame again https://github.com/xenia-project/xenia/commit/803fa0cba9416a73425bc44cc886a1826ca06d70

mzryyy commented 4 years ago

Forza Motorsport 2 has no issue saving game progress, and it will make a profile for you where save files are stored, attempting to replace the file with another one (I grabbed the save data from my xbox hard drive and put it on my PC, to test whether my save file would work) will greet you with this loading screen (whether or not the "Saving Data" screen is indefinite has yet to be determined) image

This may have to do with the fact that FM2 specifically (I think with almost every Forza game) checks to see if you are logged onto the same Xbox profile the save data was created on, but I could be entirely wrong.

Slo2018 commented 3 years ago

Save still not working and i can't create profile.

NfsFanboy03 commented 3 years ago

works fine now, i just cant create a save profile. I press 'sign in' and it doesnt do anything

Fercb commented 3 years ago

detached/a695ace/Feb 1 2021 No Gamer Profiles signed in. Game will be limited and you will not be able to save progress. l Continue without saving l Sign In l

EdgeGMR commented 3 years ago

xenia (detached/30ea6e3e/Apr 101 2021 Gameplay is now perfect and playable (-Note: recommend to drive around tracks once in free drive in order to get the whole track compiled and renderred) The save is now work (just continue without save, jump into an arcade race, then logout to startup screen, press a and you can join career(w/o message), buy a car and logout to startup screen again, press a and the profile has been save. next time play the message still present but press a to enter main screen, logout(press b), then enter again and it will load your profile without errors.) Conclusion: Playable (do steps above)

EdgeGMR commented 3 years ago

detached/21c28a07/May 8 2021

Issues: the new build makes the music audio unplayable, sound turn off few seconds after race start (have to turn off music) corrupted custom car livery in race (fine in showrooms)

emoose commented 2 years ago

Strange, game only seems to use XamUserGetXUID before deciding that no user is signed in. After choosing "sign in" on the messagebox that appears the game doesn't seem to call any sign-in related API or anything neither (no ShowSigninUI or anything like that), also doesn't seem to be using any XAM-app related things besides XMPGetStatus...

No luck changing XUID to 0xE00..., or changing signin-state. I guess maybe something else is failing before it gets to the actual sign-in checks/calls.

Ayoub90x commented 2 years ago

Any suggestions y im getting instant crashes on xenia master latest version just downloaded today

EdgeGMR commented 2 years ago

master@360e2f541 the game crash everytime you enter any race or free drive or time trial

xenia.zip

Ayoub90x commented 2 years ago

Yup exactly

EdgeGMR commented 2 years ago

found the solution go to xenia config file enable "mount cache" and "mount scratch" in the storage section game is playable again now

Slo2018 commented 2 years ago

Save working?

EdgeGMR commented 2 years ago

yep igore the not saving press a to go to main menu and press b to return to startup screen and press a again, it should save the game as "USER"

Bluedriver01 commented 2 years ago

Tested on version 1.0.2589 master after enabling "mount cache" and "mount scratch" settings and applying the save trick above the game can make saves and doesn't crash when loading race but there are some graphical glitches, liveries made by player still doesn't work and game likes to crash in post-race and pause menus and sometimes in the middle or at the start of the race. I managed to play only 2 races in career mode because the game always crash at post-race menu in the third race and prevents to progress further. I would upload logs but I have problems uploading them. Zrzut ekranu (474) Zrzut ekranu (475) Zrzut ekranu (476) Zrzut ekranu (477) Zrzut ekranu (478) Side note: I tried to install dlcs and only limited edition and pre-order bonus cars work. All car packs and track packs doesn't work. I writing that in case if someone was curious.

EdgeGMR commented 2 years ago

remind you that both dlc tracks works, you can try them in arcade mode

LeRutY commented 2 years ago

remind you that both dlc tracks works, you can try them in arcade mode

They don´t show up for me

Kcabe1 commented 2 years ago

Runs great on Xenia canary current build, as long as the game isn’t upscaled. image

Bluedriver01 commented 2 years ago

I wanted to write that but rules say that this topic is ONLY for master versions and not for Canary but this game doesn't have topic for Canary (Experimental) versions so if someone could open issue for Canary versions and move post above to that issue I would be grateful.

Bluedriver01 commented 2 years ago

by the way Kacabe1 do you have graphical bugs on this build?

Kcabe1 commented 2 years ago

by the way Kacabe1 do you have graphical bugs on this build?

Only when upscaling to 2x do I have graphical issues. Scaling to 3x makes the game unplayable but with no artifacts or bugs strangely enough. The only issue I’ve noticed is that sometimes, the sound is delayed, but it’s hardly noticeable. It really runs fantastically. Sorry for posting about it again here this will be the last time.

Bluedriver01 commented 2 years ago

you don't need apologies for that I wanted to post that too but as I said forza doesn't have topic for Canary versions and would be good if some moderator change that

Fluxerus commented 2 years ago

I have set mount cache and scratch to "true" and have it loading a save, but it wont seem to let me finish and save the 3rd race in

the north american open. xenia.zip This was on the previous master, on the current master, I get Screenshot (1) What ever is happening on the lower half does change depending on what menu I enter, but is never what it should be showing.

EdgeGMR commented 1 year ago

with the recent canary builds the game will be playable from the start with all the dlc (install function) i don't recommend to play on master builds cause it's really unstable that's all