otavepto / gbe_fork

Fork of https://gitlab.com/Mr_Goldberg/goldberg_emulator
https://gitlab.com/Mr_Goldberg/goldberg_emulator
GNU Lesser General Public License v3.0
191 stars 55 forks source link

Alone in the Dark Fatal Error #110

Closed DogancanYr closed 3 months ago

DogancanYr commented 3 months ago

It was fine at first, but when I opened the game on the 4th try, it started giving a fatal error. The problem is fixed when I disable the interface and it didn't create any progress achievement file. Fatal Error Log : STEAM_LOG.txt disable_overlay_STEAM_LOG.txt

otavepto commented 3 months ago

The problem is fixed when I disable the interface

By interface you mean the overlay ?

DogancanYr commented 3 months ago

Yes.

otavepto commented 3 months ago

Try delaying the overlay hook: https://github.com/otavepto/gbe_fork/blob/dev/post_build/README.release.md#overlay-hook-delay-and-renderer-detector-timeout

If it already worked 4 times without a problem then I don't think there's something I can do about it. Also logs look normal, it terms of the overlay events I mean, not sure why would it start crashing randomly. Try delaying the hook by 5-10 seconds via overlay_hook_delay_sec.txt.

DogancanYr commented 3 months ago

Ok, it's fixed. I don't know why I can't think of this. Also it doesn't create an achievement progress file for achievement watcher to read. How can I do that?

otavepto commented 3 months ago

Did it create the usual achievements file AppData\Roaming\Goldberg SteamEmu Saves\<APP ID>\achievements.json ? You can't really do this manually, the game calls this API function to do that https://github.com/otavepto/gbe_fork/blob/af77ce4f5a8acd0895f3443c0aa4a05ec0ddffea/dll/steam_user_stats.cpp#L623-L628

DogancanYr commented 3 months ago

No, it didn't generate it, I wonder if it will generate it when I get the achievement, as I know it has generated it as soon as I opened it in game.

otavepto commented 3 months ago

Why would you expect to get a notification if you didn't unlock it yet 😄 ? Or, do you mean the game gives you an achievement as soon as you run it ?

DogancanYr commented 3 months ago

I've seen several game with 0% in achievement watcher, and there's even a game that I've never played and still shows it as 0%.

otavepto commented 3 months ago

This happens when you create this folder AppData\Roaming\Goldberg SteamEmu Saves\<APP ID>\ if I remember correctly.

Also take care that Achievement Watcher has a somewhat self sabotaging logic where it would ignore/invalidate its own database if the creation/modification time of the schema file exceeded 6 months https://github.com/xan105/Achievement-Watcher/blob/d8609019353d66f0cdcebe36c7e548be375df14d/app/parser/steam.js#L145-L152

If that was the case, it will try to grab the data again using your Steam API key if you provided it, otherwise it will try grabbing it from the API endpoint which was closed a very long time ago https://github.com/xan105/Achievement-Watcher/blob/d8609019353d66f0cdcebe36c7e548be375df14d/app/parser/steam.js#L396-L405

I'll close this one for now since it's not related to the emu.

DogancanYr commented 3 months ago

When Scene emulator is used, it creates an achievement file as soon as you open the game, but in goldberg it creates it when the achievement is earned.

otavepto commented 3 months ago

Yes that is true, that's been the behavior of this emu since the earliest version.