Omnimaga
Calculator Community => TI Calculators => General Calculator Help => Topic started by: brahimmed30 on August 11, 2011, 09:52:09 pm
-
hello,
I can not speak well in English but I will try
I have a problem with damaged tns files (the handheld can not open them) if any one can help me recover the data stored in these files, I contacted ti-cares and they did nothing for me
-
Hi, welcome to the forums!
If you can, we need a bit more info to best helP you. Wht type of nspire, OS do you have, and what was in the file?
Thanks!
-
Like pianoman said, we need some more information first:
1. In what OS version were the files created?
2. Did you upgrade your calculator to a newer version?
3. Maybe you can upload the files, so someone here can check them
-
This problem starts to appear for me since I installed on my ti Nspire CAS Clickpad the version 3.0.2.1791 exactly May 25, just recently when I bought a TI-Nspire CX CAS equipped with the OS 3.0.2.1791 I found this problem
we concluded:
1. All damaged files contain Activities in these activities there are pages of the application table and lists
2.The files are created with version 3.0.2.1791
3.The files are created after the update of handhelds
4. files: http://www.4shared.com/file/wUoC6y6d/TNS_Files.html
thank you to all for your attention
-
Have you tried opening them on the OS version (and possibly calculator) they were created on?
-
Yes, I tried to do this but no effect , the unit restart and TI-Nspire computer software closed
-
If you reduce the version number in the file header from 0500 to 0300, then they open fine in OS 1.7. It looks like it's only OS 2.0+ that crashes
-
How I can do this
-
And i have not the version 1.7 , where i can found it ?
-
Double-posting is bad ;)
You can use a hex editor, such as XVI32, WinHEX, KHexEdit, etc. At the very beginning of the file, you'll see the "TIMLP0500" text. Replace it by "TIMLP0300".
And you can find OS 1.7.2741 for example on TI-Bank, which redirects to TI's servers.
-
Here is the thread that is on Omnimaga: http://ourl.ca/7373
-
thanks but i can not install os 1.7 in my handheld because i have the version 3.0.2.1791
-
I would suggest using this (http://ourl.ca/9360) to load OS 1.7, then open the file, copy down all the information, and put it back into a new file in OS 3.0.2
-
Thank you to all very much .... is there any way to copy these files from emulator to thr unit or to computer software?
-
There's no way to get documents out of nspire_emu; it's meant for testing and debugging asm/C programs, not for doing things the computer software does.
Anyway, I managed to dump the XML of the documents, remove the offending tag (it was just the cursor location, nothing important), zip them back up, and re-save on my TI-Nspire with OS 2.0.1 (in order to encrypt them - 3.0 doesn't allow unencrypted documents any more). Here you go.
-
There's no way to get documents out of nspire_emu
I know that you know it, but for other readers: it can be done the harder way :)
One can use a Ndless program that outputs the contents of a file to the serial port under raw or text form, such as:
#include <os.h>
int main(void) {
FILE * f;
volatile int c;
TCT_Local_Control_Interrupts(0xFFFFFFFF);
f = fopen("/documents/ndless/test.tns","rb");
if (f) {
printf("=====\n");
while ((c = fgetc(f)) != EOF) {
printf("%02x ", c);
}
printf("=====\n");
fclose(f);
}
return 0;
}
within the emulator, and on the host computer, copy&paste the output to whatever piece of code / program that can turn those bytes into a binary. Such as the following trivial code, which I've been using to check the effect of patching well-chosen locations in the document saving code, in order to defeat TI's layers of obfuscation without having to use any decryption code, or having to implement the decompression part of TI's patented XML compression algorithm, on the computer side:
#include <stdio.h>
unsigned char data[] = {
// Paste the output of the program (between the markers) here.
};
int main(void) {
FILE *f = fopen("test.tns","wb");
fwrite(data, 1, sizeof(data), f);
fclose(f);
return 0;
}
-
thank you to all...viva omnimaga
-
The question:what is the cause for which my files are damaged ?
and if I find this problem in future is there any method to repair my files without losing data ?
-
what is the cause for which my files are damaged ?
Undoubtedly a bug in TI's OS.
and if I find this problem in future is there any method to repair my files without losing data ?
Just ask again on the forums, as you did here, and the people knowledgeable enough about the OS will certainly try to help :)
-
Good morning,
i have an other damaged tns file if any one can repair it he will send me a personal message to give him the password of ziped file because this tns file contain personel informations
thank you!
-
Here you go; the password is same as the original. It might be best to avoid saving documents while editing a spreadsheet cell, to avoid this bug.
Edit: The bug is caused by the combination of two things: a colored row, and saving while editing a cell. Loading a spreadsheet that was saved while editing a cell somehow tries to retrieve the color of a cell in column -1, and if there exists a colored row, that crashes.