Author Topic: General Ndless Questions and Support  (Read 119750 times)

0 Members and 2 Guests are viewing this topic.

Offline Levhitor

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: General Ndless Questions and Support
« Reply #60 on: June 17, 2012, 12:01:13 am »
Hello 0/
I Just got a new Nspire.
Its in the 3.0.2 OS, the problem is that now matter what i do the software manager will only let me upgrade to 3.2 and ignores 3.1.
What should i do?

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: General Ndless Questions and Support
« Reply #61 on: June 17, 2012, 12:10:32 am »
Levhitor, try to find a 3.1 download, and put it on your desktop. Open the TI-Nspire software and go to the file transfer page thing. Connect your Nspire and drag the installation file from your desktop to your Nspire.
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Levhitor

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: General Ndless Questions and Support
« Reply #62 on: June 17, 2012, 12:42:44 am »
Already did it.
Downloaded it from http://tiplanet.org/
It seems the 3.2 installation left some Reg files or something to block it too...
At worst i think i will try tomorrow on another PC.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: General Ndless Questions and Support
« Reply #63 on: June 17, 2012, 10:40:41 am »
As of now there is no ndless version for os 3.2
I'm not a nerd but I pretend:

Offline Levhitor

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: General Ndless Questions and Support
« Reply #64 on: June 17, 2012, 02:41:38 pm »
Im talking about the Student Software not the Nspire.
I Cant update to 3.1 in other computer neither.

My NSPIRE CX is in 3.0.2 when i try to update it wont let me.
"its wrong device" if i put the route of the 3.1 OS if not it wont even appear, only 3.2

What can i do :I
« Last Edit: June 17, 2012, 08:04:11 pm by Levhitor »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: General Ndless Questions and Support
« Reply #65 on: June 18, 2012, 01:23:58 am »
If you're transferring a 3.1 CX OS (with .tco extension) to your CX calculator, and it won't let you do so, uh... try to make a backup of the documents you created (if any), then go to the maintenance menu (you'll find the shortcut posted somewhere around) and use the option to completely reformat the calculator, and then proceed again to transfer the 3.1 OS :)

If that still doesn't work, well, I think that the next best thing you can do is to leave it at 3.0.2.1791.
3.2 has terrible speed regressions, some math functionality is still broken, and some of the new functionality that was added is certainly broken (and can break stuff at other places): TI has both a habit of creating bugs when they touch the code base (so who knows what they broke this time), and a habit of having inadequate validation procedures (we know this because for a while, multiple severe bugs have been found in the very few days after the public release)...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Levhitor

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: General Ndless Questions and Support
« Reply #66 on: June 18, 2012, 01:39:32 am »
I Fear that if i do that after formating it will force me to update to 3.2...
"3.0.2.1793" dosnt haves anyproblems ammirite...?

What could it be :I

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: General Ndless Questions and Support
« Reply #67 on: June 18, 2012, 02:01:27 am »
Quote
I Fear that if i do that after formating it will force me to update to 3.2...
No reason why it should :)
Have you tried transferring 3.0.2.1793 anew, just to check you can ?

Quote
"3.0.2.1793" dosnt haves anyproblems ammirite...?
It has at least two known major problems:
* like all OS 3.x versions, it has math bugs that OS 2.x versions do not have;
* it sets an anti-downgrade protection to forbid transferring the 3.0.1.1753 OS, and any earlier OS; to get a chance of removing that anti-downgrade crap, you need to transfer OS 3.1.0.392 and Ndless 3.1.
« Last Edit: June 18, 2012, 02:01:45 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: General Ndless Questions and Support
« Reply #68 on: June 29, 2012, 05:31:02 pm »
The fgets function seems to have a glitch:
Code: [Select]
char *fgets(char *str, int num, FILE *str2eam) {
char *str2 = str;
while (num--) {
char c = fgetc(str2eam); //THIS IS THE BUGGY LINE
if (c == EOF) {
*str2 = '\0';
return NULL;
}
*str2++ = c;
if (c == '\n')
break;
}
*str2 = '\0';
return str;
}

The c variable should be specified as an int, not a char -- it looks like the compiler treated the char as unsigned and optimized out the return NULL entirely! Plus, it is possible that an 0xFF character exists in the file, so signed char is not the way to go.

It's fixed in r643, thank you calc84maniac and hoffa, my apologies for this one: http://www.unsads.com/projects/nsptools/downloader/download/release/1
Ndless.me with the finest TI-Nspire programs

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: General Ndless Questions and Support
« Reply #69 on: July 30, 2012, 11:45:40 pm »
I just found another problem with fgets. Here's the description of the return value:

On success, the function returns the same str parameter.
If the End-of-File is encountered and no characters have been read, the contents of str remain unchanged and a null pointer is returned.
If an error occurs, a null pointer is returned.

The fgets code currently returns NULL even if characters have been read and an EOF is reached. In addition, in the case that fgets reaches EOF at the first character, a null terminator is written even though the string must remain untouched.

Here's one way to fix it:
Code: [Select]
char *fgets(char *str, int num, FILE *str2eam) {
char *str2 = str;
while (num--) {
int c = fgetc(str2eam);
if (c == EOF) {
if (str2 != str)
break;
return NULL;
}
*str2++ = c;
if (c == '\n')
break;
}
*str2 = '\0';
return str;
}

Edit: You know, I should probably download the latest revision of Ndless before I critique code. Some issues have been solved, but the returning NULL upon any time EOF is reached is still wrong.
« Last Edit: July 31, 2012, 10:36:50 am by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: General Ndless Questions and Support
« Reply #70 on: July 31, 2012, 01:43:51 pm »
r643 was fixing part of this but not all, thanks. Pushed to the SVN HEAD.
Ndless.me with the finest TI-Nspire programs

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: General Ndless Questions and Support
« Reply #71 on: July 31, 2012, 08:59:02 pm »
I've downloaded the latest release (r643) from the svn head. However, the 'Changes.txt' file dates back to 2012/01/19.
Is there a more up-to-date changelog?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: General Ndless Questions and Support
« Reply #72 on: August 01, 2012, 12:37:45 am »
You can just use the SVN log :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: General Ndless Questions and Support
« Reply #73 on: August 07, 2012, 06:39:21 am »
Bump

I'm programming in C with Ndless and wondered if there was a list of available functions or Syscalls ..? Like a mini-tutorial about the specific stuffs of Ndless :)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: General Ndless Questions and Support
« Reply #74 on: August 07, 2012, 06:49:52 am »
Yup.
libndls, the Nspire specific C library: http://hackspire.unsads.com/wiki/index.php/Libndls
The standard C functions that are included: http://hackspire.unsads.com/wiki/index.php/Syscalls

For graphics you can use nSDL or nRGBlib. nRGBlib might be the easiest to use.