ReDuke: Duke Nukem 1 for Windows "by K1n9_Duk3"
#31 Posted 25 September 2016 - 01:13 PM
But seriously, thanks for posting this. It's nice to see that people actually care about Duke 1.
I would have changed Duke's skin color, though. The red shirt makes him look even more sunburned than usual.
#32 Posted 11 January 2017 - 01:20 PM
hrp.ini talks about a bunch of replacement files such as:
hq_credits.png
But they are not included in the package, only hq_border.png and hq_sprites.png. Where can I find all the other replacement files?
I copied in folders for Duke1, Duke2, and Duke3. I added the games and they were detected. But when I go to launch the games, it see a load screen briefly and then it crashes immediately.
http://pastebin.com/SATYBbJP - log file
Any suggestions on how to get this to work?
#33 Posted 11 January 2017 - 02:07 PM
enderandrew, on 11 January 2017 - 01:20 PM, said:
hq_credits.png
But they are not included in the package, only hq_border.png and hq_sprites.png. Where can I find all the other replacement files?
I'm sorry, you can't. I only created some quick hi-res placeholders for testing (as seen in the HD test video). Those images were never supposed to be released to the public. The filenames are in hrp.ini simply because they used to be hard-coded in earlier versions and I wanted to make things easier just in case someone created hi-res graphics using the earlier versions.
enderandrew, on 11 January 2017 - 01:20 PM, said:
Any suggestions on how to get this to work?
I can see from the log file that the game crashes while loading the sounds from DUKE1.DN1. I can't say why that happens from here. Maybe your file is corrupted? For reference, DUKE1-B.DN? should be 6158 bytes with a CRC32 of B5AEF346 and DUKE1.DN? should be 5692 bytes with a CRC32 of FE6562BA (the files are identical for all three episodes). The game detection in the front-end only checks if all files are present, it doesn't check the actual contents of the files.
Try running ReDuke with the "debug" parameter, that will put additional information in the log file while loading the sounds. That should help me figure out when the crash happens.
You can also try the "export" parameter. That will save all the individual sound effects as wave files, which could also be used to determine which sound effect causes the crash.
Edit: fixed file names
This post has been edited by K1n9_Duk3: 11 January 2017 - 03:28 PM
#34 Posted 11 January 2017 - 02:40 PM
Here is a log file with /debug /export
http://pastebin.com/ZYEGn623
Edit: And while you said you're done with this, controller support would be nice if you did decide to pick it back up again. xBRZ support for the sprites might be nice as well.
https://sourceforge.net/projects/xbrz/
This post has been edited by enderandrew: 11 January 2017 - 02:44 PM
#35 Posted 11 January 2017 - 02:59 PM
If the file exists and contains sound, your system is unable to load audio samples and that causes the crash. I have encountered similar issues on Windows 10 when I didn't have any speakers or headphones connected.
If the file does not exists, then my PC speaker to wave converting code contains an error (which I doubt since the code worked perfectly fine on any machine I ever tested this on).
By the way, if you have 7-Zip installed, you can just compress files into a zip file, open the zip file with 7-Zip and it shows you the CRC(32) of all the files. The same might apply to other zip programs as well.
This post has been edited by K1n9_Duk3: 11 January 2017 - 03:07 PM
#36 Posted 11 January 2017 - 03:07 PM
This post has been edited by enderandrew: 11 January 2017 - 03:11 PM
#37 Posted 11 January 2017 - 03:27 PM
I have never seen the LoadSound() function cause a crash (it usually just returns a Null pointer if something goes wrong), and that function is part of the language ReDuke was written in, so I can't really do anything about it. It isn't really documented what the LoadSound() function actually does, but it might do some low level audio stuff that causes a crash with your audio hardware and/or its drivers.
Try updating your sound drivers, maybe that can fix the problem.
PS: Your DUKE1.DN1 file appears to be the same one I have, so that's definitely not the problem.
Edit:
I could try to catch the crash when LoadSound() is called, but if there are issues with your audio hardware, all the other audio stuff could cause crashes, too, so you still might not be able to to play. But I really don't want to release any new versions of ReDuke, since the project could be considered illegal and I don't want any trouble with Gearbox.
This post has been edited by K1n9_Duk3: 11 January 2017 - 03:51 PM
#38 Posted 11 January 2017 - 04:22 PM
K1n9_Duk3, on 11 January 2017 - 03:27 PM, said:
I have never seen the LoadSound() function cause a crash (it usually just returns a Null pointer if something goes wrong), and that function is part of the language ReDuke was written in, so I can't really do anything about it. It isn't really documented what the LoadSound() function actually does, but it might do some low level audio stuff that causes a crash with your audio hardware and/or its drivers.
Try updating your sound drivers, maybe that can fix the problem.
PS: Your DUKE1.DN1 file appears to be the same one I have, so that's definitely not the problem.
Edit:
I could try to catch the crash when LoadSound() is called, but if there are issues with your audio hardware, all the other audio stuff could cause crashes, too, so you still might not be able to to play. But I really don't want to release any new versions of ReDuke, since the project could be considered illegal and I don't want any trouble with Gearbox.
Releasing a new version isn't any different from already having one out in the wild.
And it isn't illegal to make Duke mods, or engines that can read game files.
Gearbox has been putting in their patch notes for Duke Nukem 3D World Tour that they're working to make their game files work even better in source ports. They're openly embracing fan-made engines to play their game files.
Audio is working on my computer, and I can play the .wav file that export produced.
#39 Posted 11 January 2017 - 09:12 PM
Let's see if we can isolate the problem. I will write a simple tool that converts and plays all the sound effects from Duke 1. That would allow you to test things.
Meanwhile, you can try some other programs created with the same programming tools as ReDuke:
Duke Nukem 2 Editor
KEENGINE
The editor allows you to edit and play the sound effects from Duke2 (among other things). Select "AudioT Editor" from the main menu, then "Load AudioT". In the list of sounds, use arrow keys to select one of the PC Speaker sounds and press the space bar to load and play that sound.
KEENGINE is a game engine that comes with a small tech demo. It loads some sounds at startup, so it might crash right away.
#40 Posted 11 January 2017 - 10:03 PM
enderandrew, on 11 January 2017 - 04:22 PM, said:
Yep, I have a decent relationship with Gearbox now and specifically requested the DUKE3D.GRP file be fixed so that we could make use of it, and they obliged. They're actually pretty cool guys. The other day I was extremely frustrated by a dispute with one of the companies we (Voidpoint) contract with. I asked Randy what he thought and he took enough time out of his day to write a couple pages worth of replies, containing viewpoints I hadn't considered that ultimately helped solve the problem I was having. I think people forget that the guy is first and foremost an entertainer, and part of that, in the context of representing Gearbox, is to do and say things that will get people talking. The real guy is just that... a real guy. Completely different.
#41 Posted 11 January 2017 - 10:29 PM
The game will not run if my headphones are plugged in, even though audio works fine through my headphones. But the game will run if I unplug my headphones and put audio through my desktop speakers.
@t800 made new splash screens where Duke has sunglasses and a red shirt. But he didn't replace Duke on the end screen. Here are a full set of hq replacement graphics, including Duke on the end screen with a red shirt and sunglasses.
https://drive.google...UkQxRXRvYldqb2c
#42 Posted 12 January 2017 - 08:02 AM
This latest build which installed yesterday breaks Razer Chroma. It is an API handler which injects into games and listens for calls from compatible games to change the lighting on Chroma devices. At first I didn't suspect it because I have a Razer Chroma mouse and mousepad as well. And it isn't crashing with them plugged in. But now all of a sudden the Chroma software (Synapse) is only detecting my headphones. I killed that sotware and now I can Reduke even with my headphones.
#43 Posted 12 January 2017 - 01:42 PM
enderandrew, on 11 January 2017 - 10:29 PM, said:
He didn't need to. The image in END.DN3 is just a beta version of the title screen. The END.DN? screens are only shown when Dr. Proton ecapes after being defeated by Duke in the final level of the episode. But Dr. Proton doesn't escape in episode 3, he explodes at the end of the boss battle. So you never get to see END.DN3 in the game, unless you use modified levels.
Trivia: END.DN3 isn't the only leftover from earlier versions. The file MAN4.DN? contains older versions of the Duke sprite that make up a "James Bond"-style animation. The original game doesn't even read that file, so it's a mystery to me why this was included in the release. If you want to see that animation, use ReDuke to celebrate Duke's anniversary.
#44 Posted 11 March 2017 - 10:49 PM
#46 Posted 12 March 2017 - 12:00 PM
Hendricks266, on 12 March 2017 - 11:19 AM, said:
If you smell like a man and not a lady.
I'm on a horse.
#48 Posted 12 March 2017 - 06:37 PM
Master O, on 11 March 2017 - 10:49 PM, said:
They could, but I think my approach with ReDuke was slightly less illegal than disassembling the original games without getting permission from whoever owns the rights to the software.
By the way, somebody appears to be working on a high resolution pack for ReDuke:
#49 Posted 12 March 2017 - 10:21 PM
I know, that project is discontinued, but I am working on high resolution pack for Reduke.
You can download my progress here (hq_tiles, hq_sprites):
http://leteckaposta.cz/938254909
Thanks K1n9_Duk3 for your post about my project
This post has been edited by MissingNO: 13 March 2017 - 12:11 AM
#50 Posted 14 March 2017 - 05:15 PM
K1n9_Duk3, on 12 March 2017 - 06:37 PM, said:
By the way, somebody appears to be working on a high resolution pack for ReDuke:
I thought Gearbox owned all of Duke's IP rights? I doubt they'd care about anyone reverse engineering it anyway, as the source code for Duke 1 and 2 are lost to history?
#52 Posted 18 March 2017 - 01:34 PM
Native resolution for this pack is 2560x1440
This post has been edited by MissingNO: 18 March 2017 - 01:36 PM
#54 Posted 02 April 2017 - 03:49 AM
#55 Posted 02 April 2017 - 06:56 AM
Master O, on 14 March 2017 - 05:15 PM, said:
I thought I read that somewhere that the original source code to Duke 1 and 2 are indeed lost to history.
#56 Posted 30 April 2017 - 04:53 AM
#57 Posted 30 April 2017 - 12:58 PM
#58 Posted 01 May 2017 - 11:28 AM
#59 Posted 25 October 2017 - 06:03 PM
MissingNO, on 18 March 2017 - 01:34 PM, said:
Native resolution for this pack is 2560x1440
Did you ever finish this or post a download link somewhere?
#60 Posted 15 April 2020 - 11:58 AM
UPD: So I poked around with the Wayback Machine, and a snapshot from 2017 still had the link, but it was not archived. Yet, the file itself is still on the server, as is the Mega mirror (the DropBox one isn't).