Page 2 of 2
Re: NXText NXC?
Posted: 13 Jun 2011, 22:22
by ejvaughan
studbrickmaster wrote:
NXText NXC was a text writing program, not a messaging program.
Actually, NXText is not a text editor. It cannot create or edit text files. Instead, it is a text file viewer and manager. Hopefully this clears up any confusion.
But anyway, the source code for NXText is attached below. You are free to use as much or as little of the code as you want, but I would appreciate some form of attribution. Also, I tried compiling NXText with the latest version of BricxCC (3.3.8.9), and it did not complete without some errors. The .rxe is included, however, so you should still be able to download that to your NXT and run it. But if anybody would like to go through and figure out what's triggering the compiler errors, that would be awesome. I am not yet caught-up on what's changed in NXC since I fell off the planet, so that's why I'm reluctant to debug the program myself.
Re: NXText NXC?
Posted: 14 Jun 2011, 02:10
by bungeshea
THANKS!
Good to see you back, NXT Freak.
Re: NXText NXC?
Posted: 14 Jun 2011, 07:16
by muntoo
NULL
is now a keyword, so you can't use it as a variable. Furthermore, you must use
Flatten(CONSTANT)
whenever comparing a constant to a character literal.
I've attached a fixed version that will hopefully work.
Re: NXText NXC?
Posted: 14 Jun 2011, 12:07
by spillerrec
Is there a changelog somewhere? I haven't been updated recently either so I would like to know what have changed.
I made a file viewer a while ago which was intended to work as an example for the NXC file I/O tutorial I still haven't made... There is also an text viewer in it which uses my word-wrapping library. I'm planning to add a proper RIC file viewer (so it is easier to check the correctness of RICcreator), so if any are interested I can release it by then.
EDIT: I realize that I'm using BCC 3.3.8.9 but it is half a year old, there must surely be a newer test release? Are they still at
http://bricxcc.sourceforge.net/test_releases/, or do you grab them somewhere else now?
Re: NXText NXC?
Posted: 14 Jun 2011, 20:36
by mattallen37
spillerrec wrote:...EDIT: I realize that I'm using BCC 3.3.8.9 but it is half a year old, there must surely be a newer test release? Are they still at
http://bricxcc.sourceforge.net/test_releases/, or do you grab them somewhere else now?
Yes, the latest test releases are there. I am using 3.3.8.10, and I believe it is the latest test version.