Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: Zeklandia on May 21, 2013, 04:48:42 pm

Title: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Zeklandia on May 21, 2013, 04:48:42 pm
Apparently, when running the CAS OS on ANY NON-CAS CALCULATOR (regardless of CX) certain things do not work. For example, I made a simple Lua program to print 2+2. It prints 5.XXXXXXXXXXe-226 (or any other number similar to it) regardless of settings like Float number, angle unit (degree, radian), or auto vs. approximate answers. Which also explains why when I was playing CubeField, the highscore was also similar to 1.132458768087e+45 and Bloxorz was naming the levels in a similar manner (2.98721408137e-67 instead of 13). However, the Scratchpad and Math documents work fine. I do not know if the problem is caused by hardware differences between the CX and the CX CAS (I am using nLaunch to boot the CAS OS on my CX) or some ndless/Lua bug. This issue does not occur when using the CX OS 3.1 with ndless on the same calculator and seems to only effect Lua programs (and possibly nClock).
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 21, 2013, 05:01:44 pm
Lua does not care about the document settings in 3.1. Can you please paste the whole buggy lua code?
Title: Re: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: TheNlightenedOne on May 21, 2013, 05:18:41 pm
This only happened when I installed Ndless r7xx on my Touchpad noncas with nlaunch.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Levak on May 21, 2013, 06:30:42 pm
Lua does not care about the document settings in 3.1. Can you please paste the whole buggy lua code?
Every single Lua script using numbers, it seems.
At first I thought it was a coincidence - or bad installed OS, but he is not alone : https://tiplanet.org/forum/viewtopic.php?f=16&t=11855
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Lionel Debroux on May 22, 2013, 01:49:00 am
I guess we need more experimental data, to try and understand what's happening. At least:
* CX CAS calculator running the CAS OS normally (not through nLaunch), without Ndless;
* CX CAS calculator running the CAS OS through nLaunch, with Ndless;
* CX CAS calculator running the CAS OS normally, with Ndless;
* CX CAS calculator running the non-CAS OS through nLaunch, without Ndless;
* CX CAS calculator running the non-CAS OS through nLaunch, with Ndless.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: aeTIos on May 22, 2013, 03:01:39 am
I experienced this exact problem too, though I didn't really realize that nlaunch caused this. I ran nSpaint and the coordinates were totally haywire. I hope this can be fixed :D
EDIT: FYI, I used a noncas calc running a CAS os, with ndless.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 22, 2013, 09:08:49 am
I have the same problem (nlaunched CAS OS on CAS Nspire, with the latest ndless).
Uninstalling ndless make the bug disappear.

So, this somewhat means this have nothing to do with the nspire itself (i'm not speaking about the OS here) being CAS or not. It seems to be either Ndless r7xx or a combinations of nLaunch and Ndless r7xx.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Zeklandia on May 22, 2013, 09:08:59 pm
It must be caused by nLaunch. Here is the code I was using:

Code: [Select]
function on.paint(gc)
        gc:drawString((2+2),0,20)
end

Result:
Code: [Select]
5.0##########e-226
This only happened when using nLaunch to load ANY OS (not just CAS ones) on my CX non-CAS calculator.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 23, 2013, 12:50:48 am
Result:
Code: [Select]
5.0##########e-226
This only happened when using nLaunch to load ANY OS (not just CAS ones) on my CX non-CAS calculator.

Aren't you using ndless (and possibly a recent version) too?
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 23, 2013, 04:21:16 pm
To all people experiencing this bug:

Try to replace your ndless_resources.tns with this one (attached below), and tell me if lua knows how to do 2+2 again.
 :) (don't forget to reboot)

(if it still does not work, tell me where (and when) you got you nLaunch version)
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Lionel Debroux on May 29, 2013, 08:57:51 am
Bumping the topic. I know that Excale did extra testing on his side, but still, we all need to understand the situation and fix the problem :)
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 29, 2013, 02:13:19 pm
this happens with me too... and i think that is simple... the problem is the ndless r7xxx, i talked with Extended when it happened... i've also the nlaunch to have the CAS oS and the switcher and it worked fine when i have a ndless r6xxx on it... this is a problem that extended will fix he have time, as he said to me...
on http://ourl.ca/18757/345621 (http://ourl.ca/18757/345621) we can see "Lua programs with timers or scores may display absurd numbers" and that's the case... if we switch to other oS that not uses that ndless r7xxx the problem disappears...
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 03:31:30 pm
Did anyone tried the ndless_resources I have attached to my previous post?

(PS: The problems exists with ndless r6xx)
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 03:37:16 pm
Did anyone tried the ndless_resources I have attached to my previous post?

(PS: The problems exists with ndless r6xx)

I'm using the latest ndless r7xxx, should i try it or it's only to the ones that uses ndless r6xx?
well, i didn't know about that...
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 03:46:54 pm
If you have the problem, then try it. If you don't have the problem, and you are using nLaunch, tell me your exact config.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 03:49:07 pm
i have the problem. i'll try it now... just 5 minutes
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 03:55:39 pm
well, it seem that my nspire can't load the oS...  the TI-Nspire hangs at reboot. it charges the bar and give me that black sceen with a small clock and returns to the beginnig and it happened more than 30 times...
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:14:40 pm
any idea before i reinstall all the stuff?
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 04:19:42 pm
Well, that's strange. You can't do anything but reinstall the OS now.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:21:46 pm
Well, that's strange. You can't do anything but reinstall the OS now.
yes i'm doing that.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 04:22:42 pm
Sorry, forgot to ask you a question: are you using nLaunch, the classic nLaunch which goes with nLaunch CX or nLaunchy?

If you were using nLaunch (when there only was the classic version), that should be why it failed.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:26:16 pm
i'm not sure... maybe the booth... i'll explain. 1st i used this tutorial http://tiplanet.org/forum/viewtopic.php?f=57&t=11019 (http://tiplanet.org/forum/viewtopic.php?f=57&t=11019) to transform my ti-nspire touchpad non-cas to CAS and then i used this tutorial http://tiplanet.org/forum/viewtopic.php?f=57&t=11025 (http://tiplanet.org/forum/viewtopic.php?f=57&t=11025) to have a switcher between 3.1/3.2 CAS oSes
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 04:29:25 pm
Yup, the Clickpad/Touchpad part of this tutorial uses the old nLaunch.

I'll see if I can update the pack.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:31:40 pm
well, if you can do that now i'm disponible to reinstall all again and try again :) warn me on this topic because e subscrived it
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 04:46:03 pm
I updated the nlaunch.tno file in the pack. :)
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:47:56 pm
in wich pack? switcher or transformation?

EDIT:Nevermind. I already saw that you changed on the booth...
EDIT2:My mistake, it's my bad french xD.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 04:52:58 pm
I only changed it in the transformation pack ( http://tiplanet.org/forum/archives_voir.php?id=10859 )
If there is a nlaunch.tno in the switcher pack, you don't need it as you have already installed nLaunch with the transformation pack.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 04:59:19 pm
If there is a nlaunch.tno in the switcher pack, you don't need it as you have already installed nLaunch with the transformation pack.
explain that please while i wait that the oS is installed...
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 05:03:05 pm
As long as you have nlaunch installed, why would you install it again?

To use the "switcher" feature, all you have to do is to put another OS in /nlaunch/phoenix.tns .
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 05:04:55 pm
As long as you have nlaunch installed, why would you install it again?

Are you saying that i only needed to send that new nlaunch.tno?-.-
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 05:06:42 pm
nlaunch.tno is not an OS. It is a fake OS. However, the phoenix.tns included in the pack(s) is/are real OSes.
(just look at the filesize)

EDIT: To make it simple: if you need to use a nlaunch.tno, use the one I have updated.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 05:37:09 pm
still the same problem... it hangs on the reboot
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 05:41:00 pm
Well, I have no idea. It works perfectly fine with me.
Again, are you sure you did not use an outdated nlaunch.tno or nlaunch.tns somewhere in the tutorial?
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 05:49:00 pm
Well, I have no idea. It works perfectly fine with me.
Again, are you sure you did not use an outdated nlaunch.tno or nlaunch.tns somewhere in the tutorial?
well wait a moment. i'll use the new one the installing of the switcher... (update the nlaunch.tno of the switcher too)
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 30, 2013, 05:51:26 pm
Well, I have to go. If it still does not work, we'll try to debug it next time.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 05:54:29 pm
problem solved :) :) update the nlaunch.tno on the switcher xD. it was the problem
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 30, 2013, 06:08:20 pm
Congratulations :)  :w00t: using that new nlaunch.tno and that new ndless_resources.tns(48kb) you've solved 2 hidn problems :) that stupid numbers on the lua programs and the crashes on the ndless programs  :hyper:
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: excale on May 31, 2013, 11:06:45 am
Ok. Perfect :).

For other people having this issue:
1)Make sure your nLaunch version is not *too* old
Then, any new released* revision of ndless will be ok.

*r800+
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: AlexisVieira on May 31, 2013, 11:58:34 am
don't gorget of change that nlaunch.tno file on the switcher
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Zeklandia on July 16, 2013, 08:50:01 pm
Wow, thanks for all of the help guys. I have been very busy for a while and was not able to keep track of this forum (Tapatalk support would be very useful). I am using nLaunch CX, so I shouldn't need to change that, should I? I will update ndless now.

Edit : Okay, is there a switching pack with r825 included, or do I just need to swap out the ndless_resources.tns to upgrade ndless?

Edit 2: Nevermind the last 2 posts, I swapped out the ndless_resources.tns and IT'S FIXED!!! Thank you all!

Merged the two other posts with this one as edits.
-Zeda
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: Xeda112358 on July 16, 2013, 09:17:40 pm
Hi Zeklandia, I am glad you got that fixed :)

In the future, try to avoid triple-posting so close together. Instead, editing your posts is preferred unless there is a major project update or it has been some hours since your last post.


(Tapatalk support would be very useful).
I believe we do have Tapatalk support. Chrome alerts me of this whenever I am not logged in.
Title: Re: [BUG] Mathematical Errors while nLaunched into CAS OS on a CX
Post by: DJ Omnimaga on July 16, 2013, 09:27:49 pm
Yeah I often use Tapatalk to get online on Omni. However, it doesn't support attachment downloads nor img.omnimaga.org URLs.