[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - WinQuake without SciTech MGL (now with added DirectDraw)

WinQuake without SciTech MGL (now with added DirectDraw)

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby mankrip » Wed Nov 28, 2012 2:55 am

So, ... Good to know.

I'll test my current build in Windows XP later; if there's any errors besides the color 0 being always black under it, I'll add a cvar to make those lines optional.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby leileilol » Wed Nov 28, 2012 3:51 am

You could always attempt to detect the windows version and choose smart defaults for that cvar too. I'm already doing that in Engoo, detecting WinNT to avoid generating lookups that involve the colors 0 and 255 (one reason why I take screenshots in the DOS version :P)
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby mankrip » Wed Nov 28, 2012 3:24 pm

Changing the color 0 is working fine in my XP SP3 machine, so I'll leave those lines out.

Anyway, I already had implemented color 0 replacement for everything except the 2D graphics, so if anything goes wrong, it will be just the status bar and a few menu plaques.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby Spike » Wed Nov 28, 2012 11:47 pm

auto-defaulting cvars depending on operating system means that a config cannot easily be copied from one system to the next, though for single player I don't think that's very common.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby leileilol » Thu Nov 29, 2012 12:09 am

Then don't archive them?
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby mh » Thu Nov 29, 2012 12:25 am

I don't like the idea of different cvar defaults depending on anything; if it can't be given a sensible default then it probably shouldn't be a cvar, and if it's in any way system-dependent then it almost definitely shouldn't be a cvar (there are honourable exceptions).
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby mankrip » Thu Nov 29, 2012 8:52 pm

The reason why I thought about creating a cvar is because I don't know how to make the engine detect the OS version, and also because I don't have all versions of Windows installed here to test on them. By using a cvar, players would be able to test it themselves. It was not meant to be a foolproof solution.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby revelator » Fri Nov 30, 2012 4:11 pm

Theres a solution to finding the OS in xreal and doom3 using the INFOEX struct. Its somewhere in the sys files :)
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby qbism » Thu Dec 13, 2012 5:29 am

User avatar
qbism
 
Posts: 1236
Joined: Thu Nov 04, 2004 5:51 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby mankrip » Fri Dec 14, 2012 12:04 am

Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
/ /
User avatar
mankrip
 
Posts: 915
Joined: Fri Jul 04, 2008 3:02 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby leileilol » Thu Dec 20, 2012 12:09 am

I'm having trouble trying to make the window stretchable (doing away with the "go fullscreen" maximize as well) with the video also being stretched by StretchBlt (no want for reinitalization crap right now).

Defining a case of SC_SIZE prevents the window from being resized also.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby leileilol » Wed May 08, 2013 1:41 am

I've finally made the window 'stretchable' by having two nummodes, cycling one to another in between WM_SIZE calls while setting the width/height of both of those nummodes to the actual window size. Dirty hack, but kinda works. Now I just have to get those two dummy modes to not display in the modes list :) it resizes similar to how Unreal does it
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby Downsider » Sat May 11, 2013 9:40 pm

Is there any documentation for SciTech MGL somewhere? I'm interested in what the API looks like, just for fun!
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby leileilol » Sat May 11, 2013 9:55 pm

Considering Scitech MGL is what delayed GTA's release by 10 months I wouldn't think it sounds fun. The only real advantage of MGL is the support for VBE/AF and the Scitech Display Doctor/Univbe drivers, allowing linear accelerated video modes on the crappier video cards (such as Trident, Cirrus, Chips & Technologies, Neomagic, etc.. anything that isn't S3, Matrox, 3dfx, ATI or Nvidia).

I don't recommend learning MGL as, well, Nvidia hardware can't get along with MGL, plus it only really works in Win9x - it has lots of problems with NT/XP/Vista/7/8.
Honestly, the only audience you'll benefit with MGL support are the vintage computing audience....which I am a part of, but i'd rather maintain a DOS version than a Windows MGL version.
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: WinQuake without SciTech MGL (now with added DirectDraw)

Postby Spike » Sun May 12, 2013 12:04 am

make your own vesa driver. that's more fun. all modern hardware should be fine with a linear-mapped framebuffer (with about just 3 interupts into the video bios), though hardware mouse cursors and vsync are more tricky.
devices that require windowing to access the entire framebuffer are more sanely handled by copying from system memory anyway, which would be faster on linear-mapped framebuffers too if you ever read it back.
if you're on windows, just use ddraw for fullscreen and dibs for windowed mode. special libraries with special hacks for each piece of hardware are more trouble than they're worth.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

PreviousNext

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests