vogons - very old games on new systems Last Visit : never :: 2010-8-01 @ 01:52 am : Now
?FAQ sSearch mMemberlist uUsergroups
rRegister pProfile "Messages lLog in
View posts : unanswered
Forum Index :: Release Announcements ::
up Universal vesa driver for windows dos boxes
Reply with quote Universal vesa driver for windows dos boxes :: 2004-3-03 @ 02:14 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
Now, there's about five different boards in vogons where I might post this, but I guess this is the least offensive place Disapproving..

Anyhow, I've started to hack together an universal VESA driver for windows DOS boxes. I've put an alpha online at:
http://iki.fi/sol/solvbe_alpha_030304.zip

Features:
- VGA 13h 320x200x256 mode support
- Most VESA 1.2 modes supported
- Some mouse support

Limitations:
- Windowed mode only
- Banked VESA support only (as in 1.2), no protected mode interfaces
- Mouse callback function doesn't work properly.

Notes:
- Will write log at c:\SolVBE.log

I've managed to run some noninteractive DOS demos with it successfully, and as long as you can get away with only keyboard use, it should work (just keep the console window focused).

To use, just unzip the contents to a directory and launch the exe from that directory. After that, run the program that needs VESA support.

There may be some conflicts with VDMSound, as both applications work the same way (ie, override VDM functionality).

I'm planning to release the project under the zlib/libpng license, but like most projects, I want it to work first =)

My primary goal is to get terra nova: strike force centauri to run under winxp. Unfortunately, it requires the abovementioned mouse far callback, which has been a major stumbling block for me for a while.

If there's someone who's a wizard in real-mode DOS / interrupt handler programming and who would like to give me a hand, please contact me through ICQ or email at jari dot komppa at kolumbus dot fi. (ddk + open watcom 1.2 + vc6 needed)

Oh, and please do say if I should post these on another forum.

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-03 @ 05:49 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
FYI - software I've tried.

Gateways by Trauma (assembly98 winner demo) - works perfectly in all modes (8bit, 15bit, 16bit, 24bit, 32bit)

Terra Nova: Strike Force Centauri - movies work, menus work, you can get to "your room", but from there on mouse is mandatory, so I haven't tried ingame yet. Ingame probably requires tweaked modes (modex, modey), but I can't try that before the mouse works.

Transport Tycoon Deluxe: If mouse support is enabled (like in the above alpha), it crashes on startup. If it's disabled, the game seems to work fine, but since it (also) requires mouse..

Death Rally: intro movie and menus work, ingame doesn't show anything. Ingame is most likely tweaked mode, so this is not too surprising. Intro movie has some palette issues, most likely since I'm not tracking vertical retraces at this point.

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-03 @ 07:50 pm
eL_PuSHeR
Moderator
[avatar]
Joined: 2003-06-20
Posts: 5086
Hi, Sol_HSA - Interesting work you are doing here. I have not tested your proggy but i hope you will improve it soon. Keep up the good work Cool
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-04 @ 08:24 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
Quick status report - I finally figured out the mouse problem. Partially my mistake, partially bad specs.. but it's solved now.

Good news is that the TN ingame, while in 320x200, worked straight away. 320x400 is a tweaked mode and doesn't work currently.

Bad news is that before I write keyboard support, I still can't actually play the game. And since keyboard use in most games is much more low-level than mouse support tends to be, that might take a while (hopefully less time than solving the mouse problem).

Also, the mouse isn't flawless yet.. Anyhow, I might post a new alpha once I get couple of small bugs squashed.

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-04 @ 08:45 pm
Qbix
DOSBox Author
[avatar]
Joined: 2002-11-27
Posts: 8229
Location: Fryslan
take a look at some parts of dosbox as it provides keyboard and mouse emulation.

_________________
Water flows down the stream
How to ask questions the smart way
Post new topicReply to topic
Hidden
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-04 @ 08:52 pm
Zorbid
Member
[avatar]
Joined: 2002-08-30
Posts: 373
Nice work Happy

I hope it will be possible to merge your work with VDMSound, in order to avoid comflicts.

The PC emulation forum may be better suited for the next post (Dege posts his DOS glide wrapper news there).
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-04 @ 09:42 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
qbix, I will. Although dosbox and vdm extension are somewhat different beasts, at least it can give me some kind of insight on what applications expect from the keyboard.

zorbid, I don't think there are any conflicts, as long as vdmsound leaves VESA alone =).
I started a new thread on the PC emulation board, posting a new alpha there.

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-05 @ 04:59 pm
vladr
Old-timer
[avatar]
Joined: 2002-06-30
Posts: 889
Location: Montréal, QC, CAN
For keyboard you may be better off just forwarding keyboard events from the DirectX window to the original VDMS window and letting it habdle the stuff for now. Mouse is different because of the window size, of course.

V.
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-05 @ 05:38 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
Good point on the keyboard. That does, however, create another problem (don't they always) - how to figure out which vdm window is what we should be talking to.

Mouse is more than just window size problem, btw - client app can change the valid mouse region etc. However, mouse is now pretty much done.

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-05 @ 06:51 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
Ok, I didn't bother looking into the irq stuff too deeply because of your suggestion, and wrote a routine that finds the correct console with acceptable accuracy. And it works! I can play TN now Very Happy Very Happy Very Happy

A new alpha will pop up later on again..

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-06 @ 05:54 am
vladr
Old-timer
[avatar]
Joined: 2002-06-30
Posts: 889
Location: Montréal, QC, CAN
The way M$ recommends to identify the console window is by setting its title (via the console methods) and then scan all windows for that title and get its hwnd. Don't know if that's what you implemented. Happy
V.
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-06 @ 07:29 am
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
That's what I'd do if the program I'm running in the console was an nt console app. Unfortunately it's an 16-bit DOS application, and thus doesn't have much of an access to the win API =)

SolVBE thus accepts the console if it's either
1. the only console around
2. has 'solvbe' in the title (eg. rungame.bat solvbe command line or some such)

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-06 @ 08:48 pm
Stiletto
Oldbie
[avatar]
Joined: 2002-07-01
Posts: 1116
Ah, is this what you meant, Vlad?
http://library.mobrien.com/manuals/mprm...shell.html

_________________
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-07 @ 09:39 pm
vladr
Old-timer
[avatar]
Joined: 2002-06-30
Posts: 889
Location: Montréal, QC, CAN
Whoa, one moment, you mean you don't use a VDD? I think you do, and the VDD has full access to the console API, I can guarantee you that.

V.


Last edited by vladr on 2004-3-08 @ 03:36 am; edited 1 time in total
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-07 @ 10:17 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
Oh, hadn't even considered trying that. =) Somehow I feelt that the VDD is somehow separate from the console it's running in..

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
Reply with quote Re: Universal vesa driver for windows dos boxes :: 2004-3-08 @ 10:05 pm
Sol_HSA
$20
[avatar]
Joined: 2004-03-03
Posts: 40
Location: Finland
I've removed all the alphas now that the beta is out:
http://vogons.zetafleet.com/viewtopic.php?p=33736

_________________
http://iki.fi/sol - my schtuphh
Post new topicReply to topic
Offline
page 1 of 1
All times are GMT
Moderate
Quick Reply & Options
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Powered by phpBB © 2001-2003 phpBB Group.
vogons and vogons site design and content herein is under a creative commons license 2002-2003 zetafleet.dom.
This site hosts no abandonware. There is no material that is knowingly illegal here.
zetafleet.dom will not be held responsible for users' posts.
This disclaimer is brought to you thanks to the BSA.