Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: compu on February 11, 2011, 03:19:26 pm

Title: 1337mod for Nspire
Post by: compu on February 11, 2011, 03:19:26 pm
1337mod for Nspire

Hi, i was messing around with the OS files a bit today and I made a small tool in C that replaces the English (U.S.) language file with 13375P34K ;D

Just transfer both the 1337mod.tns and the 1337_resources.tns to your Nspire and make sure that
both files are located in your document's root directory, otherwise this will not work.
Then click on 1337mod.tns and a message will popup that the installation was successfully, after this the calculator will reboot.
It might be a bit buggy, for example you can't see the calculator's free space, but it should work fine.

Refer to the readme.txt to see how to undo this.
Title: Re: 1337mod for Nspire
Post by: fb39ca4 on February 11, 2011, 03:45:24 pm
How does this work?
Title: Re: 1337mod for Nspire
Post by: compu on February 11, 2011, 03:55:24 pm
How does this work?
It overwrites the english language file with an edited one.
You can find the original file at /phoenix/syst/locales/en/strings.res in the Nspire's file system.
Title: Re: 1337mod for Nspire
Post by: apcalc on February 11, 2011, 04:01:23 pm
Haha!  Very nice!

Excellent work! :)

Now, I am going to go into the normal English file and make a few fun changes! ;D
Title: Re: 1337mod for Nspire
Post by: AngelFish on February 11, 2011, 04:02:18 pm
Any decent language module needs to include the phrase "Netham is a Lobster" somewhere in it.
Title: Re: 1337mod for Nspire
Post by: Ashbad on February 11, 2011, 08:02:55 pm
nice job!  I was actually of making something liek this for the ti84+ last night :)

though, maybe I won't.  Anyways, yours is quite aweome :)  +1 post rating
Title: Re: 1337mod for Nspire
Post by: ztrumpet on February 11, 2011, 08:11:21 pm
That's quite cool.  Great job! :D
Title: Re: 1337mod for Nspire
Post by: willrandship on February 11, 2011, 10:05:52 pm
Easy way for the 84+' corellation changing text to numbers and symbols. Confusing though.

Edit: because of 7 and T showing as 7 and 7 and such.
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 14, 2011, 01:12:14 am
I'm more curious about if this change is preserved when the Nspire reboots. If it's permanent (until OS re-install), then this is even more awesome (because I didn't know it was even possible to patch the OS files permanently, since it was loaded into RAM upon booting the calc then deleted afterward). O.O

If this is possible, then couldn't someone write patches that enables additional TI-BASIC commands through parser hooks such as Sprite()?
Title: Re: 1337mod for Nspire
Post by: Silver Shadow on February 14, 2011, 03:20:16 am
Even if the change doesn't last, all you will have to do is rerun Ndless or the parser hook program. :)
Title: Re: 1337mod for Nspire
Post by: compu on February 14, 2011, 05:48:23 am
I'm more curious about if this change is preserved when the Nspire reboots. If it's permanent (until OS re-install), then this is even more awesome (because I didn't know it was even possible to patch the OS files permanently, since it was loaded into RAM upon booting the calc then deleted afterward). O.O

If this is possible, then couldn't someone write patches that enables additional TI-BASIC commands through parser hooks such as Sprite()?
Yes, the changes are permanent ;D

And I remember files in other directories with function definitons... maybe it is possible to even replace those files with the CAS files on a non-CAS nspire... i will check that when i'm back home  ;)
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 14, 2011, 03:33:55 pm
Darn that would rule. O.O

Maybe we won't need third-party OSes at all, after all. Someone could examine the entire OSes then write patches that gets rid of unneeded functions to free up considerable amounts of memory for the user and even add new commands.

Heck maybe someone could write something that replaces the built-in 84+ emu with Calc84's ;D
Title: Re: 1337mod for Nspire
Post by: apcalc on February 14, 2011, 04:18:46 pm
And I remember files in other directories with function definitons... maybe it is possible to even replace those files with the CAS files on a non-CAS nspire... i will check that when i'm back home  ;)

I am working on this right now...

This would be EPIC!  :devil: :devil: :devil: :devil: :devil: :devil: :devil: :devil: :devil: >:D >:D >:D >:D >:D >:D >:D >:D :evillaugh: :evillaugh: :evillaugh: :evillaugh: :evillaugh: :evillaugh: :evillaugh:

EDIT:  I tracked down the different files between the regular Nspire and the Nspire CAS, but I can't get it to start using the CAS functions. :(
I will investigate more.
Title: Re: 1337mod for Nspire
Post by: Silver Shadow on February 15, 2011, 12:28:11 am
Can someone explain please why the changes are permanent? I always thought the OS copied its files from ROM during boot up...
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 15, 2011, 04:50:20 am
Yeah I am really curious about that. Of course, if they can write to flash directly (is it possible?), then I guess that might be how they do it, though.

Also Apcalc be careful with such software/patch. Distributing it would be illegal if it contains code from TI. Of course that's a different story if you use your own cas or an open-source one.
Title: Re: 1337mod for Nspire
Post by: Jonius7 on February 15, 2011, 04:55:21 am
How does this work?
It overwrites the english language file with an edited one.
You can find the original file at /phoenix/syst/locales/en/strings.res in the Nspire's file system.

Wow that's l33t!!! whoever did this is the l33t357's person 3v3r!

Could actually serve a useful function for adding other languages or something that are not already included on the nspire. and also to alter the menus! This could be a great development for creating a better TI-nspire OS!!! what do you all think?

PS: and as DJ_O said making the OS a better platform for programming!!! the next ndless!
Title: Re: 1337mod for Nspire
Post by: compu on February 15, 2011, 05:18:48 am
Can someone explain please why the changes are permanent? I always thought the OS copied its files from ROM during boot up...
Yes, it copies the OS files into the RAM, but if you change the OS files that are located in the flash, they will be loaded into the RAM after a reboot. (Correct me if I am wrong)
Title: Re: 1337mod for Nspire
Post by: Jonius7 on February 15, 2011, 05:22:36 am
oh, not sure if that's right but sounds right to me
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 15, 2011, 03:22:27 pm
PS: and as DJ_O said making the OS a better platform for programming!!! the next ndless!
Although to run OS patches you actually need Ndless. :P

And is it very hard to write to Flash? I wonder if you need to unlock it or something? Until a few years ago almost nobody knew how to write to Flash on the 83+.
Title: Re: 1337mod for Nspire
Post by: apcalc on February 15, 2011, 03:27:26 pm
As of yet, I am not quite sure that this method can work for copying a CAS.  I have been completely killed with school work this week (all of my teachers thought it would be lovely to finish work before President's Weekend...), but I plan on investigating more over the weekend.

The only thing that is bothering me now is the sake of whether the differences between the non-CAS and the CAS are in fact located in the /phoenix/ directory.  There might be further protection, blocking this from being possible.

I actually think the method used here might be somewhat legal!  Not that TI would like it, but the program only patches the OS itself, the user has to give it the appropriate files to patch it with (I should note, it is not the easiest task in the world to retrive them if you are  not familiar with the Nspire OS).  I don't see anything illegal with that! :)
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 15, 2011, 03:29:32 pm
Well the illegal part would probably be to distribute the patches that contains parts of the CAS OSes. You would have to distribute a program that allows you to convert a CAS OS into a patch file in tns format so the user have to create the patch himself. I doubt TI would like to see parts of their CAS OS downloadable on Omnimaga or ticalc.org.
Title: Re: 1337mod for Nspire
Post by: fb39ca4 on February 17, 2011, 08:19:51 pm
PS: and as DJ_O said making the OS a better platform for programming!!! the next ndless!
Although to run OS patches you actually need Ndless. :P

And is it very hard to write to Flash? I wonder if you need to unlock it or something? Until a few years ago almost nobody knew how to write to Flash on the 83+.
The os is stored in a single .img file, which is digitally signed, so the os can't be modified in flash. However, just writing to the flash is easy, we've had it ever since ndless came out.
Title: Re: 1337mod for Nspire
Post by: DJ Omnimaga on February 19, 2011, 02:32:51 am
Hmm I see. What kind of OS files are modifiable besides the text like in Compu program?
Title: Re: 1337mod for Nspire
Post by: apcalc on February 19, 2011, 07:31:01 pm
Hmm I see. What kind of OS files are modifiable besides the text like in Compu program?

The text file that compu is editing is in fact located in TI-Nspire.img (at /phoenix/syst/locales/en/strings.res, to be exact).
Title: Re: 1337mod for Nspire
Post by: compu on February 20, 2011, 02:17:48 pm
Actually I'm wondering why there is a TI-Nspire.tnc file on my non-CAS nspire.... (/phoenix/install) ???
Title: Re: 1337mod for Nspire
Post by: apcalc on February 20, 2011, 02:18:43 pm
Actually I'm wondering why there is a TI-Nspire.tnc file on my non-CAS nspire.... (/phoenix/install) ???

The *.tnc extension is actually "universal" between both of the Nspires.  The .tno extension is "exclusive" to the non-CAS only.
Title: Re: 1337mod for Nspire
Post by: compu on February 20, 2011, 02:26:06 pm
The *.tnc extension is actually "universal" between both of the Nspires.  The .tno extension is "exclusive" to the non-CAS only.
And that file is signed too? Why are the language files extracted then..  :-\
Title: Re: 1337mod for Nspire
Post by: mikehill2003 on March 23, 2011, 06:42:48 pm
Sorry to bump an old topic, but has there been any progress on adding CAS to the nspire basic?
Title: Re: 1337mod for Nspire
Post by: apcalc on March 23, 2011, 06:46:29 pm
Sorry to bump an old topic, but has there been any progress on adding CAS to the nspire basic?

I don't think that is possible using this method.  Sorry. :(