Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: njaddison on March 05, 2012, 06:34:18 pm

Title: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 06:34:18 pm
I found the source code for wolfenstein 3d on id software's website. Now, it will have to be edited to work with the nspire's keys, but all the c scripts and header files are included.
Here's the attachment:

Have fun (trying to compile it and play it)!
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: DJ Omnimaga on March 05, 2012, 06:40:31 pm
They really released it as open source? That said it would have to be modified to work on the TI-Nspire I'm sure, because the TI-Nspire hardware is different from a computer, like screen stuff.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 06:55:37 pm
How about for the PRIZM?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: calc84maniac on March 05, 2012, 06:58:56 pm
It seems that the source includes x86 assembly code, so that would have to be rewritten for the target processor (whether it be ARM or SuperH)
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 07:55:26 pm
@ DJ_O: Yes, the release the source code for all the games they have made so far including Doom 3 and Wolfenstein (the 2009 remake of the original game). But you can't compile the source code because of course, id made sure that no one could by removing files necessary to run the programs, like the Doom IWADS for example, because they want people to buy it.

@Spenceboy98: I know almost nothing about the Prizm, but from common knowledge, a program like ndless would have to be made to run wolfenstein on the prizm. Also, if not a direct port, a raycaster would have to be made for the prizm, which if it there is already one, someone would have to program wolfenstein. Also, I don't think think that it would run very fast, but I don't own a prizm, so feel free to downrate my post if I am wrong.

It would be nice for prizm users to have something like ndless on their prizms. Maybe you or another prizm programmer can see what needs to be done to run c on the prizm. I might eventually buy a prizm since TI is being stupid with the nspire again.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Darl181 on March 05, 2012, 08:40:09 pm
It would be nice for prizm users to have something like ndless on their prizms. Maybe you or another prizm programmer can see what needs to be done to run c on the prizm.
It's not too hard, Casio isn't like TI :P
Iirc it was figured out in the first month or so and there haven't been any moves to block it since ;)
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 08:47:36 pm
What is ndless?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 08:49:59 pm
ndless is a program allowing c programs to be run on the nspire. Because of this, the original Doom and a gameboy color and an NES emulator were ported to the nspire! It turns the nspire into a game system, a computer, and a calculator, all in one!
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: DJ Omnimaga on March 05, 2012, 08:55:57 pm
It would be nice for prizm users to have something like ndless on their prizms. Maybe you or another prizm programmer can see what needs to be done to run c on the prizm.
It's not too hard, Casio isn't like TI :P
Iirc it was figured out in the first month or so and there haven't been any moves to block it since ;)
If I remember, it was even figured out before the calc even came out O.O
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 09:02:38 pm
It would be nice for a "ndless" type thing for the Prizm. Oh well.....
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 09:09:01 pm
@Spenceboy84 Wow! your the second person I've seen from South Carolina!
I live in Irmo, SC, but I have to drive 30 min. to get to school in Columbia, SC!
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Reo on March 05, 2012, 09:12:32 pm
It would be nice for a "ndless" type thing for the Prizm. Oh well.....
What we're saying is that you don't need something like ndless because the Prizm natively supports C/ASM programs.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 09:41:46 pm
I knew that. But what about the "gameboy color and an NES emulator"?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Darl181 on March 05, 2012, 09:43:12 pm
It's just that nobody's sat down and coded one yet.  It should be possible, tho...
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: annoyingcalc on March 05, 2012, 09:51:24 pm
can someone post an executable?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 10:05:05 pm
Maybe someone could modify the source for the ndless one? Or not?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: DJ Omnimaga on March 05, 2012, 10:30:45 pm
It would have to be modded to not be dependent on Ndless routines for sure. Be patient, though: Everyone here has a life besides programming (along with many other projects).
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: Spenceboy98 on March 05, 2012, 10:31:56 pm
*sigh* I know. I guess I will have to be patient......
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 10:36:14 pm
Posted By annoyingcalc on: Today at 9:51:24 pm
Quote
   
Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
« Reply #14 on: Today at 09:51:24 pm »
0   

can someone post an executable?

@annoyingcalc: By executable, do you mean the exe file? It is included in the zip file I attatched at the beginning of the topic.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: annoyingcalc on March 05, 2012, 10:41:30 pm
i mean a .tns
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 05, 2012, 10:45:58 pm
Oh, it hasn't been compiled into a .tns file yet. The script will have to be modified to draw to the nspire's screen and work with the nspire's keys. And, someone will have to probably make a nWolfen program loader to load Wolfenstein and Wolfenstein: Spear of Destiny. Also, the npsire's keys are different, and it will have to be changed so that it will work on both the cx and the cm and the regular nspire.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: annoyingcalc on March 05, 2012, 11:55:49 pm
Hm I have no knowledge currently of how to do this is Critor here?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: critor on March 06, 2012, 03:12:59 am
Sorry, but I can't deal with x86 assembly. :(
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: DJ Omnimaga on March 06, 2012, 03:20:22 am
Hmm if that game has x86 ASM, then this might indeed be problematic, especially if we no longer have any x86 ASM coder around. Most only know ARM, SH3, 68K or Z80.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: LincolnB on March 06, 2012, 05:55:29 pm
Woudn't you need all the resources, like all the pictures and stuff to be able to compile this?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: annoyingcalc on March 06, 2012, 10:37:59 pm
Is anyone working on this?
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: calc84maniac on March 06, 2012, 11:06:08 pm
To clear up something earlier in the topic, gbc4nspire and NESpire can't be ported to the PRIZM because they are written in ARM assembly. Any port attempt (in NESpire's case only, since gbc4nspire doesn't even have any source code anymore) would be pretty much equivalent to starting a new project, except it would probably be less optimized than if it was written from scratch.

Edit: Lol, ported to PRIZM, not CX
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: njaddison on March 12, 2012, 04:07:33 pm
posted by buttsfredkin
Quote
Woudn't you need all the resources, like all the pictures and stuff to be able to compile this?

No, you just need a loader, and the wolfenstein map files. You will already have them if you have bought the game, but if not, someone will probably remove the sound and upload it to TI-Planet like with the DOOM iwads. of course, it would be abandonware, if I'm not mistaken.
Title: Re: Source Code of Wolfenstein 3D released; Compile into a tns file?
Post by: AngelFish on March 12, 2012, 04:52:48 pm
It seems that the source includes x86 assembly code, so that would have to be rewritten for the target processor (whether it be ARM or SuperH)

Not only does some of the code appear to be horribly outdated 16 bit x86, it's important rendering code that's fairly hardware dependent and according to the readme, very unoptimized for a modern CPU. It'd take a heck of a lot of work to get that code to run well on a calculator, even if you somehow managed to compile it.

EDIT:

Quote
I know almost nothing about the Prizm, but from common knowledge, a program like ndless would have to be made to run wolfenstein on the prizm. Also, if not a direct port, a raycaster would have to be made for the prizm, which if it there is already one, someone would have to program wolfenstein. Also, I don't think think that it would run very fast, but I don't own a prizm, so feel free to downrate my post if I am wrong.

It would be nice for prizm users to have something like ndless on their prizms. Maybe you or another prizm programmer can see what needs to be done to run c on the prizm. I might eventually buy a prizm since TI is being stupid with the nspire again.

Unlike the Nspire, the Prizm runs C without Ndless. It took less than a month for us to figure out the file format necessary and get a proper compiler working. That said, the Prizm doesn't have a full standard library and there's a good chance the source would require more support.