Duke Nukem 3D for ODROID-GO

Moderators: odroid, mdrjr

Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Wed Nov 21, 2018 4:12 pm

Here is my first port of a game to ODROID-GO:



You can get the firmware file here:
https://github.com/jkirsons/Duke3D/tree/master/release

You'll need the Duke Nukem 3D Atomic Edition (v1.5) or lower files on the SD Card in a folder called "duke3d".
I haven't tried a later version that this - let me know if you get it working.

All the source code is here:
https://github.com/jkirsons/Duke3D
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby mad_ady » Wed Nov 21, 2018 5:06 pm

Awesome work!
User avatar
mad_ady
 
Posts: 4931
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Duke Nukem 3D for ODROID-GO

Unread postby jutleys » Thu Nov 22, 2018 7:35 pm

HEADER MATCH ERROR
jutleys
 
Posts: 73
Joined: Fri Jul 20, 2018 1:06 am
Location: UK
languages_spoken: english
ODROIDs: Odroid Go
Odroid X4U N64 case

Re: Duke Nukem 3D for ODROID-GO

Unread postby crashoverride » Thu Nov 22, 2018 7:37 pm

jutleys wrote:HEADER MATCH ERROR

This can happen if you have older device firmware. Try using the latest release from here:
viewtopic.php?f=158&t=31513
crashoverride
 
Posts: 4140
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Duke Nukem 3D for ODROID-GO

Unread postby raystream » Thu Nov 22, 2018 8:26 pm

really great work.
but i have a problem.
it starts and i can choose the level and difficulty but then it stops.

i only have the duke nukem demo files. could this be the error?
raystream
 
Posts: 4
Joined: Mon Oct 15, 2018 7:29 pm
languages_spoken: english
ODROIDs: go

Re: Duke Nukem 3D for ODROID-GO

Unread postby jutleys » Thu Nov 22, 2018 9:13 pm

Okay thanks i got it working now with the full version v1.5 needs some work to optimise it to speed it up but great work. I hope you can do a port of wolfeinstein3d for us all we would love it if you could do a port :)
jutleys
 
Posts: 73
Joined: Fri Jul 20, 2018 1:06 am
Location: UK
languages_spoken: english
ODROIDs: Odroid Go
Odroid X4U N64 case

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Fri Nov 23, 2018 1:33 am

raystream wrote:really great work.
but i have a problem.
it starts and i can choose the level and difficulty but then it stops.

i only have the duke nukem demo files. could this be the error?


Ahh, my fault.
There was some code on startup that does a CRC check of the DUKE3D.GRP (43MB).
Which as you can imagine took quite some time - reading from a 1-wire SD card.

So I removed it. But now it can't tell that you're running the shareware version (which it determines from the CRC).
Maybe I'll just get it to check the file size of the .GRP file as a quick check.

For now, probably only v1.5 full version will work...
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby lix-alpha » Fri Nov 23, 2018 6:45 am

Seems that it need Firmware 20181114 to work...
Where is this firmware exactly?
User avatar
lix-alpha
 
Posts: 72
Joined: Fri Jul 27, 2018 9:41 pm
languages_spoken: english

Re: Duke Nukem 3D for ODROID-GO

Unread postby crashoverride » Fri Nov 23, 2018 9:05 am

lix-alpha wrote:Seems that it need Firmware 20181114 to work...

At the time of this post, the current device firmware is 20181001. The version shown in the video is compiled by the author and not an official release.
https://github.com/OtherCrashOverride/odroid-go-firmware/releases
crashoverride
 
Posts: 4140
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Fri Nov 23, 2018 6:05 pm

I've added "Duke3D-20181001.fw" to the release folder:
https://github.com/jkirsons/Duke3D/tree/master/release
Please use this for the 20181001 firmware release.

It should work with the v1.3d shareware files now. You can get them here:
http://legacy.3drealms.com/duke3d/
Although the shareware version seems to be stuck in run mode?

Also I fixed an issue where the shoot button would get stuck.
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby Nemo1984 » Fri Nov 23, 2018 10:34 pm

I am on 20181001 firmware and have no issue with the original fw release.

Thanks!
Nemo1984
 
Posts: 43
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Sat Nov 24, 2018 6:02 am

So I was wondering why OtherCrashOverride used HSPI for LCD and SD Card when the native pins were VSPI.
Which led me to discovering 80Mhz PSRAM!

I've updated the firmware to use this - the framerate is nearly doubled now.
Around 15fps on the first level.
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby Nemo1984 » Sat Nov 24, 2018 7:09 am

Functionally, what is the difference between the duke3d and 20181001 one? They work the same on my odroid.
Last edited by Nemo1984 on Sat Nov 24, 2018 8:14 am, edited 1 time in total.
Nemo1984
 
Posts: 43
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Sat Nov 24, 2018 7:29 am

Nemo1984 wrote:Functionally, what is the difference between the duke3d and 20181001 one? They worm the same on my odroid.


Code wise - they're the same. 20181001 is converted from image to firmware with the mkfw from the 20181001 release. I'm not sure if this makes a difference.
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby Nemo1984 » Sat Nov 24, 2018 8:43 am

It works really great!

Can I make a suggestion regarding the controls? Maybe Start as Strafe and Select as Jump?

Thanks, this is great work!
Nemo1984
 
Posts: 43
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go

Re: Duke Nukem 3D for ODROID-GO

Unread postby JasonB32 » Sat Nov 24, 2018 2:12 pm

Awesome job!

Is there any way you could make a Commander Keen port? It's also from Apogee.
JasonB32
 
Posts: 41
Joined: Sat Aug 04, 2018 11:33 pm
languages_spoken: english
ODROIDs: oDroid GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby lix-alpha » Sat Nov 24, 2018 11:19 pm

Weird, even when using the 20181001 version I get HEADER MATCH ERROR.
User avatar
lix-alpha
 
Posts: 72
Joined: Fri Jul 27, 2018 9:41 pm
languages_spoken: english

Re: Duke Nukem 3D for ODROID-GO

Unread postby crashoverride » Sun Nov 25, 2018 9:57 am

lix-alpha wrote:Weird, even when using the 20181001 version I get HEADER MATCH ERROR.

Turn the ODROID-GO off. Hold the "B" button. Turn the ODROID-GO on. Wait 10 seconds until a menu appears. What is the version number reported at the bottom of the screen?
crashoverride
 
Posts: 4140
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Duke Nukem 3D for ODROID-GO

Unread postby lix-alpha » Sun Nov 25, 2018 10:43 am

crashoverride wrote:Turn the ODROID-GO off. Hold the "B" button. Turn the ODROID-GO on. Wait 10 seconds until a menu appears. What is the version number reported at the bottom of the screen?


Ver: 20181001-ba31df7503
User avatar
lix-alpha
 
Posts: 72
Joined: Fri Jul 27, 2018 9:41 pm
languages_spoken: english

Re: Duke Nukem 3D for ODROID-GO

Unread postby crashoverride » Sun Nov 25, 2018 11:00 am

The version appears to be correct. Try deleting the Duke3D firmware file (.fw) from both the computer and ODROID-GO SD card. Then re-download it and re-copy it to the SD card.

[edit]
The above is to test whether the downloaded file is corrupt or old.
crashoverride
 
Posts: 4140
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: Duke Nukem 3D for ODROID-GO

Unread postby jutleys » Sun Nov 25, 2018 9:09 pm

crashoverride wrote:The version appears to be correct. Try deleting the Duke3D firmware file (.fw) from both the computer and ODROID-GO SD card. Then re-download it and re-copy it to the SD card.

[edit]
The above is to test whether the downloaded file is corrupt or old.

I had the same problem first and i did the above then it worked great.
jutleys
 
Posts: 73
Joined: Fri Jul 20, 2018 1:06 am
Location: UK
languages_spoken: english
ODROIDs: Odroid Go
Odroid X4U N64 case

Re: Duke Nukem 3D for ODROID-GO

Unread postby lix-alpha » Sun Nov 25, 2018 11:23 pm

Thanks Crash it work great now! :)
User avatar
lix-alpha
 
Posts: 72
Joined: Fri Jul 27, 2018 9:41 pm
languages_spoken: english

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Tue Dec 04, 2018 4:17 am

Nemo1984 wrote:Can I make a suggestion regarding the controls? Maybe Start as Strafe and Select as Jump?


The button mapping has been updated now - as you have suggested:
https://github.com/jkirsons/Duke3D/tree/master/release
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO

Re: Duke Nukem 3D for ODROID-GO

Unread postby Nemo1984 » Tue Dec 04, 2018 7:39 am

Gadget Workbench wrote:
Nemo1984 wrote:Can I make a suggestion regarding the controls? Maybe Start as Strafe and Select as Jump?


The button mapping has been updated now - as you have suggested:
https://github.com/jkirsons/Duke3D/tree/master/release

Thank you so much! Now I can get the rocket launcher and blast my way into the cinema!
Nemo1984
 
Posts: 43
Joined: Thu Aug 23, 2018 7:58 pm
languages_spoken: english, french
ODROIDs: Odroid-Go

Re: Duke Nukem 3D for ODROID-GO

Unread postby Niknice » Tue Dec 04, 2018 6:53 pm

Great update, thanks. Would it be possible to change the controls so strafe is B and USE is Select. Similar to Dooms. Seems more natural when playing. Also is sound implemented? I've selected sound ON in the setting but the game still plays silently.
Niknice
 
Posts: 5
Joined: Sun Sep 23, 2018 9:18 am
languages_spoken: english
ODROIDs: Odroid Go

Re: Duke Nukem 3D for ODROID-GO

Unread postby Gadget Workbench » Fri Dec 07, 2018 9:01 pm

Alright, I've started on adding sound.
https://github.com/jkirsons/Duke3D/tree/master/release
Look for the "-snd" firmware files.

It has some looping problems when you shoot an enemy, but it's getting there...

I probably won't have too much time to do more until next year.
Gadget Workbench
 
Posts: 15
Joined: Wed Nov 21, 2018 4:03 pm
languages_spoken: english
ODROIDs: ODROID-GO


Return to General Chat

Who is online

Users browsing this forum: Molack and 5 guests