MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Solstar
MAME Fan
Reged: 08/29/08
Posts: 717
Send PM


Is ninja kazan\iga ninjytsuden fixed ?
#341628 - 06/18/15 09:14 PM


according to the news of Raine of some days ago

"kazan the clone of iganinju is now playable, and both these games have their sound effects fixed (apparently an optimization bug in the recent versions of gcc created a problem here - it was unnoticed for quite some time)."

is this bug he's talking about the same stuff that's preventing the game from running properly in mame?



gamez fan
Reged: 02/23/13
Posts: 213
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: Solstar]
#341629 - 06/18/15 10:06 PM


> is this bug he's talking about the same stuff that's preventing the game from running
> properly in mame?

Im sure i read a comment from Haze a while back that problems with the above game in MAME was due to changes made to the protection/decrytion code a while back..??? As far as i know the games are still not currantly working



Arcade Addict



Big Karnak
Part-time Lurker
Reged: 05/22/13
Posts: 1011
Loc: Mount St. Lurkling
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: gamez fan]
#341656 - 06/19/15 02:15 PM


I've been looking forward to playing this game for a long time. I hope it gets fixed soon. I tested it on a recent EmuCR Git build and it still doesn't work properly.



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: gamez fan]
#341659 - 06/19/15 02:50 PM


IIRC is a problem of wrongly implemented/totally unimplemented IRQs. I looked at it some time ago and I was able to make small improvements. The game started to show something again but was very very slow.
http://mametesters.org/view.php?id=2640
the bug report date is 10/11/2008.... at least 6 years passed...



RobbbertModerator
Sir
Reged: 08/21/04
Posts: 3204
Loc: A long way from you
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: Big Karnak]
#341662 - 06/19/15 04:45 PM





Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Actually is fixed here on my PC.... new [Re: Solstar]
#341663 - 06/19/15 09:20 PM



Code:

TIMER_DEVICE_CALLBACK_MEMBER(megasys1_state::megasys1A_scanline_kazan)
{
int scanline = param;

if(scanline == 240) // vblank clear all lines
{
m_maincpu->set_input_line(3, CLEAR_LINE);
m_maincpu->set_input_line(2, CLEAR_LINE);
m_maincpu->set_input_line(1, CLEAR_LINE);
}

if(scanline == 0)
m_maincpu->set_input_line(1, ASSERT_LINE);

if(scanline == 128)
m_maincpu->set_input_line(2, ASSERT_LINE);

if(scanline == 192) // completely a guess
m_maincpu->set_input_line(3, ASSERT_LINE);
}


and with this line commented out in original source enabled again:

Code:

m_rom_maincpu[0x00006e/2] = 0x0420; // the only game that does not like lev 3 interrupts


NOTE 1: this code breaks ALL other games in the driver, so it should be implemented only for Kazan.
NOTE 2: it's a bit hacky, expecially the m_rom_maincpu patch. Though, it's necessary otherwise the game crash after the boot. This patch was enabled before the bug appeared and then commented out.

EDIT for Developers: the usage of HOLD_LINE with scanlines timers should be deprecated in favour of ASSERT_LINE and CLEAR_LINE. Probably my implementation is not 100% correct but hey, it took me an hour of investigations "fix" a 7 years old bug.

Edited by Mamesick (06/19/15 09:27 PM)



Big Karnak
Part-time Lurker
Reged: 05/22/13
Posts: 1011
Loc: Mount St. Lurkling
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: Robbbert]
#341674 - 06/20/15 04:50 AM



Quote:


You can try it out on Raine 0.64.5, since it now works there.




Hmm, Raine might be useful for a game or two after all.

The reason why Raine can play this game and not MAME is probably because it uses hacks to get it working, right?

Are there any other games off the top of your head, like this one, that Raine can play that MAME can't?

Edited by Big Karnak (06/20/15 06:25 AM)



gamez fan
Reged: 02/23/13
Posts: 213
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: Big Karnak]
#341685 - 06/20/15 02:59 PM


Final Burn Alpha will play Ninja Kazan as well just for the record



Arcade Addict



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2261
Send PM


Re: Is ninja kazan\iga ninjytsuden fixed ? new [Re: gamez fan]
#341750 - 06/22/15 09:59 PM


> Final Burn Alpha will play Ninja Kazan as well just for the record

Because it also uses gross hacks, just for the record


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 462 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2008