New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record of Lodoss War, hangs during the first battle [dynarec/div0] #84

Closed
ricardo85x opened this Issue Jan 6, 2014 · 51 comments

Comments

Projects
None yet
@ricardo85x

ricardo85x commented Jan 6, 2014

The game hangs during the first battle.

Device: Nvidia Shield
Reicast: R5
Format: GDI image.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 7, 2014

if I disable the Dynarec in the emu.cfg, I can fight without hangs. But it is a bit slow on Shield.

@MrPsyMan

This comment has been minimized.

Contributor

MrPsyMan commented Jan 7, 2014

If I recall correctly, that's missing div0 handling. Lemme update the info.

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 8, 2014

with a build compiled yesterday(Jan 6) I do not have the problem.

@MrPsyMan

This comment has been minimized.

Contributor

MrPsyMan commented Jan 8, 2014

ahh, great

@MrPsyMan MrPsyMan closed this Jan 8, 2014

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 8, 2014

Yesterday the game crashed after a vmu save.
Now I am unable to use my save
And I am having the old problem with game crash after hit a enemy .... I tried with a build compiled today but get the same problem.

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 9, 2014

I found out what is going on.

It is look like we need to make the emulator learn some actions with dynarec off before we can turn it on.
I have to fight with dynarec set to 0, and collect some itens after kill the monster.
After that I save the game and set the Dynarect to 1. after that I can hit any monster with no problem.

@MrPsyMan MrPsyMan reopened this Jan 9, 2014

@MrPsyMan

This comment has been minimized.

Contributor

MrPsyMan commented Jan 9, 2014

That's weird. So the unstable optimizations option makes no difference?

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 9, 2014

No. In that game it make no diference..
I tried with the r5 and I can fight with any foes using my saved game.

There are two possibilities:

1 - We have this error only in the first part of the game
2 - We need to play with dynarec off, in the begining to the emulator 'Learn' how to not crash.

In the Pandora forum a guy told that if he turn off the Dynarec and go outside on the game Shenmue, and after that save the game. He can go any where turning the dynarec on and using the saved game.
(http://boards.openpandora.org/topic/15211-reicast-dreamcast-emulator/page-10#entry302751)

it look like the same problem I have with Record of Lodoss

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 12, 2014

Update:

There are some parts in the game where it hangs. The only way to pass thru is disabling dynarec.

I found 2 parts right now but I think will there are more.

1- first fight.
2- after kill lizard man boss

update:

found two more...

@helloray

This comment has been minimized.

helloray commented Jan 22, 2014

@MrPsyMan, need to merge dynarec.Safe flag from nulldc, I have tried with adding "return 0" at the beginning of MatchDiv32. The battle will not hang any more but there are still other issues which will block this game.
u32 MatchDiv32(u32 pc , Sh4RegType &reg1,Sh4RegType &reg2 , Sh4RegType &reg3)
{
//if (settings.dynarec.Safe)
return 0;
......
}

@skmp

This comment has been minimized.

Member

skmp commented Jan 22, 2014

Will take a look at it tomorrow w/ the other last minute changes then

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 24, 2014

@helloray what other issues do you found?

I am playing for 1 hour and have no problem after doing what you told. :D

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 25, 2014

crap...
it freeze when you try to save progress and corrupt your save data.
(random, some times do not freeze)
:(

@helloray

This comment has been minimized.

helloray commented Jan 25, 2014

@ricardo85x Correct.some times when you open a sealed door the emulator also hangs with music not stopped.

@ricardo85x

This comment has been minimized.

ricardo85x commented Feb 2, 2014

yes it is happens with the lastest build too.

@skmp

This comment has been minimized.

Member

skmp commented Mar 24, 2014

@ricardo85x , @helloray , @MrPsyMan is this still an issue? (though looks for too much for r7 right now)

@skmp skmp modified the milestones: r8, r7 Mar 24, 2014

@ricardo85x

This comment has been minimized.

ricardo85x commented Mar 25, 2014

yes it is still an issue...

@ricardo85x

This comment has been minimized.

ricardo85x commented Jan 23, 2015

Any news about that?
I just tried it out with the latest build and have the same problem.
thanks

@Deityfierezy

This comment has been minimized.

Deityfierezy commented Feb 1, 2015

try to download this and put in the folder where is your emulator and say yes to all sorry for my english is to bad http://nulldc.googlecode.com/files/nullDC_104_r136.7z if the link doesnt work say me

@ricardo85x

This comment has been minimized.

ricardo85x commented Feb 1, 2015

Hi @Deityfierezy

Are you sure? there are windows files in this 7z.
I am testing it on a android 4 device.
I did copy this files to my device and got the same result

Thanks

@Deityfierezy

This comment has been minimized.

Deityfierezy commented Feb 1, 2015

im sorry im having the same truble with nulldc for the pc and this resolve it,

@skmp skmp removed the specific game label Mar 5, 2015

@SlavMFM

This comment has been minimized.

SlavMFM commented Mar 29, 2016

It helped me too! Thank you very much!

@Bururian

This comment has been minimized.

Bururian commented Jun 28, 2017

@Deityfierezy
Can you re-link that file? It's no longer valid. I'm experiencing the same issue with freezing on the first fight in NullDC with this game. I'm using a laptop with Win7 and the latest NullDC release.

@Deityfierezy

This comment has been minimized.

Deityfierezy commented Jun 28, 2017

I will see if i have it, it was 2 years ago.

@Shootinshark

This comment has been minimized.

Shootinshark commented Jul 11, 2017

Thank you for the download, I was also looking to play Record of Lodoss War (Same issues).

I have found that the smithy crashes if you try to upgrade too fast (or sometimes just randomly), but other than that nothing has crashed so far :)

@blackman91

This comment has been minimized.

blackman91 commented Jun 8, 2018

Anyway to fix this on Reicast for Android, it happens in both r6 and r7. It hangs in every scripted battle making the game unplayable.

@AbandonedCart

This comment has been minimized.

Contributor

AbandonedCart commented Jun 8, 2018

According to the other posts, turning dynarec off may help bypass the freezes for now.

@skmp

This comment has been minimized.

Member

skmp commented Jun 9, 2018

Sounds like really a combination of factors. Disabling div matching fixes it as a workaround - if anyone is up to trying that it would be great. We could make the div a flag as a temporary fix.

@skmp skmp closed this Jun 9, 2018

@skmp skmp reopened this Jun 9, 2018

@blackman91

This comment has been minimized.

blackman91 commented Jun 9, 2018

Yeah a temporary fix would be awesome. Does disabling div cause other issues to the game though?

@skmp

This comment has been minimized.

Member

skmp commented Jun 9, 2018

@MarcoEstevez

This comment has been minimized.

MarcoEstevez commented Jul 10, 2018

Any news here? I started this game on Reicast Retroarch core and game hanged on the first battle too, I was about to apen an Issue when I saw this one.

@Shootinshark

This comment has been minimized.

Shootinshark commented Jul 10, 2018

@blackman91

This comment has been minimized.

blackman91 commented Jul 10, 2018

Were you able to finish the game without freezes?

@Shootinshark

This comment has been minimized.

Shootinshark commented Jul 11, 2018

@blackman91

This comment has been minimized.

blackman91 commented Jul 11, 2018

I meant in battles, I get freezes in battles.

@Shootinshark

This comment has been minimized.

Shootinshark commented Jul 11, 2018

@blackman91

This comment has been minimized.

blackman91 commented Jul 11, 2018

What reicast version did you use? Any way you could test again using latest beta build?
#1208

@Shootinshark

This comment has been minimized.

Shootinshark commented Jul 11, 2018

@blackman91

This comment has been minimized.

blackman91 commented Jul 11, 2018

What about mobile reicast? Do you have an Android phone? This bug happens on mobile.

@AbandonedCart

This comment has been minimized.

Contributor

AbandonedCart commented Jul 12, 2018

The issue was related to dynarec (among other things) and Nvidia Shield is an Android device, so it has been confirmed on mobile already.

TL;DR the suggested solution above needs to be tested, but is done on the code side.

@skmp skmp added the Move to GameDB label Jul 14, 2018

@skmp

This comment has been minimized.

Member

skmp commented Jul 14, 2018

Closing this in favor of reicast/gamedb#14

@skmp skmp closed this Jul 14, 2018

@blackman91

This comment has been minimized.

blackman91 commented Aug 10, 2018

The hanging still happens on latest beta and on fh master builds, any luck with the proposed solution guys? This is one of the great dreamcast games that no emu can play without freezing in scripted battles, it even freezes on RetroArch core.
Maybe @flyinghead can solve it too?

@AbandonedCart

This comment has been minimized.

Contributor

AbandonedCart commented Aug 10, 2018

In regards to the comment by @helloray, #1296

@blackman91

This comment has been minimized.

blackman91 commented Aug 14, 2018

Apparently the issue is fixed with this:
libretro#206

Could that be done in standalone reicast?

@blackman91

This comment has been minimized.

blackman91 commented Aug 14, 2018

Just tested latest flyinghead/mymaster build and the issue seems to be fixed, tested on the first scripted battles and it no longer freezes:
a7cfa1f

Great job!

AbandonedCart added a commit that referenced this issue Aug 16, 2018

AbandonedCart added a commit that referenced this issue Aug 17, 2018

AbandonedCart added a commit that referenced this issue Aug 18, 2018

Merge pull request #1296 from reicast/lk/safe-dynarec
Port the dynarec safe flag from nullDC (See #84)
@blackman91

This comment has been minimized.

blackman91 commented Aug 18, 2018

Fixed on main reicast by a412935
You have to open reicast settings and enable "Dynarec Safemode".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment