OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: sago007 on September 07, 2008, 03:35:59 PM



Title: Binary for old Windows versions
Post by: sago007 on September 07, 2008, 03:35:59 PM
I have found some of my old source and patches and produced a Windows exe without IPv6 stuff. It uses the 0.7.7 mouse unless you change an environment variable. It can host servers too.

http://brie.ostenfeld.dk/~poul19/public_files/oa/dev080/oa080-windows-old.zip

It may or may not work. I have only tested it on Vista and it is not a fair test as Vista supports IPv6.


Title: Re: Binary for old Windows versions
Post by: epicgoo on September 07, 2008, 04:38:46 PM
tested on vista? o_O well at least it runs on some crappy windows
someone should test it on win95(well wth...), win98 and win2k
or dunno try compat mode :P


Title: Re: Binary for old Windows versions
Post by: Neon_Knight on September 07, 2008, 04:52:27 PM
I had a PC with Win98SE, I will test it.


Title: Re: Binary for old Windows versions
Post by: gemy on September 08, 2008, 01:25:40 PM
GREAT WORK SARGO

It displays now server for me again. Can u also patch the 0.8 with the old mouse from 0.7 ? That would be very cool. in_mouse - 1 or in_mouse 1 dont works for me. The 0.8 mouse really sucks.



Title: Re: Binary for old Windows versions
Post by: sago007 on September 08, 2008, 02:19:22 PM
I cannot patch the old mouse input back: the change is to big. I cannot use an older ioquake3 base either as they have some unknown limits (unknown in the sense that I can't remove them). The best I can do is upgrade to a newer version there you can select the directx driver again.
Currently that requires an environment variable set: SDL_VIDEODRIVER must be set to "directx" this might cause problems on some laptops and 64 bit systems in other SDL programs. I don't remember how to set it in Windows.


Title: Re: Binary for old Windows versions
Post by: andrewj on September 08, 2008, 09:48:03 PM
Currently that requires an environment variable set: SDL_VIDEODRIVER must be set to "directx" this might cause problems on some laptops and 64 bit systems in other SDL programs. I don't remember how to set it in Windows.

Perhaps like this (from a classic Doom port) :

Code:
void I_StartupGraphics(void)
{
        if (M_CheckParm("-directx"))
                force_directx = true;

        if (M_CheckParm("-gdi") || M_CheckParm("-nodirectx"))
                force_directx = false;

        const char *driver = M_GetParm("-videodriver");

        if (! driver)
                driver = SDL_getenv("SDL_VIDEODRIVER");

        if (! driver)
        {
                driver = "default";
#ifdef WIN32
                if (force_directx)
                        driver = "directx";
#endif
        }

        if (stricmp(driver, "default") != 0)
        {
                char buffer[200];
                snprintf(buffer, sizeof(buffer), "SDL_VIDEODRIVER=%s", driver);
                SDL_putenv(buffer);
        }

        I_Printf("SDL_Video_Driver: %s\n", driver);

        if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0)
                I_Error("Couldn't init SDL VIDEO!\n%s\n", SDL_GetError());

        etc........


Title: Re: Binary for old Windows versions
Post by: damocles on September 08, 2008, 11:42:24 PM
Not able to test these at the moment.  AFAIK (I might be wrong about this) setting to "directx" seemed to break OpenGL detection on NT 4 and stock Windows 2000 (i.e. refused to start).  Setting to "windib" (in_mouse -1) worked.


Title: Re: Binary for old Windows versions
Post by: sago007 on September 08, 2008, 11:43:36 PM
Perhaps like this (from a classic Doom port) :
That is how newer versions of ioquake3 sets it too but you can set it in Windows too if you can't program or don't want to wait.


Title: Re: Binary for old Windows versions
Post by: batracio on October 04, 2008, 07:51:19 PM
Quote from: sago007
I have found some of my old source and patches and produced a Windows exe without IPv6 stuff. It uses the 0.7.7 mouse unless you change an environment variable. It can host servers too.

http://brie.ostenfeld.dk/~poul19/public_files/oa/dev080/oa080-windows-old.zip

It may or may not work. I have only tested it on Vista and it is not a fair test as Vista supports IPv6.

Thank you very much, this release is the only way I can use OA 0.80 server browser, before it I was stuck with 0.77 version. By the way, what's that IPv6 stuff that the standard binary uses, and what is it for? I'm using Windows 2000 SP4, and I've already installed the IPv6 stack and enabled it on my ethernet NIC, but it doesn't seem to work properly. With standard OA 0.80 binary, I still don't receive the servers list from the master server, but if I enter a server IP address manually, I can connect and play.