T2K and VLM emulator: updated 12/2/07 to version 0.06b

Everything to do with our favourite pastime! Reviews, recommendations, sells/swaps, problems etc. Whether they are on the latest consoles, arcade or retro classics. It's not the winning or losing, we came to play!
Post Reply
User avatar
everklear
Baaaaaaa!
Baaaaaaa!
Posts: 6670
Joined: Fri Aug 02, 2002 1:32 am 0
Location: Edmonton, Alberta, Canada

Post by everklear »

This is freakin' awesome! :D
Oh the hours I spent sitting in front of my TV set....

Many thanks, Dio.

Here's my config. Seems to work pretty well. Some glitchy bits at top and bottom of the screen in full-screen mode.

AMD Athlon 2500+
1GB RAM
nVidia GeForce4 MX 4000 (Microsoft Drivers)
"Ask not for whom the bone bones; it bones for thee."
--Bender
User avatar
everklear
Baaaaaaa!
Baaaaaaa!
Posts: 6670
Joined: Fri Aug 02, 2002 1:32 am 0
Location: Edmonton, Alberta, Canada

Post by everklear »

OH! I failed the first bacon warp. :evil:

Looks as bacony as ever though. The only thing missing is the television blur factor. :D
"Ask not for whom the bone bones; it bones for thee."
--Bender
User avatar
everklear
Baaaaaaa!
Baaaaaaa!
Posts: 6670
Joined: Fri Aug 02, 2002 1:32 am 0
Location: Edmonton, Alberta, Canada

Post by everklear »

Crap. Now I'll have to play again. :twisted:

I found a bug...or a behaviour that I wasn't aware of...not sure which.
I don't see it mentioned in the "readme".

When I press "Scroll Lock" (in my case to swich my KVM to another display - to do some work....) the emulator exits.
"Ask not for whom the bone bones; it bones for thee."
--Bender
User avatar
PVB
Sheepie Whore
Sheepie Whore
Posts: 32542
Joined: Mon Apr 22, 2002 10:16 pm 0
XBL Gamertag: PVBuk
PSN: PVBuk
Location: Medway, U.K.

Post by PVB »

Dio wrote:
PVB wrote:
Dio wrote: As regards the fullscreen transition crash, I think I can do little but recommend better drivers, what I'm doing appears legal and I haven't been able to reproduce it here yet.
I have the latest Intel 915GV Express chipset and Nvidia gfx card drivers, so I guess it's just a PC thing. :?
Where did I say 'latest'? ;) I think you're right, it probably is just a PC thing, and likely some weird interaction.
Just me copying what every game manual/company says to do if a game won't load/work properly. :roll: :lol:

Will we ever be able to play mp3/aac files, or do I have to convert my entire music collection to a certain type of wav file? :wink:

I still can't hear the wav files in the VLM and I've tried nearly all the ones I've got. Am I doing something wrong? :?

I load the emu, then the CD rom, then the music file, then I press 'Play'.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

everklear wrote:When I press "Scroll Lock" (in my case to swich my KVM to another display - to do some work....) the emulator exits.
Ahahaha sorry that's deliberate. It's the hotkey for "Drop dead quickly". Esc is the hotkey for drop dead slowly. Basically if Esc doesn't work SL might - I should probably pull that out actually, it's a hangover from the old days (the Windows wrapper I'm using has its origins over ten years ago in testing very, very early video cards).

There's all sorts of funny things built in. Anyone who wants to be really scared should press F9 ;)
Some glitchy bits at top and bottom of the screen in full-screen mode.
Sorry about that. AFAICS ATI drivers clear video memory when it's allocated for rendertargets but it sounds like nvidia drivers don't. I've added clears to all three buffers. Will be fixed in the next version.

It'd be much easier if everyone just bought ATI you know :D
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

PVB wrote:Just me copying what every game manual/company says to do if a game won't load/work properly.
Exactly. If it's broken look for later drivers. The implicit corollary is if it's not broken, don't change 'em, because some companies are sloppy about regressions.
Will we ever be able to play mp3/aac files, or do I have to convert my entire music collection to a certain type of wav file?
I'm looking at the import output option.
I still can't hear the wav files in the VLM and I've tried nearly all the ones I've got. Am I doing something wrong? :?
Have you tried turning up the volume? Push up on the keyboard when it's still in CD-player mode and let the slider get all the way to the top. The control's logarithmic and it starts off "chuffing quiet".
I load the emu, then the CD rom, then the music file, then I press 'Play'.
Load the rom image, attach music file, press Q, push up until the volume gets usable. No need to do anything on the Jag panel, it's not connected to anything - fortunately, the DSP program that does all the dirty work for VLM is already running and accepting I2S input though. Made my life a lot easier (slight nervous tic from three days trying to interpret TOC-reading code to see what the Toilet is sending to the DSP twitches again).
User avatar
PVB
Sheepie Whore
Sheepie Whore
Posts: 32542
Joined: Mon Apr 22, 2002 10:16 pm 0
XBL Gamertag: PVBuk
PSN: PVBuk
Location: Medway, U.K.

Post by PVB »

Dio wrote:
PVB wrote:Will we ever be able to play mp3/aac files, or do I have to convert my entire music collection to a certain type of wav file?
I'm looking at the import output option.
Super. :)
I still can't hear the wav files in the VLM and I've tried nearly all the ones I've got. Am I doing something wrong? :?
Dio wrote:Have you tried turning up the volume? Push up on the keyboard when it's still in CD-player mode and let the slider get all the way to the top. The control's logarithmic and it starts off "chuffing quiet".
I don't think any of my wav files work in the emu, cos I push the volume all the way up:

Image

But hear nothing.

I also noticed that the question mark stays on the CD title screen, even after I've attempted to load the wav file, so maybe that's the problem? :?
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

No, the question mark is "What the **** is it doing when I ask it for a TOC?" the answer being "Something that doesn't hang - i.e. laser focus error, I think..." ;). Press Q and fortunately VLM doesn't talk to cdfront to learn there's not a disk in, it relies on cdfront to configure I2S and just takes what it gets.

(I'd never have got this far with VLM if it wasn't for the fact that all the CDROM BIOS apart from VLM itself has the source available online.)

Can you right click on the WAV file, select 'properties' 'summary'? If it's not 2-channel 16-bit it won't work right just now, although I think I've fixed that tonight. If it's not PCM (compressed?) it won't work at all.

Strange that you have signals on VLM though. If I don't attach a wav file VLM just sits there. Do you have music in T2K?
User avatar
Barney
Baaaaaa!
Baaaaaa!
Posts: 2131
Joined: Tue Aug 23, 2005 7:59 pm 0
Location: UK, Broughton, Brigg

Post by Barney »

Dio wrote:
Barney wrote:Any chance you could run the emulation in a seperate realtime_priority thread alongside the windows message loop?
Setting realtime on application threads that are doing anything non-trivial is highly not recommended (it can hang the system).
Yes - it can, but I'm suggesting that a secondary thread as a subprocess of a normal-time thread be implemented. When a whole slew of WM_PAINT messages arrive as mIRC updates it's window then the emulation can continue whilst letting the message loop work it's way through the barrage without interruption.

There's at least two windows emulators that I know of that implement this strategy and although there is a risk that you can make your own app non-responsive, you won't affect overall system performance. The only real caveat is that the subprocess being real_time priority must yield periodically to the normal priority thread - usually at the 50/60hz interrupt or while waiting for sound-synch.

That said, I'm not sure that holds true of Win9x, though on an XP/2k system it works beautifully - I have experimented with this myself recently, so have some experience.

Anyway, I'm more than happy with your emulation of a fantastic game, and look forward to more updates - very, very well done, that man! An emulation engine running under windows is a distinctly non-trivial task to get right.
But another solution for the music is here - I found all the mods from the game after a bit of searching the net.
Thanks for that - I'll bung them in Winamp :-)
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

I ignore WM_PAINT. Nothing inside the message loop takes significant time except menu commands like switch fullscreen. So even if there's a thousand other apps messages in the queue, it should fall through fairly quickly.

The emulation loop itself chews up every cycle it gets, unless you yield.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

308305. I find the bacon warps relax me a bit *too* much, I often stuff up a few times after them because I haven't got the accumulated "YAAAARGH!!!" anymore.

I'm quite getting into this! 8)

Yikes, it's gone one in the morning! Best get a token amount of work done before bedtime! :lol:
User avatar
K3V
Baaa!
Baaa!
Posts: 429
Joined: Mon Apr 22, 2002 3:55 pm 0
Location: NY, USA
Contact:

Post by K3V »

Fantastic piece of work. Thanks, Dio. :winner:
User avatar
PVB
Sheepie Whore
Sheepie Whore
Posts: 32542
Joined: Mon Apr 22, 2002 10:16 pm 0
XBL Gamertag: PVBuk
PSN: PVBuk
Location: Medway, U.K.

Post by PVB »

Dio wrote: Strange that you have signals on VLM though. If I don't attach a wav file VLM just sits there. Do you have music in T2K?
Yup, music in T2K. :)
User avatar
PVB
Sheepie Whore
Sheepie Whore
Posts: 32542
Joined: Mon Apr 22, 2002 10:16 pm 0
XBL Gamertag: PVBuk
PSN: PVBuk
Location: Medway, U.K.

Post by PVB »

Dio wrote: Can you right click on the WAV file, select 'properties' 'summary'? If it's not 2-channel 16-bit it won't work right just now, although I think I've fixed that tonight. If it's not PCM (compressed?) it won't work at all.
Most of them have the following:

Bit Rate 56kbps
Channels 2 (stereo)
Audio Sample Rate 24kHz
Audio Format MPEG Layer 3

Some have:

Bit Rate 32 kbps
Channels 1 (mono)
Audio Sample Rate 22 kHz

So it looks like none fit the bill. :?

Guess I'll have to convert some then.
Last edited by PVB on Sat Aug 27, 2005 9:06 am 0, edited 1 time in total.
User avatar
gribbles
Baaaaaa!
Baaaaaa!
Posts: 3884
Joined: Tue Apr 16, 2002 5:51 pm 0
XBL Gamertag: gribs
PSN: gribbles-

Post by gribbles »

Runs like a dream apart from the aforementioned full screen glitch - flashing windows title bar etc.

P4 3.0GHz HT
1GM RAM
ATI X800

Cheers, Dio. Plays a lovely game of T2K. My right wrist now aches - and not for the usual reason ;)

Now to see in I can get VLM going on it...
Post Reply