game-compatibility icon indicating copy to clipboard operation
game-compatibility copied to clipboard

4D5307FA - Lost Odyssey

Open michalstec1 opened this issue 9 years ago • 125 comments

Marketplace

https://github.com/xenia-project/xenia/commit/b5469b57bacdba11d13c9052fda9e2128abef5ba

Issues:

Reaches menus, hangs during the loading screen.

Screenshot(s):

x2 x1 x3

Log:

Log

Labels:

state-menus

michalstec1 avatar Dec 09 '15 17:12 michalstec1

The game still doesn't go beyond menus in the latest version of Xenia.

michalstec1 avatar Nov 14 '16 21:11 michalstec1

cant even get the loading screen after the menu now

ElSaucier avatar Apr 03 '17 17:04 ElSaucier

Tested on (https://github.com/benvanik/xenia/commit/cecc66622f278ca057e19afe86768af6dfe640ba)

Issues:

Sound works. Loading to Main menu. Can press start new game, go loading screen and after just freeze Equally for both api's

Logs:

LostOdyssey_Vulkan.txt LostOdyssey_OpenGL.txt

Screenshots:

Vulkan: desktop 04 23 2017 - 01 14 35 02 mp4_snapshot_00 16_ 2017 04 23_01 31 15 desktop 04 23 2017 - 01 14 35 02 mp4_snapshot_00 18_ 2017 04 23_01 31 23 desktop 04 23 2017 - 01 14 35 02 mp4_snapshot_00 31_ 2017 04 23_01 31 43 OpenGL: desktop 04 23 2017 - 01 15 43 03 mp4_snapshot_00 17_ 2017 04 23_01 32 05 desktop 04 23 2017 - 01 15 43 03 mp4_snapshot_00 28_ 2017 04 23_01 32 13

Labels:

state-menus

Parovozik avatar Apr 22 '17 22:04 Parovozik

Yes, only the menu works, in fact they expect new updates for the kings even in the game. And a game that deserves it.

kanelakis avatar Apr 23 '17 10:04 kanelakis

It looks like it is writing to some unknown registers. w> 00000004 GPU: Write to unknown register (1844 = 1F508000) w> 00000004 GPU: Write to unknown register (1841 = 00000000) w> 00000004 GPU: Write to unknown register (1930 = 00000000)

These are setup registers and shouldn't be causing a fatal crash right? What else do we need to further troubleshoot this?

wachpwnski avatar Oct 08 '17 11:10 wachpwnski

Same for me, after new game and inital settings, freezes on loading.

amakuramio avatar Nov 13 '17 13:11 amakuramio

I want to get this game working, but I have no programming skills. Can I help somehow?

Saddl3r avatar Feb 11 '18 22:02 Saddl3r

When this gets to the loading screen, is it a hard freeze or is the game still rendering?

DrChat avatar Feb 22 '18 17:02 DrChat

The games freezes after about 5 seconds, stays frozen for about 5 seconds, responds for about 1 second, then gives an error message. It doesn't matter if I do anything in the main menu or not. I can still hear the music, but the screen freezes. I get an error message, and when I click OK Xenia closes. If I don't click OK the music continues playing, but the screen is frozen.

Error message: Xenia Error Graphics device lost (probably due to an internal error)

Xenia log and video of freeze: xenia.log Lost Odyssey crash video.zip

Saddl3r avatar Feb 22 '18 18:02 Saddl3r

@DrChat I tried Lost Odyssey and here Memory Leak (VRAM) again as for many games now.

Parovozik avatar Feb 23 '18 17:02 Parovozik

I did some "research" (I hope this is somehow useful). So, the memleaks in menu are caused (in AMD card - Vulkan mode) by uploading blank textures:

/vulkan/texture_cache.cc#L1229

After adding return false; everything is ok (but this is causing glitches and it might break other games?), HOWEVER game starts to memleak during movie playback and "freezes" anyway during new game loading.

About that game freeze. I switched to loglevel 3 and find out that the game is still working (ok, some threads) and they are looped somehow?

Here is a log since last line of default logging level: LO_LOG_DEBUG_3.txt

And the last thing - missing fog/background in menu (Vulkan ofc) it's not rendered, however it exist in vulkan_trace_viewer (I guess it is). It exist in "Draw 30". There are some errors in "Pixel Textures" tab and the texture is in BGRA notation not RGBA?

LO_4D5307FA_10081.zip

Gliniak avatar Apr 16 '18 12:04 Gliniak

I managed to dump X64 (x86) instructions (no registers states :( ) from working thread (0017, It's the only thread that "does" something at that point). Loops in file have 100% match. I hope this will be useful.

T_0017_LO_LOOP.txt

(AFAIK) A00160C0 - __restgprlr_27 A0013980 - __savegprlr_27

Look at values that "main" function wrotes to registers (FEED etc). Is it like "something went wrong" values?

Btw. I managed to force jump/skip instructions and sometimes it does render frame, however it's almost blank (I guess due to missing/mismatched) data.

Gliniak avatar Jun 04 '18 08:06 Gliniak

Could they be using some type of compression like an LZO type of thing when it tries to write it to the buffer? Or is this more of a failed instruction set issue?

wachpwnski avatar Jul 18 '18 09:07 wachpwnski

Tested Lost Odyssey Disc 1 on 2/8/2019 using latest Vulkan Master Build (xenia (detached_e706cf0d_Jan 25 2019))

Game will start main theme, shows main menu video with no audio or graphical glitches. xenia detached_e706cf0d_jan 25 2019 _ 4d5307fa vulkan 2_8_2019 7_49_46 am

xenia detached_e706cf0d_jan 25 2019 _ 4d5307fa vulkan 2_8_2019 7_50_42 am

Detects Xbox One Controller input to start new game xenia detached_e706cf0d_jan 25 2019 _ 4d5307fa vulkan 2_8_2019 7_50_48 am

Able to alter initial settings with no errors. xenia detached_e706cf0d_jan 25 2019 _ 4d5307fa vulkan 2_8_2019 7_50_57 am

Xenia does not appear to crash or freeze, the program it's self. But the loading screen freezes and stays like this indefinitely. xenia detached_e706cf0d_jan 25 2019 _ 4d5307fa vulkan 2_8_2019 7_51_17 am

Vulkan Logs: Losy Odyssey Vulkan Log.log

This project is huge and amazing, it will be ground breaking if this game ever becomes playable on PC. Great job everyone who works on this.

JohnBartle avatar Feb 08 '19 14:02 JohnBartle

Tried latest Vulkan Master and D3D12 versions of Xenia, and still get the same errors as previously posted. Game loads to main menu, and you can change initial settings, but when you go to actually start the game, the loading wheel spins for a few seconds, then stops and the game indefinitely hangs at the black load screen. Sometimes on the Vulkan version I am able to get the load screen to show Kaim's stats, but the wheel will freeze and the game will never load up.

Chosaint avatar Mar 16 '19 16:03 Chosaint

Little update about loading freeze.

The freeze is caused by infinite (dunno why) loop inside loading function. I managed to manually set registers to skip this loop. After that only audio from initial video plays (Clip that should appear after loading). Then after this ends the same loading loop appear and using the same trick causes game/Xenia to crash.

Btw. Main menu still don't have background texture (on Dx12 branch).

Gliniak avatar Mar 20 '19 08:03 Gliniak

Latest master release and D3D12 release both freeze after main menus during initial loading into the game. Same as previous posts still.

Chosaint avatar Apr 23 '19 02:04 Chosaint

Tried latest Master release from 04-27-2019 (but it says Apr 20 2019 in the top left, saw there was a commit to the master release on 27th, figured I'd give it a shot. (if this qualifies as spam posting I apologize, just want to help how I can to get this game working for Xenia, despite my limited experience maybe I can learn more in the process)

Main title screen and menus load, but are very choppy and slow as they display across the screen. Still getting same freeze, but since the past two commits on Master build it will get to Kaims stat screen before the freeze. Whereas before I would get the freeze when it was still a black screen and the loading wheel at the bottom left. LOXeniaMasterScreenCap1

Chosaint avatar Apr 29 '19 18:04 Chosaint

@Gliniak can you join our discord and discuss about your research about the game? Edit: a quick search about the game reveals that it uses UnrealEngine3 and currently has problems related to memory pages see here. Unfortunately, the 0xE0000000-0xFFFFFFFF range is unused in Xenia and most games that uses this engine crashes because of this. a Labels: tech-engine-unrealengine

illusion0001 avatar Apr 30 '19 09:04 illusion0001

Losy.Odyssey.Vulkan.Log.log Saw there was a new release for Master and D3D12, in a vain hope I tried again. Still getting the same issue on at the same points as always. On Master Branch, title screen transition to new game is sluggish and menus run slow as well, still freezes at Kaim Argonar stats screen. On D3D12 Branch everything runs buttery smooth, menus run nice and slick, still freezes at black screen with loading wheel in bottom corner. LOXenD3D12FreezeScreen6-4-19 LOXenMasterFreezeScreen6-4-19 xenia_Master 5-25-19.log

xenia_D3D12 5-25-19.log

To someone more knowledgeable than I on what information is good and bad, if there is something else that's helpful to attach as well as far as logs and screen-caps, please let me know so that I can include them in the future.

Chosaint avatar Jun 04 '19 17:06 Chosaint

I guess the good news is that this game uses UE3 and therefore bugfixes that apply to any other UE3 game (gears of war, etc.) should also improve compatibility here. If instead it used an in-house engine with weird undocumented hardware optimizations then progress might be slower.

lostromb avatar Jun 09 '19 23:06 lostromb

I managed (about a month ago, but whatever) to go a little bit further. LO_INGAME

I know it looks promising, however it isn't :C I'm tricking the game to think that everything is loaded correctly (I guess).

After the movie ends, game goes into loading state again, but with visible UI and ingame sound that playback at 0.01 speed (quite painful). Modifying address with FEED value at this state causing game to go again into loading screen.

I'm trying (in my free time) to figure out what causing this malfuction, but it require a lot of "backtracking"

Btw. The memory region fix does not change anything.

Gliniak avatar Jun 17 '19 19:06 Gliniak

I know it looks promising

The fact that there are no terrible rendering issues immediately apparent is promising enough for me

Btw. The memory region fix does not change anything.

Wait, are you referring to the limitation mentioned in the memory map documentation?

Unfortunately, the 0xE0000000-0xFFFFFFFF range is unused in Xenia because it maps to physical memory with a single page offset, which is impossible to do under the Win32 API. We can't fake this either, as this offset is built into games

Are you saying you implemented a hack to get around this in order to take that screenshot? Either way, keep up the good work

lostromb avatar Jun 17 '19 22:06 lostromb

Both versions, I get stuck on loading after the main menu, after having made a new game, here are the log files.

Xenia d3d12.log Xenia Master Vulkan.log

kanelakis avatar Jun 17 '19 22:06 kanelakis

@lostromb

The fact that there are no terrible rendering issues immediately apparent is promising enough for me

Here's a little lesson in trickery. It's still a movie, that's why. Only GUI is rendering, but that is not a big deal.

Are you saying you implemented a hack to get around this in order to take that screenshot? Either way, keep up the good work

No, this is @elad335 solution for this problem, so all the cheers to him 💃

@kanelakis Well it's not suprising. To go further (at this moment) you need to do some memory switcharoo via CheatEngine

Gliniak avatar Jun 18 '19 04:06 Gliniak

elad's work is work-in-progress

illusion0001 avatar Jun 18 '19 06:06 illusion0001

Here's a little lesson in trickery. It's still a movie, that's why. Only GUI is rendering, but that is not a big deal.

Ah, darn, I knew the game started with FMV that blended into gameplay. I was just hopeful that the screenshot was past that point.

lostromb avatar Jun 18 '19 14:06 lostromb

Work in Progress from @Gliniak https://youtu.be/eSQigFvUH4Q

illusion0001 avatar Jul 26 '19 03:07 illusion0001

Work in Progress from @Gliniak https://youtu.be/eSQigFvUH4Q

My situation has not changed like my previous post. With the past versions it appeared to me after the menu and the loading, the photo of the characters and it stopped, but now it stops after the menu.

kanelakis avatar Jul 29 '19 21:07 kanelakis

@kanelakis To work it requires special build (@illusion98 have it here: https://github.com/illusion98/xenia/tree/d3d12-ue-hacks) but you won't go any further than first 5 seconds.

You need save file to do something more. Here is example how it works after load from save: https://www.reddit.com/r/xenia/comments/cjo969/xenia_d3d12_lost_odyssey_gameplay_xbox360/

Gliniak avatar Jul 30 '19 09:07 Gliniak