Welcome!

Final Burn Alpha => FBA Development => Topic started by: dink on March 28, 2014, 03:53:52 pm

Title: dink's FBA Development & Fixes thread
Post by: dink on March 28, 2014, 03:53:52 pm
Hi guys,
Here's my first contribution to this great project.  In the attachment you'll find d_battleg.cpp (src/burn/drv/toaplan) fixed to prevent a crash issue with savestate loads.
p.s. can I get access to the FB Alpha svn? Theres a couple more drivers that I plan on fixing/clearing up issues with, and who knows what else. :)

best regards,
- dink
Title: Re: Fix for Battle Garegga crash on savestate load & Scramble/Super Cobra
Post by: dink on March 28, 2014, 05:50:18 pm
Here's another one :)

Problem: In Scramble! and Super Cobra, when something explodes, there is a loud clipping/distortion type noise.
Solution, in src/burn/snd/flt_rc.cpp, check for clipping after it adds the samples.  The attached file contains the fixed flt_rc.cpp.

Code: [Select]
pSoundBuf[x] += n[l/r]Sample;  is now  pSoundBuf[x] = BURN_SND_CLIP(pSoundBuf[x] + n[l/r]Sample);

best regards,
- dink
Title: Re: Fix for Battle Garegga crash on savestate load & Scramble/Super Cobra
Post by: iq_132 on March 28, 2014, 06:43:01 pm
Excellent work! Keep it up! I'll commit these to the svn tonight.
Title: Re: Fix for Battle Garegga crash on savestate load & Scramble/Super Cobra
Post by: gamez fan on March 28, 2014, 07:48:18 pm
Some good fixes there always nice to see more people work with the FBA SRC
Title: Re: Fix for Battle Garegga crash on savestate load & Scramble/Super Cobra
Post by: dink on March 29, 2014, 02:50:11 am
Hello FBA fans,
Here is yet another fix - this time, for the game Tengai and possibly other games (S1945) utilizing the Psikyo hardware.

Problem: when loading a savestate, the sounds sometimes get desynched.  The Psikyo driver was only scanning the YM2610 driver, even though the game uses the YMF278B.

Solution: use the updated d_psikyo.cpp (in src/burn/drv/psikyo) in the attachment.
EDIT: fixed a small buglet, make sure you have version 2 of the attachment (tengaisoundsyncfix02.zip)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 29, 2014, 10:32:11 am
Today I'm working again with the psikyo driver, this time the problem is with Samurai Aces.  Either the tile ram or rom is somehow getting clobbered on return from a savestate (save state load).  I spent quite a bit of time with it so far and can't see anything obvious, so later today after a nice break I'm going to dig a little deeper.  If you want to see the problem for yourself, fire up Samurai Aces, start the game and as soon as the playfield appears, save the state, then load it - you'll see a couple of the background tiles are corrupted.  It might not seem too bad at this point, but in the later levels the entire backgrounds are messed up in the same fashion.
...well, thats it for now...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Handybo on March 29, 2014, 02:15:31 pm
Some nice fixes there, dink.

Personally, i think save state support should be scrapped from FBA as it causes more trouble and game breaking bugs than it is worth. Real arcade games don't have saves (except for passwords like in Red Earth) so i don't see why arcade emulators need them.... but thats just my blinkered opinion. :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 29, 2014, 04:47:22 pm
Handybo: thanks :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 29, 2014, 04:56:42 pm
Hi Guys,
Just a little update on what I've been doing today.  I spent almost all day trying to figure out what exactly is causing the tile corruption in Samurai Aces.  I've got to the point where I've tried everything I can think of, and none of them worked.  The only thing I can do now is take a nice long break, and come back to it later....

I won't give up though!  :smilie:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on March 29, 2014, 05:40:34 pm
dink,

Thanks for the fixes.

Can you register on assembla.com and let me know your username by PM or post here. Once I get your username I'll invite you to the SVN.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 30, 2014, 01:01:14 am
Thanks Treble Winner, I sent you a PM.

Now, I'm back to figuring out what the deal is with Samurai Aces....  :S
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 30, 2014, 01:52:22 am
I'm tired, so I'll let the pictures do the talking...  ;)

Before the fix - (after loading a savestate in Samurai Aces):
(http://s30.postimg.org/rlm6jtei9/samuraiaces_before1.png)

After the fix:
(http://s27.postimg.org/g4jlxhuw3/samuraiaces_after1.png)

The fix: (see attachment - also includes the Tengai sound desync fix)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on March 30, 2014, 09:16:07 am
Thanks Treble Winner, I sent you a PM.

Now, I'm back to figuring out what the deal is with Samurai Aces....  :S

Dink - invitation sent. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 30, 2014, 11:27:15 am
Thanks Treble Winner, I'll commit my patches as soon as I get the Irem M62 savestates working better.  I got the sound fixed for Youjyuden after savestate load, but sometimes it will reset to the title screen on savestate load when the state was saved mid-game.  And also if a sample was playing in Kung-fu master while a savestate was saved/loaded, will cause some strange issues, which also uses the m62 hardware.

Thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 31, 2014, 02:35:04 am
Hello friends,
Just an update - some good and some bad news..
First the good news, Implemented savestates in the Irem M72 hardware driver (Dragon breed, R-Type I and II, Mr. Heli, X-Multiply) and they seem to be working just fine. I played X-Multiply to stage 5 and the first 2 stages of R-Type I and Mr. Heli using nearly a hundred of savestate / loadstates while testing, and it seems solid :)

The bad news, Irem M62 hardware driver (Kung Fu Master, Kid Niki, Youjyuden) savestates are still messed up, I had to put working on them aside for now, I spent more time with this driver than all my work on FB Alpha combined and I seem to be getting nowhere :(  Maybe I'll come back to this one somewhere down the line, maybe with some help/suggestions from other dev's?  I thought it might have been a banking problem, so I saved the bank information and restored it on savestate load, as well as all the variables I could find - no go..  What really makes this one interesting, is that after a reset, loading the savestate will work sometimes, and sometimes not, which leads me to thinking that perhaps an irq is getting hung up.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on March 31, 2014, 10:23:17 am
It doesn't look like there is really much hooked up in the save states for m62. Give this a shot. There is still stuff to be hooked up (bank switches), but it's a start at least.

Code: [Select]
static INT32 M62Scan(INT32 nAction, INT32 *pnMin)
{
    struct BurnArea ba;

    if (pnMin != NULL) {
        *pnMin = 0x029709;
    }

    if (nAction & ACB_MEMORY_RAM) {
        memset(&ba, 0, sizeof(ba));
        ba.Data      = RamStart;
        ba.nLen      = RamEnd-RamStart;
        ba.szName = "All Ram";
        BurnAcb(&ba);
    }

    if (nAction & ACB_DRIVER_DATA) {
ZetScan(nAction);
M6803Scan(nAction);

AY8910Scan(nAction, pnMin);
MSM5205Scan(nAction, pnMin));

SCAN_VAR(M62BackgroundHScroll);
SCAN_VAR(M62BackgroundVScroll);
SCAN_VAR(M62CharHScroll);
SCAN_VAR(M62CharVScroll);
SCAN_VAR(M62FlipScreen);
SCAN_VAR(M62SoundLatch);
SCAN_VAR(M62Port1);
SCAN_VAR(M62Port2);
SCAN_VAR(M62SlaveMSM5205VClckReset);
SCAN_VAR(M62BankControl[0]);
SCAN_VAR(M62BankControl[1]);
SCAN_VAR(Ldrun2BankSwap);
SCAN_VAR(Ldrun3TopBottomMask);
SCAN_VAR(KidnikiBackgroundBank);
SCAN_VAR(SpelunkrPaletteBank);
    }

    return 0;
}

I would start moving the bank switches to be routines rather than built in to the writes.

Code: [Select]
        case 0x85: {
            INT32 BankAddress = 0x8000 + ((d & 0x0f) * 0x2000);
            ZetMapArea(0x8000, 0x9fff, 0, M62Z80Rom + BankAddress);
            ZetMapArea(0x8000, 0x9fff, 2, M62Z80Rom + BankAddress);
            return;
        }

to something more like this

Code: [Select]
static void KidnikiBankswitch(int bank)
{
            M62BankAddress0 = 0x8000 + ((bank & 0x0f) * 0x2000);
            ZetMapArea(0x8000, 0x9fff, 0, M62Z80Rom + M62BankAddress0);
            ZetMapArea(0x8000, 0x9fff, 2, M62Z80Rom + M62BankAddress0);

}

...

        case 0x85: {
            KidnikiBankswitch(d);
            return;
        }

that way you can call it later in the scan function
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 31, 2014, 02:25:12 pm
Hi iq_132,
Thanks for the input.  I got to that point yesterday, but there is still a problem every couple savestate loads where the sound hangs.  I tried saving even more variables, but no dice... which leads me to believe that something is possibly hung on an irq perhaps?  I found something in pre90s/d_ddragon.cpp's DrvScan that I might look into later today.  I've been thinking about this so much it's been driving me nuts, so I really should take a break before I lose my mind  :eek:  hehe..

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 01, 2014, 02:32:11 am
Savestate support added for all NMK16 games & the ones I personally tested so far:
Bombjack Twin
Thunder Dragon 2
Twin Action
US AAF Mustang (no music)
Stagger (RedHawk)
Guardian Storm
Fire Hawk
GunNail (no music)
Saboten Bombers
Super Spacefortress Macross

..that's it for today!
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 01, 2014, 08:33:26 am
Hi guys,
Here's some progress I made this morning before I go out:
Fixed savestate-load crash with Raiden (d_raiden.cpp)
Fixed savestate-load crash with Aero Fighters/Sonic Wings, Turbo Force, Spinal Break & Karate Blazers (d_aerofgt.cpp)
Added savestate capability to the game Kangaroo (for a friend)

I'm aiming for no crashing in any games (guru meditation errors) by the next release of FB Alpha, whenever that might be :)

p.s. starting 2 days ago, patches will be uploaded to the svn instead of linked here as attachments.  If someone outside of the svn wants the patches, let me know and I'll post them here.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kenshiro on April 01, 2014, 12:00:46 pm
Cool work Dink :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on April 01, 2014, 12:53:46 pm
Great job Dink !!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on April 01, 2014, 01:20:55 pm
Definitely agree!

I really want to overhaul the save state system at some point. I want to start from scratch, but keeping compatibility with the in-driver structures. A target for me is to have the cpu and sound cores automatically register to the save system.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 02, 2014, 03:30:06 pm
Thanks guys :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 03, 2014, 03:57:24 am
Hi guys,
Here's what I've been up to yesterday and today regarding FB Alpha:
The good:
* Fixed the ability to uncheck the Hardware tree under filters (needs more testing before checking in)
* Fixed palette issues in the game Act Fancer (DataEast) on savestate load.  For example, if you die and the screen starts to fade out, and a savestate is loaded while its fading out - the loaded savestate will be faded out -or- you die in level 2 (which uses a different palette) and load a savestate from level1, or vice versa, things will look bad.
...The bad and the ugly:
* Worked some more on the M62 savestate issue, and have come to the following conclusions (using Youjyuden as an example game), on restore of savestate, things go horribly wrong, stuck sound, no sound, resets to the title screen, or the game prints "ROM NG" in the middle of the screen.  At this point I almost rewrote most of the driver, and its driving me bonkers trying to figure it out.  Oh yea, I almost forgot about the conclusions: possible protection in the rom is triggering, M6803Scan() isn't saving everything that it should be saving, maybe a stuck irq issue, and maybe theres a bug or issue in the memory layout. 

Thats it for today :)
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on April 03, 2014, 08:00:17 am
Hi guys,
Here's what I've been up to yesterday and today regarding FB Alpha:
The good:
* Fixed the ability to uncheck the Hardware tree under filters (needs more testing before checking in)
Nice!

Quote
* Fixed palette issues in the game Act Fancer (DataEast) on savestate load.  For example, if you die and the screen starts to fade out, and a savestate is loaded while its fading out - the loaded savestate will be faded out -or- you die in level 2 (which uses a different palette) and load a savestate from level1, or vice versa, things will look bad.

This one may need a revisit.  I would call DrvRecalc = 1; from the save state rather than saving the calculated palette. This doesn't work well if you switch color depths -- say you save the game when using a 32-bit depth and then loading it using a 16-bit depth. If that doesn't work... there may be something else weird going on.


Quote
...The bad and the ugly:
* Worked some more on the M62 savestate issue, and have come to the following conclusions (using Youjyuden as an example game), on restore of savestate, things go horribly wrong, stuck sound, no sound, resets to the title screen, or the game prints "ROM NG" in the middle of the screen.  At this point I almost rewrote most of the driver, and its driving me bonkers trying to figure it out.  Oh yea, I almost forgot about the conclusions: possible protection in the rom is triggering, M6803Scan() isn't saving everything that it should be saving, maybe a stuck irq issue, and maybe theres a bug or issue in the memory layout. 

Thats it for today :)
best regards,
- dink

Nasty... I should take a look tonight.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 03, 2014, 09:52:52 am
Hi iq_132,
Thanks for the input on Act Fancer, I checked in a revised patch using your suggestion after testing it a bit :)

re: M62, it usually takes between 1 and 5 state loads before the weirdness happens.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on April 03, 2014, 10:22:49 am
Hi iq_132,
Thanks for the input on Act Fancer, I checked in a revised patch using your suggestion after testing it a bit :)

re: M62, it usually takes between 1 and 5 state loads before the weirdness happens.

best regards,
- dink

I'm actually surprised it doesn't automatically set *recalc = 1; on (nAction & ACB_WRITE) in the burn core... :| This may have to change. I really need to get git set up on my pc again (new windows install...)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 04, 2014, 03:04:07 am
Things are looking good... :)
Tonight I started working on improving the savestates of the sample-hack Toaplan games - Vimana, FireShark/SameSameSame! etc, and also set the loading status to "Loading samples..." while the game is loading the samples, as it takes a few seconds.
EDIT:
Cleaned up the strange noises / ringing noises at the end of short samples.  (listen closely and insert a coin in ghox, or FireShark with the samples present in support/samples/ to hear what I mean)

EDIT: after doing a ton of playtesting, Toaplan samples hack improvements checked in!  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 04, 2014, 05:04:19 pm
Just a bit of blurb... *I figure its at least worth documenting. :) *
Last night I played a game of FixedEight (Toaplan GP9001) and got to level 2 and a half, saved the state and quit.
Today I tried loading the state, and it hangs after drawing the screen & playing 1 note - investigating....  Going to try scanning a couple extra variables, like v25_reset, perhaps (if I can reproduce it again).  The only problem is, I've tried to reproduce it 3 times now, and it won't hang.  ...and I accidentally overwrote the state that hung while testing/etc.   :redface:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 05, 2014, 01:40:32 am
Blurb part 2, but different emulation:
Theres another intermittent issue that has been bugging me (pun intended) is with the NeoGeo emulation, today it happened twice - I'll be playing a game, say, Strikers 1945 Plus or Sengoku and saving states every minute or so (incase I screw up).  So, I screw up for maybe the 10th time, and all is going well so far, but this time, it crashes with a Guru Meditation error when loading the state.  I fire up gdb and get a backtrace and the crash is in LoadRoms(), which is somehow being called during the state-loading process..  The backtrace is almost useless, and I can't find the path taken to get to LoadRoms() when loading the savestate.  Any ideas?
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x008ea928 in LoadRoms() ()
(gdb) bt
#0  0x008ea928 in LoadRoms() ()
#1  0x007fd416 in SekReset() ()
#2  0x004201e4 in m68ki_write_16_fc (value=0, fc=<optimized out>,
    address=<optimized out>) at src/cpu/m68k/m68kcpu.h:1098
#3  m68k_op_move_16_ai_i () at obj/47/3s/dep/generated/m68kopdm.c:7144
#4  0x00401f1c in m68k_execute (num_cycles=18381)
    at src/cpu/m68k/m68kcpu.c:715
#5  0x007fce88 in SekRun(int) ()
#6  0x008ef917 in NeoFrame() ()
#7  0x007c7958 in BurnDrvFrame ()
#8  0x009df188 in RunFrame(int, int) ()
#9  0x009df274 in RunGetNextSound(int) ()
#10 0x009df354 in RunIdle() ()
#11 0x00a6f875 in DxSoundCheck() ()
#12 0x00a066e6 in AudSoundCheck() ()
#13 0x009df35e in RunIdle() ()
#14 0x009dfbf7 in RunMessageLoop() ()
#15 0x009cefcc in WinMain@16 ()
#16 0x00af282e in main (argc=Cannot access memory at address 0x6c0
) at ../mingw/main.c:73
(gdb) q

I attached the said savestate for Strikers 1945Plus, hoping that someone with a better debugger can try loading it and try to get a little more info as to where/why this crash is happening.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 05, 2014, 03:42:40 am
Hey there..
Tonight I told myself I was going to take a break and just play some games..  Well, it only lasted a couple of games...
...Fix for lost SFX after 2nd state load in games that use NMK004, most notably Super Spacefortress Macross. (added NMK004Scan() to nmk004.cpp/h, and called from DrvScan() in d_nmk16.cpp if the game uses NMK004.)
EDIT: (a day later) Fixed another NMK004 issue, this time with Acrobat Mission and GunNail.  Up next: figure out why sounds are screwed up in GunNail - the bassline from the background music is triggering when your weapon fires, and a few instruments are missing from the background music.

best regards and goodnight,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 08, 2014, 08:35:23 am
Hello,
Last night I found a crash problem with Galmedes (Visco/Taito) when trying to load a savestate, so I fixed it and checked in the fix to svn.  The fix may also prevent a crash in Cadash as it uses the same banking method as Galmedes.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 10, 2014, 04:05:48 pm
Heavy Barrel by DataEast.
I'm working to map some buttons to change the rotation of the player, its almost done! :)

The arcade game has a joystick that looks like an ordinary arcade joystick, but you can turn it, to change the shooting direction of your player while running the other way.  I'm currently testing a 2 button method (one for rotate gun right, other for left), this way they can be mapped to the shoulder buttons on a gamepad.

So far it works pretty good! :D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on April 10, 2014, 05:14:58 pm
Heavy Barrel by DataEast.
I'm working to map some buttons to change the rotation of the player, its almost done! :)

The arcade game has a joystick that looks like an ordinary arcade joystick, but you can turn it, to change the shooting direction of your player while running the other way.  I'm currently testing a 2 button method (one for rotate gun right, other for left), this way they can be mapped to the shoulder buttons on a gamepad.

So far it works pretty good! :D

best regards,
- dink

Nice work it's probably not possible but the best solution would be to mimic the Arcade Rotary Joystick setup thats to say
on a gamepad left stick would be move player left right up down diagonal etc and right stick would be turn player when shooting
there's a few hacks in MAME that do this still waiting for that Joystick Hack of Midnight resistance to be dumped if it ever is
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 10, 2014, 06:16:36 pm
gamez fan, I'll see what I can do :) (no promises though - sometimes I just can't figure things out)

I got Heavy Barrel working using the L/R shoulder buttons for both players now, I had my neighbor/friend help me test 2p mode a bit ago, and we had a blast.   I'm really glad to get this game in a better working condition in FBA, because only being able to shoot in 1 direction kinda ruins it. 

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on April 10, 2014, 07:42:45 pm
gamez fan, I'll see what I can do :) (no promises though - sometimes I just can't figure things out)

Hey man no worries just having it controlable in FBA is good enough as for figuring things out tell me about it im currantly
trying to backport the graphic and sound fixes for Fire Barrel from newer MAME to MAME84 absolute nightmare :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 11, 2014, 02:53:14 am
Well, I ended up liking the new controls for Heavy Barrel gun rotation so much that I changed the Midnight Resistance driver to use it too.
This fixes 2 problems with the current (old) Midnight resistance code for rotating your gun...
1: Deadzones, sometimes pressing the button assigned to it does nothing for a couple presses!
2: Response time, sometimes pressing the button takes a second to finally move your gun, or sometimes it moves your gun too many steps, with the new code, 1 button press moves the gun instantly 1 position.  And now if you hold it down, say 1 second, it will always move your gun 180 degrees.

I'm going to play a couple games with a friend tomorrow and see how the new code holds up :)

best regards & happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 11, 2014, 03:26:11 pm
Hey guys,
I'm kinda bummed out about something.  Everything was going just perfect with the new controls in Heavy Barrel, and I did a couple of playtests.  There seems to be a strange problem in the emulation, though.  When going through the wall after beating the second boss (or the third boss), it will then take you to a random level in the game, or a corrupted-tile looking level.
I've played the game 5 times now, and its easily repeatable - even tried with a fba without my changes... :(
How to reproduce:
After the second boss has been defeated, take a snapshot right before you blow through the wall and walk through it, now go through the wall, if it takes you to the third level, load the snapshot and try again - there seems to be a 50% chance it will take you to the wrong level.  The next time it will take you to level 1,2,or some corrupted level...

What now? I'm comparing the mame driver to the FBA driver to see if I can spot anything that could be causing the problem.. But right now its looking a little grim :(

best regards....
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on April 11, 2014, 04:51:52 pm
Hey guys,
I'm kinda bummed out about something.  Everything was going just perfect with the new controls in Heavy Barrel, and I did a couple of playtests.  There seems to be a strange problem in the emulation, though.  When going through the wall after beating the second boss (or the third boss), it will then take you to a random level in the game, or a corrupted-tile looking level.
I've played the game 5 times now, and its easily repeatable - even tried with a fba without my changes... :(
How to reproduce:
After the second boss has been defeated, take a snapshot right before you blow through the wall and walk through it, now go through the wall, if it takes you to the third level, load the snapshot and try again - there seems to be a 50% chance it will take you to the wrong level.  The next time it will take you to level 1,2,or some corrupted level...

What now? I'm comparing the mame driver to the FBA driver to see if I can spot anything that could be causing the problem.. But right now its looking a little grim :(

best regards....
- dink

Could be unmapped reads/writes or more likely an issue with the i8751 simulation. That's where I'd look first.

Also - does this happen in normal play or just when using savestates? It looks like these should probably be saved (in HbarrelI8751Write);

Code: [Select]
static INT32 Level, State;
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 11, 2014, 04:52:34 pm
Woohoo! It looks like I spoke too soon, problem solved! :)  Somehow the level variable for the I8751 pseudo-emu was getting changed about because it was not properly initialized, I moved it to the global scope and init it (along with the state var) on reset, and also scan the variables for working savestates.

For those that don't know the game - Heavy Barrel is kinda like a strange combination of Contra and Ikari Warriors, and I definitely recommend checking it out (especially when the next version of FBA is out! - these changes really make the game play right)

Anyways, sorry for the ranting earlier, I guess I need to take a break from coding more often o.O

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on April 11, 2014, 04:56:29 pm
Looks like you found it. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 11, 2014, 05:09:09 pm
:) Thanks though!

Here's proof the game is now working fine and the new controls rock :D   Heavy Barrel  :cool:
p.s. will post code to svn after some 2player playtesting.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 12, 2014, 03:49:41 am
Now I'm stuck on something else - this time with the game Midnight Resistance.  When you get to the part with the gears and conveyor belts, nothing shows on the screen, see pic: (The first pic - FB Alpha, the second pic - from mame - how it should look) p.s. its on the second level, if you need to figure out how to get to this exact spot, Watch this video.  The part where the issue occures is at 2:14 - http://youtu.be/beoHC4KCq4I?t=2m14s
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 12, 2014, 04:07:02 am
(Continued from last message - due to the attachment size limit)

The third pic is FB Alpha, but I kept shooting at the ground, and eventually proceeded downwards as normal, and as soon as the top part - the beige platforms - scrolls off the screen, the gears & blue platforms show normally.  I'm afraid I need some help with this one.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 12, 2014, 04:15:36 am
It happens again a little later in the game, refer to the second pic in the last post, and the pic right below this text, when I travel down the ladder a little more, the screen then becomes visible.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on April 12, 2014, 03:31:11 pm
Midnight Resistance should be fixed now. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 12, 2014, 03:57:57 pm
Treble Winner,
Thank you! very much - my friend! :)
Today is a good day :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 13, 2014, 03:15:07 am
Its always good to do some proper playtesting to thoroughly test the driver, right? :biggrin:

Well, it took me half the night, and many tries, but I finally beat Midnight Resistance - and I couldn't have done it without the excellent Tile/layer fix from Treble Winner, and the groovy rotator code I wrote the other day for Heavy Barrel ( & Transplanted to Midnight Resistance)
p.s. my changes will get checked in after I test the 2player mode tomorow with a friend.

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 15, 2014, 02:29:08 am
Today I uncovered an issue in SN76496Scan(), if 1 SN76496 was initted, it wouldn't scan anything, but if 2 were initted, it would only scan the first one.  Nothing too exciting :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: BritneysPAIRS on April 15, 2014, 06:07:26 am
dink PM me if you want anything for the control of TNKIII Midnight Res Heavy Barrel Forgotten Worlds Calibar 50 and others ive pached these many ways....so they fire the way you are pointing....or so they fire in the direction of the second joystick when you press it in a direction...a few little quirks but makes them nice to play
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 15, 2014, 09:08:04 am
Thanks for the offer, but how I got it now is the way I'd like to keep it.  Games like Midnight Resistance need to be able to shoot backwards while running forward in certain parts.  I also playtested the new code quite a bit and there aren't any quirks :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: BritneysPAIRS on April 15, 2014, 04:10:32 pm
No worries...yes midnight res is the worst game for point and shoot...but is alot better for ikari warriors...g war...time soldiers...etc...

good work though...just pm if you want the code ill send it to you...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 15, 2014, 05:29:28 pm
Hi guys,
Here's what I'm working on today:
*actually started on this the other day, but didn't make any progress*
While playing Willow or Strider (Capcom CPS1 games), after a couple savestate save/load's, the sound - both sfx and music - hangs.  A simple F3 reset then load the state will bring things back to normal, so that (probably most-likely) means that nothing is getting corrupted in the savestate itself.  Right now I'm just scratching my head and taking a break, hopefully something will turn up :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: destronger on April 15, 2014, 09:02:43 pm
nice work dink, well done!

 :smilie:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 16, 2014, 03:23:55 am
thanks destronger :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 16, 2014, 03:40:25 am
I don't have a solution yet, but I did find out some more info regarding the sound hang in Strider/Willow (cps1) games that use the ym2151. 
The sound/music will hang if the savestate is saved right after drvYM2151IRQHandler has been called with nStatus=1 or if its loaded before the handler is called with nStatus=0
At this point no more read/select calls (PsndZWrite()) to the YM come in.
A reset with F3 then load the savestate will fix the sound/music.

An easy way to trigger the bug without playing the game and casually save/loading the states - after inserting a coin and hitting start, press save / loadstate repeatedly (every second or so) during the cut-scene glider-fly-in on Strider.
If it doesn't bug after 2 tries, close/reload fba and try again.

thats all I have for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 16, 2014, 11:51:41 am
Something else thats on the todo list is to figure out why Double Dragon I and II don't work 2-player over kaillera - the remote fba can't control the player.  Though the good news is Demon Front works fine this way, so when I get some time later today I'll try to figure out what is going on with the inputs differently in DD1/2 compared to Demon Front.

EDIT: Figured it out - if the controlls for the P1 block have P2 controls in them, for example:
P1 Coin
P1 Start
P2 Coin
P2 Start
P1 Up
P1 Down
It thinks that the P1 block of controlls is just the first 2, because as soon as it sees the P2 controls, it thinks the P1 block of controls has ended.   Thats easy enough to fix :)

Unfortunately theres a bigger problem in Double Dragon (Japan) (ddragon.zip).  Upon winning the game, its supposed to play a cut scene where they free the girl, the game just locks up and the graphics get corrupted pretty badly at this point.  :(
Any ideas? :)

Best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on April 16, 2014, 07:05:03 pm
Unfortunately theres a bigger problem in Double Dragon (Japan) (ddragon.zip).  Upon winning the game, its supposed to play a cut scene where they free the girl, the game just locks up and the graphics get corrupted pretty badly at this point.  :(
Any ideas? :)

Best regards,
- dink

The issue you mention was fixed in MAME maybe the same fix is required in FBA??

Quote
- 0.103u2: Bryan McPhail fixed Double Dragon crashed sometimes at the very end of the game.

- 8th January 2006: Bryan McPhail - Double Dragon Has a crash Which Occurs sometimes at the very end of the game (right before the final animation sequence). It Occurs Because of a jump look up table: BAD3: LDY # $ BADD; BAD7: JSR [A, Y]. At the point of the crash A is 0x3E Which causes a jump to 0x3401 (background tile ram) Which obviously does Contain proper code and causes a crash. The jump table Has 32 entries, and only the last contains an invalid jump vector. A is Set to 0x3E as a result of code at 0x625f - it reads from the shared spriteram (0x2049 in main CPU memory space), copies the value to 0x523 (main ram) where it is later fetched and shifted to make 0x3E. So. It's not clear where the error is - the 0x1f value is actually written to RAM shared by the main CPU - Perhaps the MCU Should modify it before the main CPU reads it back? Perhaps 0x1f Should never be written at all? If you want to trace this further Top please submit a proper fix! In The Meantime I have patched the error by making sure the invalid jump is never taken - this fixes the crash (see ddragon_spriteram_r).
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 16, 2014, 08:00:44 pm
gamez fan, thank you very much for the information!  I will add this fix to the FBA code :)

EDIT: it turns out that FBA already has this crash fix, so tonight I played the game through to the end by myself, and the ending showed perfectly.  So what gives?  Does the crash fix only fix 1player mode? Luckily I used savestates throughout the last level, so I went back and added the second player, but the computer figured out that the 2nd player was idle, and the ending chose a different path.  Ugg..
I feel like I'm at yet another dead-end.  All sorts of debugging & testing yet nothing positive has been gained, kinda makes me feel bad. 

Heres my current FBA Failure roster:
1: Neogeo (any game) crashes after saving/loading several savestates - no fixFIXED!
2: CPS1 (Strider, Willow, etc) games lose sound after saving/loading several savestates - no fix, but workaround - hit reset then load savestateFIXED
3: OutZone (Toaplan) - if you save a state, then close and reload FBA, load the game then the state and move your character, there will be a stuck sprite of your character on the screen OR sometimes just playing the game with casual save/loadstates will cause a stuck sprite on the screen - no fix FIXED!!!
4: Ash n joe / Success Joe crash on SS - no fixFIXED (iq_132)
5: Maze of Flott - crash on SS - no fixFIXED
6: GunNail - all of the sounds are kind of messed up, tried to fix this by comparing to mame sources (which works fine), no luckFIXED!!!!!!!!!
7: Clicking the hardware check to clear everything below it - forgot to check it in, Treble Winner got it though.
8: Double Dragon - possible crash at the end of a 2player game - looking into it..no issue, played several more 2p games w/o a problem.
 :eek:  :p
Perhaps a little break is in order...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: destronger on April 17, 2014, 08:53:53 pm
when in doubt, take a nap.  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 18, 2014, 02:51:52 am
@destronger - thanks, great idea :)

After sleeping half the day, I came up with a couple of good fixes:
1 - Contra, fixed the slowdown when lots of stuff is on the screen & increased the music tempo
2 - The New Zealand Story, savestates now work without crashing, and fixed the low music/sfx volume.

thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: manliodp on April 18, 2014, 04:17:42 am
OMG you're doing a wonderful work!!

Thank you and keep going!! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 19, 2014, 12:16:14 am
manliodp, thanks :)  I'm trying to give back something to my favorite emulator, thats all!

Heres some more good news, Barry fixed the graphics corruption/issues on stage3 of Contra - now the game is 100% playable!! :D  Teamwork!!  :biggrin:

EDIT: some more Contra-goodness - fixed the 2nd player inputs for 2player Contra-netplay with Kaillera, and fix the palette after loading a savestate (the problem only became apparent in the last 2 levels)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 19, 2014, 05:27:56 pm
Today I made a couple of modifications to kailleraclient.dll, which is basically the netplay interface for FB Alpha and many other emulators.

Changes:
kaillera .ini file is now saved to the directory of fbalpha's executable as ka.ini, instead of in C:\n02.ini
reasons for this:
For some reason, my friends system (win8.1) doesn't have write permissions to C:\ (root dir), so his settings were always lost after a restart & it looks better not having an ini on your root directory. (other systems)

The context menu for creating and joining games would sometimes change to some language other than English.

The titlebar infotext was slightly modified to reflect these changes.
Here's a link to the updated dll (zipped), http://cloud.cbm8bit.com/dink/kailleraclient.zip

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 20, 2014, 11:05:02 am
A little solution to "shit happens", by dink.

So, every once in a while I accidentally overwrite a savestate, and its really frustrating - especially if the one that got written was absolutely useless.  I've added a little 3-line chunk of code that backs up the last savestate (the one thats about to be overwritten) to gamename slot xx.fs.backup

thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 20, 2014, 04:30:51 pm
Hi guys,
Today we have some more good news, I patched up savestates for Altered Beast, as saving and loading a state would cause corrupted/distorted sound or hung notes, or no audio at all depending on when you saved the state.  A good way to reproduce this bug almost every time is to save/load a state right after hitting start when the wizard says "Rise from your grave".

Technically: UPD7759 and YM2151 wasn't being scanned properly (not enough variables - or too many we're being scanned) & check for clipping while mixing audio w/UPD7759.

thats it for now...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 21, 2014, 01:41:55 am
Enough of the fixes, its time to play some games :)
Tonight I did a couple practice runs of Altered Beast (using savestates), then I ended up beating it on my first coin on a fresh run without any savestate usage.  Back in the late 80s, I wasn't too much a fan of the game, but now I love it :)  *Back then, I also sucked at any game that had more than 1 button - so go figure* :biggrin:

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 24, 2014, 02:14:19 am
Over the last couple days when the forum was down, I was busy working on FBA.. Heres a log of the past 3 days:

A singular backup for each savestate slot - lets say you saved something to slot 1 at the wrong time, and it ruined your only good savestate of this game - no problem - your last savestate that got overwritten will be renamed to "gamename slot 01.fs.backup"  Just go and delete the new/bad savestate and rename the .fs.backup to .fs

Savestate support added in the games: Toki, Donkey Kong & DK Jr.

Fixed some clipping/distortion in the Konami K053260 chip emulation, most notably fixes crackles during some sounds in the game Vendetta.

Fix states for games using YM2151 and UPD7759 chips, and fix some clipping/distortion (crackles in sound) in UPD7759 games.

And now, something I consider a holy grail fix - Cutscene/music timing is now properly synchronized and SFX work in the classic Gun.Smoke  :)

I always wondered why some games sounded better in MAME, and I stumbled over the problematic code while working on Gun.Smoke the other day which causes the issue...
Games that use the YM2203, such as Gun.Smoke, Ghosts and Goblins, Karnov, etc. init the driver at a really low khz.. like 5-10khz when the setting "4 point 3rd order FM Interpolation" is selected in the Audio tab of the toolbar.   I've temporarily fixed this by forcing the driver to init at the rate selected in Audio -> Plugin Options -> 44100hz (the rate I have selected), and it works just fine, but I wonder if thats the best way to go about it?  Hmm...

Thats it for now,
best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on April 24, 2014, 10:55:17 am
I enjoy reading your WIP posts dink some more good work done long may it continue!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 25, 2014, 12:06:40 am
Heres what's new for today:
Part 3 of "do research/code compare/figure out why sounds are wrong in GunNail & try to fix it" - ongoing (no fix yet!)

I was playing Karnov a bit earlier, and hit reset for some reason, only to realize that reset caused FBA to crash.  The crash also happened with the other games in the d_karnov.cpp driver, so now thats fixed :)

@gamez fan, thanks buddy :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 26, 2014, 05:56:31 pm
Good day, fellow FBAlpha fans!

I have finally found the solution to the broken SFX & music in the game GunNail.  For weeks I have been going through the code line-by-line trying to figure it out, comparing it with the MAME driver code, and other drivers in FBA... and every time I'd end up giving up/thinking there wasn't a solution.  You see, I have a list of games in FBA that don't work right (or don't work to my liking), and a couple of weeks ago, I didn't think I'd ever be able to repair them.  So when I get to cross one of them off my list, its an exciting day for me :) 
Contra (with massive help from Treble Winner) and Gun.Smoke were previously on that list, too..

Another (albeit, less significant) fix I came up with earlier is for the game The Berlin Wall - FBA would crash if you tried to reset (F3) the game.

Well, thats it for now - I need a nice break ;p

*EDIT: Later that night....*
Now that GunNail is working properly in FBAlpha, I figured doing a little bit of playtesting would be a good idea because one can never be sure about bugs that may occur later on in the levels.. heh :)
Yea, its perfect.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 28, 2014, 01:45:25 am
Changes for this lazy sunday...

The Multi-Screen games...
Darius2, Ninja Warriors, Rastan III - Warrior Blade (d_darius2.cpp driver): Fixed the controls to play over Kaillera & scan the parameters.etc. of the extra screens when using savestates.  Previously, it only scanned the first screen's parameters, which lead to cut off/missing text on the second/third screen and/or weird error messages on the second or third screen.

Regarding Taito games and savestates - a lot of them will have a missing background if you exit/reload FB Alpha and load the savestate, but don't worry - move around a bit or wait a a bit and it will re-appear.  If you use savestates at different points in the level, and want to go back, they work without this missing-background problem though[AKA: NO problem, MON!].  I havn't yet found a decent way to fix this problem, but the work-around isn't too bad..

Added Savestate capability to The Fairyland Story's driver.

thats it for now :)
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 28, 2014, 02:03:23 am
Rastan 3: before / after
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on April 28, 2014, 11:06:13 am
is there a list of bugs somewhere ? maybe i could help too
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 28, 2014, 02:36:34 pm
is there a list of bugs somewhere ? maybe i could help too

Theres a thread called "FB Alpha 0.2.97.29 Bugs Reports" where you can read about glitches and issues in games.  It would definitely be nice to have someone else helping with the glitches/bugs/etc :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on April 28, 2014, 03:08:57 pm
Theres a thread called "FB Alpha 0.2.97.29 Bugs Reports" where you can read about glitches and issues in games.  It would definitely be nice to have someone else helping with the glitches/bugs/etc :)

best regards,
- dink
I would love to see an FBA bug tracking site. There's a lot of bugs! Mostly mine!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on April 28, 2014, 03:48:18 pm
I'll see if I can get something setup - should be pretty easy. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 28, 2014, 04:49:06 pm
Excellent idea re: the bug tracker :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 28, 2014, 05:31:01 pm
Methods to my maddness, Monday version  :p

Spent a while re-working and refining the taito/d_darius2.cpp & tn0100scn.cpp savestate issues & fixed the sometimes blank-background on state-load.  Darius2/Ninja Warriors/Rastan 3 - Warrior Blade is savestate-perfect now!
Another thing, I also spent the past couple days testing what was supposed to be a temporary low-khz ym2203 patch.  After a crazy amount of testing on different pc's, I decided to check in the fix.  Are you confused?  :)  Basically it comes down to this:  if you have FM Interpolation on, (Audio -> 4-point 3rd order FM Interpolation) and play a game that uses the YM2203 chip, chances are - it'll sound like crap.  Try it yourself - make sure FM interpolation is on, (also make sure your plugin sample rate is 44100 or higher), and play the game Ghosts 'n Goblins, or Gun.Smoke.  Listen closely.  Now exit the game and disable FM Interpolation (Audio tab), then re-try Ghosts 'n Goblins and Gun.Smoke.  In theory, FM Interpolation should sound better, not worse, than no Interpolation.  Well, now that its fixed it does  :biggrin:

Tip of the day: sometimes its a good idea to wait for the game to initialize (aka wait for the manufacturer's logo) before loading a savestate on a freshly loaded game - especially with Taito games!

thats all for now,
best regards,
- dink



Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on April 29, 2014, 07:12:22 am


Tip of the day: sometimes its a good idea to wait for the game to initialize (aka wait for the manufacturer's logo) before loading a savestate on a freshly loaded game - especially with Taito games!


That sounds like something is not being saved, but I guess you already knew that :)

Also, good work on all the fixes! If anyone ever wanted to take a look at what I did wrong with the graphics on the SMS driver that would be amazing! I really, really wish I had more time as i'd love to work on FBA again. At best I spend an hour a year at the moment and all I do is cause more issues :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 29, 2014, 08:35:06 am
That sounds like something is not being saved, but I guess you already knew that :)

Also, good work on all the fixes! If anyone ever wanted to take a look at what I did wrong with the graphics on the SMS driver that would be amazing! I really, really wish I had more time as i'd love to work on FBA again. At best I spend an hour a year at the moment and all I do is cause more issues :)

Hey there,

Re: something not being saved..
The problem is, some things are exempt from being saved (see memindex and the top of the *Scan function), the second part of the problem is, if theres too much data being saved, FBAlpha chokes up when saving the state for a few seconds, and thats not good.  So we have to find a happy medium :) But in reality, its probably just a global variable hidden between functions and/or something simple that I've overlooked..  :p


Can you post a re-creation scenario for the SMS graphics problem?  (which game, where exactly? etc).  (in the "FB Alpha 0.2.97.29 Bugs Reports" thread, of course).  I'll certainly take a look at it, but can't promise anything since graphics are my weak point..

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 30, 2014, 03:01:04 am
It seems like it takes about 15 minutes to compile and link a new fba executable with mingw, even after only making a minor change to the code.  To get around this, I came up with 2 scripts, one to compile and one to link - which gets the compile&link time down to about 10 seconds :)

lets say you're at ~/fbalpha/trunk and you made a change to src/burn/drv/taito/d_darius2.cpp, and want to build an executable real quick.
Code: [Select]
user@---------- ~/fbalpha/trunk
$ cm drv/taito/d_darius2
compile-o-matic v.0001 - usage cm dir/sourcefile

user@---------- ~/fbalpha/trunk
$ ./l.sh
linking..
copying to /home/user/fbadebugg/

user@---------- ~/fbalpha/trunk
$

"cm" does the compiling, and "l.sh" does the linking.  Here's how to synthesize the scripts, there is quite a bit involved, but the time it saves is worth it. (You have to generate a new link script (or update it) each time something new is added, like a driver or something.)
First, make sure the make process completes successfully and builds an executable, then:

Edit Makefile.mingw, search for "linking executable" and add this line below the echo:
Code: [Select]
@echo $(LD) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(lib)
Go to line #650 in Makefile.mingw, which should be "@echo Compiling $<..." and add this line below it, and save/exit editor:
Code: [Select]
@echo $(CC) $(CXXFLAGS) -c $< -o $(subst $(srcdir),$(objdir),$(<D))/$(@F)
execute this, it will change the timestamp on the d_darius2.cpp file, so it gets re-compiled with our new makefile:
Code: [Select]
touch src/burn/drv/taito/d_darius2.cpp
almost there! now run
Code: [Select]
make mingw471 > makelog.txt 2>&1 and wait about 15 minutes or so for everything to complete, or, open another shell window and run tail -f makelog.txt to see whats going on.

- stay tuned for part 2 -
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 30, 2014, 03:11:59 am
part 2 - making the scripts from makelog.txt:

load makelog.txt up in your favorite editor, and create 2 new files, cm and l.sh.
go to the very end of makelog.txt in your editor, and copy the line that looks like the one below, and paste it into l.sh:
(you'll want the entire g++ line, ignoring the "Linking executable... fbads.exe" line above it)
Code: [Select]
Linking executable... fbads.exe
g++ -pipe -std=gnu99 -O1 -mwindows -fforce-add ............

now, go up a few lines to where it says "Compiling src/burn/drv/taito/d_darius2.cpp...", and copy the entire line under it, which should start like "gcc -pipe -O1 -mwindows -fforce-ad.........", and paste it into the new file "cm"

Focusing on the new "cm" file, go to the end of the very long line and change this part:
Code: [Select]
src/burn/drv/taito/d_darius2.cpp -o obj/47/3ds/burn/drv/taito/d_darius2.oto this, and save:
Code: [Select]
src/burn/$1.cpp -o obj/47/3ds/burn/$1.o
... and there you have it!  when using the "cm" script, pass the directory leading up to the source file - relative to ~/fbalpha/trunk/src/burn/ - and the source file, without the .cpp extension.  If you also want to do work under burner, remove "burn/" from the script above (and use "cm burner/win32/sel" for example).  For an example of how to use it, refer to the top of the previous message :)

p.s. to make things a bit easier, you can further modify the l.sh script to copy the new executable somewhere such as your fbalpha installation directory.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on April 30, 2014, 05:01:02 am
dink,

You do realise FB Alpha has it's own dependancy checking in the makefile (enabled by default when using GCC/MinGW)?

First time you compile, everything is built, subsequent times only changed files are compiled.

The dependancy also checks for dependant files too, eg, if you change burn.h then all files that include burn.h are recompiled.

15 minutes is a long time too - it takes 2-3 minutes on my machine! :)

If you are devloping with MSVC enable symbols to avoid having to do a full link optimisation each compile.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 30, 2014, 09:16:01 am
Treble Winner, yep - I'm pretty familiar with the Make process.  It really takes 15 minutes to get to the linking part, even if just 1 driver/cpp file is modified.  I think a lot of it has to do with my trusty/dusty centurys-old PC.  eh, ohwell :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 04, 2014, 11:21:09 am
Hi guys,
The last couple days I've been tearing my hair out trying to understand & possibly fix a graphics glitch in Caveman Ninja.  I have at least narrowed down the problematic code, but I just can't seem to make sense of it. 

back to the drawing board!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 05, 2014, 03:18:23 am
Cavaman Ninja is now a-ok - I solved the graphical issues! (finally!)
Here's some before and after shots:

Before:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 05, 2014, 03:18:59 am
After:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 05, 2014, 02:37:28 pm
Psycho-Nics Oscar, a cool little platformer that has a powerup system similar to Gradius isn't quite right in FB Alpha.  Our hero sprite is displayed behind the trees and other stuff that should be in the background.  Here's a little pic to show how it looks in FBAlpha: * where is he hiding? :) *

Edit: another issue is the palette is wrong on certain things - that big weird head is supposed to have a stone-ish appearance, and the collect-em-ups are always grey and hard to read - they should be orange/yellow and easy to read.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on May 05, 2014, 03:33:52 pm
Your on a roll dink!!! fancy taking a look at Battle Shark there's a error somewhere in the code which causes the game to
freeze just before level 2 or anytime after
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 05, 2014, 04:24:01 pm
Hi gamez fan :)
Just for the record, Psycho-nics Oscar isn't fixed yet, I was just documenting the bug because I started working on it.  anyways,  I think I might have jumped over a huge hurdle with Caveman Ninja though - I spent the entire weekend working on it - most of the time it was a learning experiance.  A funny thing about Joe & Mac.. After fixing it, I played the entire game from beginning to end just to make sure everything was alright.  It turns out the fix actually caused some glitches in the ending sequence, so a little while later I came up with yet another fix, to fix what the previous fix broke.   :eek:

I'll definitely take a look at Battle Shark just after I figure out Psycho-nics Oscar!
EDIT: Our hero sprite of Psycho-Nics Oscar is no longer hiding in the trees  :biggrin:
Next up: fix the palette issues on the boss character and power-ups.  (see http://neo-source.com/index.php?topic=2487.msg16408#msg16408 for more info)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 06, 2014, 02:52:47 am
Psycho-Nics Oscar is now completely fixed, heres the proof:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 06, 2014, 09:16:35 am
gamez fan, I did some research with Battle Shark, and found where it spazzes out (locks up) a few seconds into level 2.  Once I figure out why it is doing this, I can fix it..
EDIT: ...a couple hours later, still no dice, this is a really strange problem, gonna need some help on this one!
EDIT again, later that day.. Battle Shark is fixed, but you'll have to thank Treble Winner!  Great job buddy :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 06, 2014, 03:07:05 pm
Nice work! Looks like I added the color offset and forgot to remove it for Oscar.
Good job on cninja too. I took a quick look, but didn't go far with it. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on May 07, 2014, 12:46:09 am
Hi dink. Could you test these games: ROBOCOP 2, VENDETTA 2, THUNDER DRAGON 2, IN THE HUNT, BOOGIE WINGS, TASK FORCE HARRIER, GAUNTLET (after Stage 1), TURBO FORCE, CONTRA (STAGE 2), CONTINENTAL CIRCUS (JAPAN VERSION)?? I have found some glitches couple months ago when I played FBA emu  :smilie:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 07, 2014, 01:06:43 am
Thanks iq_132 :)

WILOWAR: the good news, Contra is fixed - massive thanks to Treble Winner, of course! :)

I'll see what I can do about the other games, but I can't make any promises, as I've been spending 100% of my free time just working on games that I have in my personal to-do list for FBAlpha (read this thread from beginning to end, noting the time of the messages if you don't believe me!)  But my mission is to get every game working perfectly - or at least try to, so stay tuned :)

best regards and happy [retro, of course] gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 07, 2014, 05:41:30 pm
There is yet another issue in Caveman Ninja - the in-game background music plays at the wrong tempo.
Heres some soundclips to document the issue:
http://sharesend.com/tdmxd34r

I'm stumped yet again.. :/

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on May 07, 2014, 08:16:19 pm
EDIT again, later that day.. Battle Shark is fixed, but you'll have to thank Treble Winner!  Great job buddy :)
Thanks alot fellas Nice one!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 08, 2014, 04:05:39 am
I started Midnight Resistance tonight because all I wanted to do was hear that nice level-1 music, well, after the first level things started to get addictive.   One coin and only 2 deaths later I beat the game :biggrin:

Sometimes one has to take a break from working on code and enjoy some nice solid oldschool gameplay.

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 09, 2014, 01:59:02 am
After lots of debugging and lots & lots & lots of trial and error, I got the music in Caveman Ninja (Joe 'n Mac) to run at the right tempo!  :biggrin:
EDIT: Playtested the game from beginning to end, everything seems 100% perfect now.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 09, 2014, 05:02:46 pm
Hey guys,
One [most certainly!] last thing regarding Caveman Ninja:  I noticed some sound crackles which only seemed to appear around mid-level 2 to right before the boss.  It happens even more when using the fireball weapon.  I uploaded a patch to fix the issue, of course :) 

Thats all for today.
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 10, 2014, 03:22:00 am
Tonight/today I made a little modification to fix the loud crackles/distortion in the iremga20 sound driver, which is used by irem M92(and M107) games. This improves the sound in-game for In the Hunt quite a bit.   :biggrin:

EDIT: *the next day* regarding IREM m92 savestates - fixed occasional lost sound on savestate load, some other misc crackle/distortion/clipping prevention in other sound drivers. tip: mixing 16bit samples with "sample += newsample;" can cause this issue if the result is larger than 65535 - which happens on particularly loud and/or bassy samples, use "sample = BURN_SND_CLIP(sample + newsample);" instead

Oh yea, a little playtesting never hurts :) [see pic below, game: R-Type LEO]

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 12, 2014, 04:11:05 pm
dink's FBA Dev Journal for Monday, May 12, 2014...

Fixed up 2 excellent games using the Seta driver:
Masked Riders Club Battle Race & Madshark had no background music - only sfx.  It turns out that the driver wasn't acknowleging irq 4, which does the sound.  After a couple other little tweaks both games play and sound great :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 12, 2014, 06:22:08 pm
dink's FBA Dev Journal for Monday, May 12, 2014...

Fixed up 2 excellent games using the Seta driver:
Masked Riders Club Battle Race & Madshark had no background music - only sfx.  It turns out that the driver wasn't acknowleging irq 4, which does the sound.  After a couple other little tweaks both games play and sound great :)

best regards,
- dink
Excellent work! As you've probably noticed by now, I have no eye for detail and am horrible with game music. Thank you for your work.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 13, 2014, 01:03:18 am
Excellent work! As you've probably noticed by now, I have no eye for detail and am horrible with game music. Thank you for your work.

I'm exactly the same, but horrible with the graphics side of things, so if you think of it - we make a good team :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 13, 2014, 01:57:09 pm
Something for today,
Got War of Aero - Project MEIOU's background music in proper working order.

Trying to get the sound in Air Duel working, though - this one is a bit tricky, but I think I'm on to something :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 14, 2014, 03:51:42 am
I'm afraid I gotsome bad news, I've been debugging-about all day with Air Duel (irem d_m72) and I can't get the music working.  Oh well...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 14, 2014, 04:13:35 pm
..And now for some good news this time!
Today I fixed the corrupted & out-of-place sounds in Gundhara and EightForces & improved the music a bit (it was only coming out the left side).

EDIT: Fixed the samples in Blandia as well :)

For FBA Quality Assurance - I Played MadShark to the end, to make sure the fixes I made to it the other day didn't affect anything or cause any new bugs - things are looking & sounding good!  :biggrin:

EDIT: FBA Quality Assurance part 2: Played Gundhara a few times, eventually beat it (the last and 2nd to last boss is a b*tch), everything checks out 100% :)
This game is awesome - definitely one for fans of Heavy Barrel, Midnight Resistance, Contra.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 15, 2014, 04:40:53 pm
(For those that use savestates - read on)
I started working on a linear savestate mechanism, which is great for gaming from a gamepad w/o the need to reach for the keyboard to select different slots while in-game.

Basically, it works like this: every time you save a state, it will save a backup of the last 10 savestates - instead of just overwriting the last one. A new "undo" function will go back through the backups, in a reverse of the order you saved them.  It also works nicely with the current slot system - each slot will have 10 backups each.  I've used this method a lot with BlueMSX (MSX & Colecovision emulator) and VICE (C64 emulator), and really miss it in FB Alpha.  Its really handy for practicing ultra-fast-paced/frenetic games and shoot-em-ups alike.

Doesn't seem interesting?  Well, how about... Have you ever saved a state at the wrong time and overwrote your excellent gaming progress with the title screen? This will be the solution for this as well  ;p

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 15, 2014, 06:11:06 pm
(For those that use savestates - read on)
I started working on a linear savestate mechanism, which is great for gaming from a gamepad w/o the need to reach for the keyboard to select different slots while in-game.

Basically, it works like this: every time you save a state, it will save a backup of the last 10 savestates - instead of just overwriting the last one. A new "undo" function will go back through the backups, in a reverse of the order you saved them.  It also works nicely with the current slot system - each slot will have 10 backups each.  I've used this method a lot with BlueMSX (MSX & Colecovision emulator) and VICE (C64 emulator), and really miss it in FB Alpha.  Its really handy for practicing ultra-fast-paced/frenetic games and shoot-em-ups alike.

Doesn't seem interesting?  Well, how about... Have you ever saved a state at the wrong time and overwrote your excellent gaming progress with the title screen? This will be the solution for this as well  ;p

best regards,
- dink
Sounds pretty interesting! Do keep in mind that FBA compresses save states.  This can be pretty cpu-intensive for a pile of save states. It takes FOREVER for games with large areas of ram. I've been wanting to re-write the save state system for a while, ripping out the compression and getting these to be endian and 32->64 bit safe. As of right now, states from a 32-bit build of fba won't work on a 64-bit usually. It's pretty nasty.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on May 15, 2014, 07:45:00 pm
The rom loading could do with a rewrite whilst your at it :p

In all seriousness libzip gives pretty good performance in another project I work on but not sure how useful it will be on a save state front.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 15, 2014, 09:09:36 pm
The rom loading could do with a rewrite whilst your at it :p
What are you thinking? This may be something I invest some time into.

Quote
In all seriousness libzip gives pretty good performance in another project I work on but not sure how useful it will be on a save state front.
I honestly don't see the point of compressing save states at all. Hard drive space is nearly limitless, the MAME set eats your hard drives with impunity.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 16, 2014, 01:38:43 am
Sounds pretty interesting! Do keep in mind that FBA compresses save states.  This can be pretty cpu-intensive for a pile of save states. It takes FOREVER for games with large areas of ram. I've been wanting to re-write the save state system for a while, ripping out the compression and getting these to be endian and 32->64 bit safe. As of right now, states from a 32-bit build of fba won't work on a 64-bit usually. It's pretty nasty.

I realize the compression is pretty slow with games that use large amounts of ram, but this feature will take no longer than usual - all it does is: instead of overwriting the last savestate, it renames it to a backup file, up to 10 of them, the 11th always gets deleted.  To break it down visually:
hit savestate once, you get:
game slot 1.fs
hit savestate button again
game slot 1.fs
game slot 1.fs.backup0 (from the first time you hit savestate
hit it again:
game slot 1.fs
game slot 1.fs.backup0
game slot 1.fs.backup1 (from the first time you hit savestate)

now, if you hit the new "savestate undo" button, this will happen:
game slot 1.fs.backup0 -> game slot 1.fs
game slot 1.fs.backup1 -> game slot 1.fs.backup0
hit it again:
game slot 1.fs.backup0 -> game slot 1.fs

Nothing else needs to be changed re: savestates (IMO) :)

One thing I might add: mame's crappy savestate support is the reason I chose FB Alpha.  Every time you hit savestate (even if mapped to a joystick/gamepad button) it asks "what slot do you want to use" - and you have to reach for the keyboard to type in the slot#! [at this point, mame wont accept input from Joy2Key] What if you're sitting back in your chair with a gamepad in your hand? that sucks. also - in a lot of games "savestates aren't supported for this game".  Now that I fixed nearly every game with broken savestates in FBA, FBA is perfect in this respect. :)

Going off topic:
I agree with kev, the rom loading needs at least some macros, to rid the use of having to use memcpy and such things if data needs to be relocated.  You don't have to change the entire system - just make a couple macros to deal with things better for future drivers (what I mean is, we don't have to go back and change all the existing drivers to use the new macros - just for new drivers and/or when updating/rewriting older drivers that never worked right to begin with).

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 18, 2014, 04:45:28 pm
Hi guys,
Heres some good news for this Sunday -

Savestate undo has been through some very rigorous testing over the past couple days, after a few tweaks and some more testing - its golden.  Activate savestate undo with Shift-F8 - this will restore the previous savestate over the last savestate which was saved, then load the state with F9.  Savestate Undo gives 11 levels of undo on each slot  :biggrin:

Green Beret now has the right sounds.  Prior to this fix, the bgm sounded all distorted and weird.

Enabled savestates in Konami's Devastators & The Main Event.

EDIT:
In Konami's Ajax/Typhoon - the sfx would randomly change volumes, this was due to the wrong channel being specified in the volume callback.  Also some tweaks to the K007232 sound driver for savestates & games that use multiple chips.

best regards & happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on May 18, 2014, 08:03:28 pm
dink, great job, i have 2 unsolved bugs on fba for saturn would you help ?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 19, 2014, 12:32:45 am
vbt, I can try - give me some info via pm :)
EDIT: I need to point out that I don't have a computer thats fast enough to run a Saturn emulator.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on May 19, 2014, 02:49:06 pm
What are you thinking? This may be something I invest some time into.
I honestly don't see the point of compressing save states at all. Hard drive space is nearly limitless, the MAME set eats your hard drives with impunity.

Honestly nothing really concrete,.

I was thinking that bzip, whilst it does work fine, seems a bit ugly in places and I think it should be refactored to at least use ziplib. For some reason, although its not emulation related I always thought that the rom loading, including the accessing roms from within zip files should live in burn. Over the years I have argued that it might also be worth creating a extra layer between burn an burner that handles all the platform agnostic stuff as there tends to be a lot of code that gets duplicated from burner that's not win32 specific that gets copy and pasted out into new files. That's probably a fairly complicated refactoring job though.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 23, 2014, 04:44:37 pm
Hello friends and fans of FBAlpha, heres some fix-news for the past couple days...

Added the 3rd button (special/smartbomb) to WOF: Sangokushi II

Did a tag-team fixage with iq_132 on the nmk16 driver, this fixes the hi score area on several vertical games (Task Force Harrier, Super Spacefortress Macross, Spectrum 2000 Vertical, and possibly a few others)

Fixed an occasional bad palette on savestate load with Silver Millenium.

Fixed something (scale the analogue values) with Night Striker, so its possible to reach the far edges of the screen.

And the best one so far - a fix for the stuck-sprite in Toaplan's OutZone!  This bug has eluded me for quite some time.. one which I thought would never get fixed..  so, its a good day! :D
EDIT: Some more good news, this fix actually had a side effect of solving a missing-background on savestate load issue in Vimana, Hellfire, Truxton 2 and Fire Shark/SameSameSame!

A little more than a month ago I had posted a "dink's FBA Failures" list of bugs that I couldn't fix.  I'm happy to say that almost the entire list has been crossed-out :)  http://neo-source.com/index.php?topic=2487.msg16276#msg16276

Thats it for now...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on May 23, 2014, 08:54:21 pm
A little more than a month ago I had posted a "dink's FBA Failures" list of bugs that I couldn't fix.  I'm happy to say that almost the entire list has been crossed-out :)  http://neo-source.com/index.php?topic=2487.msg16276#msg16276

Thats it for now...
best regards,
- dink
Nice one dink!! bet it's a crackin feeling to clear up that list :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 25, 2014, 02:32:38 pm
gamez fan, you're absolutely right - its great to finally clear some of those things up :)   

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 26, 2014, 03:36:18 am
Hello FBA Fans,
Earlier today a good friend let me know that almost all of the deco16 games (Boogie Wings, Diet Go Go, Crude Buster, Darkseal, Funky Jet, Rohga Armor Force, Super Burger Time, Tumble Pop and Vapor Trail) suffered from the same slowdown issue that Caveman Ninja had.  So I got to work on the fixes, and also fixed a few sound crackle issues in Vapor Trail, Crude Buster and Dark Seal.  Vapor Trail was the worst - it crackles just about every time the weapon was shot.
NOTE: Boogie Wings crackles a bit at the beginning of level 1 during the explosion of the structure, at this present time a fix doesn't exist.

Best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 28, 2014, 06:55:10 pm
Hi guys,
I'm working on the Super Kaneko Nova System driver, I got Cyvern to work with music!
Only have a few little issues to iron out, and I'll post back with some progress :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 29, 2014, 06:30:22 pm
Alright!! I got Cyvern on the Super Kaneko Nova System working 100% :)
(@iq_132: with the speed hack working & with full cycles & with perfect music \o/ :D  :biggrin: )

Heres a little detail on how it *painstakingly* came to be..
The first problem, get iq_132's brilliant and almost-finished d_suprnova.cpp to work with the latest FBA, this was just simple stuff like changing the BurnInfo structure's from the old to the new style.

The second problem - Cyvern would hang after the machine tests - this took about 4 hours of referencing the mame code, updating a few things here and there..  after a bit of almost going mad, and coming to a conclusion that this might never boot, I found a little piece of code that was commented - so I uncommented it, just "for the heck of it".  And that fixed it  :redface:  :eek:

The third problem aka the greatly needed "speedhack".  Let me tell ya, without this thing, the music chops up and the game is unplayable at 35-40FPS.  Its just too intense [for my little p4 3ghz pc].
This bit of code, codenamed the "speedhack" caused the code to cut a few corners making the game run at proper 60FPS without any slowdowns or stutters... BUT...
Enabling the "speedhack" was not without consequences - It caused the background music to cut out randomly and caused the SFX to become lagged.  After a day and a half of debugging, I came to the conclusion that the bug wasn't in the FBA driver at all, but in the Hitachi SH-2 CPU emulation - well... the function that burns cycles until the next interrupt, which allowed for the "speedhack" to work, was skipping over timer events that the game needs to keep the music playing. (I didn't know it was skipping these timer events until later on the next day...)

The third problem and a half - aka the next day - after making subtle changes to the SH-2 CPU core, recompiling, linking, loading the newly compiled FBA, loading Cyvern & testing the music - about 50 or 60 times, I realized I might have to look at things a little differently to get this fixed..  To make a long story a little less long, I took a break, thought about it for a while and realized that maybe some timer events were getting skipped when the "speedhack" went to burn cpu cycles until the next interrupt.  I updated the SH-2 core, tested it out, and lo-and-behold - it worked!!  I played a few games to make sure I wasn't dreaming, then came here to write this :)

The next FBA will not only have one fk'n awesome shooter game - Fire Barrel(Air Assault), but 2 of them :D

Tis a great day, my friends,
thats it for now & best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 30, 2014, 03:25:55 am
A couple days ago I didn't think this would ever be possible in FBA, oh how wrong I was..
Cyvern Screenies: *click to zoom*
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on May 30, 2014, 09:01:01 am
Nice work dink Cyvern's a crackin game there is another big shmup in the same driver Sengki Strikers well worth getting it
playable in FBA if possible

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 30, 2014, 09:31:21 am
Nice work dink Cyvern's a crackin game there is another big shmup in the same driver Sengki Strikers well worth getting it
playable in FBA if possible
I could never get that particular game to boot. That's where the driver stalled out. :(
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 30, 2014, 09:59:51 am
I stayed up until like 5am last night (er, today morning) trying to get sengeki striker to work, I'd love to get it to work, but, its not looking good.

On the other hand, at least we got Cyvern out of it :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on May 30, 2014, 04:38:38 pm
Good work Dink :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: KaNyErO on May 30, 2014, 08:40:04 pm
Dlink your fixes are awesome. Do you think you could have a look at neogeo's super bubble pop? It has a problem with controls.

Thanks
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on May 31, 2014, 12:39:36 am
Dlink your fixes are awesome. Do you think you could have a look at neogeo's super bubble pop? It has a problem with controls.

Thanks
Those don't even work in mame. Been meaning to take a crack at again. :-|
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 31, 2014, 05:31:03 am
Thanks for the kind words guys :)
I took a break from coding and played Cyvern.. all night..  What an intense game!

level 4 is really killer, it's sort of a Neo-Tokyo/Bladerunner-esque level, pic below..

EDIT: the Cyvern driver has been cleaned up and checked in to svn :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 31, 2014, 04:31:14 pm
Hi guys, just a little update for today...
I'm working on a quick 'n'dirty TLCS90 cpu port to get sound in the NMK16 game Arcadian/Rapid Hero.
Lets see how it goes.... :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 01, 2014, 02:59:34 pm
Hi guys, just a little update for today...
I'm working on a quick 'n'dirty TLCS90 cpu port to get sound in the NMK16 game Arcadian/Rapid Hero.
Lets see how it goes.... :)
Really looking forward to this! I remember being disappointed when I added this game and there was no sound (the sound wasn't even emulated in MAME yet!)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 02, 2014, 05:22:49 pm
I'm making some progress on the Rapid Hero soundcpu (TLCS90841), it isn't quite working right (yet), but I'm definitely getting somewhere :)  *fingers crossed*

iq_132 - I know you're really busy, but if I can't figure this out, would you take a look at it?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 02, 2014, 08:41:37 pm
I'm making some progress on the Rapid Hero soundcpu (TLCS90841), it isn't quite working right (yet), but I'm definitely getting somewhere :)  *fingers crossed*

iq_132 - I know you're really busy, but if I can't figure this out, would you take a look at it?

Of course! Just send me what you've got when/if you're stuck.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 05, 2014, 05:22:14 am
Just a small update for the past 2 days:

Fixed distortion in the sampled sounds in Enduro Racer.

I was playing Spinal Breakers today, and noticed that the game was missing background music, and that the sounds & music completely cut out at the first boss.. SO, thats fixed now too :)

EDIT: later that day...
Netplay fixes for: Sunset Riders, M.I.A., TMNT, Green Beret
Sound Panning fix for ThunderCross II, sfx was only coming out the left channel - very annoying...

.. to be continued..

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 06, 2014, 01:37:37 am
Here's the Rapid Hero sound cpu port (tlcs90.cpp/.h & d_nmk16.cpp) - it's pretty close.. I think!

Attached you'll find the port/hack I made of the tlcs90 cpu & d_nmk16.cpp, I put it aside a few days ago because I'm stuck..  Everything looks ok, but it of course, doesn't work.   :p

btw, I don't think that the sample that plays when the game first loads isn't coming from the soundcpu.

EDIT: June 8, 2014, new attachment - fixes non-tlcs90 games that use nmk004init.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 06, 2014, 09:49:04 am
I was thinking dink maybe the CPU is fine did you port the sound code from the NMK112.c/h src files in MAME for Rapid Hero??
http://www.mamedev.org/source/src/mame/machine/nmk112.c.html (http://www.mamedev.org/source/src/mame/machine/nmk112.c.html)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 06, 2014, 10:38:09 am
gamez fan, There is a small portion of the nmk112 code ported, but maybe something is missing in this respect.  Thanks for letting me know :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 10, 2014, 03:39:34 am
Not much news this time, but here goes..

I keep trying (and keep failing) to get the Rapidhero sound cpu alive. Maybe iq_132 can give me a hand with this? :)
although on the bright side..

Checked in a fix for Double Dragon 3 for netplay
Fixed clicks in DAC.cpp and fixed a savestate issue w/ msm5205.cpp (though some small clicks still exist in Dragon Breed at the start of the game re: DAC.cpp - have to figure this one out!)
and a couple other minor tweaks/fixes that aren't worth mentioning.

thats it for now, until next time...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 11, 2014, 04:36:46 pm
Just a couple small changes for today:
F8/F11 to select previous/next savestate slot will now show the slot# message even when paused.

Shift+F8 savestate undo feature now has its own spot in the menu - Game -> Save States -> State Slots -> :)

bye for now & happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 12, 2014, 10:14:04 am
Well, its that time again... Time for A new dink's FBA failures list.  Hopefully as time goes by, me (or someone else) can come up with a clever way to cross these bugs off the list.

Thunder Zone - "Mission 1" text is covered up at start of game when blows thru wall. - Only happens with a non-32 bit depth screen, hack implimented (iq_132, 6/14/14) pt.2 fixed the Enhanced blitter to actually run at 32bpp unless forced 16bit or an effect that only supports 16bit is enabled. (dink, 6/15/2014)
Dragon Breed - (Both versions) the pcm samples at the beginning have clicks in them.
The Cliffhanger - graphics on stage 2 are completely screwed up. - Fixed (iq_132, 6/14/14)
Raiden - Music plays too slow (tempo)
Terra Cresta - music plays way too fast
Dragon Buster - music & sfx plays way too fast (entire game) - Improved, but not fixed (iq_132, 6/14/14)
VanDyke (nmk16) the frog sample is missing
Guardian (toaplan/d_tigerheli.cpp) background goes up every screen - Fixed (hopefully) (iq_132, 6/14/14)
Trojan - ym sound is off tempo randomly (possibly because of the msm changing interlace?)
M.I.A. - speed goes too fast after restore state. (sometimes?)
Carrier Air Wing (CPS1) - Locks up on the first level after the shadows appear. (m68k core must be compiled with an early gcc version)
Rapid Hero - Can't get the sound cpu to work right..

thats it for now,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on June 13, 2014, 05:24:38 pm
Carrier Air Wing works fine for me, always has - CPS-1 should work well as the driver is very mature.

Most likely a 68K thing. Either you're using M68K with a newer GCC compile or using the ASM core. If it's the ASM core it's another reason to rip it out! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on June 13, 2014, 05:27:34 pm
It's not the ASM core - played through the first level fine.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 12:29:12 am
Treble Winner, thanks for checking - I ran into that problem and put it on my bugslist about a month ago, when I was still using the messed up Musashi core-compile.  I guess I should go through and re-check everything in my list - this is starting to get embarrassing  :redface:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 14, 2014, 12:45:09 am
Thunder Zone - "Mission 1" text is covered up at start of game when blows thru wall.

Can't reproduce this one. :\
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 01:00:32 am
iq_132, I tried both Thunder Zone and Desert Assault (us), both look like (see below).  I made sure I'm using the proper (Treble Winner-compiled) core, also tried the ASM core.  Can you think of anything that might cause this?  I checked via svn, all my code is up to date, is your dataeast directory sync'd?


Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 14, 2014, 01:19:48 am
Check it out with the basic blitter. ^^

*edit*
My guess is a color depth problem. That layer is alpha blended to the background and alpha blending is only enabled with 32-bit color depths.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 01:26:25 am
Thats it!  I was getting worried, I thought I might have f*'d something up :) I backed out all my dataeast changes(locally), and it was still borked.  what a relief. :)
Maybe something can be fixed to work with the other enhanced blitter? Any ideas?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 01:49:43 am
This is probably a stupid question, but how does one set the window'd mode to 32bit using the Enhanced blitter?  My windows desktop settings are 32bit.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 14, 2014, 01:55:22 am
This is probably a stupid question, but how does one set the window'd mode to 32bit using the Enhanced blitter?  My windows desktop settings are 32bit.

I'm not sure you can. ^^
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 14, 2014, 02:07:30 am
Btw, mostly fixed the problem. for depths < 32 bit alpha is handled as "flicker." It's a little cheesy, but it works.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 02:20:00 am
 ** Starting DirectDraw7 blitter.
  * Initialising video: Total video memory minus display surface: 212.84MB.
  * Initialisation complete: 210.00MB video memory free.
    Displaying and rendering in 32-bit mode, emulation running in 32-bit mode.
    Transferring the image to video memory before blitting.
    Running in windowed mode. (this works fine)

 ** Enumerating available DirectDraw drivers:
 ** Starting Direct3D7 blitter.
  * Initialising video: Total video memory minus display surface: 212.84MB.
  * Initialisation complete: 180.10MB video memory free.
    Displaying and rendering in 32-bit mode, emulation running in 16-bit mode. <- maybe this can be forced to 32bit? ya think?
    Running in windowed mode, using Blt() to transfer the final image. (this doesn't)
I tried under blitter options -> advanced -> uncheck force 16bit, but, its still 16bit. hehe. drat!

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 03:22:37 am
When using just the Enhanced (d3d7) blitter, it starts in 32bit for both rendering and emulation:
 ** Starting Direct3D7 blitter.
  * Initialising video: Total video memory minus display surface: 212.84MB.
  * Initialisation complete: 179.60MB video memory free.
    Displaying and rendering in 32-bit mode, emulation running in 32-bit mode.
    Running in windowed mode, using Blt() to transfer the final image.

but, when a game is selected, it goes to 16bit mode for emulation:
 ** Starting Direct3D7 blitter.
  * Initialising video: Total video memory minus display surface: 212.84MB.
  * Initialisation complete: 180.10MB video memory free.
    Displaying and rendering in 32-bit mode, emulation running in 16-bit mode.
    Running in windowed mode, using Blt() to transfer the final image.

Out of curiosity - Is there a reason why that happens like that?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 14, 2014, 02:22:22 pm
... see previous message ..

Out of curiosity - Is there a reason why that happens like that?

The [long] answer comes soon..
If hardware gamma is selected, it must render at 16bit, so it forces the emulation at 16bit.  Due to a mixup in the logic, it doesn't check to see if the gamma correction is actually enabled.  If hardware gamma is selected, but not enabled, it will still force emulation to be 16bit.  A small change to the logic in src/intf/video/win32/vid_d3d.cpp (see svn) solves the problem :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 17, 2014, 02:29:00 pm
I've been looking into a strange issue with the neogeo driver, every once in a while a savestate will crash when loaded.  It usually happens between 1 and 10 states saved - or not at all (especially when running fba under gdb.... or when I want it to..) - making it a really tough one to track down.

EDIT:
Later that day... Let's get things going..
Installed Dr. MingW (just-in-time debugger) on my system and into FBA by replacing the current exception handler with Dr.Mingw's, recompiled the neogeo core with better debug flags and no optimization. [don't worry - dr.mingw will only stay in my local codebase!]

Did some playing & crashing, fixed Prehistoric Isle 2's crashing savestates (which happens right around/after/when you go underground)

Now its time to take a break, the daytime heat is horrible!  Later after it cools off a bit, I'll try to fix the other intermittent savestate crash.  I think its separate from the one I just fixed, because the crash address was in a totally different place.  Its going to be a tough one, though, since I can't make it happen on demand.  It can be really illusive, too, sometimes it'll happen every other neogeo game one day, and the next day, not at all.  :p

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 18, 2014, 10:51:02 am
A little info about this crash (pointer is trying to access an unallocated part of memory):
It would occur after loading a savestate which was saved (between 1 and 20 times - more or less) in neo_run.cpp, in neogeoWriteWordVideo() at
Code: [Select]
case 0x02: {
-->here-->        *((UINT16*)(NeoGraphicsRAMBank + NeoGraphicsRAMPointer)) = wordValue;
NeoGraphicsRAMPointer += nNeoGraphicsModulo;
Upon deeper investigation, the NeoGraphicsRAMBank was getting clobbered by SCAN_OFF() in DrvScan():
SCAN_OFF(NeoGraphicsRAMBank, NeoGraphicsRAM, nAction); <- here.

So, I thought, Instead of using this SCAN_OFF(), lets just recalculate the NeoGraphicsRAMBank pointer upon savestate load,
the same way it is calculated later on in the code.  That should be foolproof, right? :)

*success!* I wrote a script that did over 2000 savestate & loadstates while Prehistoric Isle 2 was running, and not a single crash happened.  Now, the big question is, is this the same SS bug that I noticed in other MVS games?  I hope so, but I have a strange feeling that I might be revisiting this at a later time.

Big thanks to Jose Fonseca for his wonderfull Dr.Mingw just-in-time debugger.  Before this, I would always get a very strange crash address from this bug, which was usually situated somewhere around LoadRoms() - as gdb told me. 

best regards & happy gaming, my friends :)
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 18, 2014, 07:14:44 pm
Excellent work! That crash has been around for aaaages!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 19, 2014, 01:43:47 am
iq_132, thanks  :biggrin:
I am stupidly happy to have fixed this one before the big release :)

p.s. do you know of any others?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 19, 2014, 04:34:21 pm
Re: Fix SCAN_OFF() too :) [Re: Re: fix the crashing neogeo savestate thinggy]

Earlier today whilst reviewing yesterdays code I realized SCAN_OFF() was used in other parts of the code and thought that it would be a good idea to investigate how/why SCAN_OFF() is messing up pointers.  If SCAN_OFF() is bungling pointers that don't cause a crash - who knows what kind of corruption is going on behind the scenes.  Scary stuff!

I lifted SCAN_OFF() from FBA, put it in a little test program and added some printf's to see whats going on....

start: rambank=1020,ram=1000.
SCAN_OFF(rambank, ram, 0);
end: rambank=980,ram=1000.

rambank after SCAN_OFF() executes is supposed to be 1020, but here its 980.  This is really bad, especially since we're dealing with pointers  :eek:

To get the offset, SCAN_OFF was subtracting the rambank variable from ram. 1000 - 1020 = -20
So, it was saving -20 as the offset, and to recalculate the rambank(on savestate load), it was adding this saved value to the ram variable, which is where the 980 came from (1000 + -20=980).  A simple change so that it now subtracts the ram variable (1000) from rambank (1020), which gives 20 [which is stored in the savestate].  Now, when it adds the stored value of 20 to the ram variable, we get the proper value of 1020.

*I'm confused - What does all that mean?* Better reliability & stability when using savestates.  and, of course, none of that Guru Meditation sh*t  :biggrin:

Thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on June 20, 2014, 05:33:15 am
Nice work dink. Very nice. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 20, 2014, 04:53:22 pm
thanks :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 20, 2014, 05:05:04 pm
Heres my latest erm, effort, at tlcs90841 + rapid hero soundcpuenablement.  I really need help from someone with experience with porting cpu cores for this one.  Double check the basic stuff, like read / write byte from memory address, and everything else - as I must be totally missing the point here.  Some info: it inits the cpu in RapheroLoadCallback(), raphero_sound_read/write handle all the memory mapped stuff.  It does a few things at reset, but then the cpu just stops.   :redface:
To get started: toss tlcs* into src/cpu, d_nmk16.cpp into drv/pst90s, add edit makefile.burn_rules, search for sh2.o, add tlcs90.o after it & save then make.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 20, 2014, 05:18:56 pm
Heres my latest erm, effort, at tlcs90841 + rapid hero soundcpuenablement.  I really need help from someone with experience with porting cpu cores for this one.  Double check the basic stuff, like read / write byte from memory address, and everything else - as I must be totally missing the point here.  Some info: it inits the cpu in RapheroLoadCallback(), raphero_sound_read/write handle all the memory mapped stuff.  It does a few things at reset, but then the cpu just stops.   :redface:
To get started: toss tlcs* into src/cpu, d_nmk16.cpp into drv/pst90s, add edit makefile.burn_rules, search for sh2.o, add tlcs90.o after it & save then make.
I started my own port of that cpu core as well, I'll probably finish it up early next week. (hopefully). I'll probably end up merging what you've got with mine.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 20, 2014, 05:54:29 pm
iq_132, Awesome :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on June 20, 2014, 08:09:42 pm
Hello dink,

I'm checking in after quite some time and was thrilled to see the work you've done!!

I've reported a problem with The Simpsons a couple of times. There used to be some bad sound clipping which I think is fixed. But there is still a problem with left and right channels being swapped. A little bit into the game there's a TV and a character skates across, this is where it's easy to notice, but other effects are swapped too.

Thank you for all the awesome work; I have loved reading this thread!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 21, 2014, 02:13:48 am
Huggybaby, thanks - I really appreciate the feedback :)  Also, thanks for the bug report, consider it fixed.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 21, 2014, 11:29:39 am
dink it's come to my attention that as yet you've not been asked for a certain request that has plagued other FBA devs for years
so let me put that right by asking could you please port the Midway drivers across from MAME so we can play the Mortal Kombat
games in FBA


















Only joking  :wink: :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 21, 2014, 02:11:44 pm
dink it's come to my attention that as yet you've not been asked for a certain request that has plagued other FBA devs for years
so let me put that right by asking could you please port the Midway drivers across from MAME so we can play the Mortal Kombat
games in FBA


















Only joking  :wink: :biggrin:
You like dead kittens? 'cause that's how you get dead kittens. Lol
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on June 21, 2014, 02:22:39 pm
LOL  :p
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 21, 2014, 04:07:04 pm
You like dead kittens? 'cause that's how you get dead kittens. Lol

Quote
+ T +: Every time you mention Midway games in Final Burn, iq_132 kills a kitten!

Oh i forgot about that and well since it was only joke you leave them kittens alone now :lol:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 21, 2014, 05:05:43 pm
hehe!

Well, all funny things aside, I found yet another problem with the ym2151 and savestates.  Fix is incoming..  :eek: :p
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 22, 2014, 04:58:13 am
Thunder Cross 2 (thndrx2 / konami/d_tmnt.cpp) has some really killer stereo sound+music, but it has to be enabled via the nvram settings in the game.  By default, the game is set to mono, but sounds only come out of one speaker, and this is horrible, because most people won't think of going into the service mode and setting it to stereo (its not a dip setting).  I would like to somehow set it to stereo mode by default, but I'm not too familiar with the inner workings of the eeprom serial interface.  All I know is that the 8th byte into thndrx2.nv should be changed from 0x2e to 0x0e to enable stereo mode.  Do you guys have any ideas how this idea/feature can be done? :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 22, 2014, 10:54:43 am
re: the theory of some sort of internal timer overflow (or something of that sort)

There are a few games, notably varth, thunder cross 2, truxton 2, and several others which savestates work fine, and even closing and reloading fb, then loading the rom and savestate, works perfect.  Now that that has been established...

Turning off my computer, then turning it on several hours later, loading fb and the game & savestate, and now the game crawls at like 1/4 the speed.  Press f3 to reset it and start a new game, its still going slow as hell.

The investigation begins...  though I'd like to ask, does anyone have any ideas off the top of their heads why this may be happening?

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on June 22, 2014, 12:02:50 pm
I wonder if its the frameskipping code getting confused? Are any of the variables used by it (at the burner side) defined in burn and missing from the save states? Maybe also if they are not missing they need to be reset when a state is loaded?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 22, 2014, 01:04:09 pm
Does the same thing happen when changing the windows system time?
Also, create the eprom settings you want for those games and I'll set up the default in the driver. (please post the actual file)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 22, 2014, 02:39:26 pm
I tried setting the time back, no dice :(  I'm about to do some investigating though, take a new snap, and compare the data, try to figure out where things are going wrong. EDIT: I believe its due to a compiler bug.  I had recompiled konami/d_tmnt.cpp with my script which had -Ofast (fast optimization), and this screwed up savestates for games even outside of that driver.  My savestates work again at the proper speed after changing it back to -O1 / recompiling / linking.  Very strange - though, I'm also very relieved :biggrin:

Here's the eeprom data for thunder cross 2 (thndrx2), thndrx2.newdefault is the one that should be the default data.  thanks :D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 22, 2014, 03:45:58 pm
Re: savestate investigation revisited, aka I don't think its a compiler bug after all.

When making a savestate with SekScan(), it dumps the entire structure m68ki_cpu_core to the savestate.  At the bottom of the structure are a bunch of pointers:
Code: [Select]
uint8* cyc_instruction;
uint8* cyc_exception;

/* Callbacks to host */
int  (*int_ack_callback)(int int_line);           /* Interrupt Acknowledge */
void (*bkpt_ack_callback)(unsigned int data);     /* Breakpoint Acknowledge */
void (*reset_instr_callback)(void);               /* Called when a RESET instruction is encountered */
void (*cmpild_instr_callback)(unsigned int, int); /* Called when a CMPI.L #v, Dn instruction is encountered */
void (*rte_instr_callback)(void);                 /* Called when a RTE instruction is encountered */
void (*pc_changed_callback)(unsigned int new_pc); /* Called when the PC changes by a large amount */
void (*set_fc_callback)(unsigned int new_fc);     /* Called when the CPU function code changes */
void (*instr_hook_callback)(void);                /* Called every instruction cycle prior to execution */

so, what happens if you load the savestate on a different pc, or at a different time of the day when the operating system decides to load the code into a different segment?  problems. :)  I'm going to experiment with ignoring these pointers when loading a state, since they should already be set up in drvinit().etc. and see what happens...

EDIT: a little while later...

Success!!
I modified the 68k interface to preserve the pointers, save or load the cpu context data, then put the pointers back.
To make sure I wasn't seeing things, I disabled the new code in the 68k interface and tried loading a savestate between a fast-optimized FBA exe and a regular-optimized exe, and.. it exhibited the same symptoms as talked about a message or 2 back.  (so thats good! it proves that the new code does indeed work.)
This new fix should help with the portablilty of savestates between 64 and 32bit systems also.

So what did we learn today?  Savestate-scanning structures with pointers in them is bad, mm'kay!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: kev on June 22, 2014, 06:53:08 pm
I suppose a terrible way of fixing this would of been changing the save state loading to load the roms, start the driver for a frame and then load the save state. Your fix is better :)

Edit : actually, that would still not work obviously. Yours is the only fix. I shouldn't drink on Sunday nights :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 23, 2014, 02:04:18 am
kev, thanks :)  well, at the time of loading or saving a state, the rom is already loaded and running.  But I kinda see what you mean.. if a game isn't running and you go to load a state, it should then load the game and then the state.  I like that idea :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 24, 2014, 09:14:00 am
Alright, I finally got the YM2151 savestate issues worked out, it all boiled down to the parameters being swapped for set_connect() in the postload-refresh function.  ugh  :eek:  :redface:
To my defence, the parameters were swapped way before I even touched the code!  Honest!  :biggrin:

...It will be perfect when I get done with it, even if it takes 5 tries.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on June 24, 2014, 09:29:34 am
Most likely that would be how it came out of MAME way back then...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 24, 2014, 10:35:47 am
Most likely that would be how it came out of MAME way back then...
Holy bug from the beginning of time!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 24, 2014, 02:53:39 pm
hehe :) I figured so much..
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 25, 2014, 03:12:10 pm
Hi guys,
Once in a while, I'll pause a game, and then turn off my pc (actually, Hibernate!), later when I wake the thing up, I'm greeted with a blank FBA window.  So thats fixed now :)

its a slow day..

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 28, 2014, 02:27:32 pm
Out of curiosity(or desperation), would anyone be interested in porting the ymf278b.c driver from the latest MAME to FBA?  :S
The FBA-current version of the driver is missing reverb/dampening, sometimes notes stick on forever (try the smartbomb in Tengai, for example).  Fortunately, all this has been added and fixed in the latest version.  The driver itself is relatively small :)


Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 29, 2014, 11:25:41 am
I'm trying to port the [latest mame]/src/emu/sound/ymf278b.c to FBA, but the part that is confusing me is all of the timers needed by the driver.  The driver is really simple and straightforward other than the timers though.

http://mamedev.org/source/src/emu/sound/ymf278b.c.html

The timers are set up in ymf278b_init()
Manipulated in ymf278b_A_w() (the lines with chip->timer_a/b & the attotime stuff)
.. and around line 609-612.

I need someone to explain how these timers work, and how they translate to FBA. :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 30, 2014, 01:25:14 am
I got the new ymf278b chip driver ported to FBA! :biggrin:

What I did was check the mame svn and found where they changed the timer code over to the new timer code, which I'm not familiar with, and then I figured out from there how to integrate the old timer code from FBA into the new driver.
And it works, too, imagine that :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 30, 2014, 08:22:50 am
I got the new ymf278b chip driver ported to FBA! :biggrin:

What I did was check the mame svn and found where they changed the timer code over to the new timer code, which I'm not familiar with, and then I figured out from there how to integrate the old timer code from FBA into the new driver.
And it works, too, imagine that :)

Nice work! Looking forward to seeing it!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 30, 2014, 10:04:23 am
I got the new ymf278b chip driver ported to FBA! :biggrin:
Well done!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 30, 2014, 03:51:30 pm
Thanks guys! :D

I spent a few hours today testing the new driver, and since everything checked out OK, I checked it in to svn.  I need to do a little cleaning up here and there, but for the most part, its complete.

One of my favorite games - Tengai (aka Sengoku Blade - Sengoku ace episode II aka Samurai Aces 2) is now much more enjoyable.  No more stuck sounds (try it - press the smartbomb button), no more missing music halfway through the game :D
Wait, thats not all, this new driver has reverb and dampening also.  In Tengai, try picking up a coin[during the game] with headphones on, its ear piercingly painfull, now try with the new version, ahh - perfection.  :wink:  For only 19.95, you get not one, but two.. Just pay separate shipping and handling.....  Just kidding, wait for the next version of FBA  :biggrin:

I thought that this driver port would fix the problems with Sol Divide, but I was wrong - it seems like something in Sol Divide's driver is skipping some irq's or interleaved wrong which is causing commands to the ymf278b to get skipped.  To see what I mean, run Sol Divide in MAME, insert a coin, watch the intro w/music & start playing, then do the same in FBA, notice something missing?  I will definitely be looking into this problem (in the sol divide driver/d_psikyosh) soon though, guys!

best regards and happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on June 30, 2014, 05:43:16 pm
The SH2 has timers as well.. I seem to remember at least one of the Psikyo games needing them to work properly and idle skipping interfering with that, might have been Sol Divide.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 01, 2014, 02:48:11 am
Haze, thanks for the info, I'll take into consideration on my debugging session :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 01, 2014, 02:50:01 am
Big thanks to iq_132 for leading me in the right direction to fix a bug in the ymf278b driver that was driving me insane earlier tonight :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 02, 2014, 11:18:38 am
Re: Playtesting...

Not much to write about today, but things are looking good :)

I played Strikers 1, 2, 3 & Tengai from beginning to end (again) as they are the games in FBA that make the most use of the ymf278b chip, and things are looking pretty good.  Looks like I forgot about Dragon Blaze.. .  Later today perhaps.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 09, 2014, 10:57:16 am
There hasn't been much news from me lately, but thats a good thing.  I used to find bugs in games every couple games I tried, and lately I've been playing tons of games, and havn't come across any showstopping bugs.  On top of that, iq_132 has been doing an awesome job adding new drivers, things are good for FBA :)

Its probably not worth mentioning, but I found yet another issue with the way hibernation is handled, and I made a new fix for it - this time I'm going to test it for a few [more] days before checking it in - but I think this will be the last fix-iteration for hibernation related issues (loss of video/etc) - without affecting anything else, like stepping frames when menus are accessed - oops  :redface:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 11, 2014, 05:51:48 pm
Some news for today:

Added a [Rescan Romset] button to the Rom Info window, so new rom/roms can be added to the database without doing a full rescan.

I noticed that a bunch (nearly all..) of the Toaplan games had missing dipswitch heading descriptions (group), those have been filled in :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 12, 2014, 03:48:37 pm
Hi guys,
Made some small enhancements to the Rescan Romset button - if the romset has issues, it will popup a little window with the missing/bad roms/etc - its the same one that pops up when you try to play a game with something wrong.  If the romset is OK, it will add a little message to the rom info window saying that the romset is OK. .. and of course add or remove the game from the database.

Thats it for today, best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 13, 2014, 12:05:01 am
I went to load my savestate for Progear from the other day, and was greeted with a blank screen - but all the sfx and music of a regular game, luckily it was a simple fix - a common s.state/palette issue.. no problem! :)  Now, back to my game of Progear...  :biggrin:

In the meantime, check out this awesome stage 4 boss...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 18, 2014, 01:05:30 am
Tokio(b) - Scramble Formation is now a lot more playable, 2 things were fixed with this game: the background music - yes, there actually is background music in this game, it just wasn't set right :)  Also just tonight I figured out & fixed the gaps between tiles in the playfield that happened every screen. (it was happening because the vblank irq was fireing too late in the frame)

thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 20, 2014, 11:00:12 am
I got Sengeki Striker on Supr[Kaneko]nova hardware to boot :)
There are still 3 issues that are holding this back from becoming a playable game, but, at least now there is hope...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 20, 2014, 11:06:16 am
I got Sengeki Striker on Supr[Kaneko]nova hardware to boot :)
There are still 3 issues that are holding this back from becoming a playable game, but, at least now there is hope...

best regards,
- dink
Nice one!!! What are the 3 issues if you dont mind me asking
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 20, 2014, 04:23:33 pm
Nice one!!! What are the 3 issues if you dont mind me asking

:) !

Well, a similar issue to Sol Divide, where the music doesn't trigger properly.  Its a problem with the sh2 cpu core, I'm working hard to try to fix this one..  We're going by the cycle count to trigger the timer, and that's not good enough I guess :/  I don't know for sure how its going to be fixed, I think we might need a timer system similar to mame's., a total of 3 timers is needed.
The other is an issue with the coin input, it says "Coin Error" and resets when I try to insert a coin, but if I set the game to free play mode, it plays fine.
The third problem, the game isn't compatible with the FAST_OP_FETCH in the sh2 cpu, but I optimized the regular op fetching code to be almost (85%) as fast.

I'll post something as soon as I make progress!
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 20, 2014, 09:24:28 pm
:) !

Well, a similar issue to Sol Divide, where the music doesn't trigger properly.  Its a problem with the sh2 cpu core, I'm working hard to try to fix this one..  We're going by the cycle count to trigger the timer, and that's not good enough I guess :/  I don't know for sure how its going to be fixed, I think we might need a timer system similar to mame's., a total of 3 timers is needed.
The other is an issue with the coin input, it says "Coin Error" and resets when I try to insert a coin, but if I set the game to free play mode, it plays fine.
The third problem, the game isn't compatible with the FAST_OP_FETCH in the sh2 cpu, but I optimized the regular op fetching code to be almost (85%) as fast.

I'll post something as soon as I make progress!
best regards,
- dink

Please add your update to the svn, I think I can at least fix the coin issue.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 21, 2014, 02:26:14 am
Hey guys,
I got the music to start, and the coin input to work, it was an irq triggering issue, although its not perfect, halfway through the first level, the music cuts out when its supposed to loop.  I think the irq's need to be tweaked a little bit, because when I get things working (in DrvFrame) for Sengeki, it breaks Cyvern(which runs perfect, otherwise).  Instead of creating a separate DrvFrame, I'm going to try to work things out, because something definitely is not right.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 03:27:07 am
Great news :) I've been working all day on the Kaneko Suprnova driver stuff & SH-2 CPU core. (actually, all the last 3 days)

Sengeki Striker is now 100% (although I only played until level 2's endboss, will do a full playthrough just to be sure soon)
Puzzloop, Teljan, Senknow works fine also!
Gals panic 2 and 3 sorta works, but it don't draw the lines. I suspect the graphics routines in the Suprnova driver need to be updated a bit.
That's it for now, I'm exhausted after this 3-day marathon debugging/code session  :p
EDIT: p.s. got music working in Sol Divide  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on July 22, 2014, 05:30:19 am
the GP games make extensive use of the RAM based characters.

be sure to play Saru-Kani-Hamu-Zou instead of Vs. Block Breaker, if only for the bizzare intro song.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 08:34:36 am
Good call, it sorta reminds me of the Time Bokan a little bit :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 22, 2014, 09:28:38 am
Great news :) I've been working all day on the Kaneko Suprnova driver stuff & SH-2 CPU core. (actually, all the last 3 days)

Sengeki Striker is now 100% (although I only played until level 2's endboss, will do a full playthrough just to be sure soon)
Puzzloop, Teljan, Senknow works fine also!
Gals panic 2 and 3 sorta works, but it don't draw the lines. I suspect the graphics routines in the Suprnova driver need to be updated a bit.
That's it for now, I'm exhausted after this 3-day marathon debugging/code session  :p
EDIT: p.s. got music working in Sol Divide  :biggrin:

best regards,
- dink

Excellent job!!! i bet your glad that after 3 days of hard graft you've got something to show for it :wink:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 22, 2014, 10:33:23 am
You desperately need to post some screenshots dink! Excellent work. :)

That also reminds me that I need to set up inputs for a few games.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 02:26:30 pm
massive :D  You guys rock, I mean it :) 

iq_132, that would be great, v.Blockbrk/SaruKani seems like it would be a fun game with some sort of emulation for the paddle input.

Cyvern is the reason I bothered with Supernova in the first place - (its one of my favorite shooters with awesome dark/symphonicish music)

With Sengeki Striker, I had high expectations for this game, I told myself that I wouldn't play it until I got it working in FBA, and when I finally got it working I was kinda disapointed.  The music is kinda irritating.  Don't get me wrong, it is a good game, I just thought it would be better than it is.  The reason Sengeki Striker took so long to get working was due to a bug in the SH-2 cpu implementation.  And the other games (other than Cyvern) started working properly after I fixed up the irq's to get the music in Sengeki Striker working right. 

Puzzloop, it plays like Bust-A-Move aka Puzzle Bobble, Guts'n is kinda like Dr.Mario, VS. Block Breaker/SaruKani, another breakout-type game, I'm not too sure about SenKnow, it seems like a cross between Tetris and Pipe Dream (a C64 game).  Theres a couple of Mahjong games, too.....

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 02:28:10 pm
more :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 02:28:53 pm
more...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Romhack on July 22, 2014, 02:38:45 pm
Awesome work dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on July 22, 2014, 04:09:28 pm
Dink, your own ports ??  impressive !!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 22, 2014, 04:35:44 pm
vbt, iq_132 did the driver about 5 years ago, but it was held back due to some show-stopping cpu bugs.

best regards,
-dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on July 22, 2014, 05:25:44 pm
iq_132 and dink have made an impressive and awesome job on supernova driver  :smilie: !!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 23, 2014, 12:52:53 am
awesome, we now have 100% perfect music in Sol Divide!!  I'm excited about this, as I didn't think I'd ever come up with a solution.  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 27, 2014, 07:52:46 am
Hi all,

I got error message ''Couldn't initialize DirectDraw7/ Direct3D7 Enhanced video output module'' with FBA 0.2.97.30.

(http://uppix.com/f-x53d4d85c001719c4.jpg) (http://uppix.com/)

XP build on XP
XP build or NT6 build (no 64) on Win7.

no problem in games but just to launch the interface (or to select a filter other than 3D Hardware and AdvanceMame).

A possible connection with the previous pages?

(system 100% up to date, dx/vc++ etc...)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on July 27, 2014, 08:24:28 am
Hi all,

I got error message ''Couldn't initialize DirectDraw7/ Direct3D7 Enhanced video output module'' with FBA 0.2.97.30.

(http://uppix.com/f-x53d4d85c001719c4.jpg) (http://uppix.com/)

XP build on XP
XP build or NT6 build (no 64) on Win7.

no problem in games but just to launch the interface (or to select a filter other than 3D Hardware and AdvanceMame).

A possible connection with the previous pages?

(system 100% up to date, dx/vc++ etc...)

Have you tried deleting the ini? Given you are on XP, it would be fbaxp.ini.

dink made some changes in this area and you may have slightly strange ini values conflicting with the changes.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 27, 2014, 08:32:59 am
I have retried with a new install, same  :S
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 27, 2014, 09:31:44 am
7zxkv:
Video -> Blitter Options -> Advanced Settings -> Force 16bit mode
Alternately, try to put your desktop in 32bpp mode.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 27, 2014, 09:58:29 am
already tested...it changes nothing^^

I honestly think this is a bug, there was no problem with the previous version.

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 27, 2014, 02:56:11 pm
7zxkv,
Please attach a zipped fba*.ini that causes this problem. (I tried, but can't reproduce the problem)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2014, 02:25:06 am
Hey guys, just a quick update on whats new today..
Added savestate support for Megadrive/Genesis games :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 28, 2014, 05:21:37 am
New test: windows 8.1 update 1 64bits (100% up to date, again), new install: 0 roms.

build XP or normal (not the 64-bit version because the mode "enhanced" is grayed)

Option: select blitter enhanced, soft algo: xbr or others (except "advanceMame or 3D Hardware" who do not have problems).

(http://uppix.com/f-win853d622a400171bce.jpg)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2014, 09:25:57 am
7zxkv, thanks for the ini, I figured out where the problem is, now I just have to figure out whats causing it.  Will reply when I figure it out,

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2014, 02:21:33 pm
7zxkv, check your PM, I sent a debug test version that hopefully fixes the problem.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 30, 2014, 10:44:20 am
it's ok, 0.2.97.30."1" needed ^_^

Thanks Dink ;)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 30, 2014, 03:50:17 pm
it's ok, 0.2.97.30."1" needed ^_^

Thanks Dink ;)

Here: http://www.barryharris.me.uk/fba.php   :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: 7zxkv on July 30, 2014, 04:42:33 pm
 :biggrin: yeahh, thanks !
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 30, 2014, 06:08:34 pm
Tonight I fixed the missing piece to the Megadrive savestates puzzle.  The missing sound channel (dac), usually the drums or rhythm part would go missing after a savestate load.  It turns out that the postload function in the 2612 was indexing the wrong register for the dac enable status.  I also sent the code change to Haze via PM, since it applies to MAME/MESS as well as FBA :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 30, 2014, 06:37:57 pm
Tonight I fixed the missing piece to the Megadrive savestates puzzle.  The missing sound channel (dac), usually the drums or rhythm part would go missing after a savestate load.  It turns out that the postload function in the 2612 was indexing the wrong register for the dac enable status.  I also sent the code change to Haze via PM, since it applies to MAME/MESS as well as FBA :)

best regards,
- dink
Nice work! Things like that definitely help justify our using MAME as a base. At least that's how I rationalize it.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Robert on July 31, 2014, 08:00:23 am
And Dink scores a credit in the SVN.

http://mame.dorando.at/svn/?rev=31478

Well done in finding that bug.  :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on July 31, 2014, 10:24:51 am
Tonight I fixed the missing piece to the Megadrive savestates puzzle.  The missing sound channel (dac), usually the drums or rhythm part would go missing after a savestate load.  It turns out that the postload function in the 2612 was indexing the wrong register for the dac enable status.  I also sent the code change to Haze via PM, since it applies to MAME/MESS as well as FBA :)

best regards,
- dink

Nice work dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 01, 2014, 06:19:07 pm
Thanks guys! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 01, 2014, 06:21:33 pm
dink's FBA devlog update for.. today!

After tons of debugging & porting new sprite code and other fun things, I'm happy to say that Streets of Rage 1 & 2 now both work perfectly with FBA!   :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 01, 2014, 06:23:05 pm
dink's FBA devlog update for.. today!

After tons of debugging & porting new sprite code and other fun things, I'm happy to say that Streets of Rage 1 & 2 now both work perfectly with FBA!   :biggrin:

best regards,
- dink

Not sure any of them were necessary? Check the SVN.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 01, 2014, 07:40:47 pm
Treble, right, well, it looks like we came to the same conclusion re: timings. Although my way is slightly different, they both do the same in the end.

Great minds think alike :)

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 02, 2014, 02:45:45 am
Not sure any of them were necessary? Check the SVN.

Oh, I meant to say re: porting the new sprite routines -  I was trying to get rid of that line of corruption in XDR (see the MD dev thread for a pic etc).  If you have any ideas re: this issue, please let me know :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 02, 2014, 03:15:26 am
Oh, I meant to say re: porting the new sprite routines -  I was trying to get rid of that line of corruption in XDR (see the MD dev thread for a pic etc).  If you have any ideas re: this issue, please let me know :)

best regards,
- dink
That could very well be a timing/irq issue. Consoles are extremely sensitive.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on August 02, 2014, 11:38:31 am
dink's FBA devlog update for.. today!

After tons of debugging & porting new sprite code and other fun things, I'm happy to say that Streets of Rage 1 & 2 now both work perfectly with FBA!   :biggrin:

best regards,
- dink

The improvements in Streets of Rage 1 are very obvious! the game is now much more fluid.
Great job, Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 02, 2014, 03:21:43 pm
The improvements in Streets of Rage 1 are very obvious! the game is now much more fluid.
Great job, Dink

Thanks for helping me test things :D

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 03, 2014, 04:48:03 pm
Hi guys,
After 2 days of debugging (maybe I'm a little slow..) I found the cause and fixed a problem with some PCEngine games having static (or fast clicking) ontop of the music.  woohoo! :)  Splatterhouse being the one I used as a testcase, but there are several others that exhibit this behavior as well.

Another thing I am trying to find a good solution to is the conflicting romset names between systems.
For example, there's an arcade raiden.zip, Megadrive raiden.zip and PCEngine raiden.zip. The MD & PCE drivers will try to load the arcade raiden.zip, and that won't work.
On my personal version of FBA, I changed the Megadrive raiden.zip to raidenmd.zip and PCEngine version to raidenpce.zip, and it works good..

Do you guys think this is a good idea?  If yea, I could write a little proggy to find all the duplicates between the systems, and name them accordingly.. because there are quite a few.

Thats it for today...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 03, 2014, 04:50:42 pm
Hi guys,
After 2 days of debugging (maybe I'm a little slow..) I found the cause and fixed a problem with some PCEngine games having static (or fast clicking) ontop of the music.  woohoo! :)  Splatterhouse being the one I used as a testcase, but there are several others that exhibit this behavior as well.

Another thing I am trying to find a good solution to is the conflicting romset names between systems.
For example, there's an arcade raiden.zip, Megadrive raiden.zip and PCEngine raiden.zip. The MD & PCE drivers will try to load the arcade raiden.zip, and that won't work.
On my personal version of FBA, I changed the Megadrive raiden.zip to raidenmd.zip and PCEngine version to raidenpce.zip, and it works good..

Do you guys think this is a good idea?  If yea, I could write a little proggy to find all the duplicates between the systems, and name them accordingly.. because there are quite a few.

Thats it for today...
best regards,
- dink

dink,

Check the help file section on rom paths for full details the details about the last ten paths and their special usage.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 03, 2014, 05:30:55 pm
Thanks, TrebleWinner! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 03, 2014, 05:50:20 pm
Your fix actually improves a lot of games. They sound MUCH better. I was playing 1943 before the fix and it sounded like shit.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 03, 2014, 06:23:01 pm
Your fix actually improves a lot of games. They sound MUCH better. I was playing 1943 before the fix and it sounded like shit.

Nice work dink.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 03, 2014, 06:35:46 pm
:D
We are a great team!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on August 04, 2014, 09:21:24 am

Another thing I am trying to find a good solution to is the conflicting romset names between systems.
For example, there's an arcade raiden.zip, Megadrive raiden.zip and PCEngine raiden.zip. The MD & PCE drivers will try to load the arcade raiden.zip, and that won't work.
On my personal version of FBA, I changed the Megadrive raiden.zip to raidenmd.zip and PCEngine version to raidenpce.zip, and it works good..

To avoid conflicts, I created two ROMs directories.
Shadow Dancer (arcade and mega drive) has the same file name too. Despite the same name, are entirely different games.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on August 04, 2014, 09:24:15 am
The best way to avoid conflict with zipnames ROMs is to create folders like this :

(http://i.imgur.com/y6978bK.jpg)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 04, 2014, 09:56:41 am
Thanks for the suggestions, guys - I got it working good now w/o conflicts.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 04, 2014, 10:47:17 am
Maybe we need to distribute an FAQ with the emulator for things like this?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 04, 2014, 02:48:41 pm
Treble Winner, thats a great idea - I can already think of some things that should be in it (stuff I'm always repeating to my friends when I ask them to try it, etc)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on August 04, 2014, 05:52:38 pm
Why not also include all those folders by default?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 04, 2014, 07:01:41 pm
Why not also include all those folders by default?

Now that is a good idea - SVN incoming.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 05, 2014, 12:38:49 am
Excellent idea :)
Personally, I'd prefer megadriv -> megadrive though.  We don't have to follow everything mess does, do we?  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 05, 2014, 04:52:09 am
Excellent idea :)
Personally, I'd prefer megadriv -> megadrive though.  We don't have to follow everything mess does, do we?  :biggrin:

It makes life easier. Otherwise for people with the MESS software lists - you have to have the list stored twice. I just keep the MESS lists up-to-date and FB Alpha just plays nice. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 06, 2014, 01:42:10 am
Hello friends of FBA,
There hasn't been a lot of forum activity lately - this could only mean one thing - ya'll are busy playing games in you're favorite emulator  :wink:

Just a little update on whats going on behind the scenes:
Improved the stability of MD games a bit (especially after a reset, things would go bonkers sometimes)!  \o/
With the next release of FBA, the MD & PCE drivers will no longer just be considered an "extra".  I had been playing games on both drivers like mad the past couple days, and would now say that the status has been updated to "damn fine." :)

There is, however, one minor issue with the Megadrive driver, games that use SRam may bug-out a little, but out of 64 games in my MD collection, only one of them is affected.  Hopefully we can work this problem out (aka. guys, I need a little help - see my latest post in the Megadrive research thread regarding SRam.)

that's it for now...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on August 06, 2014, 12:03:40 pm
Hello friends of FBA,
There hasn't been a lot of forum activity lately - this could only mean one thing - ya'll are busy playing games in you're favorite emulator  :wink:

Just a little update on whats going on behind the scenes:
Improved the stability of MD games a bit (especially after a reset, things would go bonkers sometimes)!  \o/
With the next release of FBA, the MD & PCE drivers will no longer just be considered an "extra".  I had been playing games on both drivers like mad the past couple days, and would now say that the status has been updated to "damn fine." :)

There is, however, one minor issue with the Megadrive driver, games that use SRam may bug-out a little, but out of 64 games in my MD collection, only one of them is affected.  Hopefully we can work this problem out (aka. guys, I need a little help - see my latest post in the Megadrive research thread regarding SRam.)

that's it for now...
best regards,
- dink

MD is a kick ass console. And in the next version of FBA, we will play in Kaillera with a great emulator! TY dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 06, 2014, 02:22:17 pm
MD is a kick ass console. And in the next version of FBA, we will play in Kaillera with a great emulator! TY dink!

Meet me on irc sometime and we'll play a netgame or 2 :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on August 06, 2014, 03:42:47 pm
there was a #fbadev on irc(efnet) some years ago with Robert & Lantus
i'm sometimes on #smspower & #segaxtreme
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 07, 2014, 12:47:27 am
Oh yea, I'm logged on ircnet #c64friends usually 7-9am, 11-3pm, 11-1am EST (detroit time) as derek, I'm not always at the computer though, so don't get discouraged if I'm there, but don't respond right away.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on August 08, 2014, 12:21:23 pm
Oh yea, I'm logged on ircnet #c64friends usually 7-9am, 11-3pm, 11-1am EST (detroit time) as derek, I'm not always at the computer though, so don't get discouraged if I'm there, but don't respond right away.

best regards,
- dink

... And all this time I was looking for "dink"... until I stopped to try.  :S
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 09, 2014, 01:45:18 am
sorry about that!  I forgot to mention  :redface:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 12, 2014, 03:15:48 am
Just some small updates from me over the past couple of days:
Added UWOL Quest for Money to Megadrive driver
Added Aetherbyte's Reflectron to PCEngine driver
Updated/fixed the Megadrive driver to load the latest (MESS) romsets of Ghouls 'n Ghosts & Ghouls 'n Ghosts rev.A (the rom data needed to be re-arranged a bit in memory)
Added the k005289 enhancement from MAME svn, makes the bgm in Nemesis sound more like how it should.
Fix Savestate undo bug - don't undo the last savestate, leaving no savestates to load  :redface:...  :p
Add Protection fix for (Megadrive) Puggsy, so the game can now be won without getting the piracy notice.  The code for this fix is so complex, it almost requires quantum computing to initialize properly.  :biggrin:
Add [a couple of internal enhancements that won't be noticable to the end user].
and..
Tried very (very!) hard to get music working in Sand Scorpion.. No luck, this time..  :redface:

take care, my friends :)
best regards,
- dink


Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 18, 2014, 04:25:13 am
Hey guys,
This might not be everyone's cup-o-tea, but some serious oldschool is about to happen..

Incoming Sega SG-1000 driver for FBA - code by iq_132, bringing up to date, spiffing up, and fixes by dink

This is the Sega home console machine prior to the Master System, and shares hardware with the MSX1 and Colecovision.
[a Colecovision driver will be added very soon - also!]
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 19, 2014, 02:49:14 am
ColecoVision comes to FBAlpha!
Big thanks to iq_132 for letting me resurrect, spiff up and fix this excellent drivercode :) (as legend has it: this CV emucode was almost lost forever on the deepest depths of his hard drive... hehe)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 19, 2014, 02:53:27 am
..
Fans of Zaxxon, Gyruss, Defender, and Roc 'n Rope will love this one!  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on August 19, 2014, 10:25:40 am
I'm a Zaxxon fan. Ah, the memories. Thanks again dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 19, 2014, 03:50:08 pm
I'm a Zaxxon fan. Ah, the memories. Thanks again dink!

Right on! You'll be happy to know that vbt is also working on a Zaxxon driver, so this will bring 3 completely different versions of Zaxxon to FBA.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 19, 2014, 03:55:50 pm
News for today:
Doing tons of play"testing" of the SG-1000 & ColecoVision games.  Ok, maybe I'm just having some fun...  :biggrin:
( if you've missed the SG-1000 and ColecoVision news w/lots of piccys, click this: http://neo-source.com/index.php?topic=2487.msg17329#msg17329 )

Also added hardware filters for SG-1000 and Coleco.  On a side-note: UI changes make me nervous, always too many things can go wrong, but so far things seem ok. *fingers crossed*
Made a script to re-build the gamedriverlist & compile the new driver, so if I add a new driver I don't have to wait for the make process to complete since it takes about 10-15 minutes even if theres just 1 change.  With these scripts I can compile new drivers/rebuild the game list & link the executable in a matter of seconds on my pc from the dark ages.

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 21, 2014, 03:39:54 pm
Coleco & SG1000 drivers are 100% complete now, now I'm working on title & preview pics for the new systems - actually all of Coleco games are done, and I just have about 80% left on the SG1000 pics.

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on August 21, 2014, 04:13:19 pm
Neat, I'd rather use FBA than MESS.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 21, 2014, 11:57:59 pm
Neat, I'd rather use FBA than MESS.

Right on, thats why I'm doing this :)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 22, 2014, 01:11:18 am
Agreed on that too!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 25, 2014, 04:34:05 pm
Hi guys, got a new issue - when playing netgames with Kaillera and lets say that the remote side has Assembly 68k core, and my side has Musashi -  the games get desynched really fast.  That's not good!  Me and a buddy got really frustrated because of this earlier, and after trying several different servers, games and pulling hair out / thinking I accidentally introduced a bug into FBA over the past week or so, I finally realized that it would be a good idea to check that the 68k cores are the same on both ends.

I was thinking of the following solution:
If the user has the Assembly 68k enabled and they do Game -> Play via Kaillera, it will pop up a little message telling the user to disable the Assembly 68k core under Misc -> Options.  Simple enough, what do you think?  It should save a lot of headaches in the future :)

best regards & happy gaming,
- dink


Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 25, 2014, 05:35:14 pm
Hi guys, got a new issue - when playing netgames with Kaillera and lets say that the remote side has Assembly 68k core, and my side has Musashi -  the games get desynched really fast.  That's not good!  Me and a buddy got really frustrated because of this earlier, and after trying several different servers, games and pulling hair out / thinking I accidentally introduced a bug into FBA over the past week or so, I finally realized that it would be a good idea to check that the 68k cores are the same on both ends.

I was thinking of the following solution:
If the user has the Assembly 68k enabled and they do Game -> Play via Kaillera, it will pop up a little message telling the user to disable the Assembly 68k core under Misc -> Options.  Simple enough, what do you think?  It should save a lot of headaches in the future :)

best regards & happy gaming,
- dink

Or we could go with kev's favourite solution of ripping out A68K? :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 25, 2014, 10:44:43 pm
I wouldn't complain. It adds unnecessary complexity.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 25, 2014, 11:55:06 pm
Night Slashers was close to working in FBA a few years back was wondering what was the issues that prevented it from being
Fully Playable
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 26, 2014, 12:23:21 am
Night Slashers was close to working in FBA a few years back was wondering what was the issues that prevented it from being
Fully Playable
Got bored with it lol. That happens a lot.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 26, 2014, 10:10:56 am
Got bored with it lol. That happens a lot.
Fair Enough :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: cmart on August 26, 2014, 09:55:17 pm
Any shot at seeing Ninja Baseball Batman
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 26, 2014, 11:38:48 pm
Any shot at seeing Ninja Baseball Batman

Fixed.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on August 27, 2014, 01:47:26 am
You rule iq_
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 02:33:59 am
M92 savestates were working - I remember playing Hook a few weeks ago and using them to save my game, now they aren't.  This is weird  :eek:  Everything looks OK...
EDIT: Turns out my poor old computer can't take the heat.  :redface:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 03:48:22 am
While playing Ninja Baseball Bat man, the screen froze up in 2 separate games (the music kept playing - but everything else freezes).  Once during a boss fight with the airplane-boss and then again in level 2 on the ships deck right after I got into the car.

EDIT: I got it to happen again - this time I saved a state right before hopping into the car, and basically I hop into the car and go around the screen like mad crashing into enemies, after 5-10 times of re-trying this, it'll lock up solid.  It usually happens when the screen is really busy (lots of sprites crashing about).  After the screen locks up solid and I press a bunch of buttons, the screen goes really strange with numbers. (see pic)  Also attached in states.zip: state saved right @ the car (for jumping into and going nuts) and a state taken when its locked up (ala piccy)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 10:22:06 am
I thought it would be fun to try to reproduce the problem with the world version of the romset, and the first time I got it to freeze - in the car after beating windy airplane, I started hitting a lot of buttons, and the game just rebooted to the irem logo - this time, weird things would be flashing all over the screen while the game booted.  Here's a perfect recreation scenario:
unzip nbbincar into your savestates directory.
load the game/load hit f9(load state)
drive a bit - when you see the pile of toxic barrels, move your joystick / gamepad in circles as fast as you can whilst hitting the barrels - if it doesn't lock up after you crash into the barrels, try again (it might take a couple tries)

Ideas? :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 10:43:17 am
Good news - I updated the irem_cpu decode table for this game, and now the music doesn't sound like a horrible cacophony of Richard D. James' blenders.  I have to leave, so I won't be able to test if that fixed the lockup, but hopefully it does.  More news when I get back in a few hours...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 27, 2014, 11:16:28 am
I thought it would be fun to try to reproduce the problem with the world version of the romset, and the first time I got it to freeze - in the car after beating windy airplane, I started hitting a lot of buttons, and the game just rebooted to the irem logo - this time, weird things would be flashing all over the screen while the game booted.  Here's a perfect recreation scenario:
unzip nbbincar into your savestates directory.
load the game/load hit f9(load state)
drive a bit - when you see the pile of toxic barrels, move your joystick / gamepad in circles as fast as you can whilst hitting the barrels - if it doesn't lock up after you crash into the barrels, try again (it might take a couple tries)

Ideas? :)

Does the driver have code to avoid opposite direction presses?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 03:31:16 pm
Does the driver have code to avoid opposite direction presses?

It didn't, but I added code to check & clear opposites (from d_m62.cpp) and tried again, no luck.. its still being troublesome.. :/
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 04:04:07 pm
Here's a new savestate, for nbbatman - it freezes after about 3 seconds after it loads - nothing else needs to be done.  Was real lucky to catch this one!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 05:19:02 pm
I think the problem w/nbbatman is solved! *awesome!*

Ok, let me start - whenever this lockup problem happened, there were a lot of sprite-type things happening on the screen, so this got me thinking - lets check the sprite stuff in the driver.  Turns out it throws a sprite buffer refresh interrupt when its done copying over the sprite buffer, so I thought I'd disable the interrupt just for the heck of it.  it caused the same exact kinda lockup that I was experiencing, so I figured the problem was in that area.   In the mame code, there is a comment that says "Major title 2 doesn't like this interrupt", which got me even better clue to as where the problem lies.  Time to add a new kludge for this game and do some playtesting!  None of my savestates lockup anymore, so thats good :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 27, 2014, 06:15:39 pm
Hey guys, one last message re: Ninja Baseball BatMan - the game is now fully playable without any freezeups! (woohoo!!)
I havn't had this much fun w/a game since Caveman Ninja :)

Big thanks to cmart for letting us all know about this awesome game & of course iq_132 for getting it to boot :)
On an unrelated note - thanks Treble Winner for the configurable directory option! (& sorry I didn't get to check out the bug-site yet, I was entirely focused on getting this game running stable today.)

Gonna take a nice long break now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: cmart on August 27, 2014, 06:45:09 pm
Thanks to you guys for making it playable and all the hard work. Can't wait to play it in the next release.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 28, 2014, 09:19:10 am
Re: Ninja Baseball Batman
In the cutscenes/intro/animations theres a bunch of flickers, and at the end of each fadeout theres also a flicker.  I was able to get rid of the flicker in the animations (which is where it looked the worst), but at the end of each fadeout, I couldn't fix that.  MAME also suffers from the same flickers, so at this point I don't think its fixable - but on the other hand, its not something that detracts from the game at all, and is hardly noticable.  Well, this is the best I can do for this awesome game :)

EDIT: I played the game to the end earlier to make sure everything checks out OK, and also Just finished the game 2player with Kaillera with my good friend Zazzone :) I won't spoil things too much, but heres a piccy from earlier...

thats all for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 29, 2014, 05:55:54 pm
Hello friends and fans of FBAlpha!
I have some more great news - Another longstanding bug has been squashed, the game is In The Hunt aka Kaitei Daisensou.  Lets let the pictures do the talking :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on August 30, 2014, 01:27:13 am
Great job Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on August 30, 2014, 08:22:02 am
.Nice job dink  :smilie:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 30, 2014, 10:16:06 am
In The Hunt Nice game a good fix dink well done!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 30, 2014, 11:12:46 am
thanks guys, I appreciate the comments. :)  they keep me motivated!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 31, 2014, 04:47:27 pm
Since about the first week or so I started working on FBA, I've been trying to get savestates working on the IREM M62 system.  nomatter what I tried, the sound system would keep messing up on savestate load.   A few weeks ago, me and iq_132 tried fixing it together on irc, and we thought we had it.. but, false alarm, it only worked by coincidence.  Back to square one.
Today I dug really deep into the cpu core, and found a few variables that weren't getting saved in the savestate mechanism, I thought - hey! this should fix it..  Turns out I was wrong again...
Went out to eat, thought about it a bit... Seems like I'm turning into a code-zombie again...
Did a little more tracing, and relized, that none of the CPU registers were getting saved at all!  Deep in the cpu core(HD63701), there lies a static local structure/variable that contains the cpu registers, and this is never copied over to the interface-side of things.  Well derrrr!!

Fixed that up, and now things are working properly.  Something that had been a total mystery to me over the past 6 months, finally fixed.  wooohoo!!  :biggrin:

p.s. on top of the irem m62 states getting fixed, it should also fix states for Pac-Land and any other game that uses this cpu core.

Thats it for now!
best regards & happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 01, 2014, 01:16:30 am
Thanks to the fix to the m6800/hd63701 cpu core made earlier today, savestates are now enabled and working for Pac-Land (The arcade version), SkyKid, Dragon Buster, Alien Sector/Baraduke & Metro-Cross.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 02, 2014, 03:08:32 pm
Hi friends & fans of FBAlpha,
Not much news from me today, just fixed the music in Baraduke/Alien Sector and Metro-Cross.  These games sound great now :)
Think I might take a break from coding and play some games before I turn into a code-zombie permanently.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: cmart on September 02, 2014, 07:24:13 pm
Awesome job Dink. Your work is really appreciated.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 04, 2014, 03:02:40 pm
:D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 04, 2014, 03:11:19 pm
Just a little update,
Yesterday: fixed a problem with Robocop 2 - the sprite layer was skewed by -64px & sporatic load problem with The King of Fighters 2003 - big thanks to c(s)mart and gamez fan for finding these bugs :)
Today:
Started doing some mega-debugging on Robocop2 / The Cliffhanger to try and get the driving scenes scrolling proper.  Since the column scrolling was completely broke ( remember Caveman Ninja?  http://neo-source.com/index.php?topic=2487.msg16406#msg16406 ), its possible that the rowscrolling is also broke in someway or another.  Either that, or the raster effects aren't implemented, which I'm worried might be the case.  Either way, expect a fix from me soon :)

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on September 06, 2014, 09:28:00 am
edward randy also uses rasters for the clouds on the plane scene fwiw
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 15, 2014, 02:22:33 pm
The other day I updated the DMA transfer routines in the Megadrive driver, which fixed a couple games, notably X-Men 2 - whenever something got killed, its sprite/bits of its body would stay on the screen.  Theres another game that it fixed, but I can't remember it at this time.. derr!  Well, big thanks to Freddy for finding the bugs and then testing the fix :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on September 15, 2014, 04:01:41 pm
awesome job as always dink  ;p
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 16, 2014, 12:32:58 am
Thanks JacKc!  and double thanks for helping with theglad (and everything else) :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 16, 2014, 01:20:00 am
Possibly bug-related, but a call for help :)

FBA Always sets the default coin & start for player 3 and 4 (aka p3coin 7, start 3, p4 coin 8, start 4), and these macros always conflict with my gamepad macros.
I created a player3.ini preset with the following:
Code: [Select]
FB Alpha [DEBUG] - Hardware Default Preset

Generic hardware

version 0x029732

input  "P3 Coin"          undefined
input  "P3 Start"         undefined
input  "P4 Coin"          undefined
input  "P4 Start"         undefined

and in fbaxp.ini,
Code: [Select]
// Player default controls, number is the index of the configuration in the input dialog
nPlayerDefaultControls[0] 15
szPlayerDefaultIni[0] config\presets\preset.ini
nPlayerDefaultControls[1] 15
szPlayerDefaultIni[1] config\presets\preset.ini
nPlayerDefaultControls[2] 15
szPlayerDefaultIni[2] config\presets\preset3.ini
nPlayerDefaultControls[3] 15
szPlayerDefaultIni[3] config\presets\preset3.ini

But still, player 3 and 4's default settings are still set with the default values for coin/start.  So, the question is - how can I get it to blank out the values for player 3 and 4 by default, when a game configuration in config/games doesn't exist?

thanks and best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on September 16, 2014, 04:33:27 am
edward randy also uses rasters for the clouds on the plane scene fwiw
Edrandy has some funkyness going on. Level 2's road is a broken mess.  Even with rasters hooked up.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on September 16, 2014, 04:26:22 pm
Edrandy has some funkyness going on. Level 2's road is a broken mess.  Even with rasters hooked up.

It uses the protection there afaik
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 18, 2014, 03:23:16 am
From the Wednesday night 2014 FBA-Code-a-Thon, starring iq_132 (Konami) and derek (inputdialogue), comes:

A New FBA Feature
--
Pause and FFWD can now be mapped via the input mapping dialogue for the default preset (global/every game) or per game :D

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 19, 2014, 01:43:02 am
Here's the 2nd revision of new & handy button mappings - this time we get Save/Load & Undo State (to the current active slot, of course).
p.s. To make the settings global/the same for every game: set these up in [any game of your choice] and save it to your default preset.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on September 19, 2014, 09:46:53 am
Thanks Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Gamera on September 20, 2014, 01:12:44 pm
From the Wednesday night 2014 FBA-Code-a-Thon, starring iq_132 (Konami) and derek (inputdialogue), comes:

A New FBA Feature
--
Pause and FFWD can now be mapped via the input mapping dialogue for the default preset (global/every game) or per game :D

Awesome news!  Thank you for implementing my request!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 21, 2014, 02:52:45 pm
You're most certainly welcome :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 23, 2014, 06:01:33 pm
Dear friends,
I think I'm loosing my mind!
o.O
I still have a crappy cold :(
have a nice day :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on September 23, 2014, 10:26:36 pm
hope you get better Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 24, 2014, 04:08:07 am
csmart: thanks buddy :)

Now, finally have some good news: I got nmk004 running stable, had a bit of trouble with this one because of some bugs in the tlcs90 port which were hard to track down.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on September 24, 2014, 09:28:49 pm
This fixes sound in some great games, thanks dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on September 27, 2014, 05:54:17 pm
Hi Dink. Can you fix Guardians Banpresto (grdians) 1995 arcade beat up game ?? :S
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on September 27, 2014, 07:28:32 pm
Hi Dink. Can you fix Guardians Banpresto (grdians) 1995 arcade beat up game ?? :S
What's wrong with it?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 28, 2014, 01:22:02 am
What's wrong with it?

I noticed that the music is missing the melody, right now its only playing drums and a bassline.
After you select your character, it brings you to this weird screen for a second or 2 (see pic) [to be fair, this part doesn't seem correct or fully emulated in MAME either]
Played the first 2 levels, didn't notice anything else other than the music missing its melody.

EDIT: err.. everything seems to check out ok comparing to older mame source :/

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on September 28, 2014, 10:32:00 am
After you select your character, it brings you to this weird screen for a second or 2

Spooky :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 29, 2014, 05:11:33 pm
d's daily blurb:

I planned on taking a couple days break from doing any sort of code-related things, to get my head straight and have some fun, but I just had to (couldnt help it) go exploring and find more (mostly little) things to fix or improve..
Shooter fans (like myself) are going to love the next rel. of FBA.  New drivers like Raiden2 & Xexex are just amazing.  Massive thanks to iq_132 for bringing us these awesome drivers! The music of Xexex and Raiden2 has been stuck in my head for days now.  Air Duel, Kotetsu Yousai Strahl, GunNail, US AAF Mustang, Bioship Paladin, Black Heart and Hacha Mecha Fighter all have excellent music now!! 

Stay tuned..
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on September 30, 2014, 05:00:08 am
Hi dink :) Do you really fix Kotetsu Yousai Strahl game ???
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 30, 2014, 08:32:02 am
Hi dink :) Do you really fix Kotetsu Yousai Strahl game ???

Yep - Strahl is damn near perfect now :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 30, 2014, 02:36:32 pm
There's only a small problem left with Strahl, the noise when you insert a coin and at the beginning of level 1 where the guy says "be carefull" is missing.  All the music and all the other sounds are in perfect working order, though!  I can't quite figure this one out, but I won't give up on it.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 30, 2014, 04:31:09 pm
After some painstaking debugging, I figured out the cause of the missing samples in Strahl & Bio-Ship Paladin.  Aww yea! \o/
Technical info: it was down to a single type-o and incorrect sample-length checking in the msm6295 sound core.

Gonna play through the entire game of Strahl tonight to see how it stands up ;)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on September 30, 2014, 04:55:36 pm
Nice work Dink!!! im sure your glad to have finally got the nmk games at 100%
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 30, 2014, 05:25:07 pm
Thanks buddy :)

Some more great news - the frogs make their ribbit noise in VanDyke (Japan) with this fix, also :D
'Tis a great day!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 01, 2014, 03:11:52 pm
The Daily waffle, brought to you by dink!

Added a new little feature to the search box - now it will search the manufacturer & system type along with the usual gamename & romset name.  This way you can bring up a list of games by, for example: NMK - which don't have their own category in the hardware list.

I played through the entire game of Kotetsu Yousai Strahl, what an awesome game it is.  The music is so epic, especially on level 4 or 5 when it starts with no music but a spooky windy noise - then the music slowly builds up, it almost brought a tear to my eye *sniff*.  :biggrin:

I'm trying to conjure up a way to implement autofire into FBA, because a few of my friends keep bugging me to add it.  Stay tuned :)

Thats all for now!
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 01, 2014, 04:24:34 pm
It's official, Auto-Fire has been added to FBA! :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 02, 2014, 02:18:58 am
Here's how the new autofire feature works, the player firebuttons are duplicated at the bottom of the list in the input editor (F5) as "P1 AutoFire Button 1" (and so forth), you can then map that button to any button/key/etc. as your autofire button.  If you save it as your default preset, it will then be the same for every game - though games that need different button(s) mapped as AutoFire can be set separately.

I plan to add an option to tune the autofire rate later, but for now its tuned to be just about perfect for most shooters/beat 'em ups. EDIT: Done, see next message! :)

thats all for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 02, 2014, 04:58:53 pm
FBA Auto-Fire is here! :D

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on October 02, 2014, 05:08:19 pm
Hey nice job im sure this will save alotta sore thumbs when playing shmups :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 03, 2014, 04:10:41 pm
Hey nice job im sure this will save alotta sore thumbs when playing shmups :D

Right on buddy! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 03, 2014, 04:12:21 pm
Did some tweaks to the irq timing in nmk16/nmk004 to get rid of the "flicker" of the life-bar in the game VanDyke.
Things are looking good :)

EDIT: the new Auto-Fire feature has been deemed worthy by a couple friends - so I checked it into the svn!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 04, 2014, 02:32:23 am
And early the next day...

Added SMB4MD (Super Mario Bros. for Megadrive) 1.4.2 to the MegaDrive driver
Fixed the top line of the status bar in Acrobat Mission, Air Attack & S.S. Mission (nmk16)
Added a fix from AWJ (MAME svn) to Konami's pcm driver chip core (k053260) that improves the quality of the voice samples in The Simpsons and possibly other Konami games.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on October 04, 2014, 03:26:12 am
Wow, more Simpsons audio fixes! Thanks dink!

(PS Does anyone suspect when the new FBA is coming out?)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 05, 2014, 03:29:54 am
Huggybaby: you're welcome!  Possible release in a few weeks :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 05, 2014, 03:35:25 am
dink's FBA News for today:
Fixed Alien Soldier on Megadrive
Fix/get rid of the usually garbage line of pixels at the bottom of most Megadrive games.  Spent half the day trying to figure out why this happens, and tried to fix it proper - but - that didn't work out, so I just masked out the last line.  Anyways, it looks a lot better now :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 05, 2014, 03:40:48 pm
[go back a page to see "earlier today..."!]
... later on that day...
Fixed the flickering score and player/life status in Konami's Sunset Riders, big thanks to Zazzone for finding the bug :)

The funny thing about this one - the solution was exactly the same as the flicker-fix for VanDyke by UPL on nmk16 hardware.

Fixed: some Megadrive games have corrupt graphics or other glitchy weirdness when reset (f3)

best regards & happy retro-gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 10, 2014, 04:32:18 am
So, whats new the last couple days..  I've been playtesting & testing a lot lately to make sure everything done lately is up to speed, so not too much new I'm afraid.  Anyways, here goes:

Mustache Boy was walking too slow, get him walking at the right speed by tweaking the irq's.
A couple minor improvements to the System macro's and auto-fire code.
In the input editor: change the "Cancel" button to "Clear Input", use the X on the top-right of the window to Cancel. - Because sometimes the input needs to be cleared.  Note: if the input keeps coming back after reloading the game, that key is probably set up in a default preset, or for some inputs FBA will auto-populate default values.  I'll try to come up with a better solution for this in the future, but in the meantime, the clear input feature is quite handy for macros and auto-fire keys.

p.s. The forum is back - hooray!!

best regards & happy gaming,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 10, 2014, 04:54:11 pm
After some thinking, I came up with some..
New input editor features!! :)

Ability to clear an input
Ability to clear-lock an input, so that a preset or system default value won't fill it in the next time you reload the game or preset.

The attached images show the new functionality in action :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 12, 2014, 02:50:04 am
Fixed up the game S.S. Mission in the nmk16 driver a bit: the music tempo was too slow, it made annoying clicks when your ship fired and banking issues when savestates were used.

... a few hours later:

Music in Twin Action and Dolmen (nmk16) would cut out on level 2+, fixed sample loading & banking method & tweaked the irq's similar to nmk004.

Will this be the end to the bugs in nmk16?
.... is that even possible?  !

The day everything in nmk16 is perfect will be a great day indeed :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on October 12, 2014, 10:31:32 pm
Fixed up the game S.S. Mission in the nmk16 driver a bit: the music tempo was too slow, it made annoying clicks when your ship fired and banking issues when savestates were used.

... a few hours later:

Music in Twin Action and Dolmen (nmk16) would cut out on level 2+, fixed sample loading & banking method & tweaked the irq's similar to nmk004.

Will this be the end to the bugs in nmk16?
.... is that even possible?  !

The day everything in nmk16 is perfect will be a great day indeed :)

best regards,
- dink
I'm planning on re-writing the nmk16 driver to implement a few dozen or so bugs. :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Robert on October 15, 2014, 10:37:25 pm
I think it's time for a new release! :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 16, 2014, 02:14:49 am
Patience Robert :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 16, 2014, 02:19:22 am
Hey friends & fans of FBA, just a couple small changes today - barely worth mentioning..

Finally fixed a longstanding issue w/Green Beret where some notes/sfx would hang.  woohoo! :)
Tweaked loverboy a bit, now the game won't harm your ears.  Removed the "No sound" note.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 19, 2014, 05:12:04 pm
Toki was in much nead of some love..
between me and iq_132, I think we got the game 100% now!
yesterday iq got the cool titlescreen effect working, but the fix had a side effect of causing some text in the game to go missing, esp. at the bootup screen.
Did some tweaking a little to get the text back, and got the msm6295 samples to play!  Big thanks again to Zazzone for letting me know about them being missing.

Then the mess that is/was K054539 - Konami's sample synth.  I spent almost the entire day and previous night on it alone.
First there was a crash in it with Mystic Warriors.  Fixed that crash, but some sounds were missing.
Got some of the missing sounds to work, but I played Mystic W. in MAME, and realized even more sounds were missing, turns out our K054539 core was too outdated, crusty and beyond repair.
Ported the latest K054539Update() from MAME, and all sound-related problems solved. :)

Well, I'm kinda burnt out for today, gonna continue working on things tomorow!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on October 19, 2014, 10:36:00 pm
Thank you! I was dreading going back and fixing that. You know how I am. lol
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 20, 2014, 12:48:26 pm
iq_132 - its good teamwork, thats all :D

best regards,
- dink aka oops, wrong button!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 23, 2014, 03:48:42 pm
Thanks to gamezfan (and a little bit of updating from me), we'll have Zero Team in the next FBA :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on October 23, 2014, 03:51:22 pm
...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 28, 2014, 03:09:33 am
Hello friends & fans of FBA,
I've been taking a much-needed vacation from code & debugging to finally play some games!!
The other day whilst hanging out on irc, iq_132 mentioned I should try a game called Biomechanical Toy, I got sorta hooked on this one, so I'm passing the info along and I suggest anyone that likes run 'n gun platformers to give it a try.

Then there's Zero Team, this game is really awesome.  There are a couple small issues with this game that are related to the protection and are currently unfixable that I should mention, but despite the issues - the game is still pretty damn awesome.  If you're a Double Dragon fan, give it a try.  Oh yea, the issues - you can "walk through" barrels & crates, and at the end of level 5, the game pauses for about 20 seconds - you might think its locked up, don't worry - it'll go to a cutscene then continue to the next level after a few more seconds.  That's it.. They don't really detract from the gameplay at all!

And a little post-release FBA "behind the scenes" info: JacKc's been going through the Megadrive games one-by-one and tidying up a bit, iq_132 fixed some layer alignment issues in Metamorphic Force which fixes that neat color-ring effect at the level-1 boss and intro/attract sequences, and me.. I tweaked the effect volume for Nostradomus and Magical Cat Adventure - as there were some ear-piercing sounds that needed a bit of level adjustment.

That's it for now...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on October 28, 2014, 05:41:50 pm
Hello friends & fans of FBA,
I've been taking a much-needed vacation from code & debugging to finally play some games!!
The other day whilst hanging out on irc, iq_132 mentioned I should try a game called Biomechanical Toy, I got sorta hooked on this one, so I'm passing the info along and I suggest anyone that likes run 'n gun platformers to give it a try.

Yeah dink, it's time to enjoy the work.
I will try Biomechanical Toy... And also recommend other run and guns games: The Adventures of Batman and Robin and Robocop vs Terminator... Hard games, dude!  Ah, Gunforce 2!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 29, 2014, 03:14:36 pm
Double Dragon 2 on Megadrive is fixed now :D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 29, 2014, 05:14:35 pm
More fixes for today:
Surprise Attack (Konami) - player was moving sluggishly.  (moved irq to vbl-in)
Sunset Riders flickering status & score revisited, previous fix only fixed player1, not 2,3 or 4. (moved irq to vbl-out & tweaked interlace)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on October 29, 2014, 07:18:58 pm
Hi dink,
Same problem in KOF 2000, can't load the game (guru meditation).  :redface:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 30, 2014, 01:23:21 am
Freddy, for now, go to Misc -> Options and uncheck "Use alpha blend effects..." to play the games w/o issues.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on October 30, 2014, 09:47:27 am
Freddy, for now, go to Misc -> Options and uncheck "Use alpha blend effects..." to play the games w/o issues.

best regards,
- dink

Working fine now...
Thank you!  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 03, 2014, 05:48:57 pm
Sorry ya'll havn't heard much from me lately, I've been keeping busy working on
lots of little "behind the scenes" fixes & things, most of them not really worth mentioning, but in the long run they make for a better FBA for all of us :)
Anyways, some mentionables that happened today & yesterday:
Fixed Escape Kids crash while booting,
Fixed the sounds in Yie Ar Kung-Fu & some timing improvements.  Some sn soundchip commands were getting skipped (like in Shaolin's) because the chip updates needed to be interlaced.  Now the game sounds like it should :)
Fixed the buzzing dac sounds when compiled with gcc >= 4.8
EDIT: several hours later...
Give Mikie the Shaolin's Road / Yie-Ar treatment also.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 05, 2014, 02:24:45 am
re: It's the little things (& the third try's a charm)

in Gradius III, the drumroll @ the beginning after the game boots up never sounded quite right - well, now it does :)  Technical info: the game sets the volume of the Konami PCM chip (k007232) starting at 0 and turns it up slowly as the drumroll plays.  The PCM chip was ignoring volume sets of 0, so it was using the default value of full volume for that channel to start the drum roll.

I also finally found the source of mixing crackles in some Sega games (Including the newly found Hammer Away), there was a little overflow whilst mixing the 16bit samples in the ym2612 core which wasn't being properly handled.  So thats fixed now, too :)

Today is a good day for FB Alpha!

Barry got the newly found/lost Sega game Hammer Away up and running.  iq_132 added a new driver for the classic games Time Limit and Progress, JacKc added a bunch of new clones plus he's doing a good job keeping the roms up-to-date.

Some piccys:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on November 05, 2014, 12:19:42 pm
Excellent work fellas!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 06, 2014, 04:15:56 pm
Today's happening(s):
Tweaked Xexex and Moo Mesa to get the music in-key, increased the sfx volume in Xexex to match MAME.
Gonna go play some more Hammer Away in FBA ;)  *awesome game!*

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 07, 2014, 04:35:39 pm
Today's FBA happenings, brought to you by dink.

Tag-team awesomeness for iq_132 and dink regarding compilation issues w/ newer versions of gcc

FIXED: Musashi 68k is fixed for newer gcc versions - this means no more missing zombie heads in Altered Beast or bullets shaped like plus. (dink)
FIXED: Weird buzzing/pops in the dac with signed writes only when compiled with gcc (iq_132)

Keep in mind, I spent part of last weekend trying to fix the dac, and iq_132 and Treble Winner and I spent countless hours/days/weeks on the Musashi bug.  Therefore I'm dividing up the awesome-points equally between the three of us.  That's 100 points each!  We rock!! \m/

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on November 07, 2014, 06:18:04 pm
Today's FBA happenings, brought to you by dink.

Tag-team awesomeness for iq_132 and dink regarding compilation issues w/ newer versions of gcc

FIXED: Musashi 68k is fixed for newer gcc versions - this means no more missing zombie heads in Altered Beast or bullets shaped like plus. (dink)
FIXED: Weird buzzing/pops in the dac with signed writes only when compiled with gcc (iq_132)

Keep in mind, I spent part of last weekend trying to fix the dac, and iq_132 and Treble Winner and I spent countless hours/days/weeks on the Musashi bug.  Therefore I'm dividing up the awesome-points equally between the three of us.  That's 100 points each!  We rock!! \m/

best regards,
- dink

Nice work dink. Musashi fix confirmed and tested with GCC 3.4.5, GCC 4.8.1 (x86 and x64) and MSVC (x86 and x64).
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 11, 2014, 04:50:01 am
Hello friends and fans of FBA,
I havn't said much lately because I've been too busy working on our beloved emulator - thats good news, right? :)
What I've been up to lately:
Corrected some irq timing in Gradius 3, now the music plays back at the right speed
Added a game-specific hack/fix to Arbalester & x1-010, so that the music plays at the right speed
Spent 2 whole days trying to get Dream World to stop freezing up upon players death, no luck yet!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 14, 2014, 03:57:25 am
Fixed the sound in Asura Blade / Asura Buster  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on November 14, 2014, 07:56:05 am
Fixed the sound in Asura Blade / Asura Buster  :biggrin:

That should probably be "improved" rather than fixed? IIRC doesn't it use a YMF262 as well?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 14, 2014, 10:42:30 am
Well, not improved, because I had unfortunately broke the sound which had once been working when I ported the new ymf278b core..  Ok, lets just say, "returned to its pseudo-working state"  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 14, 2014, 11:51:27 am
Added Oh Mummy (MD) and Lego Batman (MD) to FBA - They're free/indie/homebrew games
DL here and save for the next fba-rel: http://sharesend.com/6nod019z & http://sharesend.com/qfi30axr :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 14, 2014, 05:09:35 pm
In the game Black Tiger, the sfx are so loud the music can hardly be heard.  While mucking about with F1 Dream earlier, I figured out a way to lower the SFX volume and was surprized when I had applied it to Black Tiger - and it worked!!  All to get a nice/perfect music : sfx balance.  The fix is simple, but for some reason I'm really happy I finally got this one the way it should be :)  :biggrin:  ...   :cool:

Also, added a new macro(function) to burn_ym2203.h - BurnYM2203SetPSGVolume(chip, volume);

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 14, 2014, 05:47:48 pm
Here's my super-bug list.  All these bugs were verified on November 11, 2014...
x: Battle Shark still crashes/hangs at the end of level 1 (sometimes) & the cool Taito intro rasterfx are messed up (like Toki's titlescreen before we fixed it) FIXED! Nov 15, 2014
x: Pooyan is missing sounds: pigs marching, bubbles popping (needs filters hooked up like in the Galaxian driver) FIXED
x: DJ Boy - screen goes weird -like boot-up colors- after intro/attract mode repeats a few times, just hold ffwd for a bit.[/b] (probably can't be fixed)
x: Ken-go won't boot, needs separate irq routines(?) FIXED: Dec. 1, 2014
x: Staticky/bad noises in some Neo-Geo games with fm interpolation on (Art of Fighting, Football Frenzy, etc) FIXED: Dec. 2, 2014
x: Bucky O'Hare - music is broken FIXED: Dec 21, 2014
x: Gyruss - music is broken (it will play really really fast, then just stop... sometimes during the game) FIXED!!!!!!!!!!
x: Backfire crashes during boot - go to service mode -> game settings -> set single screen & exit, then reload fba, go back to service mode and try setting it to dual screen. (sooner or later it'll crash)
x: d_lwings.cpp: Trojan and Section Z have varying tempo in the FM (YM) music. (possibly because of the msm changing interlace?)FIXED: November 22, 2014
x: Dragon Breed(Both versions)  & ALL other m72 games with samples - the pcm samples have clicks in them. (at the beginning are most noticable) FIXED: Dec. 1, 2014
x: Terra Cresta - music plays way too fast FIXED: Jan 5, 2015
x: Mobile suit gundam - bad sound, left channel buzzing noise (maybe just needs some vol.tweaks)
x: dreamwld.c: Dream World screen freezes when player dies.
x: Kabuki-Z - start a game, and go to the right a bit, and you'll see some pretty heavily distored tiles going on in the background.
x: Mr. Heli (d_m72) graphics glitcheryFIXED: Dec 2, 2014 (revised Jan. 3, 2015)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on November 14, 2014, 06:08:41 pm
x: Backfire crashes during boot
Can't verify this one here. It works fine with every video mode, different bit depths, etc. :S
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on November 14, 2014, 06:41:54 pm
x: Backfire crashes during boot

No problemo here dink  :cool:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 15, 2014, 12:52:37 am
Oops, heres the full reproduction scenario:  (I forgot to delete my nvram and try from scratch! sorry!)
Go into service mode, set game options to 1 screen, get out of service mode and into game mode.
Exit game
Load game again, crash!

EDIT: it seems like the game only crashes on the second load.  Once FBA is restarted, it will happily run Backfire in a single screen :)
EDIT2: now, going back to service mode again, and selecting 2 screens, FBA crash again.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on November 15, 2014, 12:59:47 am
Oops, heres the full reproduction scenario:  (I forgot to delete my nvram and try from scratch! sorry!)
Go into service mode, set game options to 1 screen, get out of service mode and into game mode.
Exit game
Load game again, crash!

EDIT: it seems like the game only crashes on the second load.  Once FBA is restarted, it will happily run Backfire in a single screen :)
EDIT2: now, going back to service mode again, and selecting 2 screens, FBA crash again.

best regards,
- dink
The single screen hack is about to go away. That will fix this. :(
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 15, 2014, 01:30:33 am
The single screen hack is about to go away. That will fix this. :(

noooooo! it just needs a little tweaking :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 15, 2014, 03:20:12 am
Some games like Gradius, when the screen gets busy, the slowdown actually is beneficial to your game, that is unfortunately not the case with FACE shooters.  I added a little OC tweak to Nostradamus, then played the game from beginning to end - its much better now :)  The horribly-unplayable slowdown has now become beneficial slowdown - its still there, but not as bad.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 15, 2014, 07:10:09 pm
Battle Shark is now completely fixed - got rid of that hang by moving the 10k-cycle INT6 timer into DrvTaitoZFrame(), its kinda simple really, just a few lines of code :)

Now I just need to test the other games that use the same timer mechanism & take action if necessary..

Scratched from my failure bugfix list!  C'mon guys, I need some help with the others! (clicky!) (http://neo-source.com/index.php?topic=2487.msg18259#msg18259)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on November 15, 2014, 07:15:59 pm
Battle Shark is now completely fixed - got rid of that hang by moving the 10k-cycle INT6 timer into DrvTaitoZFrame(), its kinda simple really, just a few lines of code :)

Now I just need to test the other games that use the same timer mechanism & take action if necessary..

best regards,
- dink

Lovely Work dink a long long standing issue finally fixed i'll happily test those games for ya ;)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: SeiferAlmasy on November 16, 2014, 01:47:24 am
amazing... good work dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 17, 2014, 05:02:58 am
Thanks guys!
Some more news...
Turns out Night Striker and Space Gun are succeptible to the hang also.  The hang in Night Striker happened 3/4 through level 1, and Space gun, right after you get to the first point where you can chose which way to go.  erm.  I don't know if these hangs were always there, or the new Musashi core brought it to light.. but the good news is, they're fixed now too :)
Space Gun, this is one unfair game.. designed to do nothing but take quarters..  Guess they knew what they were doing, eh?

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 17, 2014, 04:53:52 pm
and today...
Sokonuke - Fixed crash (or reset) when the game starts (.128u1 patch for Musashi) & fixed the audio panning - it was only coming out of the left speaker.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on November 17, 2014, 10:24:55 pm
Great job as always Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 22, 2014, 03:58:41 am
Spent a couple hours trying to get music synched properly in Pang - what a tricky b*stard - I finally managed to get it though! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on November 22, 2014, 04:15:28 pm
Zero Team USA (zeroteam) bad sprites priorities

Same in mame.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 22, 2014, 07:17:59 pm
Cross another one off the super-bugs list!   I didn't think I'd ever figure this one out....
Fixed Trojan & Avengers - perfectly synced fm music and adpcm samples \o/ no more warped-record wobble :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on November 22, 2014, 07:28:39 pm
Wow, Simpsons was broken forever even after I reported more than once (I mean, how hard is it to fix a left/right channel swap, forget about the distortion) and now sound is getting fixed left and right for stuff I didn't know about.

Sound is important!!

Thanks dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 23, 2014, 05:26:53 pm
dink's FBA-News for Sunday the 23rd of November,
Hooked up the guns to Konami's Lethal Enforcers, making the game playable.  Also tweaked a couple things here and there.

best regards,
- dink

p.s. you're welcome, Huggybaby!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on November 23, 2014, 05:31:32 pm
Marvellous work dink!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 23, 2014, 06:44:21 pm
I also made an enhancement to the gun interface, any game that uses a lightgun could possibly use this.
Basically, if the crosshair isn't moved for 2 seconds, it disappears. :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on November 23, 2014, 08:18:29 pm
I also made an enhancement to the gun interface, any game that uses a lightgun could possibly use this.
Basically, if the crosshair isn't moved for 2 seconds, it disappears. :)

best regards,
- dink

Now this was a good idea which works perfectly :D Nice work BTW
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on November 24, 2014, 12:03:49 am
Great work Dink you're  :cool:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 24, 2014, 05:17:13 am
Thanks guys!

I did some more work on the gun interface code - the automatic crosshair hiding is now added to every game by default, and disappears after 4 seconds of no movement.  Also, a bug was fixed that caused the crosshair to sometimes slowly walk across the screen when no movement was being made.

Drats, the svn server is down, I can't submit my changes :/  Will try again in the morning...

Thats all for now,
best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on November 24, 2014, 06:14:21 pm
Nice job dink !!!  :smilie:

It Works like a charm (tested on latest added zombie raid prototype sets); Crosshair is hiding after few second...Perfect for making title and preview snaps [see attached snaps] !!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 25, 2014, 02:42:51 am
JacKc, glad to hear it - times are good for FBA :)

I added a second button "simulated re-load", this button simulates moving the gun offscreen and pressing fire in 1 button press.  Enjoy :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on November 25, 2014, 09:45:13 am
Thanks a lot dink  :smilie:

Doing some tests i notice grapical problem only with Lethal Enforcers (ver JAD, 12/04/92 17:16) [lethalenj] (Parent and others clones are working fine):
- No sprites during play and/or attract mode

(http://i.imgur.com/PYC0n9w.png)

(http://i.imgur.com/cY89e2Y.png)

(http://i.imgur.com/8yNXttQ.png)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on November 25, 2014, 11:04:30 am
Thanks a lot dink  :smilie:

Doing some tests i notice grapical problem only with Lethal Enforcers (ver JAD, 12/04/92 17:16) [lethalenj] (Parent and others clones are working fine):
- No sprites during play and/or attract mode

There's a message about this at the top of the driver.......

Quote
// japan version needs sprites fixed (x flipped not y flipped)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 25, 2014, 11:42:28 am
JacKc, yep, thats a known issue, but forgot to mark the driver as so, oops!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on November 25, 2014, 11:47:54 am
my apologies...forgot to check top of the driver :p
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 26, 2014, 06:53:08 pm
Subject: On Weirdness and good news

A few days ago my good friend Zazzone reported a problem with Alien Syndrome where the sprite would go slightly corrupted, get stuck and stop animating.  I couldn't reproduce it to fix it, so I kept coming back to it over the past couple days & trying random different things.  In the end, it turns out he is using a keyboard to play, and if one presses up and down or left and right at the same time - by accident or something - the game totally spazzes out.  Now, the reason I couldn't reproduce it is that I am using a gamepad and pressing opposites is (almost)impossible.  A couple lines of code later - problem solved.. :)

That's it for today..

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 28, 2014, 04:57:00 am
Fans of ESP Ra.De. are going to dig this one..
This great game has but one small defect, the sfx completely covers up the music - even when playing from pcb - and it was impossible to route the sfx and music separately at different volumes to overcome this, because everything goes right into 1 instance of the soundchip (ymz280b).  Internally, the ymz280b has 8 channels, after a bit of debugging we found that the game uses the last 2 to play music, and the first 6 for sfx.. so, what if we put the sound mixer inside the sound chip?  After a bit of trial and error: playing the game from beginning to end, doing a few tweaks, playing it again and adding the ability to enable / disable it (via Dip's) - we got it almost perfect.   :cool:  Coming soon to an FBA near you...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 01, 2014, 04:02:03 am
Ladies and Gentlemen, I bring some more good news:
VS Block Breaker and Saru-Kani are now 100% working in FBA :)

Technical info: Hooked up the paddles, fixed the missing background images / blocks & a problem with the nvram which caused the game to freak out every time it was reset.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 01, 2014, 05:51:40 am
Ken-go lives!!!!!!!!!! (in FBA)

I'm so happy *sniff* didn't think I'd ever see this day...

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on December 01, 2014, 11:13:18 am
More bugs sqaushed you are the exterminator LOL
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 01, 2014, 05:38:24 pm
Thanks buddy :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 01, 2014, 05:53:04 pm
Another bug to scratch off the super-bug-list - got rid of the clicks in the irem m72 games' samples (dac) :D
Dragon Breed, Ken-go and the whole lot sound a lot better, now!
Check the attachment for 2 sound samples, old vs. new, from the game Hammerin' Harry.

Whist testing all the m72 games, I noticed Mr. Heli has some graphics glitching that needs to be fixed.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on December 01, 2014, 06:49:07 pm
It sure sounds better!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 02, 2014, 04:24:07 am
Fixed the graphics glitches in Mr. Heli, improved the sampled speech/instrument quality even more in m72 :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 02, 2014, 10:35:55 am
I have found some several giltches on FBA 0.2.97.34:

- VS Gong Fight aka Ring Fighter (vsgongf)- player 1 sprite missing;

- Space Invaders/ Space Invaders M (invaders)  - no sound;

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on December 02, 2014, 11:16:33 am
I have found some several giltches on FBA 0.2.97.34:

- Space Invaders/ Space Invaders M (invaders)  - no sound;

Im sure this game needs a seperate samples file which gives it the sound
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 02, 2014, 02:06:12 pm
WILOWAR,
VS Gong Fighter - this is really how the game is :) (no kidding!)

Space Invaders - google space invaders mame samples, and put the zip in fbadir\support\samples

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 02, 2014, 02:20:44 pm
The sound Ken-go makes when he charges up his sword doesn't sound right.  Our ym2151 core is up to date, and the driver code checks out well too.  I think it might be timer related, as it seems like an LFO isn't going long enough. Do'h!  This is going to be tricky...

EDIT: Some good news, Ken-go sounds perfect with FM Interpolation on.  The problem is, it should sound almost the same, or at least similar with FM Interpolation off.  But, the sound is waay off.  Time to investigate further...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 02, 2014, 05:19:25 pm
How many games on FBA use samples ??
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 02, 2014, 05:34:53 pm
WILOWAR, not very many - the ones I can think of... donkey kong, dk jr, galaga, rally-x, space invaders, ghox, fireshark/samesamesame.  The last 2 games because of encryption, the rest because certain sounds are generated by non-digital electronics.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 03, 2014, 12:32:37 pm
I have a question about MAME: Why I have FPS down on some 3D games - My current cpu is FX9590 4,7GHZ. Some games running 100% all time (Golgo 13, ACE COMBAT), but in some 3D games I have fps down - from 100  on beginning to 90%,80 or 70% (Alpine Racer 1, Gradius 4).

I test with 64 bit version on 64 bit 7 Windows.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on December 03, 2014, 01:04:57 pm
WILOWAR, not very many - the ones I can think of... donkey kong, dk jr, galaga, rally-x, space invaders, ghox, fireshark/samesamesame.  The last 2 games because of encryption, the rest because certain sounds are generated by non-digital electronics.

best regards,
- dink

Galaga and Rally X use one sample for the bang effect which is generated by discrete electronics. The rest of the sound is emulated "normally".

The Toaplan ones (Ghox, Same Same, Teki Paki and Virmana) as you say use samples as that's the best available at this time.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 04, 2014, 12:38:06 am
Hi. Where Can I get these samples for FBA ??
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on December 04, 2014, 12:40:07 am
Hi. Where Can I get these samples for FBA ??
Twisty's is THE place for samples. :)
http://samples.mameworld.info/
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on December 04, 2014, 04:38:49 am
Twisty's is THE place for samples. :)
http://samples.mameworld.info/

If you start at http://shmups.system11.org/viewtopic.php?f=1&t=40360, you will find the Toaplan ones too.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Robert on December 04, 2014, 06:59:15 am
If you start at http://shmups.system11.org/viewtopic.php?f=1&t=40360, you will find the Toaplan ones too.

All the links in there are dead.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on December 04, 2014, 07:35:31 am
All the links in there are dead.

If you follow the Sound Samples link in the second post they are alive for me.....
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Robert on December 04, 2014, 09:31:58 am
Strange, it worked this time. When I tried before all I got was a white screen, with the banner across the top.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 04, 2014, 01:09:49 pm
Thx for samples, but I have problems with two samples for FIRE SHARK/ SAME SAME SAME and VIMANA, they don't work - I do everything.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 04, 2014, 02:58:24 pm
Hi WILOWAR,
Take samesame.zip and rename it to fireshrk.zip, and put it in fbadir/support/samples

For vimana, unrar both rars into a new folder, then zip all the .wavs up and name it vimana.zip - put in the same place as fireshrk.zip

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 05, 2014, 06:26:25 am
The other day when I was giving the Irem m72 driver a bit of a makeover, (re: Ken-go) I had forgot to mention -
Armed Police Unit Gallop / Cosmic Cop plays a lot better now, too :)
Next up (and a self-reminder): get Pound for Pound working right.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 07, 2014, 06:28:28 am
This one was tricky...
R-Type Leo, halfway through level 2 the background layer would jitter every once in a while.  I think I might have lost a little bit of hair while debugging this one.  I'm happy to say its fixed now... :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 15, 2014, 06:07:17 pm
Fixed a bug in the rf5c68 pcm core, the sound buffer wasn't being incremented properly - this caused samples to get cut short / clobbered / etc in Hammer Away and possibly other games that use this core.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on December 15, 2014, 08:11:40 pm
Fixed a bug in the rf5c68 pcm core, the sound buffer wasn't being incremented properly - this caused samples to get cut short / clobbered / etc in Hammer Away and possibly other games that use this core.

best regards,
- dink
Same as with the dac?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 16, 2014, 02:46:51 am
iq_132, it was only incrementing the sound buffer once per sample, instead of twice (l+r samples).
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 16, 2014, 04:23:14 am
It turns out that there were 2 separate issues contributing to the bad/broken drums in level 2+ of Hammer Away, now I feel bad I didn't notice / fix them before the last release - sorry guys!  Things will be perfect in the next one, though.  :)




Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 16, 2014, 02:34:45 pm
Contra ( US Set 1) (contra) - graphic glitch on Waterfall stage 2.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 16, 2014, 04:40:05 pm
WILOWAR,  This one is actually due to a bug in the game itself - after game over: it counts down to 0 (for continue), and after 0 is displayed (or continued), it leaves a little piece of the number behind. 

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 17, 2014, 04:28:21 am
Yay, another one of my fixes made it into MAME, https://github.com/mamedev/mame/commit/447822e40dc401218f27af90341e434aeb82e097

Basically what happened - after iq_132 ported the mystwarr driver and related/supporting konami chipset cores, we started getting some massive heap corruption issues which were very hard to track down, because the memory getting overwritten was allocated by fba thus the compiler/rtl couldn't detect it as an out of bounds write.  After spending a few days re-arranging code to get a reliable re-produce scenario, I painstakingly went through and commented out blocks of code until the problem stopped happening.  There were several dead-ends, if you can imagine, but sooner or later I came to a block of code which wasn't checking the bounds correctly (it wasn't accounting for the additiion of dst_pitch in K053936GP_copyroz32clip()).  The fix was simple, AWJ simplified it even further, and the result is - a much stabler & more reliable FBA & MAME for the masses :)

that's it for now..
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 18, 2014, 12:44:16 am
Karnov (all versions - US and Japan) - game freeze after start (insert coin);
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 18, 2014, 04:17:53 am
Thanks for your continued reports, WILOWAR!  Karnov is fixed and will be available in the next release,

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 19, 2014, 01:29:59 am
Vapor Trail - Hyper Offence Formation (World revision 1) (vaportra) - game running too slow.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 19, 2014, 02:47:43 am
WILOWAR, thanks again for the bug report, the game is fixed now :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 19, 2014, 04:03:00 am
Megadrive is slowly mega-driving me insane.  Get one game running right, and it breaks others, almost like the whole thing is a tower of jenga waiting to fall.  If only a handfull of games out of several hundred don't work [properly], thats still good, though, right?

Time to throw in the towel for tonight,
bye for now & best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 19, 2014, 12:24:51 pm
Varia Metal (vmetal) - graphic glitch
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on December 19, 2014, 01:32:51 pm
Varia Metal (vmetal) - graphic glitch
Looks like an issue with either the tile decoding or more like flipping.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 20, 2014, 07:12:45 pm
BIG thanks to everyone who has reported problems/bugs in FBA!!  The greatness of future versions depends on you - keep up the great work guys!!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 21, 2014, 06:35:07 am
Music & SFX in Bucky O'hare finally lives!!!  :D
iq_132 checked in a fix earlier to better synchronize the sounds in Bucky/Moo Mesa.
I wasn't happy with the music/sfx still being broken in Bucky, so I spent all night getting to the bottom of things..
3 1/2 hours of detective work on this sucker tonight, probably 3 or 4 more hours on other days. I was this close ->  <- to calling it quits.... then.... SUCCESS!!  Very happy with this one! \o/
time for some sleeep, its almost 5am |)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on December 21, 2014, 12:18:19 pm
Music & SFX in Bucky O'hare finally lives!!!  :D
iq_132 checked in a fix earlier to better synchronize the sounds in Bucky/Moo Mesa.
I wasn't happy with the music/sfx still being broken in Bucky, so I spent all night getting to the bottom of things..
3 1/2 hours of detective work on this sucker tonight, probably 3 or 4 more hours on other days. I was this close ->  <- to calling it quits.... then.... SUCCESS!!  Very happy with this one! \o/
time for some sleeep, its almost 5am |)

best regards,
- dink
Nice work!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 21, 2014, 12:53:05 pm
Just got done playing Bucky O'Hare from beginning to end, killer game and an awesome addition to FBA :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 23, 2014, 05:43:26 pm
FBA now plays Santatlantean by Aetherbyte software - http://www.aetherbyte.com/aetherbyte-santatlantean_for_pc-engine_and_turbografx-16.html

Merry Xmas :D
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 24, 2014, 08:07:17 am
Merry Christmas for FBA Team  :biggrin:

And more games for FBA from Santa  :wink:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on December 27, 2014, 10:30:06 am
Merry Christmas for FBA Team  :biggrin:

And more games for FBA from Santa  :wink:

Merry Christmas and Happy New Year, WILOWAR!  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 28, 2014, 06:51:21 pm
Fixed a small issue in the nec v35 cpu core where a pointer would get trashed on savestate load.
My Ken-go savestate from last night wouldn't work today, so a bit of investigating was in order... Luckily it was a very simple fix!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on December 29, 2014, 09:45:03 am
Fixed a small issue in the nec v35 cpu core where a pointer would get trashed on savestate load.
My Ken-go savestate from last night wouldn't work today, so a bit of investigating was in order... Luckily it was a very simple fix!

best regards,
- dink

dink, Gargoyles is not working here. The game opens but I can't play with the character!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on December 29, 2014, 06:18:51 pm
dink, Gargoyles is not working here. The game opens but I can't play with the character!

Are you using the latest FB Alpha?

Actually, try disabling the ASM 68K core - it doesn't support the TAS callback (which Gargoyles requires). The MD driver should probably be updated to auto-switch to Musashi.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on December 30, 2014, 09:47:15 am
Actually, try disabling the ASM 68K core - it doesn't support the TAS callback (which Gargoyles requires). The MD driver should probably be updated to auto-switch to Musashi.

That's the problem. Fixed! TY  :wink:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on December 30, 2014, 04:51:29 pm
Thanks to vbt, me and iq_132, we now have Zaxxon, Super Zaxxon and Congo Bongo in our favorite emulator! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on December 30, 2014, 05:26:58 pm
Hooray, what classics, thanks guys!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on December 31, 2014, 11:53:39 am
Happy New Year !!! :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 02, 2015, 03:29:37 am
Finally got to the bottom of Battle Bakraid crashing in level 5.  Didn't think I'd ever figure this one out, which is why I never mentioned it.  I think its some sort of protection-type thing - at the first big ship (mid-boss) in level 5, the game tries to read 2 samples at around the 16meg mark, yet the game only uses a 12meg samplebank.  What made this one hard to track down is that it wouldn't always do the weird read at 16megs into the samplebank, it happened every couple of games at best - and reproducing it with a savestate is almost impossible - the game has to be played from the beginning to trigger it.
Anyways, its always a good feeling to have fixed an elusive crash/bug like this one.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on January 02, 2015, 03:43:41 am
I'd love to hear the details of that detective job dink.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 02, 2015, 04:09:34 am
Huggybaby right on :)  Here's the long/boring version: Well, when FBA crashes, basically you get an address where it crashed - and that translates to a line in the source code.  First thing I did was sorta trace out how the code executed (in my head) around the part that crashed, and see if anything leading up to it might have caused the issue,  but everything looked kinda alright, I even checked the other similar drivers, and they were using the same exact code, but not crashing.  I wasn't getting anywhere so I decided to check the MAME svn history for the ymz280b soundchip core, since our ymz280b core is probably more than a few years old, maybe something was done to the one in MAME to prevent a similar problem?  Luckily, there was, I went and added the rom size checking in a way similar to how they did it in MAME - but I had it pop up a little message if something went ary.  I then proceeded to play through Battle Bakraid 3 times, and on the third time, up came my message - and FBA didn't crash, so I knew I had it :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 02, 2015, 11:36:14 am
Nice work dink!! it wasn't an easy one to track down your perseverance always impresses me
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 03, 2015, 04:54:56 am
Added Battle Garegga Zakk version
http://shmups.system11.org/viewtopic.php?t=20888

Changes:

1. Mahou characters are unlocked. No more konami code every credit!
2. Rank no longer gets worse with every game played. You won't have to
reset your board after a bunch of consecutive plays to restore default
rank

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 03, 2015, 06:26:03 pm
A side effect of the previous Mr. Heli fix was yet another glitch further into the game.  Now they're both fixed, and hopefully it doesn't cause problems with any other irem m72 game.  *fingers crossed*

I can sorta see why there hasn't been any bug reports for this game, its hard as hell!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 04, 2015, 07:33:22 pm
While playing some classic games today I noticed that the tempo of the music was all over the place in the classic Capcom shooter Exed Exes (also known as Savage Bees).  Kinda like a "warped record" effect, anyways, it sounds a lot better now :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 05, 2015, 07:41:58 pm
FINALLY! Fixed the music in Terra Cresta, both YM2203 & YM3526 versions! :)
Also, fixed jerky video & audio in Vulgus.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 06, 2015, 12:08:51 pm
Add another fix to long list 32 pages now and counting Nice work dink as always
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: samo79 on January 06, 2015, 04:08:59 pm
Well done dink ! :-)

Me just trying to complete The Punisher (Capcom 1993's game) but it freezed when i was fighting against the final boss, this on the AmigaOS port of FBA, don't know on the Windows version .. will try eventually
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 06, 2015, 06:49:48 pm
FBA has another new game: Grasspin by Zilec Electronics / Jaleco (c) 1983!!

Whilst fixing some music issues in the game Blueprint, I realized there was a game missing from the driver, all that was needed to add it was some simple modifications to the graphics banking and dipswitch handling.  As as side-effect of these new changes, Saturn (romset: saturnzi, same driver) scrolls a lot smoother, too.  Success!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on January 06, 2015, 08:58:01 pm
FBA has another new game: Grasspin by Zilec Electronics / Jaleco (c) 1983!!

Whilst fixing some music issues in the game Blueprint, I realized there was a game missing from the driver, all that was needed to add it was some simple modifications to the graphics banking and dipswitch handling.  As as side-effect of these new changes, Saturn (romset: saturnzi, same driver) scrolls a lot smoother, too.  Success!!

Nicely done! Your first game added to fba :D

You should take a look at d_jack.cpp. It's missing one hilarious game.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 09, 2015, 08:21:56 pm
iq_132: thanks :) added the funny game to d_jack :) (just need a little help with the titlescreen palette? hrm...)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 09, 2015, 08:25:38 pm
2 whole days of insane debugging to bring you, the good people & fans of FBA, music and sfx in 2 of the games in the new dooyong driver which didn't want to cooperate.  I might be losing my mind now o.O

:D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on January 10, 2015, 01:56:55 am
Dink, I don't know how to thank you. I love FBA...it has needed fixes, but the audio fixes have been the weak link for so long, and you have fixed audio troubles like nobody's business.

Thanks man.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: SNK_Dude on January 11, 2015, 04:59:23 am
Thanks for all your efforts Dink  :biggrin:

Can't forget all the other Devs of FBA as well  :smilie:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 11, 2015, 05:36:02 am
Thanks guys - its a passion, and a lot of fun working on FBA :)
Just remember, I might have spent 2 days working out some sound issues, but iq_132 has spent nearly 2 weeks implementing the new games, and Barry has given us a nice new feature to the game list, as well;  I won't say what it is yet, but time will tell.. :D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 12, 2015, 12:39:27 pm
I came up with a controversialbly horrible fix for the whineing/ringing noise in Wyvern-F0, basically it resets the AY soundchips when they are idle.  The game is now playable without making one go deaf, but, the code looks ugly. Maybe it will just be a temporary fix until we find a better way?  What do you guys think?

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 13, 2015, 05:42:14 pm
Here's my funny new addition to FBA:
"Let's Uncle Poo!"
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 13, 2015, 05:45:21 pm
Nice work Dink!! for once we can say a Shit game is good Ha Ha
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on January 13, 2015, 09:10:52 pm
Here's my funny new addition to FBA:
"Let's Uncle Poo!"

Excellent work! :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on January 15, 2015, 02:37:44 pm
Operation Wolf has a bad sound quality.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 15, 2015, 04:56:54 pm
I compared FBA's Operation Wolf to MAME and they sound exactly the same, so I'm afraid it can't be improved any better than it is.  On the other hand, Operation Thunderbolt aka Operation Wolf 2 had recently got a little audio improvement.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 17, 2015, 07:43:34 pm
of craziness and trashed function pointers...
Spent from 2:30pm to 5:10pm today trying to figure out why my level 5 savestate of Star Fighter (v1)(SunA), was crashing - but not only crashing: it was executing functions in other parts of FBA totally unrelated to the game -- and crashing there. Not only that(++), it was crashing 20 seconds after the state loaded and the game continued as normal during those 20 seconds... 
Well, it turns out the pointers for the port handler functions in the ay8910 were getting trashed, and they play the pcm samples for the game - so when a certain sound triggered 20 seconds into the game after the state loaded, blammo!  Due to the intricacies of this event, it took nearly 3 hours to track down.  Near the end, there was almost more debug code in the SunA driver than there was code to emulate the game  :eek:

It might seem a bit daunting, but I enjoy these things  ;p  All for a better FBA!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 17, 2015, 09:14:32 pm
Well done dink tracking down the bug sounded like a pesky one for sure
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 18, 2015, 04:55:56 pm
thanks gamez fan, it sure was :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 18, 2015, 04:57:48 pm
Another new addition to FBA - Here's a newly discovered game which is based on the Snow Bros. code: Come Back Toto...

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 18, 2015, 10:07:50 pm
Nice one dink another new game for FBA!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 22, 2015, 05:35:51 am
The other day I came across a game called Garyo Retsuden, a DataEast Dec8 game...
This is the kinda game I immediately fell in love with, but unfortunately there were some issues with the FBA emulation of it - such as: sprite flickering, FBA crashing on exit after the game(sometimes, not all), savestates worked but sometimes caused severe corruption (turned out to be a banking issue).  The good news: all the problems are now cleared up :)
Even better: after testing some other games in the driver, such as Shackled, The Real Ghostbusters, The Last Mission - I found even more bugs - and squashed them.  These older games need some love, too :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on January 23, 2015, 01:06:15 pm
Hi Dink. Can you fix Line of Fire Sega arcade game, it's has several problems with emulation:  broken sound and slowndows.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 24, 2015, 06:04:12 pm
WILOWAR: I improved the sounds a bit: the machine gun was only coming from the left side.  can you tell me where the slowdowns are?  I played it a bit, and it seems OK here.  Also, make sure your soundrate is 44100hz (recommended) in audio -> plugin options, and try increasing your audio buffers to 8.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 24, 2015, 06:19:02 pm
Today I played Karnov to the end & did a few driver improvements/tweaks to improve its' emulation a bit.  One of the biggest problems was sounds getting stuck, but in 2 completely different ways..  In level 3 there is this weird worm-like thing (made of circles) and after it was killed, the irritating noise it made would keep going for the entire rest of the game, a couple other sounds would get stuck on like that, too - boosting the interleave to tighten up the sync between the 2 cpus solved that one.  Another issue: if a savestate was made while getting a powerup or dieing (or other PSG sounds/sfx being made), sometimes the ym2203 would get in a weird state and that sound would get stuck on forever.  Luckily, the ym2203 is only being used for its PSG, and resetting it on savestate load not only solves the problem, but doesn't cause any audible side effects.  Its an ugly way of doing things, but it works (and I tried everything else I could think of)....  Theres a couple other little improvements that aren't so noticable, and probably aren't worth mentioning, too.  :)

Been meaning to do this one for a while now, glad to have it done!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 26, 2015, 07:08:43 pm
Kinda a team effort between gamezfan and me, Birdie Try is now part of FBA!  Its a nice golf game which was only released in Japan on Dataeast's dec0 hardware.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on January 26, 2015, 10:54:52 pm
Nice work guys! :D Another missing game added.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on January 27, 2015, 01:21:56 am
Awesome job guys.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 27, 2015, 04:35:34 am
woohoo!! Solved the problem in VaporTrail where the music tempo goes up/fluctuates when firing!!  The game is now perfect in FBA (and possibly MAME too, soon) :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on January 27, 2015, 05:33:33 am
Dink you are a all-star
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on January 27, 2015, 08:07:09 am
there are a LOT of bugs that can be fixed quite easily in MAME by fudging the clocks.

such chances simply won't be accepted vs. actual measured values unless you can prove them to be correct tho, the end result isn't proof in this case, other things could be slowing the CPU down (waitstates on RAM/ROM, ready lines on sound chips etc.)

that said I'm not 100% sure the clocks are properly verified in vaportra.c

crude buster, which uses the same sound system (and apparnetly suffers from the same problem in places) has the clock 'verified' at 6Mhz (derived from the main crystal, not the 32.2 one, which is apparently only used for the actual sound chips)  that's still some way off what you're suggesting tho, so you'd really need to prove there was an internal divider we're missing via CPU documentation or similar.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 27, 2015, 10:47:37 am
I think the problem with Crude buster is interesting, it might or might not be related to the problem in Vapor Trail.  What I've noticed from a quick debugging: when the flamethrower guy shoots a flame, the game loads 0x1b into the soundlatch and does an interrupt on the h6280 44 times per blast, and each time an interrupt is made, it speeds up the tempo slightly.  I'd like to look into this more later on today.

(Regarding FBA only) Earlier today, after making the /3 modification to Vapor Trails soundcpu, I played the game from beginning to end - it works a treat, and is good enough for me until a better fix is available.   Who knows when that will be?  The people want to play the game ;)

bye for now & best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 27, 2015, 04:57:12 pm
I got Crude Buster at the flamethrower guy to sound right, now: [try] fix the sprite problem in Vapor Trail..

EDIT: problem fixed!  The torso of that spider-machine is actually a background layer, which was 8pixels askew causing the part of the the legs and feet which are sprites to not line up properly.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 28, 2015, 06:02:40 pm
Air Buster - fix slowdowns at mid-boss & busy screen
Arkanoid - was sometimes getting selected as a bootleg due to uninitialized variable, fixes some weirdness, also lowered volume a little so that it doesn't heavily distort with the lowpass filter enabled.

Big thanks to Zazzone for reporting these.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 29, 2015, 04:28:59 am
Regarding the recent Armed Police Batrider bug in MAME... (I just had to test it...!)
Good news, our Gob-Robo is OK :) [see piccy]
Bad news, our dips for Stage Edit, Player Select and Guest Players are backwards (disable = enabled), and have been fixed.

thats all,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 29, 2015, 06:10:12 pm
More good news:
1942: improved sound quality
Pocket Gal Dx: fixed music

- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on January 29, 2015, 07:50:16 pm
A whole host of new fixes and improvements great to see
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on January 29, 2015, 09:16:29 pm
Great job Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 30, 2015, 07:52:39 am
thanks guys!

p.s. don't be afraid to report any bugs or quirks here (or in the FBA Bugs Thread: http://neo-source.com/index.php?topic=1731.0 (http://neo-source.com/index.php?topic=1731.0)) - even if you don't think its that important, we would still like to hear about it :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 30, 2015, 07:22:23 pm
Hi guys, some good news : Konami GT / RF2 & Hypercrash are now playable :)
If there are control issues with these games after upgrading to the new (future) version of FBA, you'll have to reset the dip's to default for both of these games. Ctrl-F5, click [Defaults] then [OK]

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on January 31, 2015, 08:16:05 pm
I'm quite happy about this one..
I got the MSX->SG-1000 ports of King's Valley, Knightemare & Twinbee to boot on the sg-1000 emu (in FBA!), also Q-bert and a few others that had problems now work :D (Yie Ar Kung Fu II, Rally-X, Konami's Road Wars, and some more I forgot)
These games were ported from MSX by some Taiwanese company in the early 80s.  The MSX has very similar to the hardware to the SG-1000 (99x8 vdp, sn soundchip, z80).  The carts have ram in them to make up for the lack of ram that the SG-1000 has (1k) and it wasn't being mapped properly.

Secondly, all of the SG-1000 games have been clonenized, so the game listing will look much nicer/cleaner now.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on February 02, 2015, 07:40:26 pm
I'm quite happy about this one..
I got the MSX->SG-1000 ports of King's Valley, Knightemare & Twinbee to boot on the sg-1000 emu (in FBA!), also Q-bert and a few others that had problems now work :D (Yie Ar Kung Fu II, Rally-X, Konami's Road Wars, and some more I forgot)
These games were ported from MSX by some Taiwanese company in the early 80s.  The MSX has very similar to the hardware to the SG-1000 (99x8 vdp, sn soundchip, z80).  The carts have ram in them to make up for the lack of ram that the SG-1000 has (1k) and it wasn't being mapped properly.

Secondly, all of the SG-1000 games have been clonenized, so the game listing will look much nicer/cleaner now.

best regards,
- dink
great job Dink (as always)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on February 04, 2015, 11:03:34 am
Really nice job dink for tracking and fixing bugs in various drivers :smilie:

I really like what you're doing in the Team since your arrival !!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 04, 2015, 11:24:11 am
Thanks JacKc, thanks vbt  :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 04, 2015, 11:55:11 am
The daily waffle, by dink
~~
Gradius 2 savestate overhaul..
Bug #1
After loading a saved state from Gradius II / Vulcan Venture, you would be greeted with the playscreen for 1-2 frames, then it would crash and complain about the roms being bad.  Turns out that an irq on both cpu's was being lost, and this would somehow throw the games internal timers out of sync [or something like that].
Bug #1.5
Also fixed a problem with the k007232 soundchip & savestates, it was playing the wrong instruments after a state load -or- crashing sometimes, and has been fixed :)

There has also been a handfull of small bugfixes/tweaks to certain games that aren't really worth mentioning.

thats it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 04, 2015, 06:54:58 pm
Donkey Kong Jr. - tweaked the sounds/sample volumes to make the game sound much, much better.  Its perfect now :)
Next up: try to get sfx working in Donkey Kong 3..... (maybe!)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 07, 2015, 05:15:22 am
Big thanks to Zazzone for this one:
Marine Boy can now be played past level 4 with uncorrupted graphics :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 08, 2015, 12:04:41 pm
Another for my good friend Zazzone (and everyone else, of course): Hooked up the filters to Pooyan and also got the background music to work. :)
I learned a few tricks while working on Time Pilot - Pooyan uses the same sound system.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on February 08, 2015, 12:07:05 pm
Nice work. I'm planning on putting the sound system into its own shared file. It'll make improvements across games easier.
BTW gyruss uses those filters too.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 08, 2015, 12:42:42 pm
Nice work. I'm planning on putting the sound system into its own shared file. It'll make improvements across games easier.
BTW gyruss uses those filters too.

Thanks!
you know what, that gives me an idea.  Gonna try fixing that evil Gyruss again..  Been trying to fix that one since I hopped on the team in march 2014!  Think you can take a look and try to figure out why the sprites are flickering all over the place? (start the game, play for a second or 2..)

p.s. Oops, hit the wrong button when replying.  my bad, didn't mean to edit your message!
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 08, 2015, 12:48:44 pm
I mean, nevermind about the flickering sprites in gyruss, the thing that caused the lines in the clouds is causing the same issue in gyruss :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on February 08, 2015, 01:02:44 pm
IIRC Gyruss changes the spritelist mid-screen hence the 'partial updates' in MAME..  They do that as a smart trick to get more sprites on the screen, sometimes called 'sprite multiplexing' or better known to some as 'raster effects'

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 09, 2015, 06:38:03 am
Finally got the music sorted in Gyruss, going to implement the dac stuff (drum/hats/sample stuff) monday if things go right :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 09, 2015, 06:25:21 pm
After many, many, many failed attempts at fixing our Gyruss driver, I'm very happy to say that the Gyruss-overhaul project is complete \o/
Today I added the i8039 + dac, cleaned up a few things, tweaked a few things to perfection thus finally finishing this driver.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on February 09, 2015, 11:27:00 pm
As always great job Dink.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 10, 2015, 12:03:47 pm
Thanks Csmart! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 14, 2015, 05:11:04 pm
Hello friends and fans of FBA,
Just some small fixes for today:
Galaga - the explosion sample wasn't always triggering when your ship got hit.
Pac-Land, the score, life & Round # was skewed to the right a bit (and cut off)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 21, 2015, 05:15:42 am
Hi guys,
Its been a while since the last update, been doing a lot of behind the scenes stuff.  I'm about due for a game-break.
bad: Spent a couple days trying to get a buggy game working, in the end it unfortunately didn't work out (Takeda Shingen, Japanese-English version crash in level 2).  On the other hand, the Japanese-Japanese version of Takeda Shingen plays just fine.
good:
Fixed the missing pcm sounds in Gemini Wing.
Updated the Sky Army tutorial driver to work with the current FBA code & fixed a sprite offset & wrapping issue.
Added a new irq flag (for Z80 only), CPU_IRQSTATUS_HOLD - similar to CPU_IRQSTATUS_AUTO but with a 100cycle runtime between ACK and NONE.

that's all for now,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 22, 2015, 04:21:28 am
We now have Sega Master System & Game Gear \o/

Step 1: port smsplus to fba & graft into a driver *done*
Step 1.5: have it use fba's z80 and sn psg instead of smsplus's internal ones *not done yet*
Step 2: ???
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on February 22, 2015, 08:08:55 am
There is a lot of great news lately...
Hope to see also NES and SNES in the future! Why?
Just to see this guy in action on FBA! \O/ \O/ \O/
(http://th00.deviantart.net/fs71/PRE/i/2014/016/0/4/super_metroid___running_the_gauntlet_by_soulstryder210-d72gge6.jpg)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on February 22, 2015, 06:04:31 pm
We now have Sega Master System & Game Gear \o/

Step 1: port smsplus to fba & graft into a driver *done*
Step 1.5: have it use fba's z80 and sn psg instead of smsplus's internal ones *not done yet*
Step 2: ???
Sure you can do it Dink :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 23, 2015, 05:09:45 am
Some screenies:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on February 23, 2015, 09:14:27 am
You're doing a great job, dink
I played Master System when I was a kid (in a friend house)... in the age of 6.
The game was Double Dragon and what a great game.
Then my father gaves me a Nintendo Console (NES).
He bought in USA, because here, in Brazil, the nes console came after some years.
But anyway, Master System was very, very popular in Brazil.
If was a request system, a bet it was from a brazilian fan!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 23, 2015, 11:38:21 am
Freddy nice story :)  I added the sms because it was a favorite console of mine in the 80s, it wasn't very popular here in the u.s., but I always liked it better than NES.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Sturm on February 23, 2015, 11:13:46 pm
Such a wonderful work, dink! 1000 posts and 100 "applauds".  :)
Besides, hope you may finish the SNES port also! ;)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 24, 2015, 03:58:29 am
A big thanks goes out to Kev for fixing the video and palette issues in our new SMS driver :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 24, 2015, 05:54:44 am
Update: the SMS driver is almost done, woohoo!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on February 24, 2015, 09:34:31 am
A big thanks goes out to Kev for fixing the video and palette issues in our new SMS driver :)

Agreed!

Update: the SMS driver is almost done, woohoo!

best regards,
- dink
How's it looking? Are our sound cores in yet?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 24, 2015, 09:45:28 am
How's it looking? Are our sound cores in yet?

Looks friggin' awesome :)
No, see the dev thread for more info.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on February 28, 2015, 12:36:36 pm
Our SMS driver is now 100% complete!  Woohoo!!
I even added support for the SMS conversion of GG Aleste II, which is a game no shooter fan should be without. :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 03, 2015, 01:16:01 pm
Added the Gamegear game collection to the SMS driver, while the collection might not be the greatest, there are a few games which shouldn't be ignored, like: Columns, Devilish, Puyo Puyo 2, Mega Man, and, thats about it :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Sturm on March 03, 2015, 01:29:11 pm
Hip, Hip, Hurrah!  :biggrin:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on March 05, 2015, 03:41:25 pm
Hi Dink. Can you fix Special Criminal Investigation  ? This game has several problems: no sound, glitchy graphic.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 06, 2015, 06:55:15 pm
WILOWAR, good news - its already been fixed :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 07, 2015, 12:31:45 pm
Today is a good day :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on March 07, 2015, 02:37:01 pm
Today is a good day :)

Agreed!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on March 09, 2015, 05:44:28 am
Hi Dink. Can you fix Super -X game: game freeze after start Stage 1 and shows error code 002C in the middle screen  (both NTC and MITCHELL versions) ??
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 09, 2015, 11:11:16 am
WILOWAR, I can't reproduce that bug here.  Can you try the following, to see if it helps:
If you're using 64bit exe, use the 32bit one instead, or xp version (just try)
If Use Assembly 68k core is on, turn it off, Misc -> Options -> Use Assembly MC68000 core.
Then try?

thanks,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 10, 2015, 05:52:16 pm
Fixed the ai in The New Zealand Story on SMS, thanks to dapperozmo for reporting.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 13, 2015, 03:43:12 am
With help from Barry / Treble Winner, we now have FM(YM2413) capability in the Sega Master System driver :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 14, 2015, 12:28:52 pm
Fixed a bunch of non-booting games in the SMS driver :D
Korean games which relied on the SMS's work ram set to a pattern of 0xf0
Ace of Aces & Shadow Dancer which relied on the Stack Pointer being set to 0xdff0 before boot.

that's all for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on March 14, 2015, 02:02:37 pm
Fixed a bunch of non-booting games in the SMS driver :D
Korean games which relied on the SMS's work ram set to a pattern of 0xf0
Ace of Aces & Shadow Dancer which relied on the Stack Pointer being set to 0xdff0 before boot.

that's all for now,
best regards,
- dink
Excellent work!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 14, 2015, 07:05:56 pm
Thanks IQ_132 :)

I'm pretty happy with this driver now, today all of the longstanding issues & problematic problems have been worked out.  Next step: more playtesting!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 19, 2015, 11:52:52 am
For those who are wondering: what happened to dink?

SMS Game Binge!!!

Playing and tweaking, tweaking and playing.  Tweaking the driver to perfection, that is, (not the other kind!)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on March 19, 2015, 03:54:32 pm
SMS, as in Streets of Rage?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 19, 2015, 04:18:29 pm
Sega MasterSystem, of course :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Huggybaby on March 19, 2015, 05:54:40 pm
Exactly: https://www.youtube.com/watch?v=Fh6VGeulJkw

Of corse, SMS=Genesis to me.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 20, 2015, 07:08:16 pm
Some more SMS news:
Today I got the Korean Beat 'em up Janggun ui Adeul working in FBA!  It uses simple bit swapping encryption for a range of bytes in the rom.
Also got Pooyan, which is a port of the MSX version to SMS by HiCom working right - the game used to go berzerk after player death.

thats it for today...

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on March 21, 2015, 01:54:08 am
Dink you have been a life saver since you joined this group. I've followed FBA since 2010 and is my favorite arcade emulator. Awesome job as always now if you can get iq to port Track n Field. lol just messing around better than asking for the Midway driver though I still love my cat.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 22, 2015, 05:45:31 am
Thanks csmart :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 30, 2015, 06:33:48 pm
Added the newly found WildSnake GameGear game to FBA
JacKc added the new arrange versions of Japanese Fireshark (Same!Same!Same!) & Ketsui by trap15 (Thanks!!!)

The new Japanese Fireshark fixes a problem that every FireShark fan has run into - powerups that never leave the screen.  This is especially helpfull in the later levels when you need a certain weapon, and those powerup-hindenburgs keep coming by with powerups that actually downgrade you.   Its a very "hated" part of the game that most superfans know about and cringe every time they think about playing the game :)  Big thanks to trap15 for reverse-engineering the game and fixing things, and JacKc for adding the games to FBA!

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on March 31, 2015, 07:50:39 pm
Did a little fix for the map at the beginning of each level in Ninja Baseball Batman, the raster effect is askew by 24 pixels and just didn't look right.  Now its perfect.  :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 01, 2015, 04:27:35 am
Remember when Ninja Baseball Bat Man's soundcpu wasn't being decrypted properly, and the music was all full of glitchy weirdness?  It turns out theres a few people that actually prefer the game to sound that way - so, to make everyone happy - I thought about adding a dipswitch/setting to switch between the proper and glitched music modes.  :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: jsjyqz on April 01, 2015, 04:54:57 am
well,if the raster effect  fix in Ninja Baseball Batman will be help the Mame driver?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 01, 2015, 09:12:05 am
well,if the raster effect  fix in Ninja Baseball Batman will be help the Mame driver?

The part where it flips the map around already was fine in MAME.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 06, 2015, 07:05:36 pm
SMS Homebrew authors have released 2 epic games this year: DARC and Bruce Lee.
Typically, homebrew games are nothing to write about - but these two are friggin' awesome! :)
Also, earlier today a rare/undumped SMS game was found and dumped!  Its a side-scrolling shooter called Hong kil Dong.  Here's some piccys of them running in your favorite emulator:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 07, 2015, 02:57:52 am
Here's something special - Lambo by Genesis Project (from Revision 2015) in FBA:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 09, 2015, 04:48:39 pm
Hello friends & fans of FBAlpha!
I came across a nice re-work of Alex Kidd in Miracle World (SMS platformer) called Alex Kidd in Radaxian Rumble.  A lot of recoding/new graphics/music etc. has been done to make almost a totally different game, and it plays quite nicely too.

http://626535750121256080.weebly.com/alex-kidd-in-radaxian-rumble.html
This site contains a .ips patch that can be applied to your Alex Kid in Miracle World 1.1 rom, which creates a new rom of Alex Kidd in Radaxian Rumble!

(http://s26.postimg.org/5eheign1x/akrrtitle.jpg) (http://postimg.org/image/5eheign1x/)

(http://s26.postimg.org/nvbt9a305/akrr.jpg) (http://postimg.org/image/nvbt9a305/)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 17, 2015, 06:52:19 pm
Hi guys,
Earlier today Trap15 came up with a mod for the excellent shooter GunNail that quiets that loud/irritating "sheild low" warning beep, so its only right that we now have a dip switch setting to enable/disable this excellent mod :D

For those interested, here's the discussion @ the shmups forum regarding the issue and mod:
http://shmups.system11.org/viewtopic.php?f=1&t=53276

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on April 29, 2015, 07:03:53 pm
Fixed the background noise in Galaxian and King & Balloon - been meaning to do this for ages, but couldn't figure it out!  Happy day :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on May 11, 2015, 04:46:05 pm
Hello friends and fans of FBAlpha,
Theres a problem with the excellent Capcom CPS2 shooter game Mars Matrix where all the sfx only come through the right speaker - this is especially annoying if playing with earbuds/headphones.  Been meaning to fix this one for ages, but couldn't come up with a good solution until now - so - happy day! :)

Here's 2 mp3 samples, Mars Matrix before and after the fix: http://sharesend.com/2hpjrw2p

That's it for now...
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 23, 2015, 11:31:16 pm
*mr. d. clears tumbleweeds and dust off this thread*

big thanks to iq_132 for ninjakun!!
big thanks to vbt for nova 2001!!
*and a few tiny bugfixes by me*

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on June 24, 2015, 04:31:05 pm
great job !! :cool: :cool: :cool: :cool:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 24, 2015, 04:48:56 pm
Nice Work Fellas!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on June 25, 2015, 01:18:01 am
Awesome
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 25, 2015, 09:22:59 am
Getting a small issue with the Japan version of Nova2001 when i try to coin it up the game just resets and does it's Arcade
bootup sequence again also player 2 coin isn't working  either if i set it to Free Play the game starts and plays fine

Not sure if it does this in FBA or it's a problem my end in FBL BTW the Nova 2001 USA version coins up and plays ok
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 25, 2015, 01:29:22 pm
Gamez Fan, thats a known issue with the rom, I'll see if theres a way around the problem.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on June 25, 2015, 02:11:02 pm
also there is one missing game : Raiders5, i add it ?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 25, 2015, 02:16:30 pm
also there is one missing game : Raiders5, i add it ?
I was hoping you would! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 25, 2015, 03:56:51 pm
Gamez Fan, thats a known issue with the rom, I'll see if theres a way around the problem.

Ok thanks for the heads up i take it this happens in latest MAME as well..??? Reason i ask is in my older xbox MAME Emulator
the game coins ok maybe a fix can be found in an older MAME84 driver..??? But it's no big deal really i cant see many folks using
the Jap rom when there's a USA version to be had
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 26, 2015, 08:27:37 pm
Raiden II / DX coin inputs are now perfect :)  Yay!!

Fix info:
part 1: Coin inputs need to be held for 4 frames, no more (like, if 5 is held down)
part 2: run 1 frame of the game, then reset it with a watchdawg. (yes, really)

I suspect some sort of banking issue or something which causes the need to rest the game after a frame.  Tomorrow I'll try to figure out the real cause so the dawg can be removed.

best regards,
- dink

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 27, 2015, 09:30:50 am
@dink good job!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 27, 2015, 09:49:17 am
Fantastic! Care to see if you can do the same with the pgm games? IIRC some of them have trouble with the coin line not being held long enough.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 27, 2015, 09:56:14 am
iq_132, which games?  All the ones I've tried works fine, so maybe its one I'm missing/forgot about?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 27, 2015, 10:35:12 am
Raiden2/dx now fixed properly with hack removed. yay! :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on June 27, 2015, 12:56:30 pm
Nice work!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: SeiferAlmasy on June 27, 2015, 12:58:09 pm
Very nice, dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on June 27, 2015, 01:37:07 pm
Nice Dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on June 27, 2015, 03:05:37 pm
Raiden2/dx now fixed properly with hack removed. yay! :D

Fantastico!! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Freddy on June 27, 2015, 03:52:29 pm
Fantastico!! :)

Muito bom!!!  :cool:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on June 30, 2015, 05:49:33 pm
Irem M62 games now have drums! :)

Inspired by the recent analog-emulated drums added to MAME for Horizon & Kid Niki, I decided that the Roland TR-606 drumkit sounded better, used a lot less resources and wasn't so buggy/clicky ;)

Here's a zip with 3 mp3 recordings of the games playing in FBA: http://sharesend.com/0fkjgs8f

EDIT: a copy-right free tr-606 drumkit, put in fba\support\samples - http://sharesend.com/32ux720g and be ready for the next release.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 01, 2015, 10:24:16 am
Drumkit enabled to Spelunker I and II & The Battle-Road also :) How awesome is that.. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 01, 2015, 03:19:46 pm
Heres a little video demonstration of Spelunker with the new drumkit feature.
https://www.youtube.com/watch?v=-gdFjS5J_dY

Spelunker II
https://www.youtube.com/watch?v=3lRVZmLXe0I

Horizon
https://www.youtube.com/watch?v=vjVjMulob7o

Kid Niki
https://www.youtube.com/watch?v=RnV9mdUOQHM

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: JacKc on July 02, 2015, 04:50:34 am
Nice job dink  :cool:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 02, 2015, 09:21:27 am
thanks :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 02, 2015, 12:09:59 pm
Been busy working away on something the last couple of days and took my eye of the ball just seen this now and
wanna say Great Work Dink!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 05, 2015, 08:42:30 pm
More great news:

Konami's Finalizer has proper/working music/sound now

and even greater!!

Kabuki-Z finally lives in FBAlpha!!

(now if we can only come up with a crash-fix for tshingen / Takeda Shingen.....)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: megazoid on July 09, 2015, 11:16:40 am
Hi guys
Is Overdrive by konami playable in FBA, sorry if this has been asked before but only just joined up and there is a shit load of content to wade through.
Really dying to play this game it was one i really enjoyed during my childhood.
Cheers for any info.
Matt.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 09, 2015, 11:34:24 am
Hi guys
Is Overdrive by konami playable in FBA, sorry if this has been asked before but only just joined up and there is a shit load of content to wade through.
Really dying to play this game it was one i really enjoyed during my childhood.
Cheers for any info.
Matt.

Nope OverDrive is not playable in FBA or any Emulator for that matter
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on July 09, 2015, 10:41:16 pm
Graphic glitch on Sand Scorpion (sandscrp)  game
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 10, 2015, 07:27:03 pm
Thanks for the report, WILOWAR :)
For reference, here's a savestate which brings you (me or iq) to the part where the background tiles start to go missing. 
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 10, 2015, 07:39:29 pm
I just spent the past few days working on Kozure Ookami, the excellent samurai game by Nichibutsu.  The game had a handfull of bugs and I'm happy to announce that they no longer exist :)

Here's some screenies...



Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 10, 2015, 07:44:52 pm
@Dink you finally got it well done im sure it feels good after all the hours of trying to get this game fixed
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on July 10, 2015, 11:37:27 pm
Way to go Dink. You da man.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on July 12, 2015, 02:47:02 am
I was hoping you would! :)

wip with Dink :
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 12, 2015, 09:03:15 am
Its way too early to post that picture.  :(
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on July 12, 2015, 11:11:28 am
Its way too early to post that picture.  :(
ok, sorry dink :(
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 12, 2015, 02:34:37 pm
Looks pretty good to me!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 12, 2015, 03:06:45 pm
no, this does:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 13, 2015, 07:33:50 am
Dink / vbt great work guys!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on July 13, 2015, 01:44:09 pm
Graphic glitch on Varia Metal (vmetal) - special attack

Graphic glitch on Jail Break Konami (jailbreak)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 13, 2015, 05:49:38 pm
@vbt/dink nive job thats another driver completely done and dusted
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on July 13, 2015, 11:36:55 pm
Graphic glitch on Onna Sansirou - Typhoon Gal (set 1) (onna34ro)

Gun Frontier (Japan) (gunfrontj), Gun & Frontier (gunfront) - Incorrect position of  sprite 1 player
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 15, 2015, 10:28:41 pm
Color lookup-table effect code added for Armed Formation, Legion - Spinner 87, Crazy Climber 2 & Kozure Ookami (Lone Wolf and Cub).

This gives these games a new depth of dimension by casting a neat shimmering effect on bullets/lasers/blood and so on.  Its kinda hard to capture in a picture, so.. look forward to it in the next release of your favorite emulator :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 16, 2015, 09:34:46 pm
Terra Force by Nichibutsu is finally fully-playable in FBAlpha!!!

Fixed scrolling fg layer
Fixed chaotic music tempo
Fixed missing text layer (by adding the nb1414m4 mcu/text blitter)
Fixed certain text effects by adding support for text-layer priorities
There is 1 small problem left with the text layer not clearing right in some situations, but.. saving that for tomorow :)fixed! see last piccy and compare with the first title screen :)
.. this was one of those games that I had tried and given up on several times, and deemed unfixable.  Times are good :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 25, 2015, 11:44:52 pm
Here's a gift for my good friend Zazzone - and everyone else :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 26, 2015, 03:47:45 pm
I really dig  dig-dug :) Nice work adding it!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 26, 2015, 09:22:02 pm
FBA: kid tested & approved :)

Saturday night when I finished the Dig Dug driver & got it into a playable state, my buddys nephew (10yrs) saw me playing it, and wanted to play - we both ended up playing it for the next hour and a half and having a blast. (literally!)

Sunday morning comes along, and my buddy is trying to get his nephew to play playstation with him, and the kid wants to play some more Dig Dug.  On top of it all, he ended up talking about it all day, too  :biggrin:

What a weekend!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: SeiferAlmasy on July 26, 2015, 09:38:13 pm
Nice work dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2015, 03:01:27 pm
Thanks :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2015, 03:07:20 pm
We now have a Pokey soundcore, which brings music&sfx to Tetris by Atari Games (romset: atetris.zip) :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on July 28, 2015, 03:20:53 pm
That makes me want to port Asteroids pretty bad. ^^
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 28, 2015, 03:47:07 pm
We now have a Pokey soundcore, which brings music&sfx to Tetris by Atari Games (romset: atetris.zip) :)

Hey nice job guys great to see it up and running in FBA sooooooo many great games use this sound core Alotta of them all
have analog controls though might be a pisser to hook those up in FBA But Asteroids cant wait for that one a real classic :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2015, 04:49:17 pm
I'd love to see Millipede in fba :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on July 28, 2015, 04:52:36 pm
I'd love to see Millipede in fba :)

Yeah Centipede and Millipede love those games as well Looking at the Atari Drivers obviously most folks would be after
atarisy1 and atarisy2 which would require alotta graft to port jedi.c for The Return Of The Jedi looks a good target small
single game driver
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 28, 2015, 11:59:52 pm
I'd love to see Millipede in fba :)

What a coincidence, I just happen to be writing a driver for Millipede!  Things are looking good :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 31, 2015, 07:18:09 pm
It's Millipede time in our favorite emulator!! :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Romhack on July 31, 2015, 07:33:26 pm
Great work dink!

FBA needs Track 'n Field now :rolleyes:
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 31, 2015, 08:37:19 pm
Centipede is up next, if I can get it to work with the joystick :)  I'd like to add high score support to Millipede / Centipede as well.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on July 31, 2015, 10:08:03 pm
it's... Centipede!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 01, 2015, 09:31:14 am
@dink nice work always great to see more classic Atari games playable in FBA
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 02, 2015, 06:03:43 am
Hi Dink. Can you add Pole Positon ? It's my favorite classic Namco arcade title.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 13, 2015, 03:27:32 pm
Found a graphic glitch on Mikie (mikie) -
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 13, 2015, 10:58:22 pm
Found a graphic glitch on Sonic Boom (FD1094 317-0053)(sonicbom)

Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 14, 2015, 11:30:07 am
Problem with sound (mute sound) on Mars Matrix (000412 USA) (mmatrix)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 14, 2015, 11:31:25 am
Found a graphic glitch on Wiggie Waggie (wiggie) left corner
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 14, 2015, 11:36:03 am
Found a graphic glitch on Wiggie Waggie (wiggie)

Yip you cant Wiggle your Waggle if the game has bad graphics :D
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: WILOWAR on August 14, 2015, 11:56:38 am
 Super -X (Mitchell) (superxm) Game freeze
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 14, 2015, 02:17:06 pm
WILOWAR: thanks for the reports!

for mars matrix:  edit game inputs (F5), set a key to "volume up" (you may need to scroll down a bit), press OK then start a game & press this key until its at the volume you wish.  also make sure "volume down" isn't conflicting with anything else - or just clear input with "clear lock" checked.

for Super-X: exit the game or close/reload FBA, go to "Misc" -> "Options" and uncheck "Use assembly MC68000 core".  If this doesn't help and you are using the 64bit FBA, get the 32bit one instead. and/or ctrl-F5 and set the dips to default.

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 14, 2015, 10:21:01 pm
Takeda Shingen  aka  Shingen Samurai Fighter on Jaleco Megasystem 1.

This game has a sprite effect that is unemulated in MAME and FBA.  When your samurai has the flashing sword powerup and you kill a baddie, they die in a mess of pixelated blocks, its a neat effect - tonight I figured out how to emulate it :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 15, 2015, 10:02:33 am
Nice work derek game sure looks better now with that graphical feature Emulated correctly
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 19, 2015, 09:38:14 pm
For my buddy Zazzone (again)

p.s. the request lines are not open, but as you can see - being a faithful tester has its benefits :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Treble Winner on August 20, 2015, 01:55:58 am
Very nice work dink. :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 20, 2015, 06:52:08 am
Wow! That was fast! Nice work dink!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on August 20, 2015, 07:55:55 am
super job dink !
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 20, 2015, 08:14:11 am
Fantastico!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on August 20, 2015, 09:28:04 am
take note, if you used MAME as reference for PopEye our emulation has some flaws / unemulated hardware limitations.

http://mametesters.org/view.php?id=3725
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 20, 2015, 10:48:03 am
take note, if you used MAME as reference for PopEye our emulation has some flaws / unemulated hardware limitations.

http://mametesters.org/view.php?id=3725


Just for clarification, but is he saying that the transparent is set as black and covers the sprite behind it, or that it wipes out the sprite  behind it completely (overwrites a sprite framebuffer?) and is transparent, but without the sprite behind it? Also he mention sprite 0, is this only with the first sprite?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Haze on August 21, 2015, 08:03:17 am
I believe sprites have no real transparency, so wipe out sprite pixels of the sprite behind if they cover them (IIRC I did implement this bit in MAME)

there's also some complex DMA / priority issue that affects which sprite has priority in certain cases, calculated by the hardware on a per-scanline basis, the game also runs in an interlace mode so technically it's only half the scanlines update each frame, MAME doesn't really have native interlace support and just ends up treating it as a higher resolution game.

all in all I understand what's written there about as well as you do tho ;-)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 21, 2015, 08:42:35 am
Haze thanks for taking the time to explain these things :)

Until yesterday I had never seen level 2 and 3 - absolutely brilliant for a game from '82 :D

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 22, 2015, 12:25:39 am
I'm having a little issue with Sky Skipper, a few of the sprites are incorrectly flipped, I just can't figure it out.  Specifically the plane, King and Gorilla characters.  any ideas guys?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 24, 2015, 09:03:04 am
Another new addition to FBA - big thanks to iq_132 for help fixing the bad sprite issue :)
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 24, 2015, 06:11:16 pm
Nice going fellas Never played Sky Skipper Before and i kinda like it!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 25, 2015, 08:03:31 am
Its a great game, I never played it until doing the driver and I got hooked on it quite a bit.  Absolutely love the character design - especially the chicken :)  Watch out for that second loop, its insane!

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 25, 2015, 09:59:12 pm
in a joint iq_132-dink venture (teamwork).  jalecomegasys1 sprite mosaic effect emulated 99.5%

Video goodness: https://www.youtube.com/watch?v=AdktT-UvFuo
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 29, 2015, 11:48:13 pm
Ever since the excellent mini-review of Mr.Do's Castle in RetroGamer had reminded me what a great classic game I had been missing out on, I have been wanting to get this game in my favorite emulator.  Sure - we already had the ColecoVision version of it, but I wanted the arcade version :D

Tonight I present, Mr. Do's Castle for FB Alpha...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 30, 2015, 09:05:11 am
The next day...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: iq_132 on August 30, 2015, 09:53:11 am
Nice!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 30, 2015, 09:55:00 am
Dink "do"'n the classics well done man
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on August 30, 2015, 03:03:46 pm
and a couple more...
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: vbt on August 30, 2015, 06:35:20 pm
great job dink !!! all these games in the same driver ?
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: gamez fan on August 30, 2015, 07:54:59 pm
great job dink !!! all these games in the same driver ?

Yip same driver daddy-oh!!!
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on September 03, 2015, 11:11:25 pm
Friends,
Our Mr.Do (original Mr.Do!) driver got a nice make-over tonight, fixing a couple of bugs and bringing the emulation quality up all the way [to 11] :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: csmart on September 04, 2015, 12:26:04 am
Great job as always Dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 06, 2015, 11:37:52 pm
A few weeks ago my heart sank as I realized that one of my favorite classic games ever (other than Centipede/Millipede) - Warp Warp aka Warp & Warp had used an i8080 cpu - a cpu which FBA doesn't support.  I was thinking, this game will probably never make it into my favorite emulator.  Drat.

2 days ago I noticed Space Invaders in our games list.  That game uses an i8080, how is this possible?  Digging a little deeper I see "they" (probably iq_132) used the Z80 core to run the i8080 code.  2 minutes and a quick google later, I found out that the Z80 is fully i8080-compatible.  "Wow, what a joyous day", he said.

Here's an early development video from several years ago... uh; - I mean, yesterday:
https://www.youtube.com/watch?v=dQsLjsmxge4

Fast-forward to today: (with sound! *click piccy for happy scanlines*)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 08, 2015, 08:09:59 am
One neat factoid regarding Warp Warp, other than the bullet - everything is done with characters, if you pause the game in mid-action and step through it frame-by-frame with the f1 key, you'll notice that everything moves in half-character movements.  If you're not sure about what I mean by characters - think of back to the C64/Vic-20 days with magazine type-in programs & user-defined characters - like that :)  The only thing that sort-of resembles a sprite is the 4x4 pixel "bullet" that the main character fires - it can sorta do smooth-scrolling by moving in 2 pixel incremements.  They really did a good job considering the hardware limitations they had in 1981 :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 08, 2015, 08:20:16 am
2 days ago I noticed Space Invaders in our games list.  That game uses an i8080, how is this possible?  Digging a little deeper I see "they" (probably iq_132) used the Z80 core to run the i8080 code.  2 minutes and a quick google later, I found out that the Z80 is fully i8080-compatible.  "Wow, what a joyous day", he said.
Yup! That one is mine. Nice work on Warp Warp :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 10, 2015, 11:35:47 pm
From the "Older games need love too" department:
Universal's Ladybug, Dorodon & Space Raider controls converted to 4-way inputs.
Ever notice, in older games, that the player stops dead in its tracks on some games when you try to move diagonally?  This process solves that problem :)

Recently a bunch of older games were converted this way, most notably of them was Pac-Man/MS Pac-Man.  The process is kinda convoluted at the moment - a chunk of code needs to be added to each driver where 4-way mode is needed.  In the future I would like to add this functionality to the FBA input-processing code, so that all that's needed is a simple flag in the game driver to enable 4way mode.  (who knows - maybe someone else wants to beat me to it? *hint*Barry*hint*)  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 12, 2015, 03:39:08 pm
Another new driver, this time for Mirax by Current Technologies from 1985.  Its a Space-Harrier type game with music that reminds me of Zanac on MSX mixed with Gyruss in a weird way :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 12, 2015, 03:58:04 pm
Nice work dink chalk up another one and a good un at that
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on September 12, 2015, 04:03:46 pm
Yes dink is actually on porting drivers MODE ON  :biggrin: and i won't complain about it.

Nice job dink !!!
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on September 12, 2015, 04:23:56 pm
great job dink, don't stop :)
Title: Re: dink's FBA Development & Fixes thread
Post by: manliodp on September 14, 2015, 04:34:05 pm
May I dare to share a request Dink, since you're in porting drivers mode on? :P
It's Nintendo VS system.. I really think FBA needs some Super Mario Bros love for its 30th anniversary :P
Obv feel free to ignore this request if not possible.

Thank you very very much for all your effort on other tasks.


Manlio
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 14, 2015, 05:21:18 pm
Oldschool classics++;
~~~~~~~~~~~~~~~
8088 gamecode on FBA, but how is this possible??  No, I didn't port a new CPU core.  I had a dream, that it might have involved a large hammer.  :biggrin:

.........Really, just a NEC V20!
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 14, 2015, 05:29:56 pm
@dink Sometimes you just gotta try shit see if it'll work and it's great when it does well done man!!! i love Q-Bert
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 14, 2015, 05:38:32 pm
Oldschool classics++;
~~~~~~~~~~~~~~~
8088 gamecode on FBA, but how is this possible??  No, I didn't port a new CPU core.  I had a dream, that it might have involved a large hammer.  :biggrin:

.........Really, just a NEC V20!

That's awesome! I didn't know that. ^^ Nice work. Q*Bert has been on my list since I started working on FBA! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 14, 2015, 05:45:15 pm
That's awesome! I didn't know that. ^^ Nice work. Q*Bert has been on my list since I started working on FBA! :)

Yeah totally nice find that a 8088 CPU can double up as a v20 CPU makes me wonder what other CPU's are interchangeable like that
i guess the info's out there somewhere
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 14, 2015, 06:05:21 pm
Yeah totally nice find that a 8088 CPU can double up as a v20 CPU makes me wonder what other CPU's are interchangeable like that
i guess the info's out there somewhere
The only other one I can think of is the Z80 being compatible with the i8080.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 18, 2015, 09:07:49 am
Almost forgot about these...
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 18, 2015, 09:23:21 am
Nice addtions those games thanks for adding em
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 19, 2015, 12:43:56 am
I noticed that you added the Namco's Warp Warp driver... would it be possible to add the drivers for other Namco's i8080 games? (Bomb Bee, Cutie Q, Gee Bee, Kaitei Takara Sagashi, Navalone and SOS)
Thanks a lot for your work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 19, 2015, 07:57:32 am
I noticed that you added the Namco's Warp Warp driver... would it be possible to add the drivers for other Namco's i8080 games? (Bomb Bee, Cutie Q, Gee Bee, Kaitei Takara Sagashi, Navalone and SOS)
Thanks a lot for your work! :)
I second that!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 19, 2015, 08:41:30 am
I'm not really feelin' those other games. :/  but, uh, perhaps some day.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 19, 2015, 09:25:10 am
I'm not really feelin' those other games. :/  but, uh, perhaps some day.

I hope in your goodwill !  :p
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 20, 2015, 10:43:45 pm
Gab75, I'm afraid you have used up all your driver requests until 2018 ;)

For everyone else, Kaitei, Navarone and Cutieq are at least somewhat playable.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 21, 2015, 03:27:51 am
OH NO !  :eek: I had prepared a new "weighty" driver requests!!! I'm joking!  :p
Nice work Dink ... thanks a lot!  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 23, 2015, 06:33:49 pm
Last night a friend had alerted me to some issues in the Capcom Commando driver:
*occasional flickering crap at the bottom of the screen
*music wasn't in sync with the game
*some sound effects were totally wrong (f.ex: heli landing/taking off noise)

All of these issues have been fixed.  The [boring] details/fix list:
sprite buffering had to be moved to vbl irq, instead of at the end of the frame.
the FM timers were not running at all, [oops! :)]
some small adjustments to timing.

Classics need lovin' too :)
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 26, 2015, 10:57:54 am
Nice work! So the short list of people who are cut off for the next few years - Gamez_fan and Gab75. lol
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 26, 2015, 12:16:22 pm
@Dink great to see some more classics improved in FBA nice job man!!!

@IQ_132 ya big Howler!!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 26, 2015, 02:25:57 pm
Nice work! So the short list of people who are cut off for the next few years - Gamez_fan and Gab75. lol

... for the "new requests" I'll have to come in the forum "under false pretences" !!!  :p
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 27, 2015, 11:16:46 pm
Recent small changes/fixes to FBA..
Pirate Ship Higemaru: Improved timing.  fixes & improves the sound/music and gets rid of slowdowns.  Changed the inputs to 4-way mode.

Ghosts and Goblins: Changed the sprite buffering timing, this fixes the problem where the gravestones jiggle as Arthur walks.

A joint-effort between iq_132 and dink: create generalized joystick processing code -> convert to 4way, convert to active=low, clear opposites.  Also compile the inputs in a nice fashion.

Son Son: fixed a sprite-wrapping issue that caused some sprites to get cut-off near the edges of the screen.

Commando: Improve sfx & music by actually running the fm timers, fix occasional ghost-sprite-garbage at the bottom of the screen by tweaking the sprite buffering timing.

Properly clone-ize the Coleco driver (aka fix parent/clone relationships)

Roc 'n Rope: Fix savestates

Lower the PSG volume for Neogeo, fixes the irritating beeping noise in Zupapa.  Funny coincidence - a similar change got checked in for MAME a day after I checked this in.  No joke :)  I had to check the logs just to see, great minds think alike... or, play the same game and get irritated by that annoying beeping sound ;)

that's all for now..
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 28, 2015, 10:58:03 pm
Just a small update today: some of the ay8910 soundfx in Nemesis & Gradius never sounded right to me, but I could never figure out the cause of the problem.  today, after a bit of experimenting, I found that some of the commands to the 8910 were getting skipped - thus causing certain sfx to sound weird/bad.  Well, another problem solved - woohoo! :)
edit: ... a bit later on... noticed a slight video glitch in Nemesis every so-often.  easily fixed by correcting the vbl timing.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 05, 2015, 08:29:20 pm
So, in the next version of FBA - Ken-go aka Lightning Swords will actually be playable.  The game itself was fixed several months ago but I forgot to set it for non-debug builds - oops!  Also, thanks to the great system11 (and JacKc for adding it to FBA), it'll play Lightning Swords as well.

Earlier tonight Zazzone alerted me to a bug in Snow Bros - Nick and Tom, theres some pretty horrible slowdown later on in the game - and - especially during boss fights.  I used my frame-timing-fu move and all is well.  it ended well too.  Zazzone tested and approved.

that's all for today..
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 06, 2015, 12:16:40 pm
Thanks for this other addition!  :wink:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 06, 2015, 03:49:14 pm
it's probably the greatest samurai game I know of :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 09, 2015, 07:23:09 pm
The next FBA will have an option to record an avi video of your game(s)!

This feature was ported over from FBA Plus and improved a little bit with flipped screen support, less leaky avi handles, pixel doubling and more :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 10, 2015, 01:28:31 am
I'm looking forward to see (and try) the next FBA release! :)

... ehm, if I could have a dispensation for my "driver requests limit" ... I'm joking!  :p  :p
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 10, 2015, 08:33:04 am
Yesterday was a nice day, I spent all day working on and tweaking the avi writer code.  First I had to write code to flip the screen so games like Mr. Do's Castle & Warp Warp wouldn't be upside-down and backwards.  This took nearly the entire day of trial and error because I didn't know a thing about processing raw screen data. (I'm a bit slow as well.)
At this point, all the games are now at their correct orientation when viewed from the recorded .avi. 
There was another problem - though - even at the highest compression rate, the video quality looked horrible, like an old vhs recording - even worse when uploaded to youtube. (see the first test, links below)  The resulting file size was huge as well.  At 1x1 pixel mode, especially on older games the compressor basically thinks data like that is static.  If you think about it - in tv/movies/etc even the smallest things usually tend to be bigger than a pixel or 2, and that's what the compressors are made for.  To get around this problem, I doubled-up the pixels before feeding them into the compressor - and - tada, perfect compressed video. (see the second test video, below)

First test of the avi writer, yesterday evening: https://www.youtube.com/watch?v=bPBKHlPY144

Second test, about 3 hours later.  Exact same compression settings: https://www.youtube.com/watch?v=h-FWlWTf_4o
Notice any differences? :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 10, 2015, 03:23:50 pm
The differences between two videos are "huge" ! Great work! ;)

To get around this problem, I doubled-up the pixels before feeding them into the compressor - and - tada, perfect compressed video. (see the second test video, below)

... indeed the native resolution is 240p in the first video, while it's 480p in the second one.
Title: Re: dink's FBA Development & Fixes thread
Post by: Haze on October 12, 2015, 03:44:05 pm
for YouTube videos you really want to be outputting in a format that ends up as a 60fps video, the difference is night and day.  I think that means at least 720p (so the vertical resolution of your upload must be 720 or above) and maybe some other bits and pieces.

You might not notice it on centipede, but any games which flicker sprites every other frame are unwatchable using the 24/30fps YouTube encodes most things at.


Title: Re: dink's FBA Development & Fixes thread
Post by: Haze on October 12, 2015, 05:05:58 pm
As a followup, check this as an example

https://www.youtube.com/watch?v=GHK4jLW9jsc

0:25 seconds in

if you view the video in YouTube's 720p60 mode the flicker on the character looks correct, you can see the sprite flicker to show invulnerability as it would in the emulation

if you view it at the 480p mode (not 60fps) then the flicker doesn't render correctly - in some cases this can result in sprites that flicker becoming completely invisible in the emulation.  The charging effect on the sword used shortly after suffers from the same issue.

While YouTube isn't exactly helpful with this it simply doesn't make sense to upload emulation videos at anything less than 720p60 if you want to avoid them becoming mangled.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 12, 2015, 09:52:42 pm
Haze,
thanks for the tips & info.  I always hated that effect when every other frame caused the  sprite to flash, and the video encoder only sampled every other frame.  So the video really has to be in 720p for 60hz video?  YT won't allow any lower resolution run at 60fps? :/

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 12, 2015, 10:03:34 pm
FBA news for today...

fix-o-rama
Dingo, the classic by Ashby from '83 had issues with the music playing way too fast, its alright now.

Joe and Mac Returns, after playing the new version to the end with my buddy Zazzone over the 'net, I noticed a little bug in our deco16 rowscrolling.  oops.

Caveman Ninja, after fixing deco16's rowscrolling for Joe and Mac Returns, I wanted to play through Caveman Ninja to make sure I didn't mess IT up.  I remember spending a week fixing the rowscrolling in Caveman Ninja waaay back when I didn't know anything about graphics.  Graphics are OK. .. but...

Caveman Ninja pt.2, Some of the sound effects weren't right, and the tempo of the music would go offbeat sometimes.  now its perfect :D  timer issue.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 13, 2015, 03:16:40 am
Haze,
thanks for the tips & info.  I always hated that effect when every other frame caused the  sprite to flash, and the video encoder only sampled every other frame.  So the video really has to be in 720p for 60hz video?  YT won't allow any lower resolution run at 60fps? :/

best regards,
- dink

Potentially the videos can run to 60 fps at any resolution, however (IIRC) the YouTube codecs support "60Hz" only in HD and FullHD resolutions (720p60 and 1080p60)...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 14, 2015, 08:22:37 am
this boggles my mind.  can't seem to get the rowscroll working right in the ending of Joe and Mac returns, the ending of Caveman Ninja and the intro to Mutant Fighter.  If I fix the clouds for Caveman Ninja[back layer], then the "Produced by..etc."[front layer] text is cut off.  And I definately can't get it working right in all 3 games at once.  I'm posting these states here so I can go back to it at a later time - or - if someone wants to join in on the  fun.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 14, 2015, 12:49:56 pm
I'd guess (without looking) that the issue is due to the y scrolling. It needs to be added to the row scroll offset selection. Not sure if before or after...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 15, 2015, 11:49:53 pm
I'd guess (without looking) that the issue is due to the y scrolling. It needs to be added to the row scroll offset selection. Not sure if before or after...

I tried doing just that, similar to how the latest MAME does it, even.. no dice :/
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 15, 2015, 11:51:25 pm
Added some games to the Marine Boy driver.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 16, 2015, 01:42:38 am
Added some games to the Marine Boy driver.

Thanks a lot!  :smilie:
I really like to see again the games of the early 1980s... they remind me the childhood !  :p
Watching SEGA Hopper Robo another SEGA '83 game came to mind (that I liked much)... Yamato...  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 16, 2015, 07:21:13 am
Nice!
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 16, 2015, 09:01:30 am
@dink more new games up and running in FBA nice one!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 17, 2015, 08:18:13 am
Added the rest of the games to the Marine Boy driver... "Wanted" has 2 graphics issues, but the rest are fine.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 18, 2015, 10:52:22 pm
What's new for today...
Fixed the positional mini-map at the bottom-right area of the screen in Rygar.
Fixed a handfull of little bugs in the new games, thanks to some heavy playtesting by the best tester around.  Thanks Zazzone!

that's it for now,
best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on October 20, 2015, 07:42:48 am
Graphic glitch on Onna Sansirou - Typhoon Gal (set 1) (onna34ro)

Gun Frontier (Japan) (gunfrontj), Gun & Frontier (gunfront) - Incorrect position of  sprite 1 player

WILOWAR:
I finally figured out the priority & layers for the flstory driver, thus fixing onna sansirou - typhoon gal.

regarding Gun & Frontier, I don't see anything out of order, please post a screencap?

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 21, 2015, 12:01:59 am
FBA gets another game!  This time its Rumba Lumber.  You're a cave-hippie from the stoneages and one day your beard grew to enormous proportion.  You got the great idea to color it blue and chop wood.  From this point on, the game actually starts to get weird.  One would think that this game plays a bit like Pengo or Pirate Ship Higemaru, but it actually is more like Qix and the opposite of Qix all in one - with the ability to throw wheels.  Anyways, piccies:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 21, 2015, 01:30:04 am
FBA gets another game!  This time its Rumba Lumber.  You're a cave-hippie from the stoneages and one day your beard grew to enormous proportion.  One day you got the great idea to color it blue and chop wood.  From this point on, the game actually starts to get weird.  Anyways, piccies:

Thanks! Your work is a great contribution to FBA !  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 21, 2015, 08:29:24 am
FBA gets another game!  This time its Rumba Lumber.  You're a cave-hippie from the stoneages and one day your beard grew to enormous proportion.  You got the great idea to color it blue and chop wood.  From this point on, the game actually starts to get weird.  Anyways, piccies:

I like the synopsis. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 21, 2015, 11:48:41 am
I like the synopsis. :)

Yip nice wee game pure Taito in style thanks dink for adding it
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 30, 2015, 07:22:50 pm
Some new additions:
Toki no Senshi / Chrono Soldier (it looks maze-ish, but it really isn't - it's more like Commando/Jackal)
This was originally added by vbt a few months back but it was bugged, today I managed to fix the bugs :)

UFO Senshi Yohko Chan - another good "walk around shooting the crap out of everything" sorta game.
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: Gab75 on October 31, 2015, 01:03:01 am
We now have a Pokey soundcore, which brings music&sfx to Tetris by Atari Games (romset: atetris.zip) :)

Out of curiosity... now, for a whole sound sub-system emulation of old Atari hardwares (like Atari System 1, System 2 and Star Wars Vector), is it lacking only the TMS5220 LPC core?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 31, 2015, 10:02:42 pm
Here's a really excellent new addition to the FBA's SMS driver, it's Geki Oko PunPun Maru - which, I think, roughly translates to "give me back my cake....-Maru."  As you start the game, it plays a little cut-scene comic where a little ninja steals the most tasty and delicious cake from your kitchen. The game plays almost exactly like the original Mario Bros. game, with more diverse enemies and yet completely lacking a [POW] whatchamacallit.  The music is rather nice and Japanese-inspired as well.
Grab the roms here: (yes, homebrew!) http://www.smspower.org/Homebrew/GekiokoPunPunMaru-SMS?sid=19f92e899cddeb7b86fa59d589174be7
Howto: after downloading rename the zip punpun.zip and toss it into your roms dir. [or SMS directory if you like to be organized] then wait patiently for the next FBA  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 04, 2015, 09:51:06 am
I can hardly believe it, Donkey Kong 3 now has proper sfx & music in FBAlpha.
Proof: https://www.youtube.com/watch?v=Od7zbS8bp74
If you guys only knew the amount of hours I put into cracking this one.  yeeesh. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on November 04, 2015, 09:58:01 am
Lovely work! This one had me stumped. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Romhack on November 04, 2015, 10:19:43 am
Amazing!!! great work dink.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 04, 2015, 11:22:10 am
@dink It's All Fan-Dabby-Dozy!!!  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: csmart on November 04, 2015, 06:15:38 pm
Great work Dink adding another classic to the working as it should list.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 14, 2015, 06:30:13 pm
Good news for Capcom's The Speed Rumbler / Rush & Crash, a couple bugs were fixed - layer priorities were arranged in the correct order and a "work-around/fix" to get rid of the horrible slowdown in the game.  The game would slow down to unplayable speeds when more than 1 car and a few bullets were onscreen.  Also uncovered another bug when I got to the 3rd or 4th level, so I ended up playtesting to the end just to be sure.
The last 2 levels are CRAZY-hard! :)

best regards,
- dink
Title: Re: dink's FBA Fixes thread (battle garegga, scramble, super cobra, tengai & more)
Post by: dink on November 17, 2015, 07:55:37 am
Graphic glitch on Sand Scorpion (sandscrp)  game

This is finally fixed, thanks for the report! :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 17, 2015, 03:14:57 pm
@dink nice goin man!!! two more fixes done you'll run outa fixes to do at this rate :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on November 17, 2015, 03:34:19 pm
@dink nice goin man!!! two more fixes done you'll run outa fixes to do at this rate :)
I am a bug infestation. He will never run out of my bugs to squash as long as I'm on the FBA team. :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 19, 2015, 09:04:02 pm
Thursday Bugfix-o-rama!

Master of Weapon using savestates would crash.
Shadow Force - fixed oki msm6295 banking
Sky Army - sometimes the bridge-piece chinook (heli w/2 props) doesn`t deliver the pieces when at home base. (sprite wrapping issue)
Pass - music on level3+ would disapear
Nostradamus - fix wonky music tempo (in-game)
Haunted Castle - same as Nostradamus - big thanks to SNK_Dude for reporting & reminding me of this one

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 21, 2015, 07:28:17 am
Fixed music in Knuckle Bash 2 :) (thanks to gamez fan for reporting!)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 21, 2015, 10:18:20 am
Fixed music in Knuckle Bash 2 :) (thanks to gamez fan for reporting!)

Nice one hope it wasn't too much bother.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 21, 2015, 09:30:41 pm
fixed missing sprites in ZigZag (thanks Zazzone)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 22, 2015, 09:05:20 am
so.. now FBAlpha is the first emulator with a working end(end)-boss in Nostradamus.

video: https://www.youtube.com/watch?v=3gni4IGPnx0
This is how it looked before & in MAME https://youtu.be/1oicnBZSX6M?t=27m8s

[click the little pic below]
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 22, 2015, 10:18:28 pm
MAME now also has a fixed Nostradamus. The legendary Haze came up with a more refined/much better way to solve the problem - shooter fans rejoice! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on November 23, 2015, 04:51:30 am
Well done dink :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 27, 2015, 11:52:48 am
There was an issue that stumped me for a while, in the game Tiger Road when going through a doorway you would see the background from a different scene, the top of the current scene, or even a bunch of garbage tiles (later on in the game) for about 2 seconds as your player walked through the door.  Big thanks to iq_132, the problem has been solved :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on November 27, 2015, 01:05:11 pm
There was an issue that stumped me for a while, in the game Tiger Road when going through a doorway you would see the background from a different scene, the top of the current scene, or even a bunch of garbage tiles (later on in the game) for about 2 seconds as your player walked through the door.  Big thanks to iq_132, the problem has been solved :)
It's easier to fix the bug when you caused it. lol
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 28, 2015, 10:40:50 pm
From the "even turds need to be polished" files:
Several bugs in Varia Metal have been squashed tonight thanks to the combined efforts of iq_132 and dink(me).  yay!

Secondly: unlike in Gradius or Nemesis where slowdown is actually helpfull, the game Sand Scorpion stops processing input during slowdown.  This makes it at least 10x worse than slowdown in any reasonable game.  Even worse, our version of Sand Scorpion does this worse than MAME.  I've added a little a little tweak to help clear up the loss of input during the slowdown in the meantime until we come up with a better solution.

that's it for now...
- dink 
Title: Re: dink's FBA Development & Fixes thread
Post by: BisonSAS on November 29, 2015, 07:10:51 am
Fixed music in Knuckle Bash 2 :) (thanks to gamez fan for reporting!)
I fixed this long time. (24-04-2010) Never added in FB Alpha. :redface:

Look: Toaplan cleaned up (http://http://neo-source.com/index.php?topic=1329.msg11275#msg11275)


Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 29, 2015, 09:12:40 am
I fixed this long time. (24-04-2010) Never added in FB Alpha. :redface:

Look: Toaplan cleaned up (http://http://neo-source.com/index.php?topic=1329.msg11275#msg11275)

This was before my time here (I think I joined in 2014).  Do you have anything else that didn't get merged?  Please remember, before SVN it was hard to keep things organized.  I don't think your changes have been skipped on purpose!

EDIT: I merged your changes from d_toaplan.zip

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 04, 2015, 02:19:46 pm
So, I played a bit of Blood Bros. last night and after a few games made it to stage 2 on 1 coin.  (continues are no fun!)  It was also the first time I got to stage 2, and the first time I noticed the problem in the first picture (click it to expand).
After a few hours of debugging/hacking around I came up with a solution, it needed a little overhaul on the sprite/tile rendering code and order, and a priority buffer to keep track of the foreground/sprite relationships.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on December 05, 2015, 08:41:33 am
BTW thats 50 pages full of fixes now well done man!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 05, 2015, 08:53:18 am
Technos' Mysterious Stones had a few things going against it - the music and sfx wasn't right (2 separate issues) and the palette wasn't as good as it could be.  That has all been fixed, now Mysterious Stones fans can get their Mysterious Stones fix.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 14, 2015, 11:08:33 pm
FINALLY realized what was wrong with our Megadrive timing and fixed it.  It took long enough - sorry about that.

Fixes things like frame breaking up in Gunstar Heroes, Ayrton Senna's Super Monaco GP II.  Completely broken games like Rock and Roll Racing, Mickey Mania and probably some others.

- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 15, 2015, 01:42:04 am
FINALLY realized what was wrong with our Megadrive timing and fixed it.  It took long enough - sorry about that.

Fixes things like frame breaking up in Gunstar Heroes, Ayrton Senna's Super Monaco GP II.  Completely broken games like Rock and Roll Racing, Mickey Mania and probably some others.

- dink

Great news! Thanks a lot! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 19, 2015, 09:56:08 am
Re: FBA Megadrive core news
1> dozens of unworking games are now working, special thanks to Gab75 for testing infos.
2> Sonic swims through water now - Its about time... :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on December 19, 2015, 11:23:26 am
Just out of curiosity, what games don't work on the MD driver?
Title: Re: dink's FBA Development & Fixes thread
Post by: Romhack on December 19, 2015, 11:45:40 am
Just out of curiosity, what games don't work on the MD driver?
Pier Solar would be great :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 19, 2015, 01:51:52 pm
Just out of curiosity, what games don't work on the MD driver?

As far as I know, mainly just some "prototype ROMs" don't work... great job dink! :)

PS: Gargoyles <md_gargoyle> works without the "assembly 68k core"... as dink wrote to me: go to misc -> options -> and uncheck "Use Assembly MC68000 core"!  You must restart fba before loading Gargoyles after this change.
Title: Re: dink's FBA Development & Fixes thread
Post by: Treble Winner on December 19, 2015, 04:50:52 pm
How are Mega-Lo-Mania now? It always had corrupted graphics.

The inputs never worked properly on Jimmy White's Whirlwind Snooker either before. Do they work now? Still amazing what Archer MacLean did with that one.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 19, 2015, 05:54:37 pm
iq_132 waaay to many to list.  look at the svn for the ones marked working, also a lot that were marked working were broken but now working.  I guess I should have made a list while I was fixing/testing/fixing things.
Romhack pm me the rom (final/non-beta) pls? :)
Treble Winner Snooker works fine, Mega-Lo-Mania has weird tiles here and there on some maps yet.

thanks,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 19, 2015, 11:08:14 pm
Megadrive update:
Burning force scrolls now(!!) :D
Mickey Mania: the moose level scrolls/animates
Rocket Knight Adventures, the guy swims in water now, instead of "air" :)

Also fixed:
The top line was always missing. (derp!)
Random crashes when reset/f3 was used.

happy-fun game time!! :D woohoo!
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 20, 2015, 08:58:19 pm
Please fix the Wolf Fang's sound problem too.  :smilie:

The arcade game Wolf Fang sounds like when a channel isn't playing. This bug was not present in the version 0.2.97.36. This is one of my all time favorite arcade games. I wanted to longplay it but the sound isn't too cool like this.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 21, 2015, 01:15:34 am
The arcade game Wolf Fang sounds like when a channel isn't playing. This bug was not present in the version 0.2.97.36. This is one of my all time favorite arcade games. I wanted to longplay it but the sound isn't too cool like this.

As I wrote in the "FBA Discussion" section, I checked all "Rohga Armor Force" ROMs (obviously with the latest FBA release) and the drums sound effects seem to be missing...
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 21, 2015, 09:33:06 am
As I wrote in the "FBA Discussion" section, I checked all "Rohga Armor Force" ROMs (obviously with the latest FBA release) and the drums sound effects seem to be missing...

Sorry for the double post. I will continue in the FBA Discussion.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 23, 2015, 10:24:22 am
There are an another bug with the Shadow Force every version. It crash with this error:

Guru Meditation #C0000005.00911EB6

Here is the complete log:

Code: [Select]
FB Alpha v0.2.97.37 fatal exception report (Wed Dec 23 16:22:28 2015
)

----------------------------------------------------------------------
Exception 0xC0000005 (EXCEPTION_ACCESS_VIOLATION) thrown.
EIP: 0x0091
 (attempting to write address 0x04CE4710)

EAX: 0x00000000, EBX: 0x7FFDB000, ECX: 0x00000000, EDX: 0x04CE4710
ESI: 0x04B65820, EDI: 0x0012F35E, ESP: 0x0012E8C8, EBP: 0x0012E92C

----------------------------------------------------------------------
System information:

OS:  Microsoft Windows XP Professional Szervizcsomag 3 (build 2600)
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz

Physical RAM: 2097151 KB (2047 MB) total, 1779832 KB (1738 MB) avail
Total RAM:    4194303 KB (4095 MB) total, 4194303 KB (4095 MB) avail
FB Alpha:       41416 KB in use (48864 KB peak, 47376 KB virtual)

Installed displays and display adapters:
    Plug and Play monitor on NVIDIA GeForce 9400 GT  (primary)

----------------------------------------------------------------------
FB Alpha information:

Built on Nov 3 2015, 18:51:37, using Visual C++ 2015 (XP).
    Optimised for X86 CPUs.
    Using Unicode for all text.
    Debug functionality absent.

MMX optimisations enabled.
Musashi emulation core enabled for MC680x0 family emulation.

Emulating shadfrce (Shadow Force (US Version 2))
    Vertical refresh is 60.00 Hz.
    CPU running at 100% of normal frequency.

Video settings:
    Selected module:    DirectDraw7 video output
    Interface settings: Running in windowed mode, $ix1054, 748bpp
                        Source image 320x256, 32bpp
                        Using generic software 15->32bpp wrapper
    Module settings:    Using Blt() to transfer the image
                        Using video memory for the final blit

Audio settings:
    Selected module:    DirectSound3 audio output
    Interface settings: Playback at 44100Hz, 100% volume
    Module settings:    Audio is delayed by approx. 83ms

Input settings:
    Selected module:    DirectInput8 input
    Interface settings: keyboard 0 System keyboard: Billentyűzet
                        mouse    0 System mouse: Eg?r

Profiling settings:
    Interface settings: Profiling module not initialised

----------------------------------------------------------------------
Detailed process information about fbaxp.exe:

fbaxp.exe (base address 0x00400000, size 34080 KB)

Exception occurred in module fbaxp.exe:
               fbaxp.exe (base address 0x00400000, size  34080 KB)

Modules loaded by fbaxp.exe:
               ntdll.dll (base address 0x7C900000, size    708 KB)
            kernel32.dll (base address 0x7C800000, size   1004 KB)
              USER32.dll (base address 0x7E360000, size    580 KB)
               GDI32.dll (base address 0x77F10000, size    292 KB)
            COMDLG32.dll (base address 0x76380000, size    292 KB)
            ADVAPI32.dll (base address 0x77DC0000, size    684 KB)
              RPCRT4.dll (base address 0x77E70000, size    584 KB)
             Secur32.dll (base address 0x77FE0000, size     68 KB)
            COMCTL32.dll (base address 0x773C0000, size   1036 KB)
              msvcrt.dll (base address 0x77C00000, size    352 KB)
             SHLWAPI.dll (base address 0x77F60000, size    472 KB)
             SHELL32.dll (base address 0x7C9C0000, size   8304 KB)
               WINMM.dll (base address 0x76B20000, size    184 KB)
               ole32.dll (base address 0x774D0000, size   1268 KB)
            SETUPAPI.dll (base address 0x77910000, size    984 KB)
             WININET.dll (base address 0x771A0000, size    680 KB)
             CRYPT32.dll (base address 0x77A70000, size    600 KB)
              MSASN1.dll (base address 0x77B10000, size     72 KB)
            OLEAUT32.dll (base address 0x77110000, size    556 KB)
            AVIFIL32.dll (base address 0x73AE0000, size     92 KB)
             MSACM32.dll (base address 0x77BD0000, size     84 KB)
             MSVFW32.dll (base address 0x75B80000, size    132 KB)
               IMM32.DLL (base address 0x76360000, size    116 KB)
                 LPK.DLL (base address 0x62E70000, size     36 KB)
               USP10.dll (base address 0x74D40000, size    428 KB)
              dsound.dll (base address 0x73EA0000, size    368 KB)
             VERSION.dll (base address 0x77BF0000, size     32 KB)
             dinput8.dll (base address 0x6D350000, size    228 KB)
               ddraw.dll (base address 0x736F0000, size    300 KB)
            DCIMAN32.dll (base address 0x73B50000, size     24 KB)
                d3d9.dll (base address 0x4FD10000, size   1688 KB)
             d3d8thk.dll (base address 0x6DED0000, size     24 KB)
            D3DX9_43.dll (base address 0x10000000, size   2044 KB)
             uxtheme.dll (base address 0x5B1D0000, size    224 KB)
               MSCTF.dll (base address 0x746D0000, size    304 KB)
            msctfime.ime (base address 0x75180000, size    184 KB)
                 HID.DLL (base address 0x68DF0000, size     36 KB)
            WINTRUST.dll (base address 0x76C20000, size    184 KB)
            IMAGEHLP.dll (base address 0x76C80000, size    160 KB)
              wdmaud.drv (base address 0x72CB0000, size     36 KB)
             msacm32.drv (base address 0x72CA0000, size     32 KB)
             midimap.dll (base address 0x77BC0000, size     28 KB)
              KsUser.dll (base address 0x73E70000, size     16 KB)
            RICHED20.DLL (base address 0x74DE0000, size    436 KB)

----------------------------------------------------------------------
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 23, 2015, 04:11:48 pm
There are an another bug with the Shadow Force every version. It crash with this error:

Guru Meditation #C0000005.00911EB6

I checked all three "Shadow Force" versions (shadfrce, shadfrcej, shadfrcejv2) and they seem to work fine... I used FBA 0.2.97.37 32 bit, with basic and enhanced blitter. You can try to change the video settings and delete the related "shadfrce*.ini" files (*/config/games).

PS: truth be honest, I made a quick test, then I can't know if the game crashes during an advanced stage.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 23, 2015, 05:18:09 pm
PS: truth be honest, I made a quick test, then I can't know if the game crashes during an advanced stage.

Now as you say it really not happen anywhere in the game. It only occurs in the Scientific Laboratory stage, when the bridge collapse under you and you fall down. But it occurs every time I tried no matter how I set up the video settings.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 23, 2015, 10:00:31 pm
Please give me a savestate from right before it crashes, so I can debug it and fix it.
p.s. use the exe I pm'd you, as it contains a few fixes for shadow force from earlier this month and I can't debug older savestates.

thanks,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 24, 2015, 08:41:38 am
I used the new .exe you send, the crash still occurs with "Shadow Force (US, Version 2)". I didn't tried it with other versions. Here is the save state and the log files attached to this post.

The save state is right before the crash. You just need to walk forward till the bridge break under you.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 25, 2015, 08:50:45 am
Thanks!  I will debug the issue when I get home (I'll be away for a day or 2 yet and without a compiler).

Some good news/progress on the Megadrive driver that I did before I left:
The Chaos Engine, Outrunners, Sonic 3d and a few others runs perfectly now - it took days of debugging and re-writing before I could get it working right.  There was a few times where I thought it would be impossible to ever get them working right together.  :eek:  A fix for one game would break the other, and so on. :eek:  A big part of the problem is the fact that each frame can vary on cycles/total cycles due to dma transfers stealing cycles from the processor, and the BurnTimer system is a bit finicky in this situation. 
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on December 25, 2015, 09:06:38 am
Oh that's right! Merry Christmas!  :biggrin:

You're welcome. I look forward to the new version. I hope the Wolf Fang's drum will be fixed too.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 31, 2015, 07:52:56 pm
Happy New Year everyone! :)

Been working nonstop on Megadrive, doing MD/Genesis research and so forth (for some reason it is really -addictively- interesting for me)

Fixed a ton of timing-related graphical quirks in the past couple days, added some vdp fixes/tricks and tonight I found a solution to a sound issue that has been bugging me (literally) for quite some time now - it was a 2 part fix - the irq's needed to be latched instead of held high for a line which fixed lost notes/too fast/too slow music during heavy video activity.  The second part was that we weren't carrying over the end of frame z80 cycle count, so every 60 frames or so, we running 1 scanline too many worth of z80 time on average.  The games which were affected the most by this are Williams Arcade Greatest Hits: the dac would get mucked up or disappear altogether in Sinistar and Doom Troopers: level 2's awesome music would drop notes or run too fast for a second or so every once in a while or when there was heavy player/screen movement. EDIT: also, Battle Squadron no longer requires a special fix/hack for the music :D

[and now for a bit of a rant that has nothing to do with FBA]

The Genesis/MD holds a special place in my nostalgia, because for me it was the last console to offer games that suits my generation / style.  I'll admit I'm a bit old-fasioned, but after the demise of this system sometime in the mid 90's, I had totally given up on games until late 2011.  Sure, there was a few good 2d game releases peppered in here and there in later consoles, but it was never the same. ;)

that's it for now,
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 31, 2015, 07:56:39 pm
Oh that's right! Merry Christmas!  :biggrin:

You're welcome. I look forward to the new version. I hope the Wolf Fang's drum will be fixed too.  :smilie:

Do you by chance mean Tecmo's Wild Fang?  If thats the case, the drums are working fine in the latest FBA - they're louder/more prominent than in MAME anyways.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 31, 2015, 08:41:13 pm
Happy New Year everyone! :)

Happy New Year to you too... and to the other forum users! :)

Thanks a lot for your work... now the megadrive emulation is really improved !
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 01, 2016, 09:37:22 am
Do you by chance mean Tecmo's Wild Fang?  If thats the case, the drums are working fine in the latest FBA - they're louder/more prominent than in MAME anyways.

best regards,
- dink

No, I mean Data East's Wolf Fang (or Rohga: Armor Force). The game alongside with Vapor Trail and Skull Fang on Arcade.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 01, 2016, 11:29:47 am
No, I mean Data East's Wolf Fang (or Rohga: Armor Force). The game alongside with Vapor Trail and Skull Fang on Arcade.

For an easier identification, the zipnames of main ROM and clones are: rohga, rohga1, rohga2, rohgah, rohgau and wolffang.
Title: Re: dink's FBA Development & Fixes thread
Post by: Bonky0013 on January 01, 2016, 01:54:49 pm
Happy new year  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 01, 2016, 03:00:32 pm
Thanks, sometimes I get confused :)
EDIT: Wild Fang / Rohga is fixed now.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 01, 2016, 05:06:05 pm
Happy new year  :biggrin:

Happy new year to you too! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: samo79 on January 01, 2016, 05:25:02 pm
@dink

Ok maybe a bit unrelated but do you think it could be possible to increase the performance of the Megadrive emulation ?
In the AmigaOS4 port of FBA i'm using i conducted a lot test related to the MegaDrive and in all of them i noted that turning off the audio is often the best solution to gain decent performance reaching the famous 50/60 FPS

Of course my Amiga in general is a bit slow so i will never expect 100% speed for any emulated hardwares of FBA, however other platforms such CPS-1 and CPS-2 are both a lot faster compared to MegaDrive so i wonder if somethings can be done in term of optimization :-)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 01, 2016, 07:02:20 pm
Happy new year  :biggrin:

Happy New Year! :D

Thanks, sometimes I get confused :)
EDIT: Wild Fang / Rohga is fixed now.

Cool, now I can play on my favorite arcade game, and can record it. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 01, 2016, 09:00:13 pm
Great :)  Shadow Force is now fixed as well!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 02, 2016, 07:13:09 pm
I have a question. Is it possible to add multiple keys to a single funktion?

For example in Double Dragon you can perform the round kick by pressing the two button together. Some of the emulators support to add more keys to a single button. So you can set the two button to an additional single one.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 03, 2016, 03:01:19 pm
2016 is starting off nicely, mostly thanks to shoutime of The Dumping Union for dumping quite an amazing discovery - Wing Force (c) 1993 Atlus on Kaneko16 hardware/pcb.  Somehow this rare pcb showed up on yahoo's Japanese version of ebay.  Read more about the find & game here: http://shmups.system11.org/viewtopic.php?f=1&t=56051
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on January 03, 2016, 04:30:58 pm
congrats dink !!!
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 03, 2016, 06:42:26 pm
@derek nice work fella!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 04, 2016, 07:52:37 pm
The new sprite code for Wing Force also happens to fix a few errant sprites in BlaZeon, as well :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 04, 2016, 08:29:51 pm
The new sprite code for Wing Force also happens to fix a few errant sprites in BlaZeon, as well :)

Two for the price of one is always cool i like BlaZeon nice game and Wing Force sure is Tasty as well

(http://www.fshare.it/image.jpeg?i=bo1451955oc)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 05, 2016, 12:20:13 am
Added the necessary code to FBAlpha so it can upload 720p/60fps vids to yt.  mmmm, pie!
https://www.youtube.com/watch?v=H6q5aCevm-0

best regards,
- dink
( on pie and things: http://www.newgrounds.com/portal/view/119283 )
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 05, 2016, 03:57:50 pm
Where we can try this game? It looks fun. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 05, 2016, 05:17:52 pm
Unfortunately, I can't really think of much that could increase the performance besides frame skipping - does the Amiga FBA have auto-frame skipping?  If not, you might want to try and ask HunoPPC to add that feature.
In the next release of FBA the Megadrive emulation will be slightly more cpu demanding, but the compatibility and emulation is now near perfect.  On my ancient p4 computer it barely touches the cpu, though, so you needn't worry too much.

best regards,
- dink

@dink

Ok maybe a bit unrelated but do you think it could be possible to increase the performance of the Megadrive emulation ?
In the AmigaOS4 port of FBA i'm using i conducted a lot test related to the MegaDrive and in all of them i noted that turning off the audio is often the best solution to gain decent performance reaching the famous 50/60 FPS

Of course my Amiga in general is a bit slow so i will never expect 100% speed for any emulated hardwares of FBA, however other platforms such CPS-1 and CPS-2 are both a lot faster compared to MegaDrive so i wonder if somethings can be done in term of optimization :-)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 05, 2016, 05:19:38 pm
Where we can try this game? It looks fun. :)

In the next release of FBAlpha, of course :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 06, 2016, 09:47:36 am
In the next release of FBAlpha, of course :)

best regards,
- dink

Oh I see. Thanks. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: samo79 on January 06, 2016, 12:10:09 pm
Unfortunately, I can't really think of much that could increase the performance besides frame skipping - does the Amiga FBA have auto-frame skipping?  If not, you might want to try and ask HunoPPC to add that feature.
In the next release of FBA the Megadrive emulation will be slightly more cpu demanding, but the compatibility and emulation is now near perfect.  On my ancient p4 computer it barely touches the cpu, though, so you needn't worry too much.

Yes, in our port we have also a proper auto-frame skipping support :-)
However what i noted in MD emulation (compared to other emulated platforms like for example CPS-1, CPS-2, NeoGeo ecc) is that in-game speed can varies depending on the game.

So while with other emulated platform we have always a fixed rate (slow of fast no matter) emulating MegaDrive give us different results depending on the game, for example i could got 30/35 FPS in Mortal Kombat 2 while at the same time i can't play decently Mortal Kombat 3 (because at max i got 10 or less FPS)

Of course there are also specific case when very simple MD game could reach 50 FPS quite easily, this is the case of some olders games (or very simple one), but newest and complex games are in most case too mutch demanding :-(

But in general and in any games i noted that speed can be increased a lot turning off the audio (atleast in our Amiga port), so maybe certain optimizations could be donee "workarounding" a bit the audio area .. maybe.
Aniway for now i will try increasing a bit the frame skip, let's see if i will found an interim solution for playing better :-)

P.S.
Happy that you are working so hard improving the MD quality emulation !
Title: Concerning : Neo Geo development in 2015...
Post by: Fred/FRONT on January 09, 2016, 11:14:03 am
Concerning : Neo Geo development 2015...

First, Happy new year to you guys !

http://www.pouet.net/prod.php?which=66697                      Twister in a mirror by Blastar (New Homepage: http://blastar.citavia.de   must to visit )
http://blastar.citavia.de/files/twister_in_a_mirror-intro.zip      ROM: Works on real hardware or in latest MAME as "Puzzle de Pon".
202-c1.c1 [72CEED51]
202-c2.c2 [27DA57EE]
202-m1.m1 [C1C27B33]
202-p1.p1 [514BF0FD]
202-s1.s1 [111EA86C]
202-v1.v1 [0C5E044C]

http://blastar.citavia.de/files/twister_in_a_mirror-intro-ngcd.zip   ISO (all needed data is inside the prg-file and uploaded by bios.)

Note: ROM works with MESS and MAME.  may Be with FBA (*)         <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
->Treble Winner,  I Hope you can add this 'Cool' feature In FBA Emu ...
Treble Winner -> Concerning twister_in_a_mirror, could you please post a screenshot, may be a Youtube Video ?
Thanks ...

Description:  After 10years He's came back to the Neo Geo homebrew scene ... With new Demo, new Greats Tools and many more problably for 2016....
Twister in a mirror intro by blastar (who has coded a few Neo-Geo homebrew demos and games before).
This prod is for the Neo-Geo (as well as the Neo-Geo CD). it's a simple oldschool intro, a twister in front of a moving transparent mirror with a sinescroller and a short chiptune loop.

(*)TechNotes: hw-timing and hw-compatibility most emulators will fail, only M.A.M.E. is good enough, Blastar's suprised how close M.A.M.E. is to real hardware. It's also Unibios combatible, no corrupt bootlogo or wrong colors in menus.
More Words By Blastar, on the French Forum  YARONET (Programmation & Homebrew on Neo Geo): http://www.yaronet.com/topics/171418-blastar-is-back


http://www.pouet.net/prod.php?which=66723  Eira: NeoGeo CD intro by Resistance ;Very nice NG firstie from Nainain  coded in C code
http://resistance.no/files/neogeo/RSE-Eira.zip     ISO
https://www.youtube.com/watch?v=y8z4wpOPJ2M        Eira Video

other projects (in WIP):
https://www.youtube.com/watch?v=uAQaUw1F8UE   Hypernoid (Alpha Version) - Neo Geo MVS homebrew Hypernoid (work in progress)
https://www.youtube.com/watch?v=UvpX3_OXviY      Submarine Shooter - Animation Demo (Neo?Geo Dev / Wrote in C, using DATlib.) by  NeoHomeBrew
https://www.youtube.com/watch?v=CWsBYi2r5qo     Neo Thunder X: Demo 01 (Neo Geo homebrew from Italy) by  7BlackJack8

Datlib Videos  by The Hpman
https://www.youtube.com/watch?v=kqRcdfSQhfU  NeoDev DATlib demo
https://www.youtube.com/watch?v=JqO7BVnGT2s  DATlib stress test - NeoGeo dev
https://www.youtube.com/watch?v=TGE213yo6F8  More NeoGeo sprites Zorder
https://www.youtube.com/watch?v=t9NqKXxS9Cw  Scrolling demo (update) - NeoGeo dev
https://www.youtube.com/watch?v=GSXKIPdO-u8  Scrolling demo - NeoGeo dev

Some Rom & Iso are available in Pack datlib-update-02 & 0.1 : http://www.yaronet.com/topics/184910-datlib-update-02
https://www.dropbox.com/s/je72o63555mbvj1/DATlib_0.2.rar?dl=0
http://bit.ly/1gQccIR    DATlib_0.1 : Preview build can be downloaded

Screenshots  for FBA are welcome  of course

best regards,
Fred/FRONT !
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on January 09, 2016, 11:35:01 am
I like the Submarine Demo, it rips graphics straight from In The Hunt on Irem M92 hardware. It's pretty fitting to have it on NeoGeo since IIRC the Metal Slug developers made it.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 12, 2016, 10:47:29 pm
Around X-Mas time, Nanochess's Princess Quest rom for Colecovision MegaCart was released freely here: http://atariage.com/forums/topic/233102-team-pixelboy-news-bulletin-december-25th-2014/
or http://nanochess.org/princess_quest.html (the authors page)

I added the necessary MegaCart emulation to our Colecovision driver, and ... surprise! :D
As with all of Nanochess's games, this one is great.  (ever play Mecha-8 on MSX? awesome.) Colecovision fans will especially dig this one...

BONUS: Digger and Quest for the Golden Chalice are also added * get the free roms in the urls above * :)

Now, for those that think the graphics are "too retro" to be enjoyable.. here's some things to consider..  Princess Quest does smoothe per-pixel scrolling, on a TMS9918 vdp - a chip that has no hw scrolling.  It also has a neat parallax effect in the background, weapon upgrades, smart enemies, continuous BGM, Boss fights and perhaps other neat things that I havn't noticed yet. 
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 13, 2016, 01:08:02 am
Now, for those that think the graphics are "too retro" to be enjoyable.. here's some things to consider..  Princess Quest does smoothe per-pixel scrolling, on a TMS9918 vdp - a chip that has no hw scrolling.  It also has a neat parallax effect in the background, weapon upgrades, smart enemies, continuous BGM, Boss fights and perhaps other neat things that I havn't noticed yet.

Moreover (IMHO) an emulation is always good, regardless of game... it represents a little "piece of history" anyway! (for the recent creations too)
Thanks dink! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 23, 2016, 11:29:45 pm
The classic game Ambush now works properly when launching off.  The game is so quirky and horribly hard, nobody probably ever made it past take-off to notice things were broken :)

Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 27, 2016, 01:50:29 pm
I don't know if this is the right place for making a request, but the Psycho Soldier could be included in the new version?

https://en.wikipedia.org/wiki/Psycho_Soldier (https://en.wikipedia.org/wiki/Psycho_Soldier)

It is an old classic, very important for me because it was the very first game with vocal track. It has two notable versions: one with English lyrics, and one with Japanese.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 27, 2016, 02:42:00 pm
I don't know if this is the right place for making a request, but the Psycho Soldier could be included in the new version?

https://en.wikipedia.org/wiki/Psycho_Soldier (https://en.wikipedia.org/wiki/Psycho_Soldier)

It is an old classic, very important for me because it was the very first game with vocal track. It has two notable versions: one with English lyrics, and one with Japanese.

IIRC the Psycho Soldier hardware should be very similar to Chopper I, Guerrilla War and Victory Road hardwares (other good SNK games) ! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 27, 2016, 03:40:13 pm
Then it should be no problem.  :biggrin:

We must ride the Phoenix Athena in multiplayer again!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 27, 2016, 04:41:32 pm
iq_132 had started a snk triple-z80 series driver a couple months back - maybe if you ask him nicely he will finish it :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 27, 2016, 04:58:55 pm
Oh, I don't want to ask for faster work. I can wait for the good things. And my primary request is already filled: the Wolf Fang -Kuhga 2001- sound problem will be fixed in the next version.  :smilie:

Oh, before I forgot. Is the Nebulas Ray planned to add to the emulator?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 27, 2016, 07:00:33 pm
iq_132 had started a snk triple-z80 series driver a couple months back - maybe if you ask him nicely he will finish it :)

Another very good news! We should thank for your work! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 27, 2016, 07:17:11 pm
Oh, before I forgot. Is the Nebulas Ray planned to add to the emulator?

A new driver + M37710 CPU add to that two sound cores plus multiple video files i'd say you have more chance of seeing the
pope in a brothel than you have this game being playable in FBA  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 27, 2016, 07:42:28 pm
Oh I see, actually this isn't problem for me, since the old version of MAME 0.119 Plus run it and have multiplayer too. XD

However I found a bug with Cadash on both PCE and TG16. The screen always shaking no matter what option I use.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 27, 2016, 08:55:56 pm
However I found a bug with Cadash on both PCE and TG16. The screen always shaking no matter what option I use.

This is a known problem with Cadash in several emulators (not magic engine though), so in the meantime play the arcade version. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 28, 2016, 09:04:59 am
I never played the arcade version untile just know. Actually it is rather easy compared to other arcade games, but still harder than any other ports of Cadash.  :smilie:

Sadly the Psycho Soldier have no other ports, that is why I asked about it. It is from 1986 if my memory serves right. During that time there was no such a home console what could play that legendary vocal track.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on January 28, 2016, 09:08:41 am
This is a known problem with Cadash in several emulators (not magic engine though), so in the meantime play the arcade version. :)


I remember porting PCE support to FBA and testing literally every game on the system. I remember Casash being a mess and could never get it to straighten out. It was the same way in MESS at the time (PCE has had a re-write since then, I don't know if it's better or not).
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 28, 2016, 09:20:05 am
I remember porting PCE support to FBA and testing literally every game on the system. I remember Casash being a mess and could never get it to straighten out. It was the same way in MESS at the time (PCE has had a re-write since then, I don't know if it's better or not).

When I tried it the shaking will stop if I pause the game (the pause of the game, and not the emulator). I think the problem comes from the drawings. Maybe the emulator's screen re-draw function isn't in sync with the game's refresh rate when the pixels moving. I not understand a thing about console technology, this is just a thought.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on January 28, 2016, 09:56:24 am
When I tried it the shaking will stop if I pause the game (the pause of the game, and not the emulator). I think the problem comes from the drawings. Maybe the emulator's screen re-draw function isn't in sync with the game's refresh rate when the pixels moving. I not understand a thing about console technology, this is just a thought.
It's possible. I don't really know :/
Here's the list from pce.cpp in FBA's source.

Quote
   There is no CD emulation at all.
   As this driver is based on MESS emulation, compatibility *should* be the same.

   Known emulation issues - also present in MESS unless noted.
   SOUND PROBLEMS
      Bouken Danshaku Don - The Lost Sunheart (not present in mess)

   GRAPHICS PROBLEMS
      Cadash - graphics shaking

   OTHER PROBLEMS
      Niko Niko Pun - hangs in-game
      Benkei Gaiden - hangs after sunsoft logo
      Power Tennis - frozen
      Tennokoe Bank - ??
      Air Zonk / PC Denjin - Punkic Cyborgs - hangs in-game
      Hisou Kihei - Xserd: black screen
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 28, 2016, 03:16:12 pm
Air Zonk, that was some kind of fun. But as far as I know it has no multiplayer option so the Magic Engine is enough. Someone mentioned the Guerrilla War and the Victory Road I would totally love to see those. But the legendary Psycho Soldier is the top. I still has the cassette single of that theme song, the first vocal game soundtrack ever.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 01, 2016, 10:34:17 pm
All this scratchin' is making me itch.  *Qbert*
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 07, 2016, 09:42:45 am
Lol, the Megadrive version of the Forgotten Worlds have a very strange bug. After you choose the start option and played through the very first cutscene, you can see the stage only for a moment and then it gives you the "GAME OVER" screen. XD
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 07, 2016, 11:22:45 pm
Hi, thanks for the report.  This issue is kinda funny - its actually in the game itself, see: Forgotten Worlds came out before the 6-button MD/Genesis controllers were available.  Due to a way the game erroneously detects the controller it triggers something which causes that funny game over problem due to a bug in the game.  It only happens if you use a 6-button controller - hardware or emulated.  As luck would have it, we only emulate a 6-button controller, ... In the future I will try to make a fix for this game.  Right now we're putting all time & effort into the new snk driver, its top priority :)

thanks & best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 08, 2016, 02:41:26 pm
I see, this is really a funny case. XD

The arcade version is better for me since I can use the mouse to control the aim of the gun. Kinda fun game if you ask me.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 08, 2016, 08:30:17 pm
The problem is now fixed w/ Forgotten Worlds on Megadrive :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 09, 2016, 01:10:28 am
The problem is now fixed w/ Forgotten Worlds on Megadrive :)

The next FBA release will have a very improved Megadrive core! Thanks! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 09, 2016, 10:42:05 am
As Gab75 said. Slowly I can send the KEGA Fusion to pension when it comes to netplay.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 16, 2016, 11:09:27 am
Could the Revenge of Death Adder version of the Golden Axe added to the list? I would love to see that.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 16, 2016, 11:52:21 am
Could the Revenge of Death Adder version of the Golden Axe added to the list? I would love to see that.  :smilie:

I don't think that it will be possible, at least in the near future... Golden Axe Revenge of Death Adder is based on SEGA System 32 hardware and the current FBA doesn't support many components of this hardware, e.g. the main CPU NEC V60 and the sound chip Ricoh RF5c68.
Title: Re: dink's FBA Development & Fixes thread
Post by: Treble Winner on February 16, 2016, 11:58:03 am
I don't think that it will be possible, at least in the near future... Golden Axe Revenge of Death Adder is based on SEGA System 32 hardware and the current FBA doesn't support many components of this hardware, e.g. the main CPU NEC V60 and the sound chip Ricoh RF5c68.

We do support the RF5C68 - it's used in System 18. But the V60 is the bigger stumbling block anyway. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 16, 2016, 12:12:30 pm
We do support the RF5C68 - it's used in System 18. But the V60 is the bigger stumbling block anyway. :)

My fault, I ignored that System 18 and System 32 use the same Audio Control IC... in any case, as you wrote, the "V60 core" emulation is the bigger stumbling block! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 16, 2016, 02:09:34 pm
It is sad. That is my favorite part of the Golden Axe series.  :p
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on February 16, 2016, 02:31:09 pm
We do support the RF5C68 - it's used in System 18. But the V60 is the bigger stumbling block anyway. :)
Not to mention the nasty looking video section. Blech.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 16, 2016, 03:03:07 pm
Then a question. What does the "Imperfect Protection Emulation" and the "Incomplete Dump" mean? Some games has these lines as note (for example some version of Knights of Valour, or the Oriental Legend Special Plus).
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on February 16, 2016, 03:45:14 pm
Then a question. What does the "Imperfect Protection Emulation" and the "Incomplete Dump" mean? Some games has these lines as note (for example some version of Knights of Valour, or the Oriental Legend Special Plus).
Knights of Valour should have both of those. What it means specifically for that game is that the game uses a custom CPU (ASIC27A / ARM7) to supply protection to the main CPU of the game (Motorola 68k). The protection CPU's ROM is stored inside the block that the CPU is in and is undumpable/undumped. Currently the protection CPU is simulated by writing code that returns (hopefully) the correct information to the main CPU to allow the game to work properly. However, it can't be guaranteed that everything is perfectly simulated, so you may get weird little bugs and edge cases because of this.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 16, 2016, 04:57:55 pm
Oh I see. Then it should work (yet not the most accurate way), however isn't guaranteed it always work. At least it is playable and can be played through if nothing happens. Or something like this. :S
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on February 16, 2016, 05:06:02 pm
Oh I see. Then it should work (yet not the most accurate way), however isn't guaranteed it always work. At least it is playable and can be played through if nothing happens. Or something like this. :S
Right. IIRC in kov there's a sword in the first area on the boat that cannot be picked up -- due to protection issues.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 16, 2016, 05:41:17 pm
That isn't make the game unplayable. Maybe one time there will be a more accurate dump. But the game is fun even with these little bugs too.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 17, 2016, 09:41:56 am
Hey guys, this is my development thread :)  Let's keep it that way. ..  or else!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 17, 2016, 09:45:20 am
well, this is embarrassing.  looping of samples was broke in our sample player, well, now its fixed.  Luckily I realized the problem whilst enjoying a game of DonPachi w/cd-quality music, and when the music stopped in level 2 .... uhoh!  This bug affected all games that use samples for music in the last release of FBAlpha: Fire Shark, Ghox, Vimana, Teki Paki, DonPachi cdquality mod, etc..  sorry about that!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 17, 2016, 03:29:46 pm
Sorry about that. Since the Wolf Fang made its way to the perfection I'm happy no matter if the other games will never be added.  :biggrin:

===EDIT===

The Gradius 3's graphics is messed up, no matter how I change the settings. I not really tested all the things however since I like the Salamander more (which is works perfectly), only one of my friend said it. I just checked out if it really that messed.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 18, 2016, 01:08:08 am
The Gradius 3's graphics is messed up, no matter how I change the settings. I not really tested all the things however since I like the Salamander more (which is works perfectly), only one of my friend said it. I just checked out if it really that messed.

I already asked dink about the Gradius 3 issues (through pm), this was the answer:
... about gradius 3, we know about these issues if we fix them, later on in the game it gets bad again.  So at the moment we put this aside until we come up with a good fix.  But on the other hand, we don't know everything, so please keep letting me know if you find a problem :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on February 18, 2016, 08:46:25 am
He has right. It just slow down the development. If everything finished what are planned, then there enough time to fix this too. And what is better it will not mess up again since they not modify anything after that point. XD
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 24, 2016, 08:14:00 pm
After playing through Ikari Warriors and Victory Road, I realized we needed a better way to handle the rotary movements.  The "Joystick" bootleg versions of the games aren't great because of a few reasons.. there has to be something better... hmm...
So, I came up with an experimental new way of controlling rotary games - instead of buttons for rotate left / rotate right - how about a single button.. when this button is held, any joystick movement will move the rotation of your player/gun/etc in the direction the joystick is pressed.  Releasing the button goes back to regular player movement mode.

EDIT: - so, yea, this is quite unfortunate - the new code for this will only work in Ikari Warriors.  The other games which use rotation (tnk3, victory road, etc) get out of sync very easily - for example, 0 will be up and 4 will be down, but after the player dies, it could be 5 for up and 9 for down, but there is no way of knowing this at the moment.  Hmmm, maybe some debugging is in order?

That's it for now..
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: BritneysPAIRS on February 24, 2016, 11:08:18 pm
I have done this for the xbox still needs a tiny bit of work for some games like heavy barrel as level 2 and level 5 point the gun to the right when it starts that level....

games like forgotten world I made them like robotron controls where the second stick point in the direction and shoots...let me know if you want to know how I did this or just the code...

think the way I had to do a lot was reset back to 0 if no shooting sound for one second...this way it resets at level start as well as player death
Title: Re: dink's FBA Development & Fixes thread
Post by: BritneysPAIRS on February 24, 2016, 11:14:30 pm
static READ16_HANDLER( forgottn_dial_0_r )
{
   const int dial_8[8]   = { 0,256,512,768,1024,1280,1536,1792 };
   int value3 = readinputport(7);

   if ((value3&0xf) == 15)
      directional = 0;
   if ((value3&0xf) == 14)
      directional = 0;
   if ((value3&0xf) == 10)
      directional = 1;
   if ((value3&0xf) == 11)
      directional = 2;
   if ((value3&0xf) == 9)
      directional = 3;
   if ((value3&0xf) == 13)
      directional = 4;
   if ((value3&0xf) == 5)
      directional = 5;
   if ((value3&0xf) == 7)
      directional = 6;
   if ((value3&0xf) == 6)
      directional = 7;

   ShootSound = ShootSound + 1;
   if (ShootSound >= 120)
   {
      ShootSound = 120;
      directional = 0;
   }

//   usrintf_showmessage("%i",ShootSound);

   return ((dial_8[directional] - dial[0]) >> (8*offset)) & 0xff;
}

static WRITE16_HANDLER( cps1_sound_command_w )
{

   if (ACCESSING_LSB)
   {
      soundlatch_w(0,data & 0xff);
      if (data == 47)
      {
         ShootSound = 0;
      }
      if ( data == 49)
      {
         ShootSound = 0;
      }
      //usrintf_showmessage("%i",data);
   }
}

Forgotten worlds example
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 24, 2016, 11:19:22 pm
thanks, for the tips.
I came up with a great idea - what if we monitor the ram where it holds the position of the gun?  this way it will _never_ get out of synch.  now, to find the memory locations of the gun positions for p1/2 on these games :)...
Title: Re: dink's FBA Development & Fixes thread
Post by: BritneysPAIRS on February 24, 2016, 11:33:55 pm
yeah I couldn't find that :) that would be best cause the sound one fails on a couple of games mainly heavy barrel the others seem to work well

each of the drivers work slightly diff some don't have a zero position the driver seems to position the gun then look for turning from the point. Some seem to look at the rotation value of the stick and use that. Some are rotary some are spinners I guess.

The SNK driver I did one that always points up...when you press the right stick in a direction it point the gun that way and shoots like total carnage or robotron that worked fine as well (had to add an autofire option for when you are holding the stick down)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 25, 2016, 05:29:32 pm
Mission accomplished:  The new button+joy to change the rotation direction feature is solid and working for Ikari Warriors, Victory Road, TNK3 & Guerilla War.  :D  It will never go out of sync, either...
...Coming to an FBAlpha near you :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on February 25, 2016, 05:50:34 pm
@dink Well done fella told ya you'd have it done by the days end :)
Title: Re: dink's FBA Development & Fixes thread
Post by: BritneysPAIRS on February 25, 2016, 08:08:13 pm
 :cool:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 26, 2016, 01:06:32 am
Mission accomplished:  The new button+joy to change the rotation direction feature is solid and working for Ikari Warriors, Victory Road, TNK3 & Guerilla War.  :D  It will never go out of sync, either...
...Coming to an FBAlpha near you :)

Very good work! As always by your standards! ;)

PS: maybe a similar solution could be good for Capcom Forgotten Worlds too...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 26, 2016, 08:47:57 am
Gab75. Its possible for Forgotten Worlds to play perfectly in FBA without any changes to the code.  I made some nice settings for it a few months ago, but lost them and can't remember how I did it.  crap...  if I can remember how I did it, I will post the info..
On a brighter note, I plan to add the new code (from the snk driver) to Midnight Resistance & Heavy Barrel.  Since the new code is based on the rotation code from Midnight Resistance & Heavy Barrel, it will fit right in, its just a matter of finding where the game stores the p1/p2 rotation bytes.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 28, 2016, 12:01:13 am
The new rotational controls have been added to Heavy Barrel and Midnight Resistance.  never before have these games played this good in emulation.*  I'm very happy.  :biggrin:

* unless, of course, you own a rotary joystick!
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 28, 2016, 01:02:14 am
* unless, of course, you own a rotary joystick!

My "intuition" says that only a "negligible amount" of users have a rotary joystick! :P Great work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on February 28, 2016, 07:50:47 pm
All i can say is this new Rotary code is fantastico  :cool:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 04, 2016, 07:10:33 pm
Gradius 3 is fixed :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 08, 2016, 11:22:25 pm
Gradius 3 is running top-notch.

Tonight our cheat algo. got a massive bug-fix, it wasn't properly disabling certain cheats, and doing stupid things with memory.
I almost shot my pc over this one.  grrrr! :mad:   (I'm sorry - I love you, compy-p4! *hug*)   

couple other under-the-hood type bugfixes not worth mentioning.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 09, 2016, 01:22:16 am
I almost shot my pc over this one.  grrrr! :mad:   (I'm sorry - I love you, compy-p4! *hug*)   

Please, don't "hurt" your poor pc... it has important FBA datas inside! :P

Joking aside, we really appreciate your "hard work" ! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on March 10, 2016, 03:49:39 pm
I almost shot my pc over this one.  grrrr! :mad:   (I'm sorry - I love you, compy-p4! *hug*)   
Next time I upgrade my pc you're getting my "gently used" old mobo, ram, etc.
Sorry about your luck and your power bill.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 11, 2016, 06:34:04 pm
SAR - Search and Rescue & Ikari 3 are now hooked up with the new rotational code.  The games are finally enjoyably playable in emulation w/o a rotating controller :D
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on March 12, 2016, 05:31:30 pm
Wow Guerilla War!  :biggrin:

I can't wait for the new release. It will be awesome.  :cool:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 12, 2016, 08:27:15 pm
Next time I upgrade my pc you're getting my "gently used" old mobo, ram, etc.
Sorry about your luck and your power bill.

The offer is very much appreciated.  With my custom scripts and things, I can compile/recompile a single driver and link it in about 20-25 seconds.  I remember when I first started working on fba, and used "make" after each change - it took literally 15 minutes to compile and link a single source change.  Sometimes if there were an error/typo in my changes, it would need another 15 minutes to make again. hehe.  Luckily I'm quite crafty with scripts 'n things.  :biggrin:

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 12, 2016, 08:30:24 pm
Wow Guerilla War!  :biggrin:

I can't wait for the new release. It will be awesome.  :cool:

Oh yea, you're going to dig the next release.  especially the innovative new rotation feature - which still blows my mind to this very second. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on March 12, 2016, 08:59:07 pm
Oh yea, you're going to dig the next release.  especially the innovative new rotation feature - which still blows my mind to this very second. :)

best regards,
- dink

That for sure, there are many new games I never was able to play with my friends till this time.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 20, 2016, 11:00:23 pm
A few months ago I wondered how the hell people get through certain spots in Jackal, it just seems impossible.  The trick is.. the game is actually made for a rotary-type joystick, and the non-rotary/"joystick" versions of game were most likely an afterthought by Konami to sell more boards to operators who didn't want to shell out for the rotary sticks.  While I was away for the past 2 days I realized I had forgotten to add the new rotary code to Jackal.  Oops.  The game is really quite playable and fun now; as it should be.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 21, 2016, 02:02:03 am
I feel I can speak for all "FBA fans"... we are looking forward to see the new official FBA release! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 22, 2016, 11:40:57 pm
Music is finally fixed in Guardians / Denjin Makai II.  :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 01, 2016, 11:12:58 pm
Some new games for FBA: Jungler and Tactician
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on April 02, 2016, 06:41:24 am
great job dink !
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on April 02, 2016, 08:51:21 am
@dink Nice work fella!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 02, 2016, 09:35:23 am
More... (click on each piccy)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 02, 2016, 11:50:56 am
At the risk of repeating myself, I'm looking forward to see the new official FBA release! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 07, 2016, 10:14:34 pm
Added 2 games from the SMS Power! coding competition: Bara Buru and Data Storm... to the SMS driver :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on April 13, 2016, 07:58:06 pm
Wow, we got even the Psycho Soldier, I didn't expected this. Japan and USA version. The legendary vocal theme back again!  :biggrin:

The Guevara (Japanese version of the Guerrilla War) can't start for some reason, the others works fine. And I must say that rotating method is far better than how I played the Forgotten Worlds.

Anyway I don't know if I did make something wrong, but the "autofire" buttons can't be configured.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 13, 2016, 09:32:44 pm
I love the english version of the Psycho Soldier song :D  Glad I'm not the only one..

gwarj is now fixed, Gab75 also reported this issue the other day.  Good work guys :)
I'm glad you dig the new rotation feature! 

Regarding Autofire, sometimes you have to click different places to configure the buttons, try clicking under the "mapped to" column in the input config.  Its a strange bug, I'm not sure why it happens - hopefully the mystery can be solved some day..

best regards,
- dink

Wow, we got even the Psycho Soldier, I didn't expected this. Japan and USA version. The legendary vocal theme back again!  :biggrin:

The Guevara (Japanese version of the Guerrilla War) can't start for some reason, the others works fine. And I must say that rotating method is far better than how I played the Forgotten Worlds.

Anyway I don't know if I did make something wrong, but the "autofire" buttons can't be configured.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 13, 2016, 11:09:17 pm
It's happy-fun fix time.  yay!  :smilie:

1: In the input editor, analogue and mouse inputs can now be clear & clear-locked.
A note on clear-locking:
  For those that don't know, Clear-locking is a function that will keep an input cleared permanently.  This is useful for those inputs that automatically get filled-in with defaults from your default preset (or hard-coded presets) when the game loads.

2: The Shots Factory (ctrl-f12) can now be closed with escape, and "All Sprites" is now labled as "Layer 1".

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on April 14, 2016, 08:16:31 am
I love the english version of the Psycho Soldier song :D  Glad I'm not the only one..

gwarj is now fixed, Gab75 also reported this issue the other day.  Good work guys :)
I'm glad you dig the new rotation feature! 

Regarding Autofire, sometimes you have to click different places to configure the buttons, try clicking under the "mapped to" column in the input config.  Its a strange bug, I'm not sure why it happens - hopefully the mystery can be solved some day..

best regards,
- dink

Oh I see, then it works just not as it can be seen. For me the autofire isn't problem. I like pressing the button rapidly like back then (poor arcade machine... XD ). I have no problem with the English version of the Psycho Soldier song, but I prefer the Japanese. I even have the extremely rare cassette single.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 14, 2016, 06:14:25 pm
Hehe right on :)  I wore out 4 gamepads between 2011 and fall-2013 because I loved to mash on the buttons one the good old classic games.  They were the wireless Dreamgear Shadow 6 gamepad for ps3 and windows.  I got tired of wearing the buttons out, but loved the gamepad style....  Eventually I finally gave in and got a quality Sony Dualshock 3 gamepad w/bluetooth dongle and the same controller has been going strong since fall 2013.  I think they're impossible to wear out as long as you treat them well and don't like let the dog chew on them..right.. :)
On the other hand, there are some games where autofire comes in handy.

best regards,
- dink

Oh I see, then it works just not as it can be seen. For me the autofire isn't problem. I like pressing the button rapidly like back then (poor arcade machine... XD ). I have no problem with the English version of the Psycho Soldier song, but I prefer the Japanese. I even have the extremely rare cassette single.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 14, 2016, 06:18:02 pm
There is an issue in .38 where E.D.F. (parent and bootleg) can't be started, a little bug crept in. derp!  The good news: it's fixed now.  Big thanks to Gab75 for the bug report earlier today.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on April 14, 2016, 06:42:48 pm
There is an issue with the Shadow Force too. The button 4, 5, and 6 isn't work. Can't be used in game. If I remember correctly these are in order: strong punch, strong kick, and possession.

Yes, in some games it is really handy. Especial in scrolling shooters like Vapor Trail. In the case of arcade I use it too, but there isn't any other console I like to utilize. It feels like cheating for me in SNES or PS1. XD
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 14, 2016, 11:12:40 pm
Hi, try the US version 2 of the game, it has those extra buttons enabled.  Some versions of the game don't have them enabled - or it could be something where you need a certain powerup to enable them in those versions.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 15, 2016, 01:32:12 am
There is an issue in .38 where E.D.F. (parent and bootleg) can't be started, a little bug crept in. derp!  The good news: it's fixed now.  Big thanks to Gab75 for the bug report earlier today.

Thanks to you for the fast fix! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on April 15, 2016, 08:09:54 am
Hi, try the US version 2 of the game, it has those extra buttons enabled.  Some versions of the game don't have them enabled - or it could be something where you need a certain powerup to enable them in those versions.

I see, thanks.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 16, 2016, 09:09:55 am
Last night was a bugfix-o-rama.  Here's whats new..

The palette viewer had some deep emotional issues.  Sometimes it was happy and showed the correct colors, other times it a bit bonkers and would show colors - but they made no sense at all.  Now that is fixed and everyone is happy.  I almost forgot, if you click on a color in the palette viewer, the viewer will tell you the RGB values for that color - it always did, you just couldn't see it.  After carefully excising the RGB color value coverup-jeebies, its no longer in hiding.

The classic game Pooyan can now properly display the falling apple without weird black pixels behind it.  This apple-bug was reported over a year ago by the one and only Zazzone of FBA-tester fame.  This one was confusing, because I couldn't find the apple in the sprite list.  As it turns out, this missing apple sprite was hard to find, because it wasn't just an apple, but a strange apple-strawberry hybrid.  Depending on the palette index of the sprite, this character could be either a solid red apple with green stem, or a strawberry with dots and a green leafy thing at the top.  As you could imagine, we needed to add a little extra transparent color checking to get it right.

Lastly, the assembly 68k-core has been a come up quite often as being the problem in bug reports, so this core will no longer be available in release builds.  In debug builds, if its enabled, it will only stay enabled for that session.  Once FBA is closed/reloaded, it will automatically default to the Musashi-68k core.  For classic gamers, there is nothing to be gained from using this core.  There is 1 exception: Takeda Shingen / Shingen Samurai Warrior on Jaleco Megasystem 1 - the game like to crash - it will go from playing to random funny patterns on the screen around the second stage when a certain item is picked up or character is defeated.  With the assembly 68kcore this game doesn't crash.  Its not currently known why this game has problems with Musashi-68k (cpu core) - Musashi is far more accurate/stable, so as a bit of a hack, FBA will automatically switch to the assembly 68kcore for this game, and back to Musashi upon exit behind the scenes, and transparent to the user.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 16, 2016, 12:23:33 pm
... it was a very fruitful night! :)

PS: finally the "assembly 68k core" will no longer be my "Achilles' heel" ! :P
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on April 16, 2016, 03:32:56 pm
Nice few fixes there regarding the a68k CPU core i read with interest that a certain game in the Jaleco Mega System 12 driver would
only work with this core and has issues when using the m68k CPU core this reminded me of a game called Asura Buster it locks up
on level 3 i remember iq_132 posting he thought it might be an issue with the mushi core Also Taito's F3 driver springs to mind maybe
these games would work correctly also if switched to use the a68k..?? as they seem to not work currantly with the mushi core.

Worth a Try maybe or not ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 16, 2016, 05:26:15 pm
A halfway (provisional) solution could be leave it (assembly 68k core) available in the release build, but set it unchecked (off) by default...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 16, 2016, 06:55:46 pm
@gamezfan, the issues with taito-f3 (darius lockup when the game starts) and asura buster lockup on the jelly-monster happens with either core.

@Gab75, the core was always disabled by default, of course.  The problem is that people see "assembly" and think its better, so they turn it on, and forget about it.  The changes have already been made regarding what was said about this core.  There is absolutely no benefit for running this core for the classic gamer.  Also, when the protection / irq controller / exceptions(?) is better understood for tshingen and a fix is implemented, we will no longer have to switch to the a68k core "behind the scenes" for this game.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 17, 2016, 01:28:12 am
@Gab75, the core was always disabled by default, of course.  The problem is that people see "assembly" and think its better, so they turn it on, and forget about it.  The changes have already been made regarding what was said about this core.  There is absolutely no benefit for running this core for the classic gamer.  Also, when the protection / irq controller / exceptions(?) is better understood for tshingen and a fix is implemented, we will no longer have to switch to the a68k core "behind the scenes" for this game.

My fault, I was sure that this core was enabled by default (I remembered wrong)... an advantage of assembly 68k core could be a greater execution speed using the older systems, like computers based on Intel Pentium (P5*) or AMD K6 CPUs (but today, probably, nobody uses these systems to perform an arcade/console emulation).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 17, 2016, 08:56:38 am
My fault, I was sure that this core was enabled by default (I remembered wrong)... an advantage of assembly 68k core could be a greater execution speed using the older systems, like computers based on Intel Pentium (P5*) or AMD K6 CPUs (but today, probably, nobody uses these systems to perform an arcade/console emulation).

My computer is a Pentium 4, and I don't see a benefit to using a68k... except for the special cases I've mentioned earlier.  These days you don't need to have much luck to find a much-better computer at the side of the road on garbage-day.  :)

Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on April 17, 2016, 02:22:21 pm
My computer is a Pentium 4, and I don't see a benefit to using a68k... except for the special cases I've mentioned earlier.  These days you don't need to have much luck to find a much-better computer at the side of the road on garbage-day.  :)

So, I'm not the only who still use a P4 instead of multi-core. I still have Windows XP installed because there is nothing that require Win7 and I want to use it. XD
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 24, 2016, 08:51:57 am
Sega Master System Brawl added to the Megadrive stuffs
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 24, 2016, 08:59:20 am
Also fixed sound in Porkys - you know, that game where you are a pig driving a car, and you have to shoot bacon at wolves.  :biggrin:
Some people often ask, why do we sometimes forget things in the whatsnew file...  well, the answer is simple.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 24, 2016, 08:59:14 pm
A month ago I saw Vetea was working on a new game - Bomb on Basic City - starring Papi from Papi Commando, I thought some day I'll get around to adding it to FBAlpha.   Tonight I saw that he added a level where you get to blow up a ZX Spectrum, so I immediately added it to our favorite emulator... :)

Vetea's dev-forum-*log: http://atariage.com/forums/topic/251258-new-homebrew-genesis-game-bomb-on-basic-city/
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 26, 2016, 09:40:55 pm
So, I'm not the only who still use a P4 instead of multi-core. I still have Windows XP installed because there is nothing that require Win7 and I want to use it. XD

This is exactly the same reason for me. :)  Here's a funny bit of info...  I know someone (personally) who's highlight of the year with computers is to buy and install a new version of MS Windows - then talk about it for a month afterwards, get bored, then put away their computer until the next version of MS Windows.   I'm not kidding, at all.
Title: Re: dink's FBA Development & Fixes thread
Post by: Robert on April 27, 2016, 12:11:40 am
The game is Free/PD, grab it here: http://sharesend.com/ack2f0uq

Firefox says:
Quote
Reported Unwanted Software Page!
This web page at sharesend.com has been reported to contain unwanted software and has been blocked based on your security preferences.
Unwanted software pages try to install software that can be deceptive and affect your system in unexpected ways.

Did you find it to be safe?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 27, 2016, 08:50:29 am
Robert,
Eek, thanks for the heads-up on sharesend.  I'm using ublock with firefox, so it could be possible that there is some uncool stuff hidden in that page and I'm just not seeing it.  I attached the pd-rom to the original message (up above) and also added a link to the authors dev-page.
Title: Re: dink's FBA Development & Fixes thread
Post by: Robert on April 28, 2016, 07:45:08 pm
Thanks, I went to the dev-page and got it. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 28, 2016, 08:18:25 pm
On a suggestion from iq_132, I did a FBA-driver for Cheeky Mouse.  After getting everything finished and up & running, I was kinda bummed to find out that the game was silent - aside from a little start jingle.  What fun is a silent game, anyways.. no sfx or anything..?  That had to change.  I hooked up some simple samples of mouse noises and other blurps and blips so classic gaming fans can enjoy a nice game, full of blips and blurps. (and mousey-noises in general - especially those of mice getting smashed with an 80s-era digital hammer.)
Note: I wasn't going to try to match the original pcb's sounds 1:1, for that we can find someone with a pcb and do a high quality recording.  But in the meantime, this is what I came up with.  [watch the video and listen...]

Youtube video: https://www.youtube.com/watch?v=Ie8Xd4oKQ1w

Grab the bottom attachment: cheekyms.zip, and put it in your "fba folder\support\samples" folder to stay ahead of the game & be ready for the next release :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Robert on April 28, 2016, 11:29:33 pm
Nice!  :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 29, 2016, 01:45:59 am
Excellent work! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 11, 2016, 10:21:40 pm
4 new classic games for FBA: Yamato, Crazy Climber, Guzzler and Swimmer.  Click the pics to make them the right size.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 12, 2016, 12:54:29 am
4 new good additions... thanks! :) Especially Sega Yamato (maybe I'm a "little bit biased" ! :P )
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on May 13, 2016, 05:37:58 pm
@dink 4 more for the pot nice job you did wiht these ones
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on May 14, 2016, 02:50:25 pm
I start with the fact, there is no problem with the game itself. The Shadow Force is fixed, I finished the game and even recorded it with Bandicam.

But the Shadow Force versions are messed up. The new dump works good, but the clones requires the old dump. The emulator also can't recognize the Japanese version. This isn't a problem, but it would be good if the emulator can start the clones with the new dump.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 14, 2016, 07:59:27 pm
I start with the fact, there is no problem with the game itself. The Shadow Force is fixed, I finished the game and even recorded it with Bandicam.

But the Shadow Force versions are messed up. The new dump works good, but the clones requires the old dump. The emulator also can't recognize the Japanese version. This isn't a problem, but it would be good if the emulator can start the clones with the new dump.

Pityesz: JacKc, the guy in charge of the parent/clones up-to-date, will need to have a look at this, I noticed our roms were kinda funky in this regard, also.  Thanks for letting us know & reminding me :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 14, 2016, 08:10:28 pm
Some new games, this time from Orca:
Zodiack, The Bounty, The Percussor, Dog Fight & Mogu Chan.  Regarding Mogu Chan...this is a weirdly-excellent little game and the reason I did this one.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on May 14, 2016, 09:12:33 pm
Oh, then someone already said that. XD

Dog Fight! This is what I haven't seen since half of my life! I look forward to this release.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 14, 2016, 11:57:17 pm
As a special bonus, Van-Van Car will finally not look totally screwed up in the next release.  yay!  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on May 15, 2016, 05:07:28 am
Pityesz: JacKc, the guy in charge of the parent/clones up-to-date, will need to have a look at this, I noticed our roms were kinda funky in this regard, also.  Thanks for letting us know & reminding me :)

best regards,
- dink
Well if we are talking about Shadow Force by Technos (d_shadfrce.cpp), i see nothing wrong in Parent/Clones ROMs. Our driver is up--to-date with MAME 0.173.

http://git.redump.net/mame/tree/src/mame/drivers/shadfrce.cpp

http://www.progettoemma.net/index.php?gioco=shadfrce

I don't see anything funky in our roms and clones are recognized and work fine.
Title: Re: dink's FBA Development & Fixes thread
Post by: Treble Winner on May 15, 2016, 07:22:44 am
Well if we are talking about Shadow Force by Technos (d_shadfrce.cpp), i see nothing wrong in Parent/Clones ROMs. Our driver is up--to-date with MAME 0.173.

http://git.redump.net/mame/tree/src/mame/drivers/shadfrce.cpp

http://www.progettoemma.net/index.php?gioco=shadfrce

I don't anything funky in our roms and clones are recognized and work fine.

mamediff is always happy with that driver also. Never any issues. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 15, 2016, 07:53:09 am
Sorry JacKc, it must be my roms are funky then (and out of date).  Thanks for checking.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on May 15, 2016, 11:09:48 am
It is strange. For me the different clones requires different parent roms.For example the US version 2 isn't works with the new parent dump.
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on May 15, 2016, 04:06:43 pm
It is strange. For me the different clones requires different parent roms.For example the US version 2 isn't works with the new parent dump.
maybe your ROMset is not up-to-date with latest FBA version (0.2.97.38). i've checked twice and all seems ok.

(http://i.imgur.com/1YGsZfM.jpg)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on May 15, 2016, 08:21:11 pm
Thanks, I will look for the newer dumps.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 15, 2016, 10:20:04 pm
Another nice game added to FBAlpha, Dr. Micro...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 17, 2016, 11:13:36 pm
Here's a silly game, thats actually quite fun as well.. Calorie Kun vs. somethingorother:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 19, 2016, 10:06:54 pm
This one - Jr. Pacman - was resurrected from secret lost code of the almighty iq_132, and finished & spiffed up over a 2-day period by the one they call dink.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 20, 2016, 01:25:00 am
Great... another classic added ! ;) This should be the only game of "Pac-Man series" directly developed by Bally Midway (moreover a "not official" derivate)...
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on May 20, 2016, 08:46:32 am
This one - Jr. Pacman - was resurrected from secret lost code of the almighty iq_132, and finished & spiffed up over a 2-day period by the one they call dink.

You guys must be eating some power pills to be able to port all these new drivers :) Nice work BTW!!
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on May 20, 2016, 09:20:12 am
This one - Jr. Pacman - was resurrected from secret lost code of the almighty iq_132, and finished & spiffed up over a 2-day period by the one they call dink.
Nice work! Especially catching that one very hard to spot bug. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 24, 2016, 10:52:13 pm
I'm a big fan of Burgertime on Colecovision.  I always wanted to emulate the arcade version in FBAlpha, but never got around to it.. until the other day.  After finishing the emulation, I was rather sad to find out that the game has a horrible and incredibly irritating hissing noise in the background of the games' music...  The noise was somewhat reminiscent of those huge old tv's, but times 100 in volume.
I spent almost the entire day trying different things to get rid of the hissing noise...  Since I like to take the hardest route(s) first - I tried filtering the commands sent to the ay(8910).. no luck, then doing some hacks to the ay core itself... even more "no luck.".  Finally came up with using a gang of lowpass filters to do the job.  Yay, the game is now playable without a migraine-inducing headache caused by high-pitch hissing.  Here's some pics for now...

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 25, 2016, 01:10:46 am
I'm a big fan of Burgertime on Colecovision.  I always wanted to emulate the arcade version in FBAlpha, but never got around to it.. until the other day.  After finishing the emulation, I was rather sad to find out that the game has a horrible and incredibly irritating hissing noise in the background of the games' music...  The noise was somewhat reminiscent of those huge old tv's, but times 100 in volume.
I spent almost the entire day trying different things to get rid of the hissing noise...  Since I like to take the hardest route(s) first - I tried filtering the commands sent to the ay(8910).. no luck, then doing some hacks to the ay core itself... even more "no luck.".  Finally came up with using a gang of lowpass filters to do the job.  Yay, the game is now playable without a migraine-inducing headache caused by high-pitch hissing.  Here's some pics for now...

Thanks for your hard work! BurgerTime is a Data East classic and it will be a great addition to the FB Alpha! :)

PS: IIRC the game (arcade version) should be supported by two different drivers ("btime" and "decocass").
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on May 25, 2016, 09:10:14 am
Well Burger me another classic in FBA @dink nice job you did both on the driver and sorting the background hiss in the sound
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on May 25, 2016, 10:06:18 am
I'm a big fan of Burgertime on Colecovision.  I always wanted to emulate the arcade version in FBAlpha, but never got around to it.. until the other day.  After finishing the emulation, I was rather sad to find out that the game has a horrible and incredibly irritating hissing noise in the background of the games' music...  The noise was somewhat reminiscent of those huge old tv's, but times 100 in volume.
I spent almost the entire day trying different things to get rid of the hissing noise...  Since I like to take the hardest route(s) first - I tried filtering the commands sent to the ay(8910).. no luck, then doing some hacks to the ay core itself... even more "no luck.".  Finally came up with using a gang of lowpass filters to do the job.  Yay, the game is now playable without a migraine-inducing headache caused by high-pitch hissing.  Here's some pics for now...

best regards,
- dink

Great work! I tried to port this thing multiple times and failed. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 27, 2016, 11:45:21 pm
Here's a few more... :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on May 28, 2016, 09:31:57 am
Here's a few more... :)

Nice job adding these BTW as i know you put alotta effort into getting em playable
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 29, 2016, 11:36:19 pm
Classic '82 Kaneko w/bonus Atari licensee.  Found in the secret lost driver graveyard of the magnificent iq_132. brought up to date/overhauled/bugfixed and all that goodness.  Probably more to come...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 30, 2016, 11:41:36 pm
Here's some more Kaneko classics...
Boggy '84, its kinda like Kicker, Red Robin - Kaneko's version of Pac-Land(maybe?), Jump Coaster - it might look like mr. Do's Wild Ride, but its a lot different.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on June 01, 2016, 07:40:13 am
Nice work! Red Robin looks like it could either be awesome or really terrible.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 01, 2016, 08:31:10 am
It's not bad, its kinda like a spin on Pac-Land.  I really dig Boggy'84 though, its kinda like Kicker/Shaolin and Ninja Kun mixed.  It unfortunately suffers from the same high pitched noise that Burger Time does (as some ay8910-containing games do), so I might have to throw a few filters on it.  The others don't.  I'm going to collaberate with a buddy of mine who is a soundchip afficianado/hacker, and see if there is a way we can filter this at the chip/core level so filtering won't be necessary.  I spent about a day and a half trying to do it myself, but failed though..  I still think it might be possible.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 07, 2016, 07:17:34 am
Hi.. Could you add Super Cassette Vision, it has funny Dragon ball game: Dragon Ball: Dragon Daihikyō??
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 07, 2016, 11:31:28 pm
Tonight I made an awesome breakthrough with BurgerTime.  The migraine-inducing high-pitched hiss has been completely removed - not just filtered or eq'd out.  It sounds great :) Since finishing the driver I spent hours upon hours trying to kill this one, and I am quite happy and relieved to finally be able to close the book on it.

Watch/listen here: https://www.youtube.com/watch?v=wYmZq6usyUk

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on June 08, 2016, 03:00:50 am
Tonight I made an awesome breakthrough with BurgerTime.  The migraine-inducing high-pitched hiss has been completely removed - not just filtered or eq'd out.  It sounds great :) Since finishing the driver I spent hours upon hours trying to kill this one, and I am quite happy and relieved to finally be able to close the book on it.

Great work! The "night shift" has borne fruit! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on June 08, 2016, 03:05:58 pm
Tonight I made an awesome breakthrough with BurgerTime.

Well done man at least after all that time you spent on it there's a happy ending i love those :)
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 10, 2016, 03:37:20 am
Hi. Add Sega Light Phaser emulation for Sega Master System and Konami Justifier and Menacer Gun for Sega Megadrive-Genesis. Please :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 12, 2016, 11:36:32 pm
What's happenin':
FBA Fixes:
While recording an avi, pressing f1 to ffwd won't skip frames written to the avi.

Fixed the graphical scrolling glitches in the endings of Joe and Mac Returns & Caveman Ninja. Also the tops of the trees in the dino-riding water stage of Caveman Ninja, as well as the colosseum-intro to Mutant Fighter.

General emulation fix: I don't usually talk about fixes for games we didn't release yet, but this one is of the exception.  Those familiar with Ninja Emaki knows something is really wrong with the continue screen.  The next version of FBA will not only include this great game, but also be in 100% working order emulation-wise.  For those not familiar with this game, imagine Ikari Warriors or Commando, but with a ninja, and some very very awesome music.  Somewhat leaning more to the shoot-em-up side of the genre-belt than the overhead run'n'gun.  The sheer awesomeness of this game inspired me to sink some hefty debug-time into it to get things working correctly.  Big thanks to iq_132 for doing the Galivan/Dangar/Emaki driver for our precious emulator :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on June 12, 2016, 11:41:18 pm
Oh. Nice to see the frame skipping bug and Caveman Ninja will be fixed. Thanks dink! :D

I'm also looking forward to this new game I'm unfamiliar with. Please, keep up the good job. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 13, 2016, 06:47:52 am
Couple games have issuses on 64 bit version FBA :


bcruzm - game freeze on start and don't run

mainsnk - game won't run - black screen

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 13, 2016, 02:31:37 pm
WILOWAR: Thanks for the reports.  Main SNK was fixed shortly after the last release.  Battle Cruiser M12 is just really slow to boot, press f1 to speed it up a bit :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 13, 2016, 09:14:27 pm
Mega Q-Bert for Megadrive/Genesis by Jaklub 2016
A 16bit version of the classic arcade game, with classic mode and new weird & wonderful original level mode. :)
ROM D/L: http://www79.zippyshare.com/v/2iNHsJy9/file.html
Original Dev-thread: http://gendev.spritesmind.net/forum/viewtopic.php?f=8&t=2456
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 14, 2016, 04:09:42 am
Racing Beat (World) racingb - graphic issues
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 14, 2016, 07:38:42 am
WILOWAR, that's actually normal for this game.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 21, 2016, 10:29:27 am
hi. Dink, Can you separate paths for Sega Master System and Game Gear roms in FBA ? Fba can't find roms with the same name like :
aliensyn (alien syndrome) for both systems (sms,gg. When I got gg rom fba find sms rom the same game and ex. I separate folders for diffrerent systems.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 21, 2016, 05:16:21 pm
WILOWAR, Yes, of course they can be separated.  Set your rom paths for GG & SMS (and other consoles) in path slots #11 - #20 and it will find them alright. 
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on June 22, 2016, 03:22:20 am
ok. I do and it works. Thanks very much  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 01, 2016, 11:53:35 pm
hachamfb (hacha mecha fighter bootleg) titlescreen sprite fixed.  big thanks to wishes_to_be_nameless for alerting me of the bug.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on July 02, 2016, 12:35:58 pm
Hi dink. Could you add light gun support for Sega Master system and Megadrive ? :S
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 02, 2016, 06:19:03 pm
I don't know, maybe in the future. 
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 06, 2016, 10:24:40 pm
Another iq_132 & dink co-venture, we present the Sunset Riders saloon dancers' lights fix.
Zazzone reported this one back in September 2015.  Better late than never :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on July 07, 2016, 01:26:52 pm
Yay! Nice to see this bug was fixed. Thanks. :D

By the way, Mystic Warriors is pretty similar to Sunset Striders. Does that game have some emulation glitches as well or is it good already?
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on July 07, 2016, 01:54:58 pm
Yay! Nice to see this bug was fixed. Thanks. :D

By the way, Mystic Warriors is pretty similar to Sunset Striders. Does that game have some emulation glitches as well or is it good already?
A couple of very minor visual bugs iirc. Nothing that would make the game unplayable or anything. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 07, 2016, 01:58:24 pm
Yay! Nice to see this bug was fixed. Thanks. :D

By the way, Mystic Warriors is pretty similar to Sunset Striders. Does that game have some emulation glitches as well or is it good already?

Mystic Warriors is pretty solid, there is a little glitch when the water washes the player down the screen (for 1/4 second), but the same issue also exists in other emulators.

Also re: Metamorphic Force, I havn't figured that issue out yet though.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on July 07, 2016, 02:07:05 pm
Mystic Warriors is pretty solid, there is a little glitch when the water washes the player down the screen (for 1/4 second), but the same issue also exists in other emulators.

Also re: Metamorphic Force, I havn't figured that issue out yet though.

best regards,
- dink
Looking back, I think that mystic warrior glitch is due to the game alpha blending stuff that it has already alpha blended (just a guess).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 08, 2016, 09:45:01 am
Happy fun Konami custom debug-time
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on July 08, 2016, 10:36:16 am
Happy fun Konami custom debug-time
Thank you! This has been bugging me for ages. Make sure to mark it as working.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on July 08, 2016, 10:55:10 am
Another iq_132 & dink co-venture, we present the Sunset Riders saloon dancers' lights fix.
Zazzone reported this one back in September 2015.  Better late than never :)

best regards,
- dink

Happy fun Konami custom debug-time

BTW Nice job you did on both of these!!!.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 09, 2016, 11:26:22 pm
message deleted.  The batrider issue was created by me both times, it just took me some time to realize it..
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 11, 2016, 08:39:57 pm
On the topic of input recording enhancements. I managed to transplant the re-recording modifications from FBARR, which is a long-dead fork of the FBA project (2011, rip)

What does it do?
1: you can continue to record onto the end of your (input) recording.
2: ability to savestate and loadstate while recording.

thanks to synnchan for bringing this neat feature to my attention.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on July 12, 2016, 01:53:32 pm
Thank you so much, dink. I think now fba is the definite arcade emulator. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 12, 2016, 06:08:10 pm
Yea for sure.  The inputs recording was really quite crap before this.  I wonder why nobody tried to improve it earlier :/
I'm going to work on adding a "Favorites" thing to FBA's game selector.  It's something that all of my friends keep bugging me about that FBA is really in need of.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on July 13, 2016, 09:07:18 pm
Indeed. With the improved input recording, fba has an advantage over mame. I also prefer fba's interface much more. I don't think I will bother with mame anymore from now on. Most of my favorite arcade games are already emulated on fba anyway so I'm not really missing much.

Only thing I can't play on fba yet are some Namco classics I really enjoy (Valkyrie no Densetsu, Purikura Daisakusen, Burning Force, Marvel Land... etc etc). There are no namco drivers on fba at all yet, but I'm still hoping they will eventually be added someday. :)

The favorites feature sounds interesting by the way. It will certainly be nifty having it on the official fba. Good luck! ^-^

Late correction: Purikura Daisakusen was actually made by Atlus, not Namco. Sorry for the confusion.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 13, 2016, 11:50:02 pm
For now in FBA, one can play the console ports of Valkyrie Densetsu (look for Walkuere no Densetsu under PCE) and Burning Force (under Megadrive).
I know what you mean re: the interface, it's got that "classic" emulator feel to it.  You wont see me venture outside of FBA for any sort of gaming - except to verify emulation - like a side-by-side comparison or something.  When it came to doing the BurgerTime driver, I actually had never played the arcade version of the game until I got it running in my own weird style of emulation.  Its also because of that, that we have the best emulation of the game in existence right now.  Some of my friends who are avid(obsessed) BurgerTime fans will back me up on this.  :)

that's it for now,
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 17, 2016, 10:46:22 pm
New features part 1/2:
re: Search Box in the game selector list improvement

For those who have used the search box in the game selector, you know how frustrating it can be to wait .. and wait.. and watch the list redraw for every searched character that is typed in.  In fact, if you have 3000+ games installed, searching for something simple like "cyvern" can take just under 10 seconds just to wait for all of the letters you type in to show up... and if you have made a mistake in the spelling, you might as well throw your damned pc out the window. 

Hopefully I didn't bring back too many bad memories :D

Based on my calculations** the search box has seen a 300% improvement in input/search speed.

** using random numbers I've basically pulled out of the sky and rearranged to my liking.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 17, 2016, 10:49:09 pm
New features part 2/2:
1: The avi writer now has a selectable 1x/2x/3x pixel mode.
2: Ghouls 'n Ghosts no longer goes out of sync with savestates, input recording & (most probably) netplay.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 20, 2016, 11:35:41 pm
Now there's an option to show the joystick movements & button presses while playing back a recording (recorded inputs).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 21, 2016, 03:27:54 pm
Show movements (optional) feature during recorded inputs playback, note the bottom-left :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on July 21, 2016, 03:41:01 pm
lookin' good. :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 22, 2016, 06:24:04 pm
Hey there..

While debugging some PGM stuff, I came across an old bug that sorta bothered me.  It happens in DDP2 Bee Storm when the music fades out after boss fights, it sounds really clicky and weird.  With the old ICS2115 soundcore, it sounded fine, but with the new one which was added last fall, DDP2 sounds kinda horrible.  On the other hand, the new ICS2115 soundcore improved the sound quality in just about every other PGM game.  Now we have the best of both worlds, I made a little fix/kludge to the ICS2115 soundcore just for Bee Storm, it disables the volume envelopes which is the thing thats causing the issue.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 23, 2016, 11:05:14 pm
Happy-fun FBA "fixes" of the day..

Continental Circus: fixed the gear shifter, thanks to Gab75 for reporting this issue!
Data East Backfire! random crash on game load. (workaround)
Alt-S - mute/unmute the sound.  Now it unmutes :)

From the happy-fun new features department:
Shift+F1 will toggle fastforward on/off

From the happy-fun "incase-you-didn't-know-about-these-preexisting-features" department:
F1 still fastforwards as usual.
While the game is paused, F1 will advance a frame each time you press it.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on July 24, 2016, 12:59:11 am
Thanks a lot for the various fixes and improvements! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 26, 2016, 11:01:38 pm
On request from *nameless*, added Mr. Do's Nightmare, Metal Slug 3 Enhanced Violence Version and 1942: C64 Music version to our favorite emulator.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Robert on July 28, 2016, 01:54:21 am
On request from *nameless*, added Mr. Do's Nightmare, Metal Slug 3 Enhanced Violence Version and 1942: C64 Music version to our favorite emulator.

best regards,
- dink

I can see where that came from. :P
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 04, 2016, 10:19:51 pm
Taito's Top Speed / Full Throttle got an overhaul.  Added a priority bitmap to fix a bunch of graphics glitches, missing soundeffects, broken gear shifter & a handfull of other small things that aren't worth mentioning.  The game is now fully playable and quite fun, its basically an OutRun-style game, but with a nitro booster.  Like OutRun the music is quite catchy too :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 05, 2016, 12:56:05 am
Thanks for your work! :)
Yes, Top Speed is an Out-Run style game with a pinch of "Initial D"... indeed, the virtual sport car should be ispired to a Mazda RX-7 second generation! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on August 05, 2016, 07:58:51 am
Taito's Top Speed / Full Throttle got an overhaul.  Added a priority bitmap to fix a bunch of graphics glitches, missing soundeffects, broken gear shifter & a handfull of other small things that aren't worth mentioning.  The game is now fully playable and quite fun, its basically an OutRun-style game, but with a nitro booster.  Like OutRun the music is quite catchy too :)

best regards,
- dink

Thanks dink ^-^
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on August 05, 2016, 08:45:34 am
Taito's Top Speed / Full Throttle got an overhaul.  Added a priority bitmap to fix a bunch of graphics glitches, missing soundeffects, broken gear shifter & a handfull of other small things that aren't worth mentioning.  The game is now fully playable and quite fun, its basically an OutRun-style game, but with a nitro booster.  Like OutRun the music is quite catchy too :)

best regards,
- dink

Nice work big fella!! Not a bad game Taito's Top Speed a precursor to the more famous Chase HQ.
Title: Re: dink's FBA Development & Fixes thread
Post by: csmart on August 05, 2016, 10:08:08 am
That's awesome Top Speed was one of my favorite racing games while I was growing up. Great fix.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 05, 2016, 09:49:22 pm
Ufo Senshi Yohko Chan got a fix today, the platform part wasn't scrolling properly.  Big thanks to Gab75 for reporting this bug.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 08, 2016, 10:44:39 pm
this needs to be mentioned.
good, bad & ugly:

ym2151, states no longer rely on having the same samplerate & interpolation settings on the machine that loads them as the machine that saved them.  cons: breaks all old savestates from prior fba versions for games that use ym2151.

msm6295, massive rewrite which also breaks prior states for games using this chip.

sorry about that!
best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 11, 2016, 09:39:28 pm
Could be Dungeon Magic / Light Bringer added to the emulator? Haven't played that game since ages.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 12, 2016, 01:12:14 am
Could be Dungeon Magic / Light Bringer added to the emulator? Haven't played that game since ages.

IIRC Dungeon Magic/Light Bringer should be a game based on Taito F3 System arcade board... There are a lot of very good games based on this hardware (e.g. Bubble Memories, Darius Gaiden, Elevator Action II, Puzzle Bobble 3, etc.), but to add them to the FBA it's not an easy task... moreover the emulation of Ensoniq ES5505 sound chip is totally absent among the supported cores. In few words, I don't think that we will see soon the Taito F3 games emulated, maybe one day (I hope in the not too distant future! :P )
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 12, 2016, 08:16:29 am
IIRC Dungeon Magic/Light Bringer should be a game based on Taito F3 System arcade board... There are a lot of very good games based on this hardware (e.g. Bubble Memories, Darius Gaiden, Elevator Action II, Puzzle Bobble 3, etc.), but to add them to the FBA it's not an easy task... moreover the emulation of Ensoniq ES5505 sound chip is totally absent among the supported cores. In few words, I don't think that we will see soon the Taito F3 games emulated, maybe one day (I hope in the not too distant future! :P )

We have a partial f3 driver that needs a lot of work, esp. with the soundcore and graphic:layers priorities and such.  I gave up trying to get anything useful out of it because the amount of work required to get it right is astronomical, and f3 games don't really interest me.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 12, 2016, 08:47:30 am
I see. There are games I like and games that I don't like. But this decision isn't based on the fact what system it runs on. Actually if I must chose a system then PC88 or PC98 just could ruin any other emulator because it has far more interesting and unique games, and even better chiptunes.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 12, 2016, 09:23:07 am
We have a partial f3 driver that needs a lot of work, esp. with the soundcore and graphic:layers priorities and such.  I gave up trying to get anything useful out of it because the amount of work required to get it right is astronomical, and f3 games don't really interest me.

best regards,
- dink
If I ever get another solid block of time, I would love to get that doing something more than it is, but I just have no time. :(

I see. There are games I like and games that I don't like. But this decision isn't based on the fact what system it runs on. Actually if I must chose a system then PC88 or PC98 just could ruin any other emulator because it has far more interesting and unique games, and even better chiptunes.  :biggrin:

http://http://neo-source.com/index.php?topic=980.msg15184#msg15184
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 12, 2016, 02:30:13 pm
@iq_132: snooping through your old posts I noticed that you made a preliminary driver for the SEGA G80 Vector games... didn't you finish the driver porting for "lack of time/interest" or for "technical issues" ?
http://http://neo-source.com/index.php?topic=980.msg14652#msg14652

PS: please excuse me for the OT... but I'm pretty curious! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 12, 2016, 03:00:57 pm
If I ever get another solid block of time, I would love to get that doing something more than it is, but I just have no time. :(

http://http://neo-source.com/index.php?topic=980.msg15184#msg15184

I would like to work on this with ya when the time is right.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 12, 2016, 03:43:32 pm
@iq_132: snooping through your old posts I noticed that you made a preliminary driver for the SEGA G80 Vector games... didn't you finish the driver porting for "lack of time/interest" or for "technical issues" ?
http://http://neo-source.com/index.php?topic=980.msg14652#msg14652
Lack of interest, then a hard drive getting wiped. Sadly.
Quote
PS: please excuse me for the OT... but I'm pretty curious! ;)
No worries!
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 14, 2016, 02:39:55 pm
There is a graphical error with the Sunset Riders. It occurs after you defeat the brothers and the girls start to dance.
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on August 14, 2016, 02:43:26 pm
There is a graphical error with the Sunset Riders. It occurs after you defeat the brothers and the girls start to dance.

this was already fixed on 0.2.97.39. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 14, 2016, 03:03:50 pm
Good to know, thanks.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 14, 2016, 09:12:17 pm
Pityesz, thanks for the report.  The bug in question was fixed a few weeks ago :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 15, 2016, 02:24:16 pm
No problem, then an another report...  :biggrin:

The Metamorphic Force has some transparency glitches on the character sprites/models. I haven't checked this with every ROM, only with the parent. Especial the bear-guy suffers from this, but it happen on bosses too.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 15, 2016, 03:13:56 pm
No problem, then an another report...  :biggrin:

The Metamorphic Force has some transparency glitches on the character sprites/models. I haven't checked this with every ROM, only with the parent. Especial the bear-guy suffers from this, but it happen on bosses too.
IIRC that's already been reported. You can see on the hands of the characters.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 15, 2016, 04:56:01 pm
No problem, then an another report...  :biggrin:

The Metamorphic Force has some transparency glitches on the character sprites/models. I haven't checked this with every ROM, only with the parent. Especial the bear-guy suffers from this, but it happen on bosses too.

Keep the reports coming.. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: mynamesnotlars on August 15, 2016, 06:24:21 pm
Hey everyone, I got routed to this thread via the TASVideos IRC. First I want to give a huge thank you to Dink for obsoleting FBA-rr. That thing gives us nightmares.

I'm not sure if this is the correct thread, but I'd like to request that with the next build of FBA you add support for the Taito/SNK game Kaiser Knuckle. It's famous for it's nigh unbeatble final boss and we'd like to show off us killing him.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 20, 2016, 01:39:16 pm
The Warrior Blade: Rastan Saga Episode III's color looks a little messed up. I haven't played it on real arcade machine, but seems to be different from how it looks on the videos on YouTube.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 22, 2016, 08:51:04 am
Re Rastan III - The Warrior Blade: running FBA side-by-side with MAME there is no difference in color.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 22, 2016, 02:34:42 pm
Then I think even the MAME have the same problem with Rastan III lol.  :eek:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 23, 2016, 07:32:02 am
More good news: the track and field driver is done :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 23, 2016, 08:32:05 am
Excellent work guys! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on August 23, 2016, 09:12:33 am
The FBA boys are busy busy good job fellas!!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 27, 2016, 10:48:42 pm
Recent fixes:  (big thanks to Gab75 for reporting them)
Konami GT / RF2 & Hyper Crash have improved analog controls
Konami GT / RF2 now have a proper gear shifter also...
Fixed voice (VLM5030) samples in Hyper Crash
US AAF Mustang: Fixed background movement and sprite priority issues, also applies to Twin Action

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 28, 2016, 12:37:52 am
Recent fixes:  (big thanks to Gab75 for reporting them)

Thanks to you for your work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on August 28, 2016, 08:50:16 am
@dink some nice fixes and improvements there!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on August 28, 2016, 01:49:02 pm
nice to see more fixes! ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 30, 2016, 08:42:58 am
The Bucky O'Hare has some transparency glitches during the second stage's cages.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 30, 2016, 01:19:51 pm
The Bucky O'Hare has some transparency glitches during the second stage's cages.

Can you take some screenshots for a better understanding of supposed bug? :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on August 30, 2016, 03:21:49 pm
Here you go:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 30, 2016, 03:59:48 pm
Thanks for sending the screenshot... it seems to be an issue related to the sprite priority...
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 30, 2016, 04:43:26 pm
Thanks for sending the screenshot... it seems to be an issue related to the sprite priority...
Definitely. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 30, 2016, 10:31:54 pm
In the current dev. build of FBAlpha that Bucky O'Hare priority bug is already fixed.  I can't tell you when it was fixed, but I just played to the 3rd level and everything is in order :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 31, 2016, 02:10:35 am
So, at present, the only graphic glitches should be some little bugs with the translucent shadows and with the sprites/objects scaling code... as far as I know, these "bugs" are also in the MAME emulation...

On the "mobile platform" (second part of stage 2) the characters and enemies shadows are not visible, maybe a priority issue (as you can see in the screenshot 1).

Sometimes, when the sprites zoom, they don't stick well among them and this produces vertical split lines (as you can see in the "blasts" of screenshot 2)... probably a perfectible math for the sprite zooming.

PS: "for the record", these are very minor bugs! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 31, 2016, 08:15:56 am
It's similar to the Jackie Chan/suprnova roz line issue, which is nearly unfixable in emulation.  Also note, in MAME the graphics share the same issues.
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on August 31, 2016, 10:04:16 am
It's similar to the Jackie Chan/suprnova roz line issue, which is nearly unfixable in emulation.  Also note, in MAME the graphics share the same issues.
can someone do a capture of the arcade game ? maybe it happens also there.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 31, 2016, 11:25:33 am
can someone do a capture of the arcade game ? maybe it happens also there.

Here the link to a video captured from the original arcade board: https://youtu.be/l-K1bhAxqSU

The video quality isn't very good,, but enough to give a comparison... the sprite scaling and traslucent shadows haven't the issues observed in the emulated version.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 31, 2016, 11:28:47 am
Here the link to a video captured from the original arcade board: https://youtu.be/l-K1bhAxqSU

The video quality isn't very good,, but enough to give a comparison... the sprite scaling and traslucent shadows haven't the issues observed in the emulated version.
Holy potato quality.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 31, 2016, 11:41:33 am
Holy potato quality.

This video should be a little better... semi-"holy potato quality"! :P
https://youtu.be/ZmeyR0rMPo4
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 01, 2016, 09:12:48 pm
Speaking of beat 'em ups, there's a really great one that's not on FBA yet: Captain America and the Avengers by Data East (rom name = captaven). I was searching what Data East driver this game belongs exactly, but didn't have luck. Is the driver in question emulated by FBA already?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 01, 2016, 11:52:36 pm
synnchan: Try the megadrive version :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 02, 2016, 12:48:35 am
Speaking of beat 'em ups, there's a really great one that's not on FBA yet: Captain America and the Avengers by Data East (rom name = captaven). I was searching what Data East driver this game belongs exactly, but didn't have luck. Is the driver in question emulated by FBA already?

Currently, DECO-32 (deco32.c driver) games aren't supported by FBA. Maybe in the future...  keep your fingers crossed ! ;)

PS: IMHO another excellent DECO-32 side-scrolling beat'em up is Night Slashers.
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 02, 2016, 08:35:00 pm
Oh, so it's DECO-32.

Is there a way to find what driver a game belongs to through mame? I haven't used mame in a while, but I noticed the most recent versions include a small info list about every game, but I could not find specific things like drivers listed there (maybe it could be there but I'm just blind...)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 03, 2016, 12:31:26 am
Oh, so it's DECO-32.

Is there a way to find what driver a game belongs to through mame? I haven't used mame in a while, but I noticed the most recent versions include a small info list about every game, but I could not find specific things like drivers listed there (maybe it could be there but I'm just blind...)

Maybe this website can be useful for your request: http://www.progettoemma.net/

- Use the "Search tools" option (menu on the left) to find a specific game;
- among other things/informations, when you select a game, in "emulation box" there is the MAME driver used for the emulation (The MAME driver of this machine is:);
- moreover, if you click on driver name you'll get a list of all games that use this driver.

... I hope to have been a help to you! ;)

PS: excuse me for the little OT ! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 03, 2016, 01:10:50 pm
Seems to be a nice site, but I only see the manufactures listed. I actually meant drivers in a more specific way. You know, things like CPS2, DECO IC16, Sega System 32, CAVE CV1000B, etc etc.

Is there a way to search for this kind of information? If there's none, then no worries. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 03, 2016, 01:52:26 pm
Seems to be a nice site, but I only see the manufactures listed. I actually meant drivers in a more specific way. You know, things like CPS2, DECO IC16, Sega System 32, CAVE CV1000B, etc etc.

Is there a way to search for this kind of information? If there's none, then no worries. :)

If you use the "Advanced Search" there is an option where is possible to select a specific driver (Source:)... in any case, if you want  to have a subdivision of games according to the arcade boards (Neo Geo MVS, CPS1, CPS2, System 16, System 24, etc.) you can try this website: http://www.system16.com/
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 03, 2016, 03:34:45 pm
Thank you. Those seem to work. :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 06, 2016, 07:55:20 am
this took literally weeks to figure out, but now its fixed :D
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 06, 2016, 07:01:47 pm
Wow! Thank you so much, dink. This is one of the best Konami beat 'em ups so it's nice to see it fixed. Great job! :D
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 07, 2016, 06:17:14 am
this took literally weeks to figure out, but now its fixed :D

Excellent work, thanks dink! :)

PS: maybe a similar graphic glitch is in Konami Violent Storm (some pixels of the sprites are trasparent, while they should be opaque). If you watch the attached screenshots you can observe that some parts (pixels) of the belt and gloves are in trasparency with the background.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 07, 2016, 07:08:35 am
Gab75 yes its the same problem, nice catch!  It's funny how in both games the issue affects the armbands :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 07, 2016, 08:59:12 am
Yes, a very similar bug "in every respect"... after all both games use almost the same arcade board and, probably, also the related game engines are rather similar! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 07, 2016, 03:52:05 pm
I did a quick test with the other games based on "mystwarr.c" driver (Gaiapolis, Monster Maulers and Mystic Warriors) and, at first glance, they seem to be free from "trasparent pixels bug" ! :)

PS: unfortunately, I was unable to test "Martial Champion", because it doesn't work in FBA.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 10, 2016, 07:11:20 pm
Updated our cheat engine a little bit:

One-shot cheats like "Finish this level now!" (and such) now work as they should.

EDIT: (later that day...) Level selection cheats are now supported as well.
EDIT: (even later that day.. or next morning) Wait for modification cheats are also supported.

Watch-mode is added - for the "Watch *stuff*" cheat options.  For example: in Battle Garegga, there is a cheat to "Watch game rank".  This will show the rank value at the bottom-right of the screen.

Other stuff:
Added support for KOF98AE >16mbyte adpcm sample rom banking, for the new character voices.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 11, 2016, 09:36:12 pm
Metamorphic Force "Break The Statue"
https://www.youtube.com/watch?v=BOO_WfGFAmQ

Wheres the "Start" text in this picture?  Watch the video and find out...
p.s. thanks Gab75 for the savestate and reminding me to try to fix this

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 11, 2016, 11:01:03 pm
I think that may be broken in MAME too. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 11, 2016, 11:05:15 pm
Whoa! I didn't know the statue thing was broken. Thanks again, dink. :D
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 12, 2016, 12:33:31 am
Metamorphic Force "Break The Statue"
https://www.youtube.com/watch?v=BOO_WfGFAmQ

Wheres the "Start" text in this picture?  Watch the video and find out...
p.s. thanks Gab75 for the savestate and reminding me to try to fix this

Thanks to you to fix it! :)
Now the Metamorphic Force emulation is perfect! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 12, 2016, 12:48:41 am
I think that may be broken in MAME too. ^^

Yes, at present, the "MAME version" should be unfixed yet!
Hereunder two explanatory screenshots... :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 12, 2016, 07:59:01 am
It's not perfect, there's at least a handfull of bugs left in the graphics emulation, and one of them is exclusive to fbalpha (titlescreen should fade to a black background - but doesn't).  This one, though, is (was)just horrible and very obvious.  The first 2 times I got here I didn't realize that one had to break the statue - I was just collecting powerups that were being tossed out. (derp!)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on September 12, 2016, 09:12:30 am
There is a monir graphical problem with Ufo Senshi Yohko Chan. At the screen's bottom the weapons' name are invisible. If you move between screens however partially visible.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 12, 2016, 09:54:41 am
It's not perfect, there's at least a handfull of bugs left in the graphics emulation, and one of them is exclusive to fbalpha (titlescreen should fade to a black background - but doesn't).  This one, though, is (was)just horrible and very obvious. 

So I rectify: the game emulation is near to be "perfect"... in any case, nice work dink! ;)

The first 2 times I got here I didn't realize that one had to break the statue - I was just collecting powerups that were being tossed out. (derp!)

I had the "inverse issue"... the first time I only broke the statue and I overlooked all powerups! :P
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 12, 2016, 10:35:14 am
There is a monir graphical problem with Ufo Senshi Yohko Chan. At the screen's bottom the weapons' name are invisible. If you move between screens however partially visible.

I'm not 100% sure, but it should be normal, a specific weapon's name is visible if and when you buy it in the shop. As you wrote, when you move between screens, sometimes all weapons' names appear for a short amount of time, however I don't know if this is "normal" or it's a "small bug"...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 12, 2016, 10:45:02 am
There is a monir graphical problem with Ufo Senshi Yohko Chan. At the screen's bottom the weapons' name are invisible. If you move between screens however partially visible.

Thanks!  It will probably be fixed in the next version :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 12, 2016, 11:24:49 am
Added River Patrol & Silver Land:
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on September 12, 2016, 11:25:35 am
Excellent work btw! You've been on fire lately.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on September 12, 2016, 09:28:38 pm
Yeah, I checked it, the UFO Senshi Yohko Chan really doesn't have visible weapon names till you bought it. Sorry for the wrong feedback. XD
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 13, 2016, 07:02:23 pm
One of my favorite homebrew games got a sequel, this time with 2player mode - at the same time w/optional vs. mode.  It's Super UWOL! SG-1000, on the Sega SG-1000 :)

Little gameplay video I recorded... https://www.youtube.com/watch?v=DAFzbL9AOGs

D/L / INFO
Get some free roms and source code here: http://www.mojontwins.com/juegos_mojonos/super-uwol-sg-1000/
ROMset zipped and ready for the next version of FBAlpha: http://www62.zippyshare.com/v/nB1A7PPI/file.html
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 13, 2016, 10:05:48 pm
Some behind the scenes fixes:
fixed: oddly-placed black lines and opaque windows (when they should be transparent) in Lethal Enforcers
fixed: the spotlight on the bellydancer in Violent Storm (thanks gab75)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 16, 2016, 09:14:12 am
updated the tms9928a vdp core to scanline based, this fixes the mini radar in Colecovision Defender. (and possibly more accurate video emulation in other Coleco/SG-1000 games)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 16, 2016, 11:40:21 pm
A new classic comes to FBA (MSX fans will recognize this)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 18, 2016, 06:06:40 pm
MSX1 Carttridge-games come to FBAlpha!
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on September 18, 2016, 06:22:50 pm
great job dink !!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 18, 2016, 11:15:41 pm
Happy fun times! :D
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 19, 2016, 12:26:51 am
MSX1 Carttridge-games come to FBAlpha!

A very good news! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on September 19, 2016, 08:52:42 am
MSX1 Carttridge-games come to FBAlpha!

Fantastico!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on September 19, 2016, 08:25:40 pm
Oh the MSX games... my childhood...  :smilie:

Does you planning to add Phelios' arcade version also?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 20, 2016, 12:48:34 am
Does you planning to add Phelios' arcade version also?

Phelios is based on the Namco System 2 arcade board and I don't think that a porting will be available soon... in any case, I will be happy to be proved wrong! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on September 20, 2016, 09:52:24 pm
Phelios is based on the Namco System 2 arcade board and I don't think that a porting will be available soon... in any case, I will be happy to be proved wrong! :)

I don't want to sound rude... but I hope so too. I'm not really that good in shmups (to be exact I'm suck in that genre, my reflex doesn't support scrolling lol ) but for some reason Phelios is a way too easy on the Megadrive for me. And I think it still has more chance to happen than Nebulas Ray. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 21, 2016, 01:08:36 am
I don't want to sound rude... but I hope so too. I'm not really that good in shmups (to be exact I'm suck in that genre, my reflex doesn't support scrolling lol ) but for some reason Phelios is a way too easy on the Megadrive for me. And I think it still has more chance to happen than Nebulas Ray. :)

IIRC Nebulas Ray is based on the Namco System NB1, a newer arcade board than the Namco System 2... personally, I'm still keeping my fingers crossed for the porting of Namco System 1 games (e.g. Dragon Spirit, Galaga 88, Pac-mania, Rompers, Splatterhouse, etc.) ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 21, 2016, 07:40:33 am
Regarding MSX1, are there any games (cart-rom only!) that I should make sure is in the list?
Last night, I added (by hand) all of the decent MSXDEV games from the last few years, some bad ones were left out though. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on September 21, 2016, 08:09:32 am
Maybe the Valis games. I think those are carts, or at least the first game was cart.
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on September 22, 2016, 04:09:07 pm
As for MSX, I like Psycho World. It's best version of the game (superior to the SMS and GG versions). :) not sure if it's cart, though.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 22, 2016, 05:30:57 pm
As for MSX, I like Psycho World. It's best version of the game (superior to the SMS and GG versions). :) not sure if it's cart, though.

The original game should be available on cartridge, but (IIRC) it's an MSX2 game (I don't know if there is an MSX version too)...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 22, 2016, 06:15:13 pm
Psycho World is a great game, but its MSX2+ and disk only.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 03, 2016, 09:04:40 pm
There was a less known Godzilla arcade game. Never played or seen it yet, but I'm curious if that can be added to the list.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 04, 2016, 01:14:35 am
There was a less known Godzilla arcade game. Never played or seen it yet, but I'm curious if that can be added to the list.  :smilie:

Your informations are too general... maybe you are talking about Banpresto Godzilla (legionna.c driver)... YouTube video: https://youtu.be/hnF7gKTY22M

... in any case, now dink is doing an excellent work with the MSX driver! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 04, 2016, 08:31:17 am
It is general, because I never seen it lol. The one you linked is pretty much the same as the one I heard. Godzilla was always a good show, would be awesome to have this game in FBA. XD

P.S.: I have the PC-Engine CD Godzilla, and this one looks a way more better.

I look forward to the MSX games. I haven't played those one since 15 or even more years. But I only know the Valis as ROM.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 04, 2016, 10:01:16 am
It is general, because I never seen it lol. The one you linked is pretty much the same as the one I heard. Godzilla was always a good show, would be awesome to have this game in FBA. XD

The problem with games in the Legionnare driver is that only Denjin Makai is currantly fully playable, Godzilla is thought of as being
fully playable but the MAME dev's are not 100% sure, all the other games Heated Barrel, Legionnare, SD Gundam Rainbow Trout and
Seibu Cup Soccer dont work just now to varying degress due to problems emulating the protection schemes they used.

I cant speak for FBA devs here but i think the chances of this driver ever being ported across from MAME to FBA are zero maybe until such a time that all the games are fully working.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 04, 2016, 10:49:46 am
The problem is that everyone want perfect emulation. This is a PC, far more superior compared to the 20 years old machines in every possible aspect. If the game not run like as it did back then is no problem for me, neither for my friends I play often online with emulated games. If it runs a little faster or such actually good since the old games are often feels too slow after I play a little on UT2004.

Most of the arcade games doesn't have sprite flickering and I haven't remember seeing it in games I play on FBA, but an unlimited sprite option would be also cool. Maybe overclock to some games that slow down because of the too much in-games happenings. Of course a special sync feature would be required for online play to make the emulation identical to each other (autoset the client's hardware settings to the server's, but doesn't touch filters and such).
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 04, 2016, 05:20:32 pm
The problem is that everyone want perfect emulation.

Sure but broken emulation is another matter..............

Legionnare : Enemies move away from ya and disappear off the screen if you are lucky enough to catch them before they do that
then the level one boss for good measure just drops through the floor meaning you cant progress past level one.

Heated Barrel : This game Locks up on level 3 boss although sometimes it doesn't and you can get as far as the start of level 4 then
it's 100% guaranteed to do so.

Seibu Cup Soccer : Game locks up as soon as the teams run onto the pitch

SD Gundam Rainbow Trout : Playable to the end but can lock up at any time depends on your luck i suppose

GodZilla : Playable according to MAME Dev's but with an unemulated Protection Scheme who knows how it functions maybe it
locks up as well..??

Denjin Makai : Nice game doesn't use the Seibu Cop Protection meaning it's fully playable

I just cant see FBA dev's wanting to take the trouble of porting the legionnare driver across to FBA ATM because with nearly
all of the games in the driver Broken it would make no sense :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Haze on October 04, 2016, 05:47:05 pm
There was a less known Godzilla arcade game. Never played or seen it yet, but I'm curious if that can be added to the list.  :smilie:

a lot of people called this 'Godzilla' before it was emulated and the real title known.

http://www.progettoemma.net/?gioco=daikaiju
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 04, 2016, 08:28:49 pm
a lot of people called this 'Godzilla' before it was emulated and the real title known.

http://www.progettoemma.net/?gioco=daikaiju

I think the fighting one was the one I look for. It was mentioned when we played on the PC-Engine Godzilla fighting game, I'm sure this has connection.  :smilie:

I've just seen Pulstar in the game list of FBA. Would be awesome if Blazing Star make its way here too.
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on October 09, 2016, 02:12:34 pm
I just remembered a MSX game that would be interesting to add: Tower of Druaga. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 09, 2016, 02:18:00 pm
I just remembered a MSX game that would be interesting to add: Tower of Druaga. :)

Already done... thanks to dink! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 09, 2016, 05:31:35 pm
Thanks to a long night of coding, we can even play rare tape games on MSX.  Koichi Nishida created this awesome game called Super!! Ilevan.  Its kinda similar to QUOD: INIT EXIT on c64, just kinda.  You are a little pixelated blob with special super teeth that can eat endless amounts of cake.  One day, whilst eating infinite cakes - these pesty alligators decided to gang up and steel your super-teeth...  and when they do, there's only one way to get them back.  Watch this little video to find out how :)

btw, all loading is automatic, you don't have to type anything.  I have programmed a little robot to do the typing for you when a game is selected.

https://www.youtube.com/watch?v=rOG1rb_VPzQ

- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 11, 2016, 08:32:27 pm
PSA:
Update your Capcom CPS2 romsets!  None of them will work with the new release of FBAlpha unless you do.  The new romsets put the keyfiles into the romsets, and not in the code/exe like before.

p.s. new release in a few days :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on October 12, 2016, 07:58:39 am
Oh. Silly me, I didn't know Tower of Druaga was already emulated. :redface: Thanks dink!

New release in a few days? Awesome news! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 15, 2016, 07:33:01 pm
Did a little "longplay" of Temptations for MSX in FBA.
Its one hella hard, yet addictive game - mostly because the little monk-guy is
drunk and trying to control him is at least half of the insanity.

https://www.youtube.com/watch?v=B0y_2FRYbx8
Hint: click show more for free pie!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 17, 2016, 05:57:15 pm
I asked it previously but since I just edited one of my older posts it wasn't that conspicuous. Does the Blazing Star will be added sometimes? It is very similar to Pulstar, that already here.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 17, 2016, 06:12:03 pm
I asked it previously but since I just edited one of my older posts it wasn't that conspicuous. Does the Blazing Star will be added sometimes? It is very similar to Pulstar, that already here.  :smilie:

We already have Blazing Star in the NeoGeo section. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 17, 2016, 08:19:25 pm
We already have Blazing Star in the NeoGeo section. :)

best regards,
- dink

Lol, I'm sorry. I haven't seen I already have the ROM. Don't know how but it was already in the folder.

Anyway what mean "Update your Capcom CPS2 romsets"? New dumps or BIOS files?
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 17, 2016, 10:11:39 pm
Lol, I'm sorry. I haven't seen I already have the ROM. Don't know how but it was already in the folder.

Anyway what mean "Update your Capcom CPS2 romsets"? New dumps or BIOS files?
Someone reverse engineered how to reprogram dead cps2 boards. The new files contain the decryption keys and some other configuration data
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on October 18, 2016, 04:46:29 pm
Have plans for add Konami GX Hardware? (This run in MAME).

http://www.system16.com/hardware.php?id=574

Have nice Fighting Game called Dragoon Might :)

https://www.youtube.com/watch?v=UiAcA7kurug

------------------------

About MegaDrive, possible fix Ultimate Mortal Kombat Trilogy (Ultimate Mortal Kombat 3 hack by Kabal). Need increase capacity Rom (Limit is 4Mega).

https://www.youtube.com/watch?v=F2hY57AwCIc

I have latest version Ultimate Mortal Kombat Trilogy. You need for test/fix?.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 19, 2016, 08:56:48 am
Me and Gab75 worked hard to create the most perfect collection of msx-1 games, including all the latest (and not latest) homebrew stuff, and even some demos (demoscene stuff).  Nearly every game (out of 1000 or so) has been tested and nice title/game pics created by Gab75. 

If you happen to be interested in this collection and can't find it via the normal venues, PM me and I will point you in the right direction.

Also don't forget to get all the title/game pngs for the FBA interface @ http://http://neo-source.com/index.php?topic=2838.0

Note: if ya having issues controlling a certain game, check the game "Notes:" in the game list.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 19, 2016, 09:32:14 am
Have plans for add Konami GX Hardware? (This run in MAME).

http://www.system16.com/hardware.php?id=574

Have nice Fighting Game called Dragoon Might :)

https://www.youtube.com/watch?v=UiAcA7kurug

------------------------

About MegaDrive, possible fix Ultimate Mortal Kombat Trilogy (Ultimate Mortal Kombat 3 hack by Kabal). Need increase capacity Rom (Limit is 4Mega).

https://www.youtube.com/watch?v=F2hY57AwCIc

I have latest version Ultimate Mortal Kombat Trilogy. You need for test/fix?.
FBA's M680EC20 is buggy. I'm about 95% sure of it. It's what's holding back my Taito F3 port, my Semicom Dreamworld/Baryon port, and is causing a lockup in one of the FuukiFg3 games.
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on October 19, 2016, 01:39:46 pm
FBA's M680EC20 is buggy. I'm about 95% sure of it. It's what's holding back my Taito F3 port, my Semicom Dreamworld/Baryon port, and is causing a lockup in one of the FuukiFg3 games.

Ok :( Thanks for reply :)

Good Luck ^_^
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 19, 2016, 08:41:29 pm
Combone, pm me a link to this ultimate mortal kombat megadrive rom and I'll try to add it.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 20, 2016, 05:44:55 am
Hi, I was wondering if you guys might add support for the arcade versions of Double Wings, Twin Cobra & Flying Shark in a future release of FBA?, love the emulator, thanks.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 20, 2016, 04:04:27 pm
I downloaded the Armored Warriors from many different source and the new version can't start it. It never mark the game as available, and if I try to start it always got black screen. I really not got this thing.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 20, 2016, 05:09:06 pm
All Capcom CPS2 roms need to be updated to the 0.178 version to work.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 20, 2016, 05:39:55 pm
Thanks for your patience, now it works great.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 20, 2016, 06:56:57 pm
Hi, I was wondering if you guys might add support for the arcade versions of Double Wings, Twin Cobra & Flying Shark in a future release of FBA?, love the emulator, thanks.

Double Wings would require the FBA Dev's to rework a shitload of Deco Protection source files so i'd rule that one out as for
the other two well you might just get your wish :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 20, 2016, 08:45:33 pm
Everything works fine now, except Demon's World Set 2. It ask for "o16n-10.bi" however it can't be find anywhere. Also this ROM set's order are messed up and had to rename them.
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 20, 2016, 10:05:18 pm
Double Wings would require the FBA Dev's to rework a shitload of Deco Protection source files so i'd rule that one out as for
the other two well you might just get your wish :)

That'd be great, pity about Double Wings. Thanks for the reply.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 21, 2016, 12:48:13 am
Hi, I was wondering if you guys might add support for the arcade versions of Double Wings, Twin Cobra & Flying Shark in a future release of FBA?, love the emulator, thanks.

Twin Cobra and Flying Shark/Sky Shark are certainly two good shoot'em ups, but they request the TMS32010 core emulation (among other things) and, as far as I know, it's not supported by the current version of FBA...
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 21, 2016, 01:10:27 am
Here's a Dink / IQ_132 co-venture. I wrote the driver, Dink ported the tms32010 core!
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 21, 2016, 01:20:16 am
You are great... guys! :)

PS: if I'm not wrong, also Toaplan Wardner/Pyros should use the TMS32010 DSP... ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 21, 2016, 04:36:58 am
Wow, thanks for filling my request in record time, Dink & IQ_132, I'm blown away guys, thank you.  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 21, 2016, 08:32:00 am
I was looking at some more games in FBA and noticed that the video for Gemini Wing is upside down. Don't know if this is a known bug or not with 0.2.97.39.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 21, 2016, 08:40:28 am
Wow, thanks for filling my request in record time, Dink & IQ_132, I'm blown away guys, thank you.  :biggrin:

Think of it more like a reminder, because we've been wanting to do this for a long time and got sidetracked.  SkyShark (u.s. version of Flying Shark) was my top3 arcade games of back in the day. (along with Centipede and Gyruss)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 21, 2016, 01:04:00 pm
I was looking at some more games in FBA and noticed that the video for Gemini Wing is upside down. Don't know if this is a known bug or not with 0.2.97.39.

Try to set the blitter's type to DirectX 9. That solved the upside down problem for me with all the games.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 21, 2016, 02:47:31 pm
I was looking at some more games in FBA and noticed that the video for Gemini Wing is upside down. Don't know if this is a known bug or not with 0.2.97.39.

The issue is only with the "Basic" blitter, you can select a different blitter in the "Video>>Select blitter" sub-menu... personally I use the "Enhanced" blitter.
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 21, 2016, 08:57:56 pm
Thanks, Pityesz & Gab75, both ways worked a charm. I'm having a problem though going to full screen, I get a "FB Alpha Error, Problem setting '640x480x23bpp (60Hz)' display mode", seems no matter what resolution I set it at I get this message, also tried different blitters with the same FB Alpha error. I have an Asus N53S laptop, Windows 10 Pro, Intel Core i7 2670QM with two graphics cards (one on board I believe), a Nvidia GT540M 2Gb & Intel HD Graphics 3000. Using either card to display FB Alpha results in the same error. Anyone got any ideas why this might be happening?.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 21, 2016, 09:47:06 pm
Trick, try setting different values for the Fullscreen Horizontal/Vertical and Fullscreen BPP entries under the Video pulldown.
Also, I get the best results with the Enhanced Blitter, but my pc is ancient (p4/2.99ghz/winxp).  It might be worth a try to try this blitter too.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on October 21, 2016, 10:07:19 pm
Thanks, Dink. Changing the 'Fullscreen bitdepth' to 32bit and changing the fullscreen horizontal & vertical resolutions to 1366x768 stopped the error. Other resolutions either distort the image or result in the same error.
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on October 22, 2016, 04:53:07 am
180 Degrees - msx_180 - game freeze on start

Main Event (1984) - mainsnk- not work anyway - stil black screen
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 22, 2016, 07:03:43 am
180 Degrees - msx_180 - game freeze on start

Main Event (1984) - mainsnk- not work anyway - stil black screen

Both games work for me (I tested them with the official FBA 0.2.97.39).

Are you sure to have the right ROMs?

If so, you can try to delete the specific .ini files (mainsnk.ini and msx_180.ini) in "*FBA>>config>>games" folder and after reload the games.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 22, 2016, 08:08:33 am
After 180 loads, press space at the loading screen, fire on the titlescreen, and select a game by pressing #1-#4

For the main event, load the game and ctrl-f5 then hit Defaults button, OK and re-load the game.  Due to a bug in the last version, It wrote bad data to the dips.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on October 22, 2016, 02:14:31 pm
Yes Twin Cobra is now alive on FBA !!! It remembers me a lot of memories on a Arcade center when i was young :)

Thanks to the team iq_132/El dinko !
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 23, 2016, 02:50:11 pm
I don't know if it is possible but could be Salamander 2 and the Sexy Parodius added sometimes?  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on October 23, 2016, 06:52:45 pm
Hi :)

I found bug in International Superstar Soccer Deluxe / Ronaldinho Soccer 98 (MegaDrive).

(http://i.imgur.com/6hIVT2P.png)

Tested in all Blitter options :(
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 23, 2016, 10:15:11 pm
Thanks for the bug report.  Unfortunately at this time there's nothing more we can do for the pceengine and megadrive code in fbalpha, a lot of games do work perfectly, but there is a handfull of games on each system which have a few issues that can't be fixed without ripping out the current code and replacing it with something better.  Sorry about the bad news,

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on October 24, 2016, 12:12:45 am
Thanks for the bug report.  Unfortunately at this time there's nothing more we can do for the pceengine and megadrive code in fbalpha, a lot of games do work perfectly, but there is a handfull of games on each system which have a few issues that can't be fixed without ripping out the current code and replacing it with something better.  Sorry about the bad news,

best regards,
- dink

Ok :( I understand.

Thanks for all :)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 24, 2016, 09:53:05 am
Here's a Dink / IQ_132 co-venture. I wrote the driver, Dink ported the tms32010 core!

It's all Fandabbydosy :)
Title: Re: dink's FBA Development & Fixes thread
Post by: IPLA on October 24, 2016, 10:31:54 am
Here's a Dink / IQ_132 co-venture. I wrote the driver, Dink ported the tms32010 core!

Flying Shark!

Thanks to the FBA Team  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 24, 2016, 01:15:02 pm
Seems like the 64 bit version of FBA can't find the Kaillera library. The XP version works perfectly anyway.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 24, 2016, 03:59:56 pm
I recommend to stay away from anything but the winxp version - regardless of your OS & bits.  I got a lot of bug reports which were solved just by using this version (neogeo going bonkers, recorded inputs going out of sync, off the top of my head).  In fact, it shouldn't even be called the winxp version, it should be called the gcc version, also gcc is what the active devs use (iq, dink, JacKc).

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 24, 2016, 04:34:43 pm
I see, then that is what I will do. Thanks.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 25, 2016, 10:07:22 am
The Rampage: World Tour has no sound at all. I read on some forums the game had some problems with emulators but most of the times they only say slow downs. Could this be fixed?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 25, 2016, 11:05:07 am
The Rampage: World Tour has no sound at all. I read on some forums the game had some problems with emulators but most of the times they only say slow downs. Could this be fixed?

First of all, you need to consider that all "Midway Wolf Unit" games* are in "pre-alpha" phase... at the current stage the audio sub-system (ADSP-2105 + DCS Sound System) isn't emulated by FBA, maybe in a next release, but I don't think in a near future...

*2 On 2 Open Ice Challenge, Mortal Kombat 3, NBA Hangtime. NBA Maximum Hangtime, Rampage World Tour, Ultimate Mortal Kombat 3 and WWF Wrestlemania.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 25, 2016, 11:10:09 am
First of all, you need to consider that all "Midway Wolf Unit" games* are in "pre-alpha" phase... at the current stage the audio sub-system (ADSP-2105 + DCS Sound System) isn't emulated by FBA, maybe in a next release, but I don't think in a near future...

*2 On 2 Open Ice Challenge, Mortal Kombat 3, NBA Hangtime. NBA Maximum Hangtime, Rampage World Tour, Ultimate Mortal Kombat 3 and WWF Wrestlemania.
I think he means the Sega MegaDrive version. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 25, 2016, 11:29:18 am
I think he means the Sega MegaDrive version. ^^

As far as I know, there isn't a Mega Drive version of "Rampage World Tour"... maybe you're confused with "Mortal Kombat" games...  :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 25, 2016, 01:07:16 pm
I mean the arcade version. I have the N64 version, and the only game I still have for that console. I just wanted to try the arcade one and maybe to do some netplay for nostalgic purpose. Anyway thanks for the info, I wait till it will have a working build.  :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on October 27, 2016, 07:42:48 pm
Sorry for posting again, but seems like the Demon's World is a little disoriented.

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 27, 2016, 09:40:54 pm
Thanks, it's been fixed :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 30, 2016, 09:01:58 pm
Introducing: Favorites
(https://s26.postimg.org/olkqyc8mx/fbderpsagain.png)

The only drawback is that if you favorite-ize a clone, it puts the parent in there as well - but that's no big deal.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on October 31, 2016, 08:41:08 am
bagmanm2 seems to freeze on title screen (both on fba standalone and fbalpha-libretro), it seems it also froze in previous releases.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 31, 2016, 08:56:26 am
It looks like the game was supposed to be marked as unworking but wasn't.  sorry about that.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 31, 2016, 09:22:00 am
Introducing: Favorites
(https://s26.postimg.org/olkqyc8mx/fbderpsagain.png)

The only drawback is that if you favorite-ize a clone, it puts the parent in there as well - but that's no big deal.

best regards,
- dink
Great! This will help with playtesting for me. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 31, 2016, 09:59:44 am
It's really fast too :D
Though you guys probably don't see it on your newer pc's.. on my p4 it takes several seconds to bring up the list of games. yeesh.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on October 31, 2016, 10:18:01 am
Secondary question, does it apply the hardware masks? or does it show all favorites regardless of those checkboxes?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 31, 2016, 12:27:46 pm
Secondary question, does it apply the hardware masks? or does it show all favorites regardless of those checkboxes?

From what I saw, the favorites filter is subordinate to the hardware masks!

PS: I also agree that the addition of this new filter (Favorites) is very useful... thanks dink! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 31, 2016, 05:28:54 pm
Secondary question, does it apply the hardware masks? or does it show all favorites regardless of those checkboxes?

yes, of course!
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 01, 2016, 01:44:18 pm
While testing games on fba standalone to see if they had the same input issues as the libretro port, i came upon those input issues on standalone :

aceattac : non working parent ? clone seems fine
fsoccerb : can't move or shout
fsoccerba : can't pass select screen
sbm : can't pass select screen
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 01, 2016, 02:12:54 pm
- aceattac: I confirm the issue in SEGA Ace Attacker (aceattac) with the input controls, the clone (aceattaca) seems to work fine.
- fsoccerb: IIRC the input controls bug in SNK Fighting Soccer (all versions) is a known issue.
- sbm: you can press the key "2" (P2 Start) to pass the select screen; in any case, Sonic Blast Man is a "punching-ball arcade game", then it's very difficult to emulate with a keyboard and/or a joypad.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 02, 2016, 03:14:56 pm
Player 2 can't join game in asterix (parent and clones), by looking at the driver file, i can say there is no "p2 start" defined.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 02, 2016, 06:29:53 pm
add this under the P2 Coin line:
   {"P2 Start",      BIT_DIGITAL,   DrvJoy2 + 7,   "p2 start"   },
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 03, 2016, 02:44:41 am
Thanks :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on November 13, 2016, 09:09:38 pm
There is a little problem with G.I. Joe on Arcade. Seems like the sprites placed wrong.

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 14, 2016, 04:15:11 am
There is a little problem with G.I. Joe on Arcade. Seems like the sprites placed wrong.

I can confirm... there seems to be a wrong vertical alignment between the sprites/objects and the background (all Konami G.I. Joe versions). In MAME the issue doesn't exist (for a better explanation I attached some snapshots).
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 14, 2016, 07:12:28 am
Could be related to an issue i didn't look into yet : G.I.Joe seems to freeze on fbalpha-libretro (whatever the platform) on title screen, and it tends to be quite sensitive to small bugs that don't break standalone.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 14, 2016, 08:11:59 am
Pitysz, thanks, thats an easy one to fix (sprite offsets)

Unfortunately the problems are a lot deeper, and gi.joe is in a state of disrepair at the moment.  I spent several hours on it last night but no luck. 

I noticed was the tilemaps go completely bonkers in later levels, like clouds covering up half the top of the screen on an elevator level, and on the next attract sequence (like the 3rd of 4th) the tilemaps become even more broken.

barbudreadmon: Can you explain these little bugs a bit more, because maybe they will help me track down the issue?  is anything else happening besides the freeze on title?

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 14, 2016, 12:09:24 pm
I'll try to get you as much information as i can. I didn't look into it yet, it was reported as an input issue to me (because people couldn't press start) but when i tried it on both standalone and libretro, i noticed it seemed more like some kind of freeze, also i remember being able to press start on one of the clone (but it would freeze on next screen). I suppose putting a lot of bprintf in d_gijoe.cpp to see when and why it stops (if it stops) could be a good start.

Edit : the clone thing seems like a fluke, actually the game seems to freeze after some time, and i can go to next screen only if i'm quick on the "press start".
Edit2 : gdb says nothing, game keep running, it just seems to draw nothing new, i don't know where to start, any suggestion ?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 15, 2016, 12:02:05 am
re: g.i.joe: ugh.  I spent nearly all day one this one.  and a few hours the day before... gonna can it for now before I get burnt out.  :(

What I learned though:
I think the problem is in k056832.cpp, and it seems like the same or similar problem to mtlchamp, where certain tilemaps are covering up things that shouldn't be covered up.  like they aren't properly disabling, or being transparent.  in gijoe, (K056832ReadRegister(0x14) == 2) when things get screwy.  Seems like leftover tilemaps from the previous scene are being erraneously enabled on the next scene.  (fast forward to the elevator scene and the 2nd one after it to see)

Regarding the lockups in gi.joe, there's probably a memory overwrite in k056832.cpp or something or one of the other konami customs, and it may even be related to the problem above.  arm gets a freezeup, x86 gets screwy tilemaps.  seems fair, eh? :)

If you have any tools to validate variables/memory etc, and think they might help, please try.   I know this old p4 running winxp is probably no use for that kinda stuff.  iirc there is a commandline for gcc on linux that does this, but I honestly can't remember what the name is/was.  it had to do with checking memory overruns/out of bounds/mem validation.  anyone remember this?

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Haze on November 15, 2016, 08:54:22 am
fwiw the elevator scene is broken in MAME too because old versions of MAME contained some truly horrific code to write directly to the tilemap rendering cache to implement some weird mode they use (which once the code was cleaned up to proper c++ and that bitmap made non-accessible outside the tilemap system couldn't be done for obvious reasons - it should never have been done like that)

the code in MAME is still very much not safe tho, makes lots of assumptions, so I wouldn't use that as a reference here ;-)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 15, 2016, 11:54:35 pm
wow, the amount of time into just fixing g.i.joe is astronomical at this point, and I'm going to need a good break now to ward off burn-out.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 16, 2016, 08:42:53 am
If you have any tools to validate variables/memory etc, and think they might help, please try.
By the way, do you mean this ? http://www.gnu.org/software/libc/manual/html_node/Heap-Consistency-Checking.html
Or perhaps this ? https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 16, 2016, 09:09:39 am
wow, the amount of time into just fixing g.i.joe is astronomical at this point, and I'm going to need a good break now to ward off burn-out.

best regards,
- dink

Nice work!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: csmart on November 16, 2016, 08:30:36 pm
Awesome work Dink or should I call you Dink the Magician
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 17, 2016, 10:21:35 pm
Thank you so much for the hard work. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 18, 2016, 05:37:01 pm
thanks for the awesome feedback :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 18, 2016, 05:49:54 pm
Unfortunately Bump & Jump (aka Burnin' Rubber) and Joyful Road (aka Munch Mobile) were broken in this last release of FBAlpha.  Sorry about that, guys!  They have been fixed, though, and will be in the next version.



best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 21, 2016, 05:45:29 pm
err... I don't know where to post this so I guess I will post it here.

I found a bug on the Japanese version of the Sailor Moon beat'em up. Basically, after clearing Stage 2, some dialogue is supposed to show up, but it doesn't. I made a short video about it: https://www.youtube.com/watch?v=9ggnbJBPrcs

As you can see, some dialogue is obviously exchanged between the two characters, but the dialogue boxes are empty.

The dialogue seems to only exist on the JP version, btw (romname = sailormnj).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 21, 2016, 11:14:41 pm
synnchan thanks for the report! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 21, 2016, 11:23:49 pm
(https://s21.postimg.org/wmtnqqedv/supercheese.png)

Taito's Super Chase finally has proper soundfx/music in FBAlpha!!!
It took literally ages of work to get this going right.
Watch the video: https://www.youtube.com/watch?v=HNZ_1-3oLwY

There's only a little work needed to get the game 100% - proper analogue inputs need to be set up, but that's no problem - I'll save it for tomorow :)

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 22, 2016, 12:45:23 am
Very good news! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 22, 2016, 02:06:17 am
err... I don't know where to post this so I guess I will post it here.

I found a bug on the Japanese version of the Sailor Moon beat'em up. Basically, after clearing Stage 2, some dialogue is supposed to show up, but it doesn't. I made a short video about it: https://www.youtube.com/watch?v=9ggnbJBPrcs

As you can see, some dialogue is obviously exchanged between the two characters, but the dialogue boxes are empty.

I attached a savestate file to simplify the check... :)

The bug seems to concern the writes and the frames of the dialogue boxes (hereunder some comparison screenshots, "FBA Vs MAME" )

The dialogue seems to only exist on the JP version, btw (romname = sailormnj).

Obviously, it also happens in sailormnoj ROM.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 22, 2016, 02:27:06 am
add this under the P2 Coin line:
   {"P2 Start",      BIT_DIGITAL,   DrvJoy2 + 7,   "p2 start"   },
By the way, i forgot to mention this, but we had to remove this from fbalpha-libretro (the game will hang at a screen saying "test switch is still on please release it or repair" with it).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 22, 2016, 07:35:59 am
barbudreadmon,
I totally forgot - whenever an input is changed, the dip offsets need to be updated too. (sorry!)

Put it back then change all the 0x11's in the first column of the asterix dips to 0x12. fyi: 0x12 is the number (starting at 0) of the DrvDips line in the inputs.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 22, 2016, 08:05:52 am
superchase is now completely finished, with added analog steering! :)
original message w/video: http://http://neo-source.com/index.php?topic=2487.msg22771#msg22771

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 22, 2016, 09:15:34 am
barbudreadmon,
I totally forgot - whenever an input is changed, the dip offsets need to be updated too. (sorry!)

Put it back then change all the 0x11's in the first column of the asterix dips to 0x12. fyi: 0x12 is the number (starting at 0) of the DrvDips line in the inputs.

best regards,
- dink

Does this look correct dink..???

Quote
static struct BurnDIPInfo AsterixDIPList[]=
{
   {0x12, 0xff, 0xff, 0x04, NULL      },

   {0   , 0xfe, 0   ,    2, "Service Mode"   },
   {0x12, 0x01, 0x04, 0x04, "Off"      },
   {0x12, 0x01, 0x04, 0x00, "On"      },
};

EDIT yeah the above did the trick after i removed all previous saved files for this game.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 22, 2016, 10:09:29 am
That's what i did and it seems to work.

Thanks dink !

PS : what i feared happened, so i'll try to take a look at youknowwhat in the next few days
Title: Re: dink's FBA Development & Fixes thread
Post by: Treble Winner on November 22, 2016, 04:42:20 pm
superchase is now completely finished, with added analog steering! :)
original message w/video: http://http://neo-source.com/index.php?topic=2487.msg22771#msg22771

best regards,
- dink

Nice work!
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 23, 2016, 03:50:33 pm
I want to report another bug I just found. If you load kof2001 on AES mode, the title screen shows messed up graphics:

(http://i.imgur.com/6Ttf2dp.png)

It shows correctly on kof2001h, though. But what could be causing the bug on kof2001?
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on November 23, 2016, 04:06:01 pm
I want to report another bug I just found. If you load kof2001 on AES mode, the title screen shows messed up graphics:

(http://i.imgur.com/6Ttf2dp.png)

It shows correctly on kof2001h, though. But what could be causing the bug on kof2001?
That's not a bug. That games AES menu was not finished in the MVS version. 
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 23, 2016, 04:24:07 pm
That's not a bug. That games AES menu was not finished in the MVS version.


Oh. Thanks for the correction.

Is this the only exception or are there any other NeoGeo games with the same problem (unfinished AES in the MVS version)?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 24, 2016, 10:35:10 pm
Small bit of news:
Alien Sector/Baraduke: fixed the dac speech
Pac-Land: fixed the missing sounds

Regarding the M65c02 subcpu's in the (older) Seta driver - games like TwinEagle, Caliber 50 etc:  I tried, and tried, and tried... and tried.. but can't get the subcpu to work.  At this point, I don't think they will ever work properly :(  On the bright side, they probably aren't games that anyone will ever miss... it is certainly a challenge that has outdone me.

that's all for now,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 25, 2016, 01:03:50 am
In any case, thanks a lot for your hard work! :)

PS: can you add the latest "rotary code" to Caliber 50? In the current version it's impossible to rotate the player character...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 25, 2016, 08:24:57 am
In any case, thanks a lot for your hard work! :)

PS: can you add the latest "rotary code" to Caliber 50? In the current version it's impossible to rotate the player character...

Thanks, btw, I'm not doing anything else with calibr50 until the subcpu works.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 25, 2016, 09:02:38 am
I've been wondering, what's the current status of spu emulation on system16 ? Some people mentioned that libretro-fbalpha have "garbled sound" on golden axe, while libretro-mame2010 (which is a port of mame 0.139) doesn't. Is that an issue in my libretro port or is that a known issue for this game ?

Edit : i think i've got my answer : i need to set samplerate to 44100 ?
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 25, 2016, 01:48:41 pm
I want to report another weird thing I found. The game is Nam-1975 (NeoGeo) - I made a short video about it:
https://www.youtube.com/watch?v=-aOG1QzsQA0

At 0:42~0:48, can you see a couple odd lines appear and disappear suddenly? Not sure if it's normal of the game or not, but it looks like a graphic glitch to me.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 25, 2016, 04:38:54 pm
I've been wondering, what's the current status of spu emulation on system16 ? Some people mentioned that libretro-fbalpha have "garbled sound" on golden axe, while libretro-mame2010 (which is a port of mame 0.139) doesn't. Is that an issue in my libretro port or is that a known issue for this game ?

Edit : i think i've got my answer : i need to set samplerate to 44100 ?


It sounds perfect on my side :)  btw, a lot of soundcores need 44100 or 48khz to operate properly.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 25, 2016, 04:49:14 pm
Hi, I played it here on my side and I don't get those lines. I'll need a .fs and your current fba ini file to check it out.

best regards,
- dink

I want to report another weird thing I found. The game is Nam-1975 (NeoGeo) - I made a short video about it:
https://www.youtube.com/watch?v=-aOG1QzsQA0

At 0:42~0:48, can you see a couple odd lines appear and disappear suddenly? Not sure if it's normal of the game or not, but it looks like a graphic glitch to me.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 26, 2016, 12:45:25 am
I want to report another weird thing I found. The game is Nam-1975 (NeoGeo) - I made a short video about it:
https://www.youtube.com/watch?v=-aOG1QzsQA0

At 0:42~0:48, can you see a couple odd lines appear and disappear suddenly? Not sure if it's normal of the game or not, but it looks like a graphic glitch to me.

I tested the game, but (like dink) I didn't get those lines... did you try the game with different FBA settings?
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 26, 2016, 03:00:06 am
I didn't get those lines either on fbalpha-libretro, so it is probably a graphic driver / blitter / shader issue ?

@dink : thanks, are there soundcores that needs 48000 instead of 44100 to work properly ?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 26, 2016, 05:12:46 am
@dink : thanks, are there soundcores that needs 48000 instead of 44100 to work properly ?

As far as I know, the sample rate needs to be set to 48 KHz in all Jaleco "Mega System 1" games (megasys1.c) and in Konami's Contra (probably there are also other games with this "restriction").
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 26, 2016, 07:31:01 am
As far as I know, the sample rate needs to be set to 48 KHz in all Jaleco "Mega System 1" games (megasys1.c) and in Konami's Contra (probably there are also other games with this "restriction").
Thanks, out of curiosity, is there any reason why someone with a 48kHz capable soundcard would want to run fba with a samplerate below 48kHz ? Resources ? Games that won't work well at 48kHz ?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 26, 2016, 07:43:15 am
I didn't get those lines either on fbalpha-libretro, so it is probably a graphic driver / blitter / shader issue ?

@dink : thanks, are there soundcores that needs 48000 instead of 44100 to work properly ?

There's a few later konami games like xexex, moomesa, etc. all jaleco megasys1 games & contra run at a slower tempo w/41khz - (but I sorta like that personally, so I leave it set at 41khz).  The later konami games have a patch to run fine at 41khz.  Maybe it would be best to default to 48khz? hrmm..

Also the game Ken-Go (Lightning Swords), some of the sound effects don't sound right with FM Interpolation set to off.  my suggestion is to default that on.  re: sample interpolation, leave that at the lowest setting (aka set at 2-point interp.) because it causes clicks in some games with a msm6295 (boogie wings comes to mind here).

best regards,
- dink

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 26, 2016, 07:44:40 am
Thanks, out of curiosity, is there any reason why someone with a 48kHz capable soundcard would want to run fba with a samplerate below 48kHz ? Resources ? Games that won't work well at 48kHz ?


Only if they're weird like me and like certain games to run at a slower tempo. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 26, 2016, 08:04:12 am
So, if I understood well, the best audio setting should be:
48000 Hz samplerate;
2-point 1st order sample interpolation;
4-point 3rd order FM interpolation;
Buffer size "8".
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 26, 2016, 08:25:45 am
Thanks for all those precious informations :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 26, 2016, 08:55:41 am
now for some ontopic stuff:
imagine meatwad from athf narrating this one:
our 6502 core was bonkers.  yea, that's right.  bonkers.  it nearly jumped out the damn screen and beat me with a rubber baseball bat. 

oh yea, and seta w/65c02 subcpu is fixed.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on November 26, 2016, 09:05:28 am
now for some ontopic stuff:
imagine meatwad from athf narrating this one:
our 6502 core was bonkers.  yea, that's right.  bonkers.  it nearly jumped out the damn screen and beat me with a rubber baseball bat. 

oh yea, and seta w/65c02 subcpu is fixed.

best regards,
- dink

Finally got it eh well done !! your perseverance paid off in the end.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 27, 2016, 09:56:42 pm
After wrestling with the Seta m65c02 subcpu for Caliber 50, DownTown, Thundercade, Twin Eagle, Arbalester, MetaFox (and a few others) for ages, I finally figured out that the bug was in our 6502 cpu core and not the game emulation.  Now that has been cleared up, these games are finally fully playable in FBAlpha!
Also, Caliber 50 and DownTown have the same excellent rotation code that Midnight Resistance, Heavy Barrel and the SNK Games (Ikari, TNK3, Gwar, etc) - makes playing them in emulation very nice.

Some pics:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 27, 2016, 10:49:00 pm
Bonus (see prev. message): Ultra Toukon Densetsu now has sound (x1-010 samples + ym3438 fmsynth)
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on November 28, 2016, 01:35:34 am
Well done :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 28, 2016, 12:31:49 pm
Awesome job as always! :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 28, 2016, 03:34:39 pm
thanks :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 28, 2016, 07:42:05 pm
This was supposed to be done a year ago (a year and 2 months to be exact), so my apologies, Zazzone, for your report getting lost in the crazy space called my head. ..  It would appear like several video bugs had been squashed here in Rolling Thunder, but really, just the layer offsets needed to be tweaked.  SkyKid DX and Hopping Mappy had some layer offset issues as well, but they were hardly noticable.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 28, 2016, 10:26:24 pm
Toaplan/Taito RallyBike now has a proper titlescreen :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 29, 2016, 12:42:55 am
The next official FBA release looks with a lot of news (new games/cores, many fixes, improved user interface)... excellent job, a big thanks! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on November 30, 2016, 10:58:24 pm
Let me report a few bugs I found.

Lightning Fighters / Trigon
The game looks too dark on fba, to the point it can get a little hard to play on some parts. The colors show correctly on mame:

FBA
(http://i.imgur.com/6zkgafT.png)

MAME
(http://i.imgur.com/uJepP9A.png)


Thndrx2j (Thunder Cross II JAA)
Game won't even load at all. It works perfectly on mame, but on fba it shows an error on the romram check screen, making it impossible to go further:

(http://i.imgur.com/1AMlj01.png)


Xexex
This one is a little hard to explain, but basically, the opening cutscene doesn't animate correctly. The audio is also pretty bad (the princess' voice can barely be heard, etc). I made two comparison videos:

xexex FBA: https://www.youtube.com/watch?v=0ypdOk-5jmE

xexex MAME: https://www.youtube.com/watch?v=3HbC_yir49c
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 01, 2016, 12:01:53 am
Thanks for the reports!

Thndrx2 is now fixed, I'm afraid Xexex's intro is currently unfixable unless iq_132 has any ideas (I tried a few times and failed).  It's probably related to the k056832 priority issue that is also plaguing a few other games (mtlchamp, yeesh, I forgot the others.)

re: lightning fighters, neither MAME nor fba's colors for this game are correct - look at a pcb version of this one :)  Personally I like our darker palette for this game, MAME's is definitely way too bright here.  But if you really are going for a "correct" look, then the pcb is the only option IMO.

Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 03, 2016, 08:53:26 pm
thanks for the thndrx2 fix, dink. :)

I want to report another thing. On Surprise Attack's level 3, the sprites behind the black glass should have a darker tone, due to the glass' effect:

(http://i.imgur.com/NsdwUBz.png)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 03, 2016, 11:29:38 pm
thanks for the thndrx2 fix, dink. :)

I want to report another thing. On Surprise Attack's level 3, the sprites behind the black glass should have a darker tone, due to the glass' effect:

You're welcome!

P.S. it looks fine to me.  Here's a comparison MAME(left) vs. FBA(right)

P.S.#2: I enabled the highlight over sprite code which I wrote for ssriders for surpratk, and it looks quite fab in this game.  look at this picture.  (click the picture(s) to make it the right size first.)  Would you be willing to test this game from beginning to end with the new code?  just to make sure it doesn't break anything?

best regards,
- dink

Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 03, 2016, 11:50:55 pm
I know, but seems like mame is also wrong. At least according to this page:
https://github.com/mamedev/mame/blob/master/src/mame/video/konamiic.txt

Unfortunately, I've never had the chance to play this game on a PCB, so this is all I can do. :(

EDIT:

P.S.#2: I enabled the highlight over sprite code which I wrote for ssriders for surpratk, and it looks quite fab in this game.  look at this picture.  (click the picture(s) to make it the right size first.)  Would you be willing to test this game from beginning to end with the new code?  just to make sure it doesn't break anything?

Yes, I'd be happy to test stuff out. I've never played this game until the end so now I have a good reason to do so. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 04, 2016, 11:05:37 pm
Xexex prologue is _finally_ fixed.  I literally spent weeks debugging this issue.  I wasn't going to let one of my favorite games look like turd - so I refused to give up! ( though, others have... ehehe. sorry iq :P )  anyways, here's a piccy:

p.s. Up next: Xexex timing fixes, to take care of the unsmoothe / flashy transitions in the intro sequence.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on December 05, 2016, 01:41:34 am
Congratulations :wink:
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on December 05, 2016, 04:54:20 am
Cool, thanks for adding the new games, dink, especially Thundercade & Cal.50, I remember enjoying those back in the day.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 05, 2016, 08:07:09 am
Cool, thanks for adding the new games, dink, especially Thundercade & Cal.50, I remember enjoying those back in the day.

You're welcome!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 05, 2016, 09:53:47 am
More great news for Xexex fans aka Xexex bugfix status aka Things to look out for / bugs that were fixed:

1: The scene transitions in the Attract Mode sequence flash after it fades from a black background to a white background.

2: When you insert a coin:  Next to the anime girl a yellowish box is always on the screen, it moves towards the girl every now and then.  Initially it should actually appear after some text goes by; coming onto the screen using a neato corner-pinching effect.

3: A dip option to increase the pcm sound has been added (suggested by synnchan)

Here's a video showing the results (minus #3):  https://www.youtube.com/watch?v=611qrgWga3s
Please watch the attract sequence of Xexex in a current version of FBAlpha before watching this video to get a better impression on the things that were fixed/changed.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 05, 2016, 10:15:59 am
Here's a video showing the results (minus #3):  https://www.youtube.com/watch?v=611qrgWga3s
Please watch the attract sequence of Xexex in a current version of FBAlpha before watching this video to get a better impression on the things that were fixed/changed.

Excellent work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on December 05, 2016, 11:29:43 am
More great news for Xexex fans aka Xexex bugfix status aka Things to look out for / bugs that were fixed:

1: The scene transitions in the Attract Mode sequence flash after it fades from a black background to a white background.

2: When you insert a coin:  Next to the anime girl a yellowish box is always on the screen, it moves towards the girl every now and then.  Initially it should actually appear after some text goes by; coming onto the screen using a neato corner-pinching effect.

3: A dip option to increase the pcm sound has been added (suggested by synnchan)

Here's a video showing the results (minus #3):  https://www.youtube.com/watch?v=611qrgWga3s
Please watch the attract sequence of Xexex in a current version of FBAlpha before watching this video to get a better impression on the things that were fixed/changed.

best regards,
- dink

That's excellent sleuthing! What a pain in the butt!
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 05, 2016, 12:15:39 pm
More great news for Xexex fans aka Xexex bugfix status aka Things to look out for / bugs that were fixed:

1: The scene transitions in the Attract Mode sequence flash after it fades from a black background to a white background.

2: When you insert a coin:  Next to the anime girl a yellowish box is always on the screen, it moves towards the girl every now and then.  Initially it should actually appear after some text goes by; coming onto the screen using a neato corner-pinching effect.

3: A dip option to increase the pcm sound has been added (suggested by synnchan)

Here's a video showing the results (minus #3):  https://www.youtube.com/watch?v=611qrgWga3s
Please watch the attract sequence of Xexex in a current version of FBAlpha before watching this video to get a better impression on the things that were fixed/changed.

best regards,
- dink

Thank you so much, dink the wizard! :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 05, 2016, 09:21:23 pm
A masive big thanks to synnchan for finding a handful of other bugs in the game Xexex, and providing savestates & hanging out while I fixed them tonight.  We have an extra-perfect emulation of this game now :biggrin:

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 07, 2016, 11:15:31 pm
@dink: I'm happy to help! :)

And I have a new report. The game Shackled / Breywood has priority issues. It works correctly in mame.

(http://i.imgur.com/4MWffPu.png)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 07, 2016, 11:30:55 pm
Thanks, its fixed now :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 08, 2016, 10:42:08 am
Thanks, its fixed now :)

Thanks! :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 08, 2016, 08:53:13 pm
Mini Planets added to FBAlpha.  This game is great, its kinda like a space-aged version of frogger.  or not.  I can't describe it, but its awesome!

Grab it here: https://sik.itch.io/miniplanets zip the bin to miniplanets.zip, toss in your megadrive directory, wait for next fba :P

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 09, 2016, 12:39:56 am
Mini Planets added to FBAlpha.  This game is great, its kinda like a space-aged version of frogger.  or not.  I can't describe it, but its awesome!

I agree... Mini Planets is a very fun "pseudo 3d" platform game... thanks for the addition! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 10, 2016, 08:57:52 am
R-Type LEO Bootup screen sprite masking effect finally fixed and working in FBAlpha.  YAY \o/

Video: https://www.youtube.com/watch?v=dvOMTU8ZRWc

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on December 10, 2016, 12:09:12 pm
R-Type LEO Bootup screen sprite masking effect finally fixed and working in FBAlpha.  YAY \o/

Video: https://www.youtube.com/watch?v=dvOMTU8ZRWc

best regards,
- dink
great job dink ! it deserved a video :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 10, 2016, 12:23:32 pm
R-Type LEO Bootup screen sprite masking effect finally fixed and working in FBAlpha.  YAY \o/

Video: https://www.youtube.com/watch?v=dvOMTU8ZRWc

best regards,
- dink

Thanks dink! It looks awesome. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 11, 2016, 07:03:17 pm
I have a few new reports:

1) shogwarr/fjbuster:

There's a bug on Kabuki's stage. Basically, constant glitched sprite flickering (look at the far right of the screen):

(http://i.imgur.com/CT6Q4Ni.png)

(http://i.imgur.com/Kj6mDlf.png)

2) xsleena

More or less the same bug as shogwarr (glitched sprite flickering on some areas):

(http://i.imgur.com/6w33UWk.png)

(http://i.imgur.com/SQhDbW1.png)

(http://i.imgur.com/pRqyWxA.png)

(http://i.imgur.com/gq7ANs1.png)

I made save states for both games on the glitched areas:

https://www.dropbox.com/s/xj8v2u4f58ykgki/shogwarr%20slot%2001.fs?dl=0

https://www.dropbox.com/s/1nz53n6pzrp3xxm/xsleena%20slot%2001.fs?dl=0
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 12, 2016, 02:06:47 am
- I checked "Xain'd Sleena", the bug happens when there are various sprites on screen... the MAME counterpart has not this bug.

- In "Shogun Warriors" the bug seems a bit different... there's a wrong position of some background sprites/tiles during the animations (look the musicians on the right).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 16, 2016, 11:34:26 pm
News for the past couple days..

Fixed some issues in Cosmic Cop, it wouldn't reboot & some tiles were corrupt-looking.

Ninja Baseball Batman: added a dip option (hack) to enable the old style of soundcpu emulation, which makes the music sound all sorts of quirky.  (at least 2 people have suggested this)

All Taito B-system games suffer some sort of sprite issue. This was due to a core tilemap update, Joyful Road/Munch Mobile and Bump 'n Jump also suffer from similar issues but in the backgrounds.  All games have been updated to use the new tilemap core properly and are fixed.

Fixed a glitch in restoring the vidram pointers on savestate load w/Toaplan GP9001 hw.  The problem caused bg tiles to go bonkers sometimes.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 18, 2016, 09:12:10 am
Introducing..  A little shift indicator for racing games which use a toggle-type shifter.
It will be disable/enable-able in the ui options (for those that don't want it, or making a video) for games which support it.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 18, 2016, 01:55:03 pm
Introducing..  A little shift indicator for racing games which use a toggle-type shifter.
It will be disable/enable-able in the ui options (for those that don't want it, or making a video) for games which support it.

Thanks! :) IMHO the shift indicator L/H is very useful... remember the selected gear it won't be a problem anymore! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on December 18, 2016, 06:22:40 pm
@dink nice work big man!!.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 22, 2016, 10:07:45 am
Chase HQ (taito-z hw) now uses a priority bitmap between the tc0100scn (tilemap / background&foreground)/tc0150rod (road generator) & sprites.  This fixes sprites that should be covered up by hills and stuff in the road.  Bug found/reported by Gab75.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 22, 2016, 04:36:39 pm
Chase HQ (taito-z hw) now uses a priority bitmap between the tc0100scn (tilemap / background&foreground)/tc0150rod (road generator) & sprites.  This fixes sprites that should be covered up by hills and stuff in the road.  Bug found/reported by Gab75.

Thanks a lot for the fix! :)
In the screenshot below it's possible to have a view of the bug...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 22, 2016, 05:07:31 pm
SCI fixed too
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 22, 2016, 05:18:28 pm
Night Striker before & after.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 22, 2016, 07:09:08 pm
FireShark, Teki Paki and Vimana's MCU has been finally dumped - here's a nice little blog on how it was done: http://caps0ff.blogspot.com/

So far I hooked it up in FireShark and removed the samples hack :)  Others shall follow shortly.
tip to emucoders: the FireShark MCU is a Hitachi HD647180, with is basically a Z180 processor with rom+ram.  The code in this MCU is 100% Z80 code, though, and will work fine with any Z80 core. It doesn't use any Z180 extensions (opcode or peripheral). Big thanks to gamezfan for testing this before I went ahead with the code in FBA :)  I suppose they used this chip because of its ability to protect the internally programmed rom from being read or dumped.  Its a good time for emulation, we got some really awesome games in the past couple years - Wing Force, Hammer Away (amongst many others), and now a Toaplan mcu's finally dumped - I thought I'd never see the day :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: synnchan on December 23, 2016, 01:30:24 pm
Awesome news about the Toaplan stuff! Now we can finally listen to the music while playing those great shooters. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on December 26, 2016, 01:41:55 am
While speaking about samples being removed, any hope to see mario with full sound support ?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 26, 2016, 09:26:06 am
I wish it was as simple as removing samples :)
The 3 toaplan games mentioned (fireshark, tekipaki, vimana) were written to the mcu chip with the protection bit set, that means you can program the chip and the chip can execute the program, but you can't read out the data externally for an anti-copy/bootlegging measure.  The chip itself is a beefed up z80(really z180) with ram & rom.  Recently the chip was decapped (caps0ff.blogspot.com) and the protection bit was erased so the program code could be read out.  It took under an hour to get all 3 games up and running with the new soundcpu code, because the drivers themselves were very similar to other toaplan drivers of the era.

On the other hand, Mario uses discrete / analog circuitry to generate its sounds.  Mame has discrete and now netlist emulation, which allows for emulation of such analog circuitry.  Even the simplest discrete and netlist stuff won't run on my mighty 3ghz p4 computer, so emulating it on the more compact devices such as the rpi is probably out of the question.  On top of that, it would probably take a week and a half to graft such code into fbalpha for mario..  On the bright side, if you want to, you can sample mame or a real circuit board and add more samples to the game that are missing, using one of the first versions of mame as a guideline for the memory addresses where the samples are triggered. 
The first versions of mame played the game fine with all the samples, but they were recorded so badly (hiss+static) they were removed over the years, then finally replaced with netlist or discrete.  but thats a good starting point if you wanted to do such a thing.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on December 26, 2016, 10:32:57 am
On the other hand, Mario uses discrete / analog circuitry to generate its sounds.  Mame has discrete and now netlist emulation, which allows for emulation of such analog circuitry.  Even the simplest discrete and netlist stuff won't run on my mighty 3ghz p4 computer, so emulating it on the more compact devices such as the rpi is probably out of the question..

Just a heads up i've just noticed that in older MAME builds Mario Bros has full sound by way of a Dac/Samples combo the discrete sound was only added from this build onwards.....

Quote
- 0.122u5: Mario driver improvements [Couriersud]: Discrete sound. Hooked up Z80DMA. Combined memory maps. Statics in mario_state struct. Fixed save state issues. Combine sh_* writes into one routine. Replaced Samples/DAC sound with Discrete.

Maybe an older Mario driver and Mario Audio could be ported and hooked up to the Dac sound core in FBA..?? Anyway failing that there's always the Masio Bros Bootleg which has full sound already.

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 27, 2016, 11:24:09 pm
Caps0ff did it again, this time it was even more near-impossible-er than last time.  http://caps0ff.blogspot.com

Tatakae! Big Fighter / SkyRobo protection MCU dumped, making the games finally playable.  As soon as I got the new mcu code I was quite eager to get this in FBAlpha and play it in my favorite emulator as quickly as possible :)

Big Fighter starts out like more of a traditional shooter, whereas SkyRobo is a little harder and you need to be in your robot form right away at the beginning (kinda..).  Screencaps tell it best:
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on December 28, 2016, 05:35:10 pm
Good Stuff!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 02, 2017, 12:22:33 am
quick and dirty new FBA stuff & happenings for the past few days:
1: ported new i8051/i8751/ds5002fp core
2: hooked up heavy barrel's protection mcu with the above
3: iq_132 added Hangzo (!!!)
4: fixed some bugs in bigfighter/skyrobo emulation, which took me nearly forever.
5: iq_132 ported wrally, I helped hook up the ds5002fp.  there's still a quite bit left to be done before it's playable.
6: fixed crashyness/corruption when loading a game with missing roms.  this possibly won't affect you guys, just dev's who don't want to rescan their romsets each day when something is added or changed to the rom database.  basically it goes like this: precautions have been made to never try to exit/uninit a cpu or sound core which hasn't been initted in the first place.
7: added a hidden option in config/fba*.ini, "bSkipStartupCheck".  For devs or people who don't ever want to scan their romsets and just have the selection dialog show all roms available/unavailable.  This gets rid of that auto-romscan at startup.

best regards, bye for now and happy new year!
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 02, 2017, 01:06:05 am
The Devs' Team never goes on holiday! ;)
Happy new year to you and to the other devs, administrators and users! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: KaaMoS on January 02, 2017, 08:36:37 am
Thanks for the great news!
It seems to be that the word "tired" isn't in your dictionary!! (^_^)'

Have a happy new year, dear friends!!
Title: Re: dink's FBA Development & Fixes thread
Post by: furiadeoso on January 05, 2017, 07:58:05 pm
Have a happy new year!

When will be released the new version?. I'm excited!
Title: Re: dink's FBA Development & Fixes thread
Post by: furiadeoso on January 06, 2017, 06:04:54 am
Another matter. Can you give me a beta version, so we could test kaillera online netplay? We have a 40 members arcade online players team. Thanks!
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 07, 2017, 05:42:05 pm
quick and dirty new FBA stuff & happenings for the past few days:
1: ported new i8051/i8751/ds5002fp core
2: hooked up heavy barrel's protection mcu with the above
3: iq_132 added Hangzo (!!!)
4: fixed some bugs in bigfighter/skyrobo emulation, which took me nearly forever.
5: iq_132 ported wrally, I helped hook up the ds5002fp.  there's still a quite bit left to be done before it's playable.


best regards, bye for now and happy new year!
- dink

Alotta graft in those 5 code changes above thanks guys for taking the time to work on it Cheers!!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 13, 2017, 12:22:31 am
Yesterday when I posted the news(vid) about Asura Buster, the problem was only halfway solved. So... I bring good news:

The horrible and fameous (or horribly fameous) fbalpha-68x020 bug has been squashed.  big thanks to iq_132 and myself for doing some amazingly awesome teamwork!  This time it took 4 days of intense research and data logging, and a couple late nite coding sessions.  If you add up all the other failed attempts over the past years at killing this bug, it probably adds up to a couple of weeks work total.  So - you can see why iq_132 and dink are beyond insanely happy and relieved to finally put a close on it. (yay!)

Since Asura Buster no longer freezes up at the jello-tentacle boss, I thought it would be worthwhile to fix the other small bugs
in this driver.  (This includes Asura Blade, too)
. Music is now properly synchronized to the attract mode (and other things),
. Sprite and tile glitches are fixed.

Now I think it's as good as it possibly can get :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: furiadeoso on January 13, 2017, 03:23:26 am
You are great! :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 15, 2017, 04:12:12 pm
You are great! :biggrin:

thanks, but don't forget about iq_132 as well, we worked together on this! :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: furiadeoso on January 15, 2017, 05:35:27 pm
thanks, but don't forget about iq_132 as well, we worked together on this! :)

best regards,
- dink

Both of you, of course :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 15, 2017, 10:17:15 pm
Just incase anyone missed the video... :D
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 17, 2017, 08:09:01 am
Task Force Harrier by UPL (nmk16 hw) got some nice improvements:
sprite priority fixes (thanks Gab75 for reporting these!)
music slowdown fix
shakey-ship during level transitions kludgey-hack-fix.  This one is kinda weird, when you exit a level, sometimes your ship would start shaking like crazy.  It's probably a bug in the original game.  When the ship starts shaking, the game sets 0xf3310 and 0xf3410 to 0x100, so that made it easy to know when its happening, then I just created an extra sprite buffer, and chose it on the odd frame during this period.  I wanted to fix this one years ago, but didn't think of a good way to do it until today.

that's all,
best regards,
- dink

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 18, 2017, 11:28:33 pm
Ancient games need love too!
Time Limit is missing the color prom for sprites, which means FBA or MAME has to fill in seemingly random values for this prom to get the sprites to show up.... And it looks horrible.  I spent a couple hours synthesizing a prom just for this game.  Enjoy some before and after piccys: (click images to zoom in/show the images properly)
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 20, 2017, 09:20:31 am
Sorry, I don't know if this is the right place to post this, but may I suggest a new feature?

It would be awesome to have option for mapping more keys to the same button. For example Samurai Shodown 6 requires to press "A" and "B" at the same time to perform the heavy slash. If one could set button "A" and "B" to the same key on the keyboard it could be used more easily. Of course it would be only a secondary key so the original "A" and "B" button still could be used seperately.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 20, 2017, 08:46:00 pm
Did you try going to the inputs editor and scrolling down past the autofire buttons? :)  I think all Neogeo and PGM games have this feature.

best regards,
- dink

Sorry, I don't know if this is the right place to post this, but may I suggest a new feature?

It would be awesome to have option for mapping more keys to the same button. For example Samurai Shodown 6 requires to press "A" and "B" at the same time to perform the heavy slash. If one could set button "A" and "B" to the same key on the keyboard it could be used more easily. Of course it would be only a secondary key so the original "A" and "B" button still could be used seperately.
Title: Re: dink's FBA Development & Fixes thread
Post by: Pityesz on January 20, 2017, 08:57:42 pm
Did you try going to the inputs editor and scrolling down past the autofire buttons? :)  I think all Neogeo and PGM games have this feature.

best regards,
- dink


Holy cows, never tried. Thanks for the answer, that was exactly what I looking for. Since we're loves taking challenges I've not really used even the autofires thus never checked all the non-basic options. It is awesome how much this little emulator can do. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Haze on January 21, 2017, 04:31:25 pm
Task Force Harrier by UPL (nmk16 hw) got some nice improvements:
sprite priority fixes (thanks Gab75 for reporting these!)
music slowdown fix
shakey-ship during level transitions kludgey-hack-fix.  This one is kinda weird, when you exit a level, sometimes your ship would start shaking like crazy.  It's probably a bug in the original game.  When the ship starts shaking, the game sets 0xf3310 and 0xf3410 to 0x100, so that made it easy to know when its happening, then I just created an extra sprite buffer, and chose it on the odd frame during this period.  I wanted to fix this one years ago, but didn't think of a good way to do it until today.

that's all,
best regards,
- dink

There's a protection MCU on the board, could be related as it really isn't used for much otherwise.

Title: Re: dink's FBA Development & Fixes thread
Post by: bigboo on January 30, 2017, 04:51:07 am
Hi
Thank you very much to all fba developers, it seems all major classic arcade games will soon be supported. I think it's a good thing because fba is much faster than recent mame version on low-end hardware like rpi. I hope that we can get rid of old mame versions on this kind of machine (like mame2003 libretro).

I checked my personal "bestof" arcade romset and found some 68000 and 68020 games/hardware currently not supported. Do they have something special/difficult to support or it's just lack of interest from developers to add them for the moment?

Atari 68000
Bad Lands 1989
Cyberball   1988
Rampart   1990

Atari Dual 68000
Escape from the Planet of the Robot Monsters   1989

Atari G1
Hydra 1990
Pit Fighter 1990

Bally Midway MCR-68k
Arch Rivals 1989
Pigskin 621AD 1990

Banpresto 68000
Super Slams 1995

Data East MEC-M1
Stadium Hero   1988

Fuuki FG-2
Gyakuten!! Puzzle Bancho 1996

IGS 68000
Virtua Bowling   1996

Konami Dual 68000
WEC Le Mans 24   1986

Namco 68000
Thunder Ceptor   1986

Namco System 2
Assault   1988
Dragon Saber   1990
Ordyne   1988
Phelios   1988
Rolling Thunder 2   1990

Namco System NA-1
Super World Court   1992
Tinkle Pit   1993

Playmark 68000
World Beach Volley   1995

Sega System 24
Bonanza Bros   1990
Gain Ground   1988

Sega System C-2
Borench   1990
Columns   1990
Columns II: The Voyage Through Time   1990
Puyo Puyo 2   1994
ThunderForce AC   1990

SNK Alpha 68000
Time Soldiers   1987

Technosoft 68000
Hyper Duel   1993



and for 68020 hardware:

Strata/Incredible Tech 32
Blood Storm   1994

Banpresto 68EC020
Macross Plus   1996

Konami GX System
Fantastic Journey   1994
Salamander 2   1996
Sexy Parodius   1996
Winning Spike   1997

Namco System NB-1
Great Sluggers '94   1994
J-League Soccer V-Shoot   1994
Nebulas Ray   1994

Namco System NB-2
Mach Breakers - Numan Athletics 2   1995
Outfoxies   1994

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 30, 2017, 08:01:53 am
Thanks, that's a good list.  Its not a lack of interest, sure it would be nice to have every game supported, but you have to realize some simple facts:  we're just a very small group of people working on this project.  Let's put it into perspective: It took the past 2 and a half weeks of all the free/hobby time between 2 people to get Taito F3 running smoothly.  So basically things take time.  This is a really great time for this emulator, we have added countless games to the emulator lately - just look at the dev logs in this forum.  So yea, just be patient.  also, you'll be pleased to know that Macross Plus was recently added.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 30, 2017, 03:32:12 pm
Damn that might be a record here, the biggest request list ever in the history of neosource  :p
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 31, 2017, 07:03:06 pm
Buggy Grid Seeker: Project Storm Hammer

After we got done with Taito F3, Grid Seeker quickly became one of my favorites in the driver.  The music is awesome, the game is awesome.  Then I got to the end of stage 5, and my heart sank... It looked like someone had barfed on the screen.  The game was nearly unplayable at this point...
After a full day of recon, debugging & digging I came to find out that the game itself was buggy - not the emulator.. (every emulation and video I can find about this game exhibits the problem, except in some circumstances where the bug isn't triggered aka no shooting/extra sprites on the screen when the st.5 boss blows up)  Whenever the number of sprites on the screen gets really high, it just sorta forgets about some of them and leaves them stuck to the screen. (see pictures below!)  Even after the game ends, and it goes back to the beginning of the attract sequence, they still remain (see last 2 pics)...

At this point I spent 2 solid days trying different methods of identifying these bad sprites and keep them from covering the screen.  The only thing I have to go on here is that the stuck sprites are always at the end of each spritebank, and there is always a nice gap between the bad sprites and the good sprites, but there can be little gaps between the bad sprites.  Sometime last night I finally came up with the right algo to cancel out the bad sprites, and after lots of playtesting this morning and afternoon, and several little tweaks to the algo.. we have some good results!!  This feature will be toggleable in the dip settings.  :)

p.s. the pictures: first one is normal, second is with the fix toggled on.

Enjoy & best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: furiadeoso on February 02, 2017, 04:02:26 am
Great! :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 03, 2017, 12:41:06 am
kaneko supernova news:
1: Finally got rid of that screen garbage when starting a game in Vs Block Breaker / Saru Kani!(!!)
2: Added a dip option and a newly formulated cpu-based speedhack to supernova games. all games that studdered and had low fps on my mighty P4 computer now work at a solid 59.5971fps with this.  The dip option will default to "off", though.  Not all supernova games need speedhacks on lowly computers like mine - for example: Cyvern. - and its best to only use when necessary.
2.5: improved the tile-based speedhacks a bit, reducing cpu load a little bit.
3: Synced up the music a bit better in most games.
4: "Gals Panic S - Extra Edition" has sfx/music issues still, can't figure it out :( (even with all hacks disabled).  This is the only game with issues, though.  Will have to dig deeper, it's probably another issue with the sh2 timers that I havn't forseen.  Will revisit this one later.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on February 03, 2017, 06:23:33 am
Nice work, definitely interested in this :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 03, 2017, 09:50:47 pm
kaneko supernova news:
4: "Gals Panic S - Extra Edition" has sfx/music issues still, can't figure it out :( (even with all hacks disabled).  This is the only game with issues, though.  Will have to dig deeper, it's probably another issue with the sh2 timers that I havn't forseen.  Will revisit this one later.

I'm happy to say this has been fixed!  It was yet another bug in the sh2 cpu core, which was throwing off one of the timers.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 04, 2017, 12:41:35 am
Great work! Always more games have an excellent emulation on FBA! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: robsons2007 on February 04, 2017, 01:40:15 pm
Great work! dink
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on February 05, 2017, 03:55:23 am
Now that sh2 cpu core got a lot of care, i'm dreaming about seeing some ST-V games on fbalpha (there are some 2D games on this hardware, even if my favorite one, radiant silvergun, is 3D)

Anyway, great work dink :)
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on February 05, 2017, 05:34:43 am
Now that sh2 cpu core got a lot of care, i'm dreaming about seeing some ST-V games on fbalpha (there are some 2D games on this hardware, even if my favorite one, radiant silvergun, is 3D)

Anyway, great work dink :)
and sega saturn which runs fba !
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 05, 2017, 08:51:16 am
Now that sh2 cpu core got a lot of care, i'm dreaming about seeing some ST-V games on fbalpha (there are some 2D games on this hardware, even if my favorite one, radiant silvergun, is 3D)

Anyway, great work dink :)

I agree, the ST-V hardware has some excellent games, but I think that an hypothetical emulation would be a very difficult and complex task! For now, I keep my fingers crossed for another SEGA hardware... System 32 ! ;)

PS: I would also like to thank dink (and iq_132) for their great work!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 07, 2017, 11:54:15 pm
Mighty Warriors has a bunch of fixes, thanks to gab75 for the bug reports!
Twin Brats is now added and fixed up as well (it was in the debug builds, but not playable until now)
(oops: ignore that pink line on the right, for now...)
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on February 10, 2017, 12:56:35 am
Silent Dragon (world) silentd - background graphic glitch found
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 10, 2017, 03:45:53 am
Silent Dragon (world) silentd - background graphic glitch found

This bug has been resolved ! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 11, 2017, 10:56:47 pm
ESD16 driver needed a little TLC: added the flashing sprite effect, fixed tile offsets in head panic & swat police, and a x-scrolling issue that was apparent in head panic.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on February 12, 2017, 07:52:51 am
Thanks dink :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 26, 2017, 09:50:13 pm
Did a little research tonight and found & quenched the source of that nasty distorted crackling noise in Darius 2.  Personally, I'm very happy about this one, it's bothered me for quite a while :)

The other day fixed a few bugs in the Kangaroo driver, thanks to Gab75 for finding a graphics bug.

Together me and barbudreadmon found and fixed some more crash issues in a few games with -O3 (high optimization) with later versions of gcc.  It turns out that vectorized/simd operations need 32bit integers to be aligned on a 4byte boundary.  Because of this, FBAlpha will run much better on Raspberry Pi and other smaller/embedded systems.  Note: barbudreadmon did mostly all of the hard work here, so big thanks!

Also, lately I've been really busy playtesting / tweaking / fixing up some of the newer games.  I think a new release might be happening soon.... :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 27, 2017, 12:42:23 am
Thanks for your work guys! The next FBA release will be full of excellent additions and improvements! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on February 27, 2017, 07:54:41 am
Together me and barbudreadmon found and fixed some more crash issues in a few games with -O3 (high optimization) with later versions of gcc.  It turns out that vectorized/simd operations need 32bit integers to be aligned on a 4byte boundary.  Because of this, FBAlpha will run much better on Raspberry Pi and other smaller/embedded systems.  Note: barbudreadmon did mostly all of the hard work here, so big thanks!
Awesome, many thanks to both of you. Nowadays, I only play FBA on my Pi (in an arcade cab). I was keeping MAME on the side for a few games (mostly Taito F3 games), but with the next FBA release, I'll be able to ditch MAME without looking back. :)
Title: Re: dink's FBA Development & Fixes thread
Post by: robsons2007 on February 27, 2017, 08:17:05 am
"Together me and barbudreadmon found and fixed some more crash issues in a few games with -O3 (high optimization) with later versions of gcc.  It turns out that vectorized/simd operations need 32bit integers to be aligned on a 4byte boundary.  Because of this, FBAlpha will run much better on Raspberry Pi and other smaller/embedded systems.  Note: barbudreadmon did mostly all of the hard work here, so big thanks! "


Excellent work from both
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 03, 2017, 11:03:52 pm
This is the 3rd of 4th attempt at fixing this - and this time was finally a success!  ...So I'm really happy to bring this news:
Xain'd Sleena is working perfectly now.  2 deadlocks and a bunch of flickering sprites are gone :)
EDIT: ...a couple hours have passed since this post... To be sure the new fixes hold up, I playtested the game all the way to the end, and its quite awesome.  especially that last level when all the prior bosses start chasing you through the level to your spaceship as their planet is rigged to blow up.  wow, what a rush :)  Did I mention that I was super happy that this game is now perfect in FBAlpha?  Hopefully we can have a release soon.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on March 10, 2017, 02:39:05 pm
Super-X (NTC) superx - game freeze with glitch on screen.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 10, 2017, 06:35:57 pm
Super-X (NTC) superx - game freeze with glitch on screen.

If I'm not wrong, the attached screens should be grabbed from second stage... I played until the third stage and the game seems to work properly.
Are you able to create a savestate just before the game freezes?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 10, 2017, 06:40:18 pm
Hi, Willowar - I think I know the problem with Super-X.  Are you using a keyboard?  Can you try using a Joystick or gamepad instead?

thanks,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 11, 2017, 12:33:27 am
The game seems to freeze when you push up and down at the same time... logically this can happen when you use keyboard controls (as dink pointed out); with a pad or a stick it's impossible to press up and down at the same time...
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on March 11, 2017, 02:49:49 am
with a pad or a stick it's impossible to press up and down at the same time...
On a side note :
Just remembered some guy years ago who won a mario kart championship because his controller was in such a bad shape he was able to press left and right at the same time (shifting left and right rapidly while drifting enable turbo boost in many mario kart).
So it's actually possible to press opposite directions with a pad in a bad shape, or modded, because of course some people modded their controllers following this story :p.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 11, 2017, 04:53:42 am
Just remembered some guy years ago who won a mario kart championship because his controller was in such a bad shape he was able to press left and right at the same time (shifting left and right rapidly while drifting enable turbo boost in many mario kart).

... a symbolic case, when a defect becomes a merit! :P

So it's actually possible to press opposite directions with a pad in a bad shape, or modded, because of course some people modded their controllers following this story :p.

Moreover you could map the joypad buttons as directional inputs... so you would be able to press all directions at the same time!  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 14, 2017, 11:18:47 pm
Fixed a shedload of driver-bugs, big thanks to gab75, Pityesz and WILOWAR for reporting!

Wall Crash - fixed paddle inputs / default settings
Taito's Operation Wolf 3: automatically use default gun calibrations on first boot
The Karate Tournament: missing button #2 and sprite:tile offset glitch
Quartet, Quartet 2: cracking/popping noises from the dac have been quenched.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 16, 2017, 09:23:29 am
Operation Wolf 3-day (in the slapshot driver)

To get the graphics right, I set up a priority bitmap between the TC0480 (Taito tilemap chip) and the Taito F2 sprites code. 

Before and After pictures below...
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 16, 2017, 09:59:31 am
Now the sprites/objects priority is almost perfect! Thanks! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on March 16, 2017, 10:45:30 am
I'm hoping you named those incorrectly. The second one is definitely worse. ^^
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 16, 2017, 11:50:33 am
Really... you are too strict! :P The second screenshot is not worse! There's only a "priority issue" with the truck and the tubulars...
in the first one the enemy soldier and the civilian seem to be inside the barrels! :P
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 16, 2017, 01:19:41 pm
OOps, you're right, the tubes on the left side definitely should be infront of the truck, investigating..
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 16, 2017, 02:55:56 pm
gab75: Thanks for pointing out the issue with the pipes :)  Here's a new piccy:
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on March 16, 2017, 05:20:53 pm
Perfect! What was the problem?
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 16, 2017, 06:32:30 pm
gab75: Thanks for pointing out the issue with the pipes :)  Here's a new piccy:

Now the sprites/objects priority is almost perfect! Thanks! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 16, 2017, 06:45:47 pm
Perfect! What was the problem?

I try to surmise... maybe a flawed implementation of priority code between the bitmap objects created by TC0480 Tilemap chip and the bitmap objects created by Sprites Generator chip... in any case, dink will be able to say with certainty! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 16, 2017, 11:48:44 pm
A little leftover code from the previous prio attempt needed to be removed, that's all :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 18, 2017, 07:58:07 am
It looks like its time to hook up the priority bitmap in Taito F2.  Unfortunately a lot of games are broken in this regards, but, on the bright side, the work done for opwolf3 and taito-z (Night Striker, Chase HQ.etc.) means we're about 1/4 the way there.

Big thanks to Gab75 for helping out and doing some investigative work (tests,etc)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 22, 2017, 10:51:04 pm
dink's fbalpha-news march.22
1: Capcom Bowl (&clones) and Sammy's Krazy Bowl are now playable in FBAlpha!

2: F2 sprite prio stuff has been put off until next week (or 2), due to some newer more exciting stuff going on behind the scenes :)  At this time the bug only affects PuliRula, Liquid Kids (cutscene stuff only), and Crayon Shinchan.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 23, 2017, 10:11:29 pm
Big thanks to Pityesz for finding a crash situation with Megadrive and the Force 16bit emulation option in the Enhanced and DirectX9 blitters.  The problem has been fixed of course :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on March 23, 2017, 10:22:20 pm
Sprite lag issues in Taito's Gun & Frontier have been fixed, big thanks to Gab75 for finding this one :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on March 24, 2017, 01:54:06 am
A big thanks to you for the fix! ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 01, 2017, 09:15:46 am
It all started 2 days ago when I recorded a game of Ghosts 'n Goblins to render to a longplay video for a buddy of mine.  Since I can't record directly to avi (pc is a little slow), I went for the record inputs method while playing the game, then playback the inputs while writing an avi.  After I got done with the 2-game completion and played the recording back, it quickly went out of sync. ...bummer. 

Something good came out of it, though:

Updated the Ghosts n Goblins driver to run at the proper frequency (59.59hz) & fixed some savestate banking & cycle loss issues.

Tracked down and killed a horrible bug in the input recording mechanism which caused some desync issues.  It would usually happen if you played back an input recording right after recording an input recording, or if you started out paused when recording or playing back.  Very happy to kill this bug. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 03, 2017, 10:13:11 pm
Killed a little bug in Toki that occasionally caused certain tiles on the map-screen to jitter.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 05, 2017, 10:57:52 pm
Hit the Ice.
This game was plagued with multiple issues.  The first one being p3 and p4's inputs were all stuck-on.  This made the game impossible to play, because as soon as you inserted a coin p3 or p4 would immediately "press start" with its stuck buttons, and then you wouldn't be able to control anything.  Thanks to gamez fan for reporting this bug.

After fixing that, I did a few test plays and noticed that the skate-marks on the ice never cleared.. Not even on the titlescreen/attract mode! (see piccys below)  [MAME is exactly the same way] After doing some debugging I found a simple test to know when the skate-marks buffer needs to be cleared, and now the game is perfectly playable.   There is one last little issue - the character selection screen is skewed over 5pixels or so, but I think the original pcb most likely did this too, because everything else in the game lines up perfectly, except for that screen.  Unfortunately I don't know anyone with this pcb and also can't find a video on the web to test this theory.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 08, 2017, 11:37:01 pm
U.S. Classic
Had to do a lot to get this one running: hook up 65c02 subcpu, fix palette issue, write some funky analog -> trackball code.  It's really a nice golf game :)
...Also improved Krazybowl's video offsets a bit.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 09, 2017, 03:03:38 am
Moreover you also added the "trackball code" in Capcom Bowling and now it's fully playable... thanks a lot for the fixes! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on April 18, 2017, 11:05:19 am
Bal Cube - balcube - wrong colors

Bang Bang Ball (v1.05) - wrong colors
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on April 18, 2017, 12:07:45 pm
Bal Cube - balcube - wrong colors

Bang Bang Ball (v1.05) - wrong colors
https://www.youtube.com/watch?v=zWmF_2u-9nk Muahaha!
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 18, 2017, 12:35:31 pm
Bal Cube - balcube - wrong colors

Bang Bang Ball (v1.05) - wrong colors

Probably the issue is related to "16 bit emulation"... to activate/deactivate it: Video=>Blitter options=>Advanced settings=>Force 16-bit emulation

PS: obviously the computer screen bitdepth must be set on 32 bit, but today it's the default setting on 99% of PCs.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 18, 2017, 12:41:30 pm
https://www.youtube.com/watch?v=zWmF_2u-9nk Muahaha!

:P :D :P
Title: Re: dink's FBA Development & Fixes thread
Post by: JacKc on April 18, 2017, 12:53:30 pm
https://www.youtube.com/watch?v=zWmF_2u-9nk Muahaha!
LOL  :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 18, 2017, 07:15:19 pm
Here is my favorite edition addition added to FBAlpha so far, it has free shaking in attract mode. 

That's right, free shaking in attract mode.

video news @ here: https://www.youtube.com/watch?v=8wBE2m_9Jkc
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on April 18, 2017, 08:26:13 pm
Here is my favorite edition addition added to FBAlpha so far, it has free shaking in attract mode. 

That's right, free shaking in attract mode.

video news @ here: https://www.youtube.com/watch?v=8wBE2m_9Jkc

There's a whole lotta shakin goin on  :wink:
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 19, 2017, 01:14:48 am
Here is my favorite edition addition added to FBAlpha so far, it has free shaking in attract mode. 

That's right, free shaking in attract mode.

video news @ here: https://www.youtube.com/watch?v=8wBE2m_9Jkc

It's a "dangerous edition" for a cabinet coin-op... many guys might prefer to play free of charge in "shaking mode" rather than use coins to play in "arcade mode" ! :P :P
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on April 19, 2017, 11:11:42 am
It's a "dangerous edition" for a cabinet coin-op... many guys might prefer to play free of charge in "shaking mode" rather than use coins to play in "arcade mode" ! :P :P

It can be turned off in the Service mode, You have the same deal in Gals Panic 4 although there is dialog from the Gal when ya
shake em i wonder what she says :)
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on April 19, 2017, 11:33:06 am
Probably the issue is related to "16 bit emulation"... to activate/deactivate it: Video=>Blitter options=>Advanced settings=>Force 16-bit emulation

PS: obviously the computer screen bitdepth must be set on 32 bit, but today it's the default setting on 99% of PCs.
Fixed this last night. It should affect pretty much any games that use konami chips. Life is good.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 19, 2017, 11:38:56 pm
Arabian Magic on Taito F3 has this buggy line down the screen during scene transitions.  I never liked that, so, it had to be fixed :) [this bug affects fbalpha and mame]

https://www.youtube.com/watch?v=fMGlCf09Rx8

Incase you don't know what I'm talking about, watch this other video to see:
https://youtu.be/aYPzNZa-sIc?t=53s
or load Arabian Magic in FBAlpha .40 and start a game...

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on April 20, 2017, 10:00:27 am
Arabian Magic on Taito F3 has this buggy line down the screen during scene transitions.  I never liked that, so, it had to be fixed :) [this bug affects fbalpha and mame]

A small, but "irritating" bug/glitch... excellent work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on April 21, 2017, 12:48:44 pm
Arabian Magic on Taito F3 has this buggy line down the screen during scene transitions.  I never liked that, so, it had to be fixed :) [this bug affects fbalpha and mame]
To clear things up, did the original game suffer from this or not? In other words, is that a hack or a proper fix?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 21, 2017, 02:25:15 pm
To clear things up, did the original game suffer from this or not? In other words, is that a hack or a proper fix?

Here's a recording from an original PCB: https://youtu.be/IkfjUvSlSiE?t=17s

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 21, 2017, 06:37:41 pm
Taito F3 video fixes, volume #2.

Arabian Magic Cut-Scene text.  (This text is missing in nearly every emulation of the game.)
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on April 22, 2017, 02:50:20 am
Nice. Funny that emulators would have the exact same bugs. Is that due to shared code, or maybe certain things the game does that tend to fail the same way even if the source issue is different?
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 22, 2017, 09:27:25 am
Nice. Funny that emulators would have the exact same bugs. Is that due to shared code, or maybe certain things the game does that tend to fail the same way even if the source issue is different?

Usually we have our own video code for things (well, iq_132 writes it), but taito f3 is a very complex beast, so we're using the video code from MAME.  It's funny because even Taito Legends for ps2/xbox have these same bugs :)
Before we ported the F3 driver, I'd never played any F3 game before.  Seeing these great games in such a sad state was heartbreaking, really.  Especially after putting weeks into perfecting the driver for FBAlpha.  Due to the complexity of the F3 video code, it's no wonder that it's been broken for so long, nobody wanted to take the time to figure out how it worked and try to fix it.  There are 3 other video bugs left, and I plan to focus on them for the time being.  Luckily, some of the fixes I make made it back into MAME.  Maybe these will :)

The same exact thing happened with Beast Busters / Mechanized Attack - iq_132 did a driver for these, and having never played the games before, I quickly fell in love with them (Beast Busters especially), but when I finally made it to the end of the game, the ending scene was all broken. (also a few things in Mechanized attack, like the Helicopter in stage 2 or 3) This time we didn't use any code from MAME, but the bug existed in both emulators because it was simply not known how the yscroll+wrapping worked.  Since it was the last games SNK made before Neogeo, a hint on how to fix it was in the Neogeo video code, but it still took a week or 2 of trying things before I got it.  In the end, just like the arabianm fix above, it only required changing 2 lines of code.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on April 22, 2017, 02:38:56 pm
Very interesting, thanks for the info. Yeah, bugs are often about analyzing rather than coding.

The bit about Taito Legends is not so surprising, considering many companies have been known to sell bad Internet dumps of their own games... but it's still shameful and unprofessional. Isn't Taito violating the MAME license by using it without making it clear? Sorry, this is getting off topic.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 22, 2017, 06:26:03 pm
Stifu, actually, the MAME guys (Bryan McPhail, et. al) behind the Taito F3 driver worked with the company that brought us Taito Legends.  Since each driver was under the writers own license, I believe it was OK for it to be like that.  See the credits listed here: http://www.mobygames.com/game/ps2/taito-legends/credits

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on April 23, 2017, 04:55:58 am
Ashura Blaster (World) ashura - graphic glitch found
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 23, 2017, 04:37:55 pm
many many hours later, another Taito F3 bug fixed!  Compare the 2 pictures :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 23, 2017, 11:33:38 pm
LandMaker has text on the "you lose, you win" screen now!  ;p
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 24, 2017, 09:52:52 am
Problem solved, thanks for your report!

Ashura Blaster (World) ashura - graphic glitch found
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on April 24, 2017, 02:47:15 pm
Great fixes again (although I guess we won't get our hands on them before another 6 months).
I never noticed the missing Land Maker win quotes before. I hope the MAME guys backport it all.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on April 29, 2017, 08:17:09 am
Fix news from the last couple days...
Came up with a much better fix for gseeker's missing continue screen, this time it looks more accurate to how the real pcb is.  Now it fades out to a black screen & displays the continue message, when coined back up, it'll fade back up.  I'm happy with that.

Warrior Blade / Rastan III had an issue where the controls would stop responding, and...

Space Raider was missing the animated background and had an issue with some sprites being blocky, those are fixed now.  thanks to Gab75 for finding the last 2.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on May 02, 2017, 05:10:09 am
VS Block Breaker (Europe) vblokbrk - graphic glitch found on title screen

Kirameki Star Road kirameki - no sound

Dan-Ku-Ga dankuga - graphic missing

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 02, 2017, 07:33:08 am
Concerning to Dan-Ku-Ga... the game is a prototype, so (IIRC) the graphics missing should be not a bug, but the outcome of an "unfinished product" !
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 02, 2017, 07:40:15 am
Vs. Block Breaker does this the first run (when it creates nvram).  Second run it will be OK.
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on May 03, 2017, 10:05:38 am
Sankokushi (Japan) 3kokushi - graphic glitch on intro found
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on May 03, 2017, 10:39:39 am
Super Real Darwin (World) srdarwin - sprite priority problem - dinosaur on left and bottom
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 03, 2017, 12:54:26 pm
Sankokushi (Japan) 3kokushi - graphic glitch on intro found

Unfortunately (IIRC) the graphic glitch in the intro is related with a corrupt ROM image, so it's not fixable (a new ROM dump would be needed)...
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 04, 2017, 01:07:50 am
Super Real Darwin (World) srdarwin - sprite priority problem - dinosaur on left and bottom

I tested the MAME version and here the "dinosaur/big lizard" sprite priority is accurate... I also attached a savestate (FBA release) to help the check...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 06, 2017, 10:36:09 pm
Gab75, thanks for srd state!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 06, 2017, 10:41:06 pm
Megadrive emulation has improved a bit more, thanks to Pityesz for letting me know about this bug.
highlight/shadow needed to be implemented for the 2-cel vscroll tile mode, after that, the Trouble Shooter / Battle Mania intro looks much better...  See the before/after pics:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 06, 2017, 11:25:26 pm
srdarwin lizard fixed :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 10, 2017, 08:42:46 pm
some of my f3 fixes made it into MAME  :biggrin:
https://github.com/mamedev/mame/commit/e103368214bf619ea6806247c29bf15c8682447b

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Robert on May 11, 2017, 03:14:22 am
not for long.
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on May 11, 2017, 03:38:25 am
not for long.
I wonder what regressions you found, exactly. But I guess you gave the details to dink.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 11, 2017, 07:57:41 am
quizhuhu is a bit beyond repair, unfortunately.  That one should probably have been left out.  The others are very solid though.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on May 11, 2017, 08:01:39 am
I wonder what regressions you found, exactly. But I guess you gave the details to dink.
The only thing I saw referenced
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 11, 2017, 08:10:24 am
The taito bootup logo is missing too.  quizhuhu kludge was more like a crapshoot, at least some text was shown (just like in mame .97)
Title: Re: dink's FBA Development & Fixes thread
Post by: Treble Winner on May 11, 2017, 08:33:52 am
Don't expect any consistency to be applied. Games being playable, but emulated completely incorrectly are preferable for MAME, despite the projects supposed intended mission.

This is why FB Alpha is ahead of MAME for CPS-1 bootlegs, even though most of my work has been ported across now.
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on May 16, 2017, 12:16:56 pm
Crossed Swords 2 crswd2bl - occasionally sprite tearing
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 18, 2017, 10:53:24 pm
I always avoided Nitro Ball because I thought it was a ball/sports game.   As it turns out, I was wrong... its really an awesome game sorta like Heavy Barrel!

As Gab75 pointed out the other day, Nitro Ball had some sprite priority issues, those were fixed.   Also translucent/alpha support was enabled.

The last picture shows how things were before the priority fix.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 20, 2017, 01:01:46 am
Excellent work! :)

PS: as dink wrote me, to enable the alpha compositing (translucent) effects it's necessary to set a full 32-bit "color depth" mode...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 24, 2017, 08:38:35 am
Recent news from my side..
Dataeast deco16 games all had their prot sims removed, and replaced with propler emulation.  This made it possible to port and play Double Wings without any issues.

Fixed raster effects in Ed Randy / The Cliffhanger, now the road and flying w/clouds scenes look alright :)

Tuned the sprite:tile priority in Nitroball, this leaves all but 2 sprite priority issues left, but that's not bad considering there were about 20 before I started :)  I think the only way to fix the remaining 2 issues is with a silly kludge.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 25, 2017, 07:44:39 am
Hello everyone, here's some fba-emu news for today:

Fixed lots of timing issues with Data East 16bit games when sound runs at 44100hz, among the improved games: Caveman Ninja, Robocop2, Desert Assault/Thunder Zone.

Fixed a banking issue in Boogie Wings, some pcm sounds (f.ex: rhythm section in music) were missing.   Along with all the other recent fixes/upgrades, deco16 games are very solid now. 

Lastly, Pitfall II on Sega System 1 was leaving a mess of sprites on the screen during transitions.

That's all for now...

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on May 25, 2017, 10:53:15 pm
Recent news from my side..
Dataeast deco16 games all had their prot sims removed, and replaced with propler emulation.  This made it possible to port and play Double Wings without any issues.

Thanks for adding that dink!.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 26, 2017, 05:36:10 am
iq_132 did the Double Wings driver, I just ported the protection it needed :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 26, 2017, 06:32:33 pm
A little more progress with Data East's Nitroball - the last sprite:tile priority issue got fixed in Aliens World.  Previously, fixing this one cause priority issues between other sprite:tiles in Ghost Town, in particular the Ghost Town neon sign when the stage starts would be above the player.  It turns out that we have to do things differently depending on the global priority register.  Aliens World sets it to 0x20, and Ghost Town sets it to 0, so we can adjust our sprite:tile priorities depending on this and get both stages perfect :)

So what does this mean?  There is just one small sprite:sprite priority issue left, and it only happens 3 times in the entire game.  If this last one can't be fixed, the game will still be lightyears better than any previous emulation of it.  and if it can be fixed, even better :)   Until next time...

best regards,
- dink

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on May 26, 2017, 11:44:34 pm
Excellent work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Trick on May 28, 2017, 03:39:29 am
iq_132 did the Double Wings driver, I just ported the protection it needed :)

Thanks to both of you!.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 30, 2017, 11:34:05 am
fix news for today...
"Sound Rate Issues"

Resampler added for Konami K054539 PCM / Sound core, used by Mystic Warriors, Violent Storm, Xexex, Metamorphic Force, Bucky O'Hare and Moo Mesa, G.I. Joe and a few others.  Now the pitch of the music/voices/sfx will stay the same regardless of sound rate is selected.

Quite a few games using the YM2151 suffered from a slow music tempo when the sound rate is set at 44100, or anything but 48000.  This has been fixed for:
Contra, all Jaleco MegaSystem 1 games: St. Dragon, Astyanax, Rod Land etc., and Konami Surprise Attack. 

Calling all FBAlpha fans:
If you can think of other games which suffer a slow tempo, or any other general sound issues, please post info about them here or send me a PM.  ..Of course, any other bug reports are welcome, too. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on May 30, 2017, 05:13:53 pm
about them here or send me a PM.  ..Of course, any other bug reports are welcome, too. :)
even better, send bug  fixes to dink ;)
Title: Re: dink's FBA Development & Fixes thread
Post by: pacioso on May 31, 2017, 10:10:08 am
In Psychic5 explosions when you kill an enemy should be transparent (like in MAME, see attached pics), instead in FBA they are solid color. Also sound in this game should be fixed. Thanks in advance!
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on May 31, 2017, 10:18:52 am
In Psychic5 explosions when you kill an enemy should be transparent (like in MAME, see attached pics), instead in FBA they are solid color. Also sound in this game should be fixed. Thanks in advance!
The explosions are alpha blended. If you set the renderer to a 32/24 bit depth it shows fine.
Title: Re: dink's FBA Development & Fixes thread
Post by: pacioso on May 31, 2017, 11:47:38 am
The explosions are alpha blended. If you set the renderer to a 32/24 bit depth it shows fine.

Thank you for helping! I always use 32 bit depth, so it seems the problem is the DirectX9alt blitter, because with the experimental blitter colors are fine. The same happens with konami games: DirectX9alt blitter with 32bit depth only blue color is shown, experimental blitter with 32bit depth all is fine. Can this be fixed? I prefer the DirectX9alt because of softfx algorithms.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 31, 2017, 06:01:43 pm
pacioso: please send me a pm with your fba*.ini file (in the config subdirectory), I will look into the problem deeper.  On my system the blue is fully transparent with the alt blitter, so I'll need to check w/your ini to see what's going on.
p.s.I'll check into the sounds issues, too, thanks!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on May 31, 2017, 11:05:28 pm
Psychic 5 gets the dink-treatment :)

x fixed titlescreen effect / glitch
x fixed minor graphic glitch
x improved timing
x fixed music (it was simply an issue of one of the soundchips being too low)
x color glitch on the cut-scenes

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: pacioso on June 01, 2017, 04:33:49 am
Thank you Dink for the Psychic5's fixing and helpful attitude! :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 01, 2017, 09:09:22 am
You're welcome!

To recap what I said via PM: some shaders only work on 16bit video, like xBR which you had selected - so it puts the video into 16bit mode when enabled.    Another thing I just noticed - the 16bit forced option from the enhanced blitter actually affects the Alt. blitter, and the Alt. Blitter doesn't even have this option - so you'll temporarily have to switch to the Enhanced blitter, select blitter options -> advanced options -> uncheck "force 16bit mode", then go back to the directx9 alt. blitter.  Maybe we'll add that option to all the blitters so switching around isn't necessary :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 01, 2017, 09:38:25 am
YM2151 Users Manual pdf, reprocessed edition by gab75 & dink.  Original scans by Neill Corlett
sendspace link: https://www.sendspace.com/file/05a70j
zippyshare link: http://www25.zippyshare.com/v/6BLYSlCc/file.html

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: pacioso on June 01, 2017, 01:23:47 pm
You're welcome!

To recap what I said via PM: some shaders only work on 16bit video, like xBR which you had selected - so it puts the video into 16bit mode when enabled.    Another thing I just noticed - the 16bit forced option from the enhanced blitter actually affects the Alt. blitter, and the Alt. Blitter doesn't even have this option - so you'll temporarily have to switch to the Enhanced blitter, select blitter options -> advanced options -> uncheck "force 16bit mode", then go back to the directx9 alt. blitter.  Maybe we'll add that option to all the blitters so switching around isn't necessary :)

best regards,
- dink

Clear! Thanks again :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: pacioso on June 05, 2017, 04:46:14 pm
You're welcome!

To recap what I said via PM: some shaders only work on 16bit video, like xBR which you had selected - so it puts the video into 16bit mode when enabled.    Another thing I just noticed - the 16bit forced option from the enhanced blitter actually affects the Alt. blitter, and the Alt. Blitter doesn't even have this option - so you'll temporarily have to switch to the Enhanced blitter, select blitter options -> advanced options -> uncheck "force 16bit mode", then go back to the directx9 alt. blitter.  Maybe we'll add that option to all the blitters so switching around isn't necessary :)

best regards,
- dink

Would'n xBRZ (instead of xBR) solve the problem? In MAMEplus xBRZ works in 32bit mode without excluding alpha blending.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 17, 2017, 08:52:31 am
Incase anyone has been wondering why I'd been so quiet lately - I've been working hard finishing up the Namco system 2 driver.  It's finally done.  What a relief :)
Tally: iq_132 spent about 3 weeks writing the initial driver, dink spent about 3 weeks finishing it.  I think this one somehow took longer than the initial F3 code.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on June 17, 2017, 03:28:51 pm
Thanks guys... outstanding work! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on June 28, 2017, 12:30:09 am
news...
I think Namco System 2 is finally done.  I mean - I hope it's done :)  There are few people who know how much time I put into perfecting this one, so.. fingers crossed..

Games using a random number generator will now work properly with states/input recordings. (Centipede, Millipede, everything in Namco S2, and a few others...)

bye for now,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 02, 2017, 08:38:27 am
Shaved 4 seconds of the f6/gamelist window.  (in 2.999ghz compy-p4 time)

Very happy about this!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on July 02, 2017, 09:47:56 am
Shaved 4 seconds of the f6/gamelist window.  (in 2.999ghz compy-p4 time)

Very happy about this!

Excellent work! :)

On my old laptop I5-2430M it's about three times faster! From 2.5-3 seconds to less than a second!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 07, 2017, 09:31:36 am
Here's a little video showing off my recent work on Mystic Warriors: https://www.youtube.com/watch?v=5Qyb2QrVaLs

There are still a few emulation-related glitches, but they are almost unnoticable compared to how it used to be..

Check out how awesome that intro/title screen scene is now!  <3
Also, the cargo-plane scene where you fly atop the green plane into the back of the cargo plane is perfect.  At first, this was the only part I was aiming to fix.

As a bonus, its a 1cc/longplay recorded without using any states or cheats.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on July 19, 2017, 11:52:23 pm
dink's news & stuff:

One of the last issues with Megadrive has been quenched tonight.  I created a new soundchip for FBA called MD2612, which is a high quality ym2612 emulation based on eke-eke's gensplus-gx ym2612 core, which is based on the original MAME fm core.  It would have never been possible to backport the changes from eke-eke's gensplus-gx ym2612 core to ours, so the new one was created.  Also, the old one will be left alone for the time being.  This new core is running at the Megadrive's ym2612 native 53267hz (NTSC) and interpolatively resampled to your soundrate.

Good things noticed so far:
Mega Turrican's intro song is perfect(!)
Streets of Rage 2 "Punch & Jump" sfx fixed.

bye for now,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on July 20, 2017, 12:27:36 am
dink's news & stuff:

One of the last issues with Megadrive has been quenched tonight.  I created a new soundchip for FBA called MD2612, which is a high quality ym2612 emulation based on eke-eke's gensplus-gx ym2612 core, which is based on the original MAME fm core.  It would have never been possible to backport the changes from eke-eke's gensplus-gx ym2612 core to ours, so the new one was created.  Also, the old one will be left alone for the time being.  This new core is running at the Megadrive's ym2612 native 53267hz (NTSC) and interpolatively resampled to your soundrate.

Good things noticed so far:
Mega Turrican's intro song is perfect(!)
Streets of Rage 2 "Punch & Jump" sfx fixed.

bye for now,
- dink

Amazing News  :smilie: Congratulations dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 10, 2017, 09:17:32 am
Over the past couple days I'd been investigating a problem with games flagged BDF_16BIT_ONLY.  This includes Megadrive, Cave (not PGM Cave), CPS3.. So, when a game is paused and a mode change happens, such as going from windowed to fullscreen or back again, the screen would be blank.  It's a bug that's been illusive and bothered me for years..
It turns out the reason for this issue is nastier than I thought - If you're not @ 16bpp native, these systems will render +1 frame behind emulation.  Ouch.  :redface:  But.. its fixed now.  Any projects using FBAlpha as a core will have to c&p 2 lines of code from one of our default video cores (video/win32/vid_d3d.cpp:vidFrame()) to their core @ the next release. (unless something changes).

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: jan_klaassen on August 10, 2017, 02:34:04 pm
You're right about the delay, it's about time to get rid of that.

However, using 3d hardware gets you the conversion from 15/16bit to 32bit for free, so you shouldn't be using any software conversion inside fba in that case -- it should only be used for the ddraw blitter (or when software gamma correction is enabled).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 21, 2017, 06:36:53 pm
While I was fixing more issues and improving the Megadrive emulation core,  Combone added a bunch of nice Sonic mods/hacks.  One of them in particular that stands out is Sonic Classic Heroes.  You start by controlling Sonic, and your 2 pals Tails and Knuckles follow along, and at any time you can switch between the other 2 characters - that's right - the game has double-AI and in-game character selector :)
I found a bunch of nice homebrew and demoscene stuff to add, also, including Monster World IV English, Mega Cheril Perils by the Mojon Twins, the new Maiaka demo from Resistance rel'd at Evoke 2017 a few days ago, Alex Kidd 2 for SMS final - we had a few requests for this over the past year and a half, but it was still in beta so I didn't add it.  Luckily MAME's git history reminded me that the final had been released ;)  Some piccy's:
Title: Re: dink's FBA Development & Fixes thread
Post by: robsons2007 on August 22, 2017, 11:19:29 am
While I was fixing more issues and improving the Megadrive emulation core,  Combone added a bunch of nice Sonic mods/hacks.  One of them in particular that stands out is Sonic Classic Heroes.  You start by controlling Sonic, and your 2 pals Tails and Knuckles follow along, and at any time you can switch between the other 2 characters - that's right - the game has double-AI and in-game character selector :)
I found a bunch of nice homebrew and demoscene stuff to add, also, including Monster World IV English, Mega Cheril Perils by the Mojon Twins, the new Maiaka demo from Resistance rel'd at Evoke 2017 a few days ago, Alex Kidd 2 for SMS final - we had a few requests for this over the past year and a half, but it was still in beta so I didn't add it.  Luckily MAME's git history reminded me that the final had been released ;)  Some piccy's:

Excellent work as always  dink :biggrin: :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on August 22, 2017, 01:31:08 pm
By the way, i think there are some big endian issues with system 16 and megadrive drivers in fba (those games doesn't seem to work properly on ps3's libretro-fbalpha). If anyone got information on how to fix those (perhaps gamez fan if he still working on its xbox360 port ?), i would be interested.
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 22, 2017, 01:55:30 pm
By the way, i think there are some big endian issues with system 16 and megadrive drivers in fba (those games doesn't seem to work properly on ps3's libretro-fbalpha). If anyone got information on how to fix those (perhaps gamez fan if he still working on its xbox360 port ?), i would be interested.
The original Xbox is x86. Not going to be much help for arm endianness unfortunately.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on August 22, 2017, 02:01:04 pm
The original Xbox is x86. Not going to be much help for arm endianness unfortunately.
Both ps3 and xbox360 are supposed to share the same kind of cpu (a PowerPC big endian). The original xbox is indeed x86, but i thought gamez fan wrote a xbox360 port ?
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on August 22, 2017, 03:02:34 pm
Both ps3 and xbox360 are supposed to share the same kind of cpu (a PowerPC big endian). The original xbox is indeed x86, but i thought gamez fan wrote a xbox360 port ?
Nope, that's Lantus (iirc). Gamzefan maintains the FBA port to OG Xbox.
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on August 22, 2017, 03:25:32 pm
Nope, that's Lantus (iirc). Gamzefan maintains the FBA port to OG Xbox.
Thanks for the information, it allowed me to find a repository of this port on github :).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 22, 2017, 07:00:41 pm
Thanks to Gab75, Konami's '88 Games archery level is now playable. 

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on August 23, 2017, 04:58:47 am
Thanks to Gab75, Konami's '88 Games archery level is now playable. 

Thanks to you for the fix! :)

Hereunder two snapshots before the fix... as you can see, the archery level was unplayable...
Title: Re: dink's FBA Development & Fixes thread
Post by: dma on August 31, 2017, 01:22:11 pm
I hope it's the good place to post this.
It seems that Special Criminal Investigation doesn't progressively turn left on analog steering control (when it does correctly to the right). It only turns left on full left.
Steering control working fine in Top Speed, Chase HQ, and Super Chase Criminal Termination (some other Taito driving titles).
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on August 31, 2017, 06:30:01 pm
I hope it's the good place to post this.
It seems that Special Criminal Investigation doesn't progressively turn left on analog steering control (when it does correctly to the right). It only turns left on full left.
Steering control working fine in Top Speed, Chase HQ, and Super Chase Criminal Termination (some other Taito driving titles).

Nice find! thanks for the bugreport :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on September 01, 2017, 05:08:34 pm
The priority issue of countdown signs is solved (1000 Miglia: Great 1000 Miles Rally, parent and clones ROMs)... a big thanks to dink! :)

Hereunder some explanatory snapshots...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 14, 2017, 11:59:12 pm
Some misc fixes from the past couple days:
Time Pilot '84: fixed some bad/distorted sounds
Wonder Boy in Monster Land: graphics corruption in 2player mode, coinage issues
Fixed leaks in dynhuff compression, which is used for input/replay recordings
Sync'd autofire to the frame#.  There are certain games [which I forgot atm, d'oh!] where the autofire acts differently depending on when you load a savestate, its funny when it happens, and this will hopefully prevent that from happening.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on September 18, 2017, 12:04:30 am
more fix news:
a: fixed illegal inst. crash in arbalester if playing w/keyboard and opposite directions simultaneously pressed.
b: fixed distorted sounds in time pilot, tutanham and commando sega
c: integrated iq_132's wrally2 code into the gaelco2 driver & added a nice single-screen mode
d: fixed v-scrolling in sega system e driver, vbt says he'll add the rest of the games now :)
e: added single screen mode to Data East's Backfire, changeable via dips.  Service mode now accessible via F2 instead of dips.

dink's recommended game of the week, platform gaming awesomeness at its best:
New Adventure Island on Turbogfx-16 (tg_advislnd)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 16, 2017, 12:30:22 am
Hi friends of FBA!  2 small modifications to the search box in the game lister have been made:
1: the search text will stay there between game loads, so playing all games on a certain system is now a lot more fun.
2: search has been made slightly more flexible, now one can search for "namco system 1" to bring up all Namco System 1 games.  Previously only "namco" or "system 1" worked, but that would either bring up every game by namco -or- all "system 1" games, including Sega System 1.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 25, 2017, 12:45:52 am
dink's fbalpha fixnews:
1: rewrite the paddle code in Bomb Bee, Gee Bee and CutiqQ.  Now these games play quite nicely :)
2: increase the volume for taitof3 games
3: fixed the savestates when playing Phoenix - the music would sometimes break.
4: Madgear/Led Storm: Fixed a couple color & transparency issues - it went unnoticed because the issues didn't start until level 3+.  oops!

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 26, 2017, 12:12:44 am
Next day...  "Still working on the Led Storm/MadGear/Last Duel driver"
part 1: graphics problems in Last Duel
Fixed a couple bugs which made the game unplayable past level 1:  The track would almost completely dissapear when traversing through the part of level 2 where you have to "shoot your way through".  This was fixed by implimenting transmask/group code instead of a simple priority-hack.  The stage 2 boss (and possibly other stages) would disapear as the boss scrolled down the screen, this was caused by incorrect masking of the scroll registers. 
part 2: sfx balancing and cleanup
Balanced out the sfx a bit so that the music can still be heard during heavy shooting and explosions :)

I'm not sure how or why these went broken and unnoticed for so long, but, I'm happy that the games on this classic Capcom hardware are now fully working / playable and fun to play... in our favorite emulator :)

best regards,
- dink

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on October 26, 2017, 12:37:14 am
As usual, really good job dink! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Bad Dude on October 26, 2017, 06:20:23 pm
Hi Dink. Nice work with MD, this amazing console, wich is based on arcade, because Sega made MD to be a home arcade. But I miss one of the greatness shut em up of all time, which is The Adventure of Batman and Robin. Is there some plan to emulate this game on the future: Thanks.



Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 26, 2017, 06:44:47 pm
Hi, thanks!
We support this game of course, look for "advbatr" in the search box :)

best regards,
- dink

Hi Dink. Nice work with MD, this amazing console, wich is based on arcade, because Sega made MD to be a home arcade. But I miss one of the greatness shut em up of all time, which is The Adventure of Batman and Robin. Is there some plan to emulate this game on the future: Thanks.
Title: Re: dink's FBA Development & Fixes thread
Post by: Bad Dude on October 27, 2017, 10:00:43 pm
Hi, thanks!
We support this game of course, look for "advbatr" in the search box :)

best regards,
- dink

I found the game... and man, I just tested the last release of FBA. Just amazing. The best version ever. You guys are doing a great job.  Thank you, my friend.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on October 29, 2017, 09:27:39 am
While playing Magic Crystals last night I realized there was a missing sprite framebuffer effect.  This game recently became one of my favorite games, so, something must be done about that!

Notes: the effect happens very fast and is part of an animation, so, the effect might look weird, but when combined with the animation, its great!  Also fixed, but not reflected in the below images were a few tiny issues with this game.  Timing was improved, to fix some rare but ugly single-frame sprite glitches, and proper sprite-tile-sprite priorities were implimented to fix an issue with the player falling off a moving platform.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on October 29, 2017, 03:02:30 pm
@dink nice job on Magical Crystals
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 21, 2017, 09:38:27 am
So, iq_132 did an amazing job on the deco32 emulation :)
I always heard about Night Slashers, but never played it until it was emulated in FBAlpha.
At first I was kinda bummed out about all of the video bugs, but then this turned into a real
fun project.  Also, it was something to do while the forum was down....
Pics of the new video emulation follow.... If you know Night Slashers, then you know how horribly broken these scenes were in emulation..... until now!

NEW vs. old.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on November 21, 2017, 10:04:05 am
Excellent work! Now FBA has the best emulated version of Night Slashers! The alpha blended objects are rendered very well ! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Combone on November 23, 2017, 01:09:05 pm
Wonderfull work in Night Slashers :smilie:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 25, 2017, 10:33:49 pm
Gab75 & Combone, thanks! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 29, 2017, 10:36:45 pm
Major Title (Irem M72 Hardware) is now working in FBAlpha :)

after / before fix s.shots:
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on November 30, 2017, 05:07:18 pm
My comment comes a bit late, but about the 3rd Night Slashers screenshot, I feel like the old guy's portrait should be displayed above the dialogue box (as it used to be). Unfortunately, I have no way to check whether this is really how it's supposed to be...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on November 30, 2017, 06:23:31 pm
My comment comes a bit late, but about the 3rd Night Slashers screenshot, I feel like the old guy's portrait should be displayed above the dialogue box (as it used to be). Unfortunately, I have no way to check whether this is really how it's supposed to be...

I thought so too, and thats how I had originally had it... but, after watching some recordings from PCB - the way it's displayed now is correct.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: Stifu on November 30, 2017, 06:35:41 pm
Alright, thanks for confirming.
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 03, 2017, 12:32:27 am
I have some more good news to announce, it's something that I wished was fixed since Moo Mesa, Bucky O'Hare & Mystic Warriors / Violent Storm was first emulated in FBAlpha. (.32!)  If you've played these games theres no doubt you've noticed the clicks that play audibly whenever certain sfx or voices play in these games...which can be super annoying especially if you're playing with headphones.  Well, after a couple days of messing around / trying different things I finally conjured up a perfect fix for all of the clicks in the K054539 chip.  I tried several times in the past to get it right, but with little luck - so I'm really happy about this :)   So, with the next version of FBAlpha you'll not only be able to play Moo Mesa to the end without crap covering the endboss scene, you'll also get click free sound..  both for the first time, in any emulator.   Oh yea! \o/

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: hursit on December 03, 2017, 06:37:59 am
I have some more good news to announce, it's something that I wished was fixed since Moo Mesa, Bucky O'Hare & Mystic Warriors / Violent Storm was first emulated in FBAlpha. (.32!)  If you've played these games theres no doubt you've noticed the clicks that play audibly whenever certain sfx or voices play in these games...which can be super annoying especially if you're playing with headphones.  Well, after a couple days of messing around / trying different things I finally conjured up a perfect fix for all of the clicks in the K054539 chip.  I tried several times in the past to get it right, but with little luck - so I'm really happy about this :)   So, with the next version of FBAlpha you'll not only be able to play Moo Mesa to the end without crap covering the endboss scene, you'll also get click free sound..  both for the first time, in any emulator.   Oh yea! \o/

best regards,
- dink

That is the great info.
So, in the mame there is some graphical glitches and some problems. Especially with Bucky. Can we say FBA is emulated these games %100 perfectly with this latest sound fix ?

Thanks...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 03, 2017, 08:48:47 am
That is the great info.
So, in the mame there is some graphical glitches and some problems. Especially with Bucky. Can we say FBA is emulated these games %100 perfectly with this latest sound fix ?

Thanks...

I really only worked on the video issues in Moo Mesa, could you give me some examples of graphics glitches in Bucky, so I can check them out? (screenshots are preferrable)  I was really only aware of the occasional lines in the expanded/zoom sprites. 

thanks,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: hursit on December 03, 2017, 04:17:37 pm
I really only worked on the video issues in Moo Mesa, could you give me some examples of graphics glitches in Bucky, so I can check them out? (screenshots are preferrable)  I was really only aware of the occasional lines in the expanded/zoom sprites. 

thanks,
- dink

Hello
There is a problem in the main intro. The logo is showing up but when it will disable there is a small problem in MAME. But there is not in FBA.I couldn't catch it well but when you test it you can see.

https://i.hizliresim.com/8NRX4a.png (https://i.hizliresim.com/8NRX4a.png)
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 03, 2017, 08:46:48 pm
Hi hursit,
Here's a quick test-video to show how it looks in the current development version of FBA:
https://www.youtube.com/watch?v=RTts_20nuvg
At first when I enabled the alpha blending for bucky, we had the same problem as MAME (seen in your picture below), but after a little debugging I found that the alpha layer needs to be displayed after the sprites under a certain priority condition, and this made the blending/fades look really smooth without any empty space behind the title logo :)

best regards,
- dink

Hello
There is a problem in the main intro. The logo is showing up but when it will disable there is a small problem in MAME. But there is not in FBA.I couldn't catch it well but when you test it you can see.

https://i.hizliresim.com/8NRX4a.png (https://i.hizliresim.com/8NRX4a.png)
Title: Re: dink's FBA Development & Fixes thread
Post by: barbudreadmon on December 04, 2017, 01:41:26 am
Nice work :)
Title: Re: dink's FBA Development & Fixes thread
Post by: hursit on December 05, 2017, 05:21:54 am
Hi hursit,
Here's a quick test-video to show how it looks in the current development version of FBA:
https://www.youtube.com/watch?v=RTts_20nuvg
At first when I enabled the alpha blending for bucky, we had the same problem as MAME (seen in your picture below), but after a little debugging I found that the alpha layer needs to be displayed after the sprites under a certain priority condition, and this made the blending/fades look really smooth without any empty space behind the title logo :)

best regards,
- dink

Wow it is great now. Thanks..
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 05, 2017, 03:08:14 pm
@dink: you are the "alpha blending emulation" magician! ;)

... a little O.T. : I remember my "SEGA Saturn" days (about 21-22 years ago), the hardware management of translucencies (alpha blending effects) was very limited... IIRC the Saturn can only manage the alpha channel between the layers... in few words, all sprites/polygons are generated in the same layer, so they can be translucent with other layers (e.g. with the background layer/s), but they can't be translucent among them (in a 3D object this is a big limitation)...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 07, 2017, 07:38:01 am
Here's a full game of Moo Mesa w/new video & sound fixes.  https://www.youtube.com/watch?v=vGxklWxgztk [2nd try/60fps video]

There are 3 remaining emulation glitches left in this game, 100 points for finding them.  150 points if you can find one that I didn't notice yet :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 07, 2017, 11:05:33 am
hursit, I'm afraid all of those you listed are just a side effect of playing video at 30fps.  The video is recorded at 60fps, and to get a flashing effect, the game turns off the sprite every other frame.  When youtube plays a 60fps video at 30fps, it basically plays every other frame, so sometimes you will get only the frames with the off sprites when they're flashing.  To see any of the issues I've noticed you'll have to play it at 720p / 60fps. :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: hursit on December 07, 2017, 04:21:27 pm
hursit, I'm afraid all of those you listed are just a side effect of playing video at 30fps.  The video is recorded at 60fps, and to get a flashing effect, the game turns off the sprite every other frame.  When youtube plays a 60fps video at 30fps, it basically plays every other frame, so sometimes you will get only the frames with the off sprites when they're flashing.  To see any of the issues I've noticed you'll have to play it at 720p / 60fps. :)

best regards,
- dink

opps. Im so so sorry  :redface:  :eek:
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 15, 2017, 06:32:15 pm
Added Weka Invaders to FBAlpha, big thanks to Disjointed Studio for releasing this quality game for free on the Sega MasterSystem!  http://disjointedstudio.blogspot.it/2017/12/weka-invaders-is-here.html

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on December 19, 2017, 01:11:38 pm
Air Duel (World m82 a-a+ m82 b-a), airduel - Empty Pixel Line on mother tank:

Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 19, 2017, 07:11:10 pm
Thanks WILOWAR, the problem is fixed and will be available in the next version of FBAlpha.

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on December 23, 2017, 01:19:15 pm
Arbalester (arbalest)- game crash after star and I have got this error message on black screen:

Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on December 23, 2017, 02:44:25 pm
Arbalester (arbalest)- game crash after star and I have got this error message on black screen:

Arbalester should work properly... first make sure to use a correct ROMset, then try to delete the related config files in "*/config/games" folder (arbalest.fs and arbalest.ini)...
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 23, 2017, 06:22:43 pm
Arbalester fix will be available in the next release of FBAlpha :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on December 25, 2017, 06:54:26 am
VS Gong Fight  vsgongf - Player 1 sprite missing:
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on December 25, 2017, 07:00:00 am
Martial Champion (ver. UAD) mtlchampu1 - sprite priority problem
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on December 25, 2017, 08:44:25 am
Thanks WILOWAR,
Unfortunately VS Gong fight is not a bug, but a missing sprite data for player 1 :(

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 01, 2018, 06:53:48 pm
Amazing new SMS game by Enrique Ruiz / MIKGAMES.  Awesome boss fights & excellent platform action and also great music and polishing you won't find in most homebrew games.
Title: Re: dink's FBA Development & Fixes thread
Post by: thylacine on January 07, 2018, 06:47:04 pm
would heated barrel and Legionnaire be possible on fba now that they work better on mame
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on January 07, 2018, 07:39:24 pm
would heated barrel and Legionnaire be possible on fba now that they work better on mame

Right just wanna say this isn't me under a different ident :D
Title: Re: dink's FBA Development & Fixes thread
Post by: thylacine on January 08, 2018, 01:36:58 am
I was just asking for you :biggrin:
Title: Re: dink's FBA Development & Fixes thread
Post by: vbt on January 22, 2018, 03:15:13 pm
just to point a bug that can be solved quickly, in black tiger intro the dragon must be behind the mountain.
in order to fix it, just uncomment this :

// Priority masks should be enabled, but I don't see anywhere that they are used?
#define USE_MASKS
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 22, 2018, 06:20:24 pm
just to point a bug that can be solved quickly, in black tiger intro the dragon must be behind the mountain.
in order to fix it, just uncomment this :

// Priority masks should be enabled, but I don't see anywhere that they are used?
#define USE_MASKS

Thanks vbt :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 29, 2018, 08:07:48 am
news:
1: Ported over Jan's awesome ICS2115 soundcore & fixed issue with beestorm.
2: Started working on BurnFM*Init()'s without need for gettime/streamupdate params, thanks Jan for the excellent idea and exposing the totalcycles & clockrate of the BurnTimer
3: fixed inputs in Bang! (broken since .39 - sorry!)
4: fixed bad clicky sounds in Gaelco 2 soundcore & shared the fix w/MAME
5: added interpolater to Gaelco 2 soundcore, and Namco S2's c140, and Konami's k054539 (moo,bucky,mystwarr,xexex,etc) for seriously awesome sound quality

bye for now,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on January 29, 2018, 10:17:39 pm
...continued: added proper resampling (cubic interpolation) to ES5505/6 (Taito F3 & SSV).  The amazing music of Grid Seeker and Darius Gaiden sounds even better now.
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on January 30, 2018, 01:05:58 am
Great work! The new high-quality sound resampling techniques are outstanding! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: jan_klaassen on February 01, 2018, 06:42:15 am
Great work! The new high-quality sound resampling techniques are outstanding! :)

Thre's nothing new about the interpolator itself, that was contributed forever ago.  But incorporating it in more places is certainly a very good thing. Takes work though, and will take lots more work to do across all sound cores. (but the ics2115 core serves as a nice example of just how big a difference it can make when you don't ignore the mathematical or physics principles at play, and there will be more as Dink progresses.)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 01, 2018, 01:03:17 pm
In this case we can say: "the mathematics (and the physics too) is not an opinion!" :P :)
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on February 03, 2018, 01:54:24 pm
Magical Chase - tg_magchase - empty pixel line
Title: Re: dink's FBA Development & Fixes thread
Post by: WILOWAR on February 03, 2018, 01:56:17 pm
Popeye no Beach Volleyball (Jpn) - gg_popeye - screen disorder-
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 05, 2018, 08:01:35 am
Thanks for the reports, WILOWAR :)

best regards,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 05, 2018, 08:14:27 am
General fba-news / in the works:
The original Mario Bros. game now has fully implimented sound, and some general driver tweaks to make this game as great as it can be.

We (Barbudreadmon, dink) did some more work on 32/64bit state compatibility, hopefully now the last of the issues are sorted!

iq_132 did a major revamp to the ay8910 interface, making this soundcore a lot easier and nicer to deal with.

JacKc is doing a great job keeping things up-to-date :)

bye for now,
- dink
Title: Re: dink's FBA Development & Fixes thread
Post by: robsons2007 on February 05, 2018, 09:58:42 am
General fba-news / in the works:
The original Mario Bros. game now has fully implimented sound, and some general driver tweaks to make this game as great as it can be.

We (Barbudreadmon, dink) did some more work on 32/64bit state compatibility, hopefully now the last of the issues are sorted!

iq_132 did a major revamp to the ay8910 interface, making this soundcore a lot easier and nicer to deal with.

JacKc is doing a great job keeping things up-to-date :)

bye for now,
- dink


good work from dev team as always fba.

super mario (snes) or (megadrive) ,dink?
Title: Re: dink's FBA Development & Fixes thread
Post by: iq_132 on February 05, 2018, 10:12:17 am

good work from dev team as always fba.

super mario (snes) or (megadrive) ,dink?
Arcade! :)
Title: Re: dink's FBA Development & Fixes thread
Post by: Gab75 on February 05, 2018, 10:14:29 am
super mario (snes) or (megadrive) ,dink?

You made a mistake... dink refers to Mario Bros (watch the snapshots) ! :)

PS: "Super Mario Bros" is a NES game, not a SNES or a Mega Drive game! ;)
Super Nintendo => Super Mario World
Mega Drive => only unofficial hacks
Title: Re: dink's FBA Development & Fixes thread
Post by: robsons2007 on February 05, 2018, 10:25:16 am
You made a mistake... dink refers to Mario Bros (watch the snapshots) ! :)

PS: "Super Mario Bros" is a NES game, not a SNES or a Mega Drive game! ;)
Super Nintendo => Super Mario World
Mega Drive => only unofficial hacks

Thank you for explaining, my friends.
very good.
 :smilie: :biggrin:

Title: Re: dink's FBA Development & Fixes thread
Post by: Bad Dude on February 05, 2018, 03:05:34 pm
Thank you for explaining, my friends.
very good.
 :smilie: :biggrin:

There is also an arcade machine with NES games, called PlayChoice-10, with Super Mario Bros, but not emulated in FBA.
Title: Re: dink's FBA Development & Fixes thread
Post by: gamez fan on February 05, 2018, 03:12:53 pm
General fba-news / in the works:
The original Mario Bros. game now has fully implimented sound, and some general driver tweaks to make this game as great as it can be.

Lovely work and thankyou!!
Title: Re: dink's FBA Development & Fixes thread
Post by: dink on February 11, 2018, 08:27:40 am
what's happening:
Fixed up the audio in Donkey Kong a bit, mostly to get rid of the clicks that happen between decaying notes (added a simple attack mode), improves sound quite a bit!

re-did the audio mixing in Gyruss so things are a bit louder, fixed a few small bugs

Added states support to irem m90

Fixed video offsets in turbo force (line on left side)

bye for now,
- dink