Page 11 of 16

Re: Idea: Visual NXC

Posted: 12 Jun 2011, 22:21
by timpattinson
Great.
ps. he pm'ed me

Re: Idea: Visual NXC

Posted: 13 Jun 2011, 02:43
by sidneys1
Ugh. Wrote a whole post, then SourceForge logged me out. =P

Summary: 0.1.0.6 will be cool. Not ready yet though, wanna add minimap and pseudo-scrollbars.

Here's a quick preview of 0.1.0.6 (note that it lags only because FRAPS hates me):

Have a nice day,
~Sidneys1

Re: Idea: Visual NXC

Posted: 12 Oct 2011, 02:06
by sidneys1
Not to resurrect an old topic, but I just didn't have time to work on V-NXC over the summer. Now that school's in full swing again, however, I have more time.

Anyhow, here's what I've been working on, and plan to implement soon (right now I have a fork over on BitBucket where I'm testing my new code):
  • I decided that just being able to save the code to a file was impractical for development, so I've decided to have it compile code itself.
  • Which means that it will either come with or make it easy to find/obtain a copy of the nbc/nxc compiler, and will manage compilation/downloading/running itself. Hopefully.
  • So far tests are looing promising :)
  • Also still looking to add a mini-map and pseudo-scrollbars (I can steal code from my 'FilmFree' project), but this will have to wait for another time/fork.
  • Gotta add some more settings! :)
Just keeping you informed,
Have a nice day,
~Sidneys1

Re: Idea: Visual NXC

Posted: 12 Oct 2011, 06:01
by mightor
This is your thread, is it not? I think it's OK to resurrect it :)

- Xander

Re: Idea: Visual NXC

Posted: 12 Oct 2011, 20:16
by sidneys1
Just a little progress update: http://screenr.com/tg0s

Have a nice day,
~Sidneys1

Re: Idea: Visual NXC

Posted: 12 Oct 2011, 20:55
by linusa
Cool! :-)

Re: Idea: Visual NXC

Posted: 13 Oct 2011, 19:05
by mightor
Holy <whole bunch of expletives not suitable for forums>! That looks fantastic, man! Great job.

- Xander

Re: Idea: Visual NXC

Posted: 13 Oct 2011, 19:50
by sidneys1
mightor wrote:Holy <whole bunch of expletives not suitable for forums>! That looks fantastic, man! Great job.
linusa wrote:Cool! :-)
Thank you very much! There's lots more to do still however.. :ugeek:

Still wondering what the format is for telling the NBC compiler the USB address of an NXT brick.

Have a nice day,
~Sidneys1

Re: Idea: Visual NXC

Posted: 13 Oct 2011, 22:45
by linusa
sidneys1 wrote: Still wondering what the format is for telling the NBC compiler the USB address of an NXT brick.
The nbc help output says:

Code: Select all

Syntax: nbc [options] filename [options]
   -S=<portname>: specify port name (usb), brick resource name, or alias
...
If you only have one brick connected via USB, that's easy. We always use just nbc -S=usb ....

If you have more bricks connected, I guess you need the resource name. When you start BricxCC, there's a drop down list with former connected bricks. I found something like this on my pc:

Code: Select all

USB0::0X0694::0X0002::00165304318C::RAW
0x0694 is the vendor ID for LEGO, and 0x0002 is the product ID for the NXT. I guess USB0 is the first USB bus on my machine -- this might change to USB1 or USB2, if a different USB port is used -- no idea. 00165304318C is the MAC / serial no. of the NXT. I'd just adapt this to other NXTs. I'd leave the "raw" and try it. Then maybe nbc -S=USB0::0X0694::0X0002::00165304318C::RAW ... would work.

I guess the resource string is somehow Fantom talk, so you might want to check the Fantom SDK or header or examples or docs to see if there's more info on that.

Edit: And if you're really lucky, then "alias" in the help text just stands for an NXT name you can pass to nbc, like nbc -S=MyRobot.

Re: Idea: Visual NXC

Posted: 14 Oct 2011, 19:16
by spillerrec
I have never needed to specify anything to download via USB, not even "-S=usb" and this have always worked for me. (I only own one NXT.)
I know there are a far amount of Linux/Mac tutorials about setting up NXC (using nbc) together with BT, you could try searching for those, they might contain more info.