Batsugun's Sound Has Finally Been Emulated
-
gameoverDude
- Posts: 2269
- Joined: Wed Jan 26, 2005 12:28 am
- Contact:
Re: Batsugun's Sound Has Finally Been Emulated
I've noticed TM's faults especially in Grind Stormer. Sometimes when you start a new game, you'll get the boss music instead of the proper 1st stage BGM. TM's stopgap solution is definitely not near as good as actual audio emulation, and it'll be obsolete when MAME one day has GS, Vimana, Fire Shark, and the others working with real sound.
Great news on the Batsugun sound emulation.
Great news on the Batsugun sound emulation.
Kinect? KIN NOT.
Re: Batsugun's Sound Has Finally Been Emulated
Yup. Seconded.ZeetherKID77 wrote:Shmupmame new release plz
Re: Batsugun's Sound Has Finally Been Emulated
How is he being incredibly rude? He wasn't slagging you off, he just said that he's satisfied with how it currently runs in TM.IseeThings wrote:Thundermame is not correct in terms of either graphics, or audio, your post is incredibly rude towards those who have spent time and money in trying to get this done properly.
If people want to spend their time and money getting Batsugun perfectly emulated, that's entirely their decision. It doesn't mean david peterson or anybody else owes them anything.
Oh and FYI - since you've been waiting in excess of ten years to play Batsugun properly - there's a Saturn port available.
Re: Batsugun's Sound Has Finally Been Emulated
The "Who cares?" comment was quite unnecessary. Quite a lot of people care.Paradigm wrote:How is he being incredibly rude? He wasn't slagging you off, he just said that he's satisfied with how it currently runs in TM.
It's not about playing, it's about getting it properly emulated.Paradigm wrote: Oh and FYI - since you've been waiting in excess of ten years to play Batsugun properly - there's a Saturn port available.

RegalSin wrote:Street Fighters. We need to aviod them when we activate time accellerator.
-
- Posts: 534
- Joined: Thu Dec 16, 2010 6:38 pm
- Location: California
Re: Batsugun's Sound Has Finally Been Emulated
exactly, "who cares" is rude spoiled brattish behavior.emphatic wrote:The "Who cares?" comment was quite unnecessary. Quite a lot of people care.Paradigm wrote:How is he being incredibly rude? He wasn't slagging you off, he just said that he's satisfied with how it currently runs in TM.
this is a bigger achievement than getting the Cave PGM stuff running.
Re: Batsugun's Sound Has Finally Been Emulated
Paradigm wrote:How is he being incredibly rude? He wasn't slagging you off, he just said that he's satisfied with how it currently runs in TM.
This isn't "incredibly rude"? Get out.david peterson wrote:Who cares? i play the game with sound in thundermame where it comes from is not important the experience is still identicle.
It means he has no right to walk in here and "who cares". Get out.If people want to spend their time and money getting Batsugun perfectly emulated, that's entirely their decision. It doesn't mean david peterson or anybody else owes them anything.
Opting for the Saturn port basically says "I'm never going to play this game properly", period. Get out.Oh and FYI - since you've been waiting in excess of ten years to play Batsugun properly - there's a Saturn port available.
And answer my PM.
Rage Pro, Rage Fury, Rage MAXX!
Re: Batsugun's Sound Has Finally Been Emulated
Amazing how something like Batsugun's sound working can cause a fight... People are nuts...
“What did I had done!”
Re: Batsugun's Sound Has Finally Been Emulated
It's just rude, not 'extremely'. Also, he has that right (but doesn't anymore because he's banned)!Despatche wrote: This isn't "incredibly rude"? Get out.
It means he has no right to walk in here and "who cares". Get out.If people want to spend their time and money getting Batsugun perfectly emulated, that's entirely their decision. It doesn't mean david peterson or anybody else owes them anything.
Last edited by captpain on Mon Jan 17, 2011 10:03 pm, edited 1 time in total.
Re: Batsugun's Sound Has Finally Been Emulated
Anyway I am psyched about this, because I only recently discovered Batsugun. I always sort of wrote it off as a sluggish game that had obligatory respect in the shmup community but it turns out that it's actually fun (imagine that
)! I'd never even heard the music until now and it has a great overly-excited arcade vibe to it.

Re: Batsugun's Sound Has Finally Been Emulated
Yeah OK. To anyone out there with the Saturn port, you might be playing Batsugun, but you're not playing it 'properly'.Despatche wrote:Opting for the Saturn port basically says "I'm never going to play this game properly", period. Get out.
And answer my PM.
Oh and this PM?
Despatche wrote:You are a strange individual. Why are you here?

Re: Batsugun's Sound Has Finally Been Emulated
It's principle, it's all about principle... it really is.captpain wrote:It's just rude, not 'extremely'. Also, he has that right (but doesn't anymore because he's banned)!
Rage Pro, Rage Fury, Rage MAXX!
Re: Batsugun's Sound Has Finally Been Emulated
I don't quite understand why the sound wasn't working in the first place. Can someone please explain this to me? D:
Also, I got Batsugun for the Saturn before MAME had correct sound emulation and I found...I wasn't exactly missing out on much D:
I want to hear Dogyuun in action though.
Also, I got Batsugun for the Saturn before MAME had correct sound emulation and I found...I wasn't exactly missing out on much D:
I want to hear Dogyuun in action though.

WARNING: TARGET APPROACHING!!
Re: Batsugun's Sound Has Finally Been Emulated
For a second there I wondered if david peterson got banned for posting in this thread and I was a bit confused, then I read his post history... 

BIL wrote: "Small sack, LOTS OF CUM" - Nikola Tesla
-
TrevHead (TVR)
- Posts: 2781
- Joined: Sat Jul 11, 2009 11:36 pm
- Location: UK (west yorks)
Re: Batsugun's Sound Has Finally Been Emulated
He really had a chip on his shoulder, at times I thought it was a troll account. Lets hope we can go back to having decent threads without all this senseless bickerring we've been having recentlydrauch wrote:For a second there I wondered if david peterson got banned for posting in this thread and I was a bit confused, then I read his post history...
EDIT out of curiousity, when banned is put up below the username is that just a perma ban or temp ban?
Last edited by TrevHead (TVR) on Tue Jan 18, 2011 3:01 am, edited 1 time in total.
-
- Posts: 534
- Joined: Thu Dec 16, 2010 6:38 pm
- Location: California
Re: Batsugun's Sound Has Finally Been Emulated
For many years it was thought that the Batsugun sound code was stored in an MCU and was impossible to extract (with technology / resources available at the time) This was the case for several earlier Toaplan titles, so attempting to emulate the sound on them was largely put aside under the logical assumption that these were the same.esreveR wrote:I don't quite understand why the sound wasn't working in the first place. Can someone please explain this to me? D:
Also, I got Batsugun for the Saturn before MAME had correct sound emulation and I found...I wasn't exactly missing out on much D:
I want to hear Dogyuun in action though.
A couple of years later it was discovered that the later "Toaplan Type 2" games actually use the main game CPU to upload their sound programs, but the uploaded programs were encrypted, and the CPU type couldn't be identified.
Somebody then noted that Batsugun wasn't encrypted, and it was identified as V20 / V30 code, the same CPU IREM used for their sound CPUs (In The Hunt, Undercover Cops etc.)
However, the code didn't run properly with the MAME V20/V30 cores, because unlike the IREM games, Toaplan made use of some extra features in the specific model of the CPU they used (which are actually V25 chips)
Those features have just been added to the core by AWJ, allowing the sound program to run, and sound to be properly emulated in Batsugun. This wasn't the easiest of work because it required substantial changes to the CPU core in order to support the new features.
The Batsugun sound program is almost identical to the Knuckle Bash sound program, but the latter is encrypted. By comparing the two programs Knuckle Bash can also be decrypted, this is almost done. Work so far has shown Dogyuun and V-Five to use the same encryption table as Knuckle Bash, so by decrypting Knuckle Bash they will be much closer to having sound too, they might even simply just start working at that point.
Fix Eight uses a different encryption table, but the sound program on it is almost the same as Dogyuun, so again, by virtue of decrypting the Dogyuun it will be easy to decrypt Fix Eight by comparing the program code.
Right now only Batsugun has sound, but I'd expect Knuckle Bash, Dogyuun and V-Five to follow shortly, there are no technical hurdles for those anymore. Fix Eight could take a little longer, but not too much longer.
It makes more sense to do things like this properly than hack in samples from the OST.
For the older Toaplan games the original problem remains, the sound code is confirmed to be inside the CPU, however the technology to extract it is available as a service now, but not a cheap service.
Re: Batsugun's Sound Has Finally Been Emulated
Thanks for the technical write-up.
Re: Batsugun's Sound Has Finally Been Emulated
It fascinates and intrigues me that there are still so many unknowns and new discoveries to be made (with emulation as well as with scoring mechanics) like discovering new species of insects in the rain forests.IseeThings wrote:For many years it was thought that the Batsugun sound code was stored in an MCU and was impossible to extract (with technology / resources available at the time) This was the case for several earlier Toaplan titles, so attempting to emulate the sound on them was largely put aside under the logical assumption that these were the same.
A couple of years later it was discovered that the later "Toaplan Type 2" games actually use the main game CPU to upload their sound programs
I always wonder where the original developers and technicians are cos they could explain everything and clear away many mysteries if they were tracked down (and in my experience are usually keen to talk).
It would be amazing to interview, say, the technician who designed the Batsugun PCB or the guy who developed the scoring system for G-Stream G2020 but I guess that would need some serious detective work and some very fluent Japanese


Re: Batsugun's Sound Has Finally Been Emulated
Sigworthy.Matsunaga wrote:Batsugun's sound working can cause a fight
-ud
Righteous Super Hero / Righteous Love
Re: Batsugun's Sound Has Finally Been Emulated
This is such awesome news! I was able to get Batsugun's sound working in Thundermame with samples, but not Dogyuun. I really love the Dogyuun soundtrack, so I can't wait to play the game with sound!
Re: Batsugun's Sound Has Finally Been Emulated
Well, my contributions feel marginalized. Awesome.IseeThings wrote:this is a bigger achievement than getting the Cave PGM stuff running.

This was not a difficult thing to do, it was just tedious and AWJ happened to be the only one who cared enough to do it.
It should have been in the core in the first place. Getting PGM sound working was far harder, as it actually required real reverse engineering and such, whereas all of this was documented very clearly in the datasheet.
@trap0xf | daifukkat.su/blog | scores | FIRE LANCER
<S.Yagawa> I like the challenge of "doing the impossible" with older hardware, and pushing it as far as it can go.
<S.Yagawa> I like the challenge of "doing the impossible" with older hardware, and pushing it as far as it can go.
-
- Posts: 534
- Joined: Thu Dec 16, 2010 6:38 pm
- Location: California
Re: Batsugun's Sound Has Finally Been Emulated
I was referring to it from a 'protection' point of view. Using obscure features of a CPU ended up being a better protection than the stuff Cave put in.SquidMan wrote:Well, my contributions feel marginalized. Awesome.IseeThings wrote:this is a bigger achievement than getting the Cave PGM stuff running.
This was not a difficult thing to do, it was just tedious and AWJ happened to be the only one who cared enough to do it.
It should have been in the core in the first place. Getting PGM sound working was far harder, as it actually required real reverse engineering and such, whereas all of this was documented very clearly in the datasheet.
Also from an age / preservation point of view, the last time Batsugun got ported was the Saturn and the game is now 18 years old.
Now, if a company owns, or wants to buy up the rights to the game to port it to a modern platform they have all the knowledge they need to provide a 100% authentic arcade emulation as part of their port, as well as a correct easily debuggable reference for creating it. The Cave code is more modern, and the company still around to develop it, so chances are if somebody wanted to port it they would have access to easily compilable C sources. (not that it hasn't stopped them messing it up in the past)
I believe by your own admission some of the PGM sound stuff is still a bit hacky?
It's often been stated that the reason many of the Sega game packs that were released prior to MAME emulating the Sega protection devices only included unprotected games, often based on bootleg code is because they really had no other source of information for them anymore.
Hopefully that reassures you as to why I consider this to be a bigger achievement. I feel it helps the industry more, and was in more urgent need of doing. It also closes the book on the 11 year saga that has been the emulation of the game.
That's not to say the Cave stuff wasn't good to see, it was good to get more of the revisions found and documented, which helps owners of the PCB know if they're running the most recent known bug-fixed code, and the emulation of them definitely helped with that.
I would still consider the aforementioned Sega emulation to be an even bigger achievement than either of these! Never underestimate the importance of having an old game properly emulated if you want to do a port. I know people who have worked in the industry and have turned down the chance to port certain old games to XBLA because the emulation wasn't good enough (not a good reference), and the company was unable / unwilling to supply original sources (or they were simply assembly language)
Last edited by IseeThings on Wed Jan 19, 2011 2:07 am, edited 1 time in total.
Re: Batsugun's Sound Has Finally Been Emulated
SquidMan, I'm going to have to agree with IseeThings. Batsugun's sound getting emulated is the grand-daddy achievement in emulation history. Even Kale's recent work on the Seibu driver pales in comparison. The realisation that V20/V30 code was being uploaded was so insightful, I don't think even the NSA could have figured it out. It's hard to tell x86-like opcodes from encrypted bytecode for an obscure processor, it's quite rare you see.
In fact I heard there isn't even a datasheet on these things!
In fact I heard there isn't even a datasheet on these things!
The ICS2115 driver is a complete hack, I just made it all up, trying everything until it worked. In fact, I was drunk half the time so if the sound begins to skip/slow down, you can blame the booze.Iseethings wrote:I believe by your own admission some of the PGM sound stuff is still a bit hacky?
I totally agree, the industry was in shambles until Batsugun's sound got emulated properly. With this move, NYSE:MAME's stock has risen 50% while FBA.L eased a little on the news. An industry conference is being held to discuss the full ramifications of the changes to the CPU core, right after the end of the MAME expo to be held in Moscow.Iseethings wrote:I feel it helps the industry more, and was in more urgent need of doing.
<RegalSin> It does not matter, which programming language you use, you will be up your neck in math.
-
- Posts: 534
- Joined: Thu Dec 16, 2010 6:38 pm
- Location: California
Re: Batsugun's Sound Has Finally Been Emulated
You mean the stuff I've been helping Kale with? That's pretty damn important.austere wrote:SquidMan, I'm going to have to agree with IseeThings. Batsugun's sound getting emulated is the grand-daddy achievement in emulation history. Even Kale's recent work on the Seibu driver pales in comparison. The realisation that V20/V30 code was being uploaded was so insightful, I don't think even the NSA could have figured it out. It's hard to tell x86-like opcodes from encrypted bytecode for an obscure processor, it's quite rare you see.
Sometimes you've got to keep things in perspective tho. Nowhere have I said 'who cares?' as the original poster did. I've simply said Batsugun sound was a bigger achievement than figuring out the protection on the Cave games, which for various reasons, it was. I laughed when I figured that one out.
I do wonder why you're trying to flame me for saying a piece of work I played one of the most significant roles in getting working is less important than one where I didn't. You could have kept backwards label if you really wanted...
Re: Batsugun's Sound Has Finally Been Emulated
It's called trolling and you and I are both pretty good at it. I did get you to reveal your identity, didn't I? 

<RegalSin> It does not matter, which programming language you use, you will be up your neck in math.
-
- Posts: 534
- Joined: Thu Dec 16, 2010 6:38 pm
- Location: California
Re: Batsugun's Sound Has Finally Been Emulated
I believe most people had already figured that one outaustere wrote:It's called trolling and you and I are both pretty good at it. I did get you to reveal your identity, didn't I?

Re: Batsugun's Sound Has Finally Been Emulated
Some had doubts, I knew from the very beginning. 

<RegalSin> It does not matter, which programming language you use, you will be up your neck in math.
Re: Batsugun's Sound Has Finally Been Emulated
Gentleman, you are both heroes to the community! Sleep soundly knowing you have put an ear to ear smile on the faces of many people through your actions.
Your work is appreciated.
Your work is appreciated.

Re: Batsugun's Sound Has Finally Been Emulated
Undamned beat me to it, but...
Shmups forum - where Batsugun's working sound causes fights
Btw, I love the music in batsugun and also the Saturn's arrange music. Not enough verts have unique tunes for each boss. Stage 5's relaxing melody is quite epic paired with the circuit-board looking city scape.
Shmups forum - where Batsugun's working sound causes fights
Btw, I love the music in batsugun and also the Saturn's arrange music. Not enough verts have unique tunes for each boss. Stage 5's relaxing melody is quite epic paired with the circuit-board looking city scape.
"I've had quite a few pcbs of Fire Shark over time, and none of them cost me over £30 - so it won't break the bank by any standards." ~Malc
Re: Batsugun's Sound Has Finally Been Emulated
I might aswell post this here
http://mamedev.emulab.it/haze/Who Let the Dogyuun Out?
Following on from the previous post…
Robiza and AWJ have been working away at the encryption on the remaining Toaplan games which use a V25 CPU.