Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 21:36:13 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Duke Nukem 3D for Nspire - Duke Nukem 3D in nSDL or ASM? Should work.  (Read 643 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Topic starter
Total Post Ratings: -5

View Profile
« on: 03 August, 2012, 22:33:32 »
0

After analyzing the source code of Duke Nukem 3D, I ran across a few problems.

The source files were C, and there were some Header files, and a few makefiles too.

Here is the error log i got trying to compile the game into an .exe file:



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Compiling: C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:32:18: error: bios.h: No such file or directory
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:37,
                 from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\pragmas.h:1958:26: warning: backslash-newline at end of file
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:29:
C:\Users\TAddison\Downloads\duke3dsource\source\scriplib.h:193: error: expected ',' or '...' before 'bool'
C:\Users\TAddison\Downloads\duke3dsource\source\scriplib.h:331: error: two or more data types in declaration of 'parameter'
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:29,
                 from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/../../../../include/stdlib.h:71: error: conflicting declaration 'int _argc'
C:\Users\TAddison\Downloads\duke3dsource\source\util_lib.h:42: error: '_argc' has a previous declaration as 'int32 _argc'
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:85,
                 from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\music.h:85: error: expected ',' or '...' before '(' token
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:89,
                 from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\funct.h:413: error: '::main' must return 'int'
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:271: error: a storage class can only be specified for objects and functions
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:309: warning: 'typedef' was ignored in this declaration
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:315: warning: 'typedef' was ignored in this declaration
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:375: warning: 'typedef' was ignored in this declaration
C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:430: warning: 'typedef' was ignored in this declaration
In file included from C:\Users\TAddison\Downloads\duke3dsource\source\duke3d.h:467,
                 from C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:41:
C:\Users\TAddison\Downloads\duke3dsource\source\funct.h:413: error: '::main' must return 'int'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:86: error: expected initializer before '__far'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void inittimer()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:113: error: invalid conversion from 'void (*)()' to 'void (*)(task*)'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:113: error:   initializing argument 1 of 'task* TS_ScheduleTask(void (*)(task*), int, int, void*)'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'int gametext(int, int, char*, char, short int)':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:161: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'int gametextpal(int, int, char*, char, char)':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:209: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'int gametextpart(int, int, char*, char, short int)':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:261: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:265: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'int minitext(int, int, char*, char, char)':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:286: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'int minitextshade(int, int, char*, char, char, char)':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:304: error: 'rotatesprite' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void allowtimetocorrecterrorswhenquitting()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:339: error: 'sendpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: At global scope:
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:349: error: ISO C++ forbids declaration of 'adduserquote' with no type
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void getpackets()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:374: warning: deprecated conversion from string constant to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:378: error: 'getpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:420: error: 'copybufbyte' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:449: error: 'copybufbyte' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:462: error: 'copybufbyte' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:488: error: invalid conversion from 'unsigned char*' to 'const char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:488: error:   initializing argument 2 of 'char* strcpy(char*, const char*)'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:525: warning: deprecated conversion from string constant to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:625: warning: deprecated conversion from string constant to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void faketimerhandler()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:640: warning: deprecated conversion from string constant to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:646: error: 'getoutputcirclesize' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:662: error: 'copybufbyte' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:682: error: 'computergetinput' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:692: error: 'min' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:693: error: 'max' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:715: error: 'klabs' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:716: error: 'ksgn' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:725: error: 'max' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:725: error: 'min' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:772: error: 'sendpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:782: error: 'klabs' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:783: error: 'ksgn' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:831: error: 'sendpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:841: error: 'sendpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:861: error: 'max' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:861: error: 'min' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:913: error: 'sendpacket' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void caches()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:934: error: invalid conversion from 'unsigned char*' to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:934: error:   initializing argument 1 of 'int sprintf(char*, const char*, ...)'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:935: error: 'printext256' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:943: error: invalid conversion from 'unsigned char*' to 'char*'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:943: error:   initializing argument 1 of 'int sprintf(char*, const char*, ...)'
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:944: error: 'printext256' was not declared in this scope
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C: In function 'void checksync()':
C:\Users\TAddison\Downloads\duke3dsource\source\GAME.C:976: error: 'printext256' was not declared in this scope
Process terminated with status 1 (0 minutes, 24 seconds)
50 errors, 9 warnings
 

And, I don't know how to map to the nspire's keys anyway, or to the screen. And the DUKE3D.GRP is too large to fit on my nspire. By the way, this is the source code for the Atomic Edition of Duke Nukem 3D.

I got the source from 3d realms website. Here is the link:

ftp://ftp.3drealms.com/source/duke3dsource.zip

I really need help.

Hoffa created nSDL for nspire. But, I couldn't find the sdl source code for duke nukem. I am hoping that one day a direct port of Duke Nukem 3D to the Nspire will be possible.

If anyone can find the sdl source code, can you upload it to this topic?
Logged


NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!


ruler501
Crazy Freshman
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 17:41:22
Date Registered: 08 November, 2010, 02:32:33
Location: In a cave with two spots of light and lots of meat
Posts: 2382


Total Post Ratings: +49

View Profile
« Reply #1 on: 03 August, 2012, 23:26:13 »
0

there is a version on this website written for SDL I've been working on porting to prizm.
http://icculus.org/

EDIT actually looking into it a little more prizm doesnt have enough ram to run that version
if the nspire has at least 2746kb of ram it should work though
« Last Edit: 04 August, 2012, 00:53:57 by ruler501 » Logged


Spoiler for "Projects":
My current games I am working on our:
  I might have an improved C version of this somewhere...
pSDL too lazy too make a userbar so I'll just link to the topic i update routinely http://www.omnimaga.org/index.php?board=146.0
Spoiler for "Misc images of test things":
NerdTests.com says I'm a Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!"<br />[url=http://www.nerdtests.com/ft_personality.php?ref=42769
[/url]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

------END GEEK CODE BLOCK------
"KnifeOn!  Apply directly to the forehead!  KnifeOn is available without a prescription at retailers nationwide."
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:08:33
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1722


Total Post Ratings: +368

View Profile WWW
« Reply #2 on: 04 August, 2012, 02:14:58 »
0

Did you see this btw ?
<a href="http://www.youtube.com/watch?v=c-TgmygcYR4" target="_blank">http://www.youtube.com/watch?v=c-TgmygcYR4</a>


It's a total conversion of Duke Nukem 3D episode 1 level 1 for the Doom engine.
Logged

TI-Planet co-admin.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #3 on: 04 August, 2012, 06:43:58 »
0

Shouldn't this be located in the C language help section of the forums? Being inside projects seems a bit misleading.

That said I would really like a port of the real Duke Nukem 3D. There's the Doom port of Duke Nukem 3D, but it doesn't run on my calc and it's not the real game. Sad
« Last Edit: 04 August, 2012, 06:44:10 by DJ_O » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
critor
Editor
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 21:08:33
Date Registered: 14 July, 2009, 23:57:37
Location: Aix-Marseille, France
Posts: 1722


Total Post Ratings: +368

View Profile WWW
« Reply #4 on: 04 August, 2012, 12:22:51 »
0

The source located at http://ftp://ftp.3drealms.com/source/duke3dsource.zip won't be easy to port as it includes some assembly.
Logged

TI-Planet co-admin.
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Topic starter
Total Post Ratings: -5

View Profile
« Reply #5 on: 14 August, 2012, 05:25:33 »
0

Well, would the sdl version be easy to port?
Logged


NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!


ElementCoder
LV6 Super Member (Next: 500)
******
Online Online

Gender: Male
Last Login: Today at 21:25:42
Date Registered: 22 May, 2011, 17:28:58
Location: Netherlands, Drachten
Posts: 403


Total Post Ratings: +22

View Profile
« Reply #6 on: 14 August, 2012, 14:55:45 »
0

Well, would the sdl version be easy to port?
It would certainly be easier to port then assembly, but it still would require quite some work I think.
Logged

Calculators owned: TI-Nspire ClickPad (no batteries though Tongue); TI-Nspire CX
Known languages: TI BASIC (Nspire); Java; Lua; C++
Spoiler for Random stuff:

NerdTests.com says I'm a Nerd God.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Omni search is down, use http://megapowers.net/v/search.htm instead.
njaddison
LV4 Regular (Next: 200)
****
Offline Offline

Gender: Male
Last Login: 15 May, 2013, 02:46:53
Date Registered: 08 November, 2011, 03:56:20
Location: South Carolina(USA)
Posts: 153


Topic starter
Total Post Ratings: -5

View Profile
« Reply #7 on: 20 August, 2012, 02:38:33 »
0

Here is the sdl source code for duke3d. Where can I find hoffa's nsdl library?

* BUILD-engine-08012001.zip (938.7 KB - downloaded 13 times.)
Logged


NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!


ruler501
Crazy Freshman
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Today at 17:41:22
Date Registered: 08 November, 2010, 02:32:33
Location: In a cave with two spots of light and lots of meat
Posts: 2382


Total Post Ratings: +49

View Profile
« Reply #8 on: 20 August, 2012, 03:34:39 »
0

theres an nSDL topic and if you dont find that try github.com/hoffa/nSDL though thats just my guess
Logged


Spoiler for "Projects":
My current games I am working on our:
  I might have an improved C version of this somewhere...
pSDL too lazy too make a userbar so I'll just link to the topic i update routinely http://www.omnimaga.org/index.php?board=146.0
Spoiler for "Misc images of test things":
NerdTests.com says I'm a Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!My computer geek score is greater than 100% of all people in the world! How do you compare? Click here to find out!"<br />[url=http://www.nerdtests.com/ft_personality.php?ref=42769
[/url]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

------END GEEK CODE BLOCK------
"KnifeOn!  Apply directly to the forehead!  KnifeOn is available without a prescription at retailers nationwide."
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.383 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.