DXX-Rebirth Forum

Bug: Entry Point Not Found

0 Members and 1 Guest are viewing this topic.

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Bug: Entry Point Not Found
« on: March 14, 2016, 10:34:28 AM »
Hey all :)


I have been trying to get DXX-Rebirth 0.58.1 runnong on my retro build from 2002 which has the following setup:

AMD AthlonXP 2700+
2x 1GB PC-3200 @ PC-2700
ASUS A7V333-R Rev 1.02 - VIA Apollo KT333 Chipset
3dfx Voodoo5 5500 AGP 64MB Rev.A 2500
Creative Labs Sound Blaster Audigy 2 Platinum + Live Drive

Microsoft Windows 2000 Professional + Service Pack 4
SFFT Alpha 41 Modified by ps47 for OpenGL ES 1.2 Support

This setup worked fine with 0.57.3 I meant 0.54 to 0.56 to my memory recalls, so I don't know why that would matter with 0.58.1
Here a screenshot of the error message I am getting:


Hereby I really hope someone can help me out here, it's been a very long time since I ran DXX-R under Win2K Pro as well.
« Last Edit: March 21, 2016, 08:31:39 AM by Obi-Wan Kenobi »
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #1 on: March 14, 2016, 03:41:42 PM »
Well that is disappointing...
https://msdn.microsoft.com/en-us/library/ms737931%28VS.85%29.aspx

It seems that DXX-Rebirth is not compatible for systems using an OS that is older than WinXP Pro SP2...

A shame though, since Descent 1 was made before the release of Windows 95 and Descent 2 just after Win 95.
Ah well I will try older versions of Rebirth then I can always install WinXP Pro  + SP3 if that is of need since i just tested my PC Flashed Voodoo5 5500 PCI Macintosh under WinXP Pro + DXX-R 0.57.3 and no issues.

A shame still I had hoped it would work under Win 2 K Pro + SP4 & RU1 for SP4, oh well, bad news for us Retro PC users then.
« Last Edit: March 14, 2016, 05:26:05 PM by Obi-Wan Kenobi »
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline Kp

  • ***
  • 131
Re: Bug: Entry Point Not Found
« Reply #2 on: March 15, 2016, 05:07:10 AM »
Both 0.57.3 and 0.58.1 call the function you identified as a problem.  Both versions set _WIN32_WINNT=0x501 (Windows XP), so it is pure luck that 0.57.3 was not using other XP-specific functionality.  I do not know why 0.58.1 lost the freeaddrinfo stub used to work around the missing functionality.  You may need to rebuild 0.58.1 with an older compiler.  However, given that both Windows 2000 and Windows XP are long out of security support, I suggest switching to a well-maintained Linux distribution.  Linux tends to have lighter hardware requirements, so it should run acceptably even on very old hardware.

Offline derhass

  • Dr. Merkwürdig
  • **
  • 61
  • haters gonna hate
    • derhass@github
Re: Bug: Entry Point Not Found
« Reply #3 on: March 15, 2016, 09:01:00 PM »
Well, http://www.dxx-rebirth.com/features/ states:

Quote
DXX-Rebirth runs on your favourite Operating System. We officially support Linux (and other *NIX), Mac OS (9/X) and Windows (2000, XP, Vista, 7). Still the code can be compiled on many other systems as well.

(the same statement is also in the README.txt).

So we should either consider this a bug, or update the OS requirements to officially drop support for Win2k.

I've no idea when the last time someone actually tried to use it on W2K, and what potentially problematic functions have been added since then. If only such simple things like freeaddrinfo come up, getting things back to work on W2K should be easy enough.
"Perfection is attained not when there is nothing more to add, but when there is nothing more to remove." -- Antoine de Saint Exupéry

Offline Kp

  • ***
  • 131
Re: Bug: Entry Point Not Found
« Reply #4 on: March 16, 2016, 03:00:16 AM »
Unfortunately, I cannot fix the homepage.  Given that the release is over 2 years old (Sat Aug 3 14:18:05 2013) and this is the first report we have heard, I suspect most users have long since abandoned Windows 2000.  I have no way to test compatibility for it, but the unification branch is mostly avoiding OS level changes, so unification is likely no worse off than 0.58.1.

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #5 on: March 16, 2016, 02:56:20 PM »
It's that I prefer Win2K Pro + SP4 & Rollup1 for SP4 for my retro systems most people within the 3dfx communities I am part of use 2K pro, 98SE + UnOfficial SP 2.xx  and only XP Pro + SP3 if there is no other choice ue to some Mod that it needs.

I am from x-3dfx & Voodooalert.de and this is kind of a shame since DXX-Rebirth is being played alot on our Win2K & 98SE systems.
0.56 ran fine but since 0.57 came around it never worked ever again.
And since I have returned to rebuilding my retro builds I wanted to see how my 3dfx Voodoo5 5500 AGP 64MB Rev.A 2500 performed in DXX-R under 2K and well due to this issue that was something that ended fast I am now reinstalling XP Pro + SP3 for the 4th time, it's a problematic OS which I would never prefer to use, but due to this bug I have little choice.

Sorry for the long explanation, it's that I hope Win2K Pro + SP4 can be used again for Rebirth it would do us 3dfx gamers a lot of good :)

As for recompiling? I truly have no idea how to even do that I am no programmer I am more of a hardware type :)
Things might even explode on my end hah!

Here my system specs in short:

AMD AthlonXP 2700+ Thoroughbred-B @ 2167Mhz, 333Mhz FSB & 256KB L2
ASUS A7V333-R Rev 1.02 VIA Apollo KT333 Chipset
1x 1GB PC-3200 CL2 Corsair XMS Platinum @ PC-2700 CL1
1x 1GB PC-3200 CL2 Kinston Hyper-X @ PC-2700 CL1
3dfx Voodoo5 5500 AGP 64MB Rev.A 2500
Creative Labs Sound Blaster Audigy2 Platinum + Live Drive

Win2KPro + SP4 & RU1 for SP4
SFFT Alpha 41 Modified by ps47 to add OpenGL ES 1.2 Support**

** This driver is needed to make DXX_Rebirth function of 3dfx Voodoo4 & 5 Boards.

Currently I am using WinXP Pro + SP3 but Iam hoping to get back to Win2K Pro + SP4/RU1 for SP4 if this problem can be solved.



A friend of mine @ x-3dfx told me this:
Quote
It's probably a bug in the compiler, linking a dll intended for XP instead of 2K. Try contacting the developer.
If there was a way to reroute that dll so it will allow Win2K to work that would be a fix I guess, just don;t know how to even do that.
« Last Edit: March 16, 2016, 03:43:51 PM by Obi-Wan Kenobi »
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline derhass

  • Dr. Merkwürdig
  • **
  • 61
  • haters gonna hate
    • derhass@github
Re: Bug: Entry Point Not Found
« Reply #6 on: March 16, 2016, 10:08:23 PM »
OK, I did some small experiments.

Actually, Microsoft itself is providing leagcy implementations for getaddrinfo/freeaddrinfo for OS versions before WinXP. The following binary was build using Wspiapi.h instead of defining _WIN32_WINT to WinXP:

https://www-user.tu-chemnitz.de/~heinm/tmp/d1x-rebirth-0.58.1-w2khack.exe

Unfortunately, Wspiapi.h does not come with mingw, so I had to use the one from the Windows SDK. But that one did not compile out of the box with mingw, so I had to tweak it. This is currently only an ugly hack.

The exe does start on WinXP, and on a W2K (both in kvm). I couldn't really test it with W2K though, because my hastily installed VM lacks a proper graphics driver and is limited to 16 color mode currently, so the game complains about not getting a suitable display mode...

@Obi-Wan Kenobi:
Can you test if this executable actually works on your system? You should also test if the network sutff is still working as expected.
"Perfection is attained not when there is nothing more to add, but when there is nothing more to remove." -- Antoine de Saint Exupéry

Offline Kp

  • ***
  • 131
Re: Bug: Entry Point Not Found
« Reply #7 on: March 17, 2016, 02:01:00 AM »
I am confused.  The first post said 0.57.3 was fine.  Then the most recent post says that 0.57 is broken.  I am inclined to believe the latter, on the basis that the freeaddrinfo call was added alongside tracker support, which was added after 0.56 and before 0.57.  That commit is also the one that set _WIN32_WINNT=0x501 (enables Windows XP features).  If these networking functions are your only compatibility problem, we could add a build option to exclude DNS in order to produce binaries that run on pre-IPv6-aware hosts.

Offline Kp

  • ***
  • 131
Re: Bug: Entry Point Not Found
« Reply #8 on: March 18, 2016, 03:08:02 AM »
I pushed a change to unification to add support for building with the legacy DNS function gethostbyname.  If you use the legacy function, you will not be able to resolve IPv6 addresses.  However, since Windows before Vista lacked working IPv6, this should not be a problem.

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #9 on: March 21, 2016, 08:34:49 AM »
OK, I did some small experiments.

Actually, Microsoft itself is providing leagcy implementations for getaddrinfo/freeaddrinfo for OS versions before WinXP. The following binary was build using Wspiapi.h instead of defining _WIN32_WINT to WinXP:

https://www-user.tu-chemnitz.de/~heinm/tmp/d1x-rebirth-0.58.1-w2khack.exe

Unfortunately, Wspiapi.h does not come with mingw, so I had to use the one from the Windows SDK. But that one did not compile out of the box with mingw, so I had to tweak it. This is currently only an ugly hack.

The exe does start on WinXP, and on a W2K (both in kvm). I couldn't really test it with W2K though, because my hastily installed VM lacks a proper graphics driver and is limited to 16 color mode currently, so the game complains about not getting a suitable display mode...

@Obi-Wan Kenobi:
Can you test if this executable actually works on your system? You should also test if the network sutff is still working as expected.
Hey man sorry for the late reply, I Edited my first post I also tested 0.57.3 and no go in 2K, I will have to reinstall 2K Pro sionce I have WinXP Pro + SP3 on it, and ICan't stand XP pro rofl, but it's good timing since my EPoX EP-8K3A+ arrived now this system is Voodoo5 6000 ready again and yus I am going to reinstall Win2K Pro + SP4 on it and I will continue testing Rebirth on it so I can play D1 & D2 under 2K again, it's something I really hope  being possible again, since Win XP Pro is simply brain meltingly bad lol.
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #10 on: March 21, 2016, 10:22:47 PM »
Great news this fix fixed it Win2K Pro users can play DXX-Rebirth with this fix < I hope there is a fix like this for Descent 2 as well :) Might be an idea to make an update patch 0.58.2 maybe?

Anyways major thanks for this I hope you can make me a paatch for D2X-Rebirth 0.58.1 as well if that isn't too much asked :)
my 3dfx Voodoo5 5500 AGP does 140 fps avr @ 1024 x 768 x32 maxed out settings under Win2K Pro :)

You can see the V5 5500 AGP in running D1X-Rebirth 0.58.1 under Win2K here:
https://www.youtube.com/watch?v=n4MKdwlO9Uo&feature=youtu.be

Here the Motherboard neatly built in:



Here from a different perspective:



Here I Zoomed in a bit just showing the Mobo and all the cards neatly in place:



Here I took a shot showing the V5's fans and the other cards from the other side:



Here the front view of Sveta-2002:



And the back panel:



Until this happened xD  :gadget:  :topmodel:


Specs:

 Sveta-2002

AMD AthlonXP 2700+ Thoroughbred-B
2167Mhz ,333Mhz FSB, 256KB L2
EPoX Ep-8K3A+ with the VIA Apollo KT-333 Chipset
1x 1GB Corsair PC3200 XMS Platinum @ PC-2700
1x 1GB Kingston PC 3200 Hyper-X @ PC-2700
3dfx Voodoo5 5500 AGP 64MB Rev.A 2500
Creative Labs Sound Blaster Audigy 2 Platinum + Live Drive
1x NEC 5 Ports USB 2.0 PCI Card
1x Intel Pro/100+ Server Adapter
1x Seagate Baracuda V 120GB 7200 rpm HDD
1x NEC 3.5" Floppy Disk Drive
NEC 16x/40x DVD/CD ReWriter.
HIPRO 300 Watt PSU

Win2K Pro UK + SP4
SFFT Alpha 41 Modified by ps47, need this driver so the V5 works in DXX-Rebirth
Derhass' D1X-Rebirth 0.58.1 Hack/Fix for Win2K Support
« Last Edit: March 22, 2016, 01:55:33 AM by Obi-Wan Kenobi »
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline derhass

  • Dr. Merkwürdig
  • **
  • 61
  • haters gonna hate
    • derhass@github
Re: Bug: Entry Point Not Found
« Reply #11 on: March 22, 2016, 01:51:31 AM »
Great news this fix fixed it Win2K Pro users can play DXX-Rebirth with this fix < I hope there is a fix like this for Descent 2 as well :) Might be an idea to make an update patch 0.58.2 maybe?

I didn't say it is a fix. It was a hack.  ;)

kp made something more like a fix in the unification codebae. My hack did have the advantage that the check for the getaddrinfo() functionality was made at run-time, so that the same binary could be used for all windows versions and the full functionality would be available if the OS is new enough. However, the downside of my hack is that it is pratically undistributable from a legal point of view.

I currently do not have a windows build enivornment which would allow me building the current unification branch, so I did some kind of "backport" of kp's fix and built new binaries from that. (The archive also contains a readme with the links to the sources):

https://www-user.tu-chemnitz.de/~heinm/tmp/dxx-rebirth-0.58.1_win2k.zip

Can you please try if these are working for you?
"Perfection is attained not when there is nothing more to add, but when there is nothing more to remove." -- Antoine de Saint Exupéry

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #12 on: March 22, 2016, 01:54:29 AM »
Great news this fix fixed it Win2K Pro users can play DXX-Rebirth with this fix < I hope there is a fix like this for Descent 2 as well :) Might be an idea to make an update patch 0.58.2 maybe?

I didn't say it is a fix. It was a hack.  ;)

kp made something more like a fix in the unification codebae. My hack did have the advantage that the check for the getaddrinfo() functionality was made at run-time, so that the same binary could be used for all windows versions and the full functionality would be available if the OS is new enough. However, the downside of my hack is that it is pratically undistributable from a legal point of view.

I currently do not have a windows build enivornment which would allow me building the current unification branch, so I did some kind of "backport" of kp's fix and built new binaries from that. (The archive also contains a readme with the links to the sources):

https://www-user.tu-chemnitz.de/~heinm/tmp/dxx-rebirth-0.58.1_win2k.zip

Can you please try if these are working for you?
Well either way your hack is a fix to me, since it fixed my problem that sense major thanks man, :)
Btw playing with that Voodoo5 brings back memories daaaamn :X :D
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.

Offline derhass

  • Dr. Merkwürdig
  • **
  • 61
  • haters gonna hate
    • derhass@github
Re: Bug: Entry Point Not Found
« Reply #13 on: March 22, 2016, 01:58:01 AM »
So, did you test my new binaries already?
"Perfection is attained not when there is nothing more to add, but when there is nothing more to remove." -- Antoine de Saint Exupéry

Offline Obi-Wan Kenobi

  • x-3dfx & VoodooAlert.de Is Where My Heart Lays
  • *
  • 37
  • Get Voodoo. Get Graphics Done Right.
    • VoodooAlert.de
Re: Bug: Entry Point Not Found
« Reply #14 on: March 22, 2016, 02:10:36 AM »
So, did you test my new binaries already?
Patience please, I am not that fast and I just got back from testing thoroughly, and yes they work fine :)

Thanks for doing this, this is the cure for all us Win2K Pro users.
D2 gets 70fps D1 120 fps avr  both @ 1024 x 768 x32 :)
3dfx Graphics Accelerators ... So Powerful, It's Kind of Ridiculous.