Get nxcEditor at SourceForge.net. Fast, secure and Free Open Source software downloads

nxcEditor



Language (click on the flag)

Summary With the nxcEditor for Linux NXT and BrickPi robots can be programmed (the source code is highlighted). A NXC-program can be executed either on the real robot or the nxcSimulator, which is integrated in the nxcEditor (the official compiler is invoked from the nxcEditor). A C-program for the BrickPi robot can be programmed either locally on the Raspberry Pi or over a network (using the compiler on the Raspberry Pi). The nxcEditor (as well as the nxcSimulator) is designed so that programming beginners can be taught.

nxcSimulator Brief information ...

License The nxcEditor is free software: you can redistribute it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details (http://www.gnu.org/licenses/)

Instructions Instructions, introduction to NXC and more as a book

Requirements - tested on different netbooks with Atom-CPU
- best performance with 3D-driver for the graphic card

Installation
  1. Installation for a user group (since version 0.1.4)

    1. Download the nxcEditor (32 bit, 64 bit or Raspberry Pi)

      • if you choose an executable nxcEditor-file, then you have to install “gambas3“, “sox” and “ImageMagick
      • possibly a repository for Gambas3 must be added or Gambas3 must be compiled from source
      • for the new Gambas3 repositories (e.g. Ubuntu) look at gambas.sourceforge.net
      • for compiling Gambas3 from source for the Raspberry Pi look at: Gambas3_install.pdf

    2. Copy “70-nxt.rules” in folder /etc/udev/rules.d

    3. Inside a terminal:
      • create the group nxt with:
        groupadd nxt
      • add the user USERNAME to the group:
        usermod -a -G nxt USERNAME


  2. Installation for all users of the computer or one user

    1. Download the nxcEditor (32 bit, 64 bit or Raspberry Pi)

      • if you choose an executable nxcEditor-file, then you have to install “gambas3“, “sox” and “ImageMagick
      • possibly a repository for Gambas3 must be added or Gambas3 must be compiled from source
      • for the new Gambas3 repositories (e.g. Ubuntu) look at gambas.sourceforge.net
      • for compiling Gambas3 from source for the Raspberry Pi look at: Gambas3_install.pdf

    2. Copy as root “nbc” and “nexttool” to the folder “/usr/local/bin” (permissions: make them executable).

      Attention: There is one version for 32 bit Linux, one for 64 bit Linux and one for the Raspberry Pi (see below: Downloads). If you want to use the 32 bit version with 64 bit Linux, you need ia32-libs for Ubuntu/Mint/Debian (thanks to Paul Cobbaut for this important hint). Use in this case libusb-0_1-4-32bit for openSUSE. For the installation the software package management can be used.

    3. Add two lines at the end of the sudoers file (/etc/sudoers). Use visudo as root inside a terminal. “USERNAME“ must be replaced with the name of the user.

    4. USERNAME ALL = NOPASSWD: /usr/local/bin/nbc
      USERNAME ALL = NOPASSWD: /usr/local/bin/nexttool

      or

      ALL ALL = NOPASSWD: /usr/local/bin/nbc
      ALL ALL = NOPASSWD: /usr/local/bin/nexttool

      Attention: The sudoers file will only work with exactly
      this permissions: r-- r-- --- (440)

    5. Copy “70-nxt.rules” in folder /etc/udev/rules.d (not required for Ubuntu)


  3. Additional installation instructions for the BrickPi Robot: Instructions

You can copy a new version of the nxcEditor to the directory /usr/local/bin/ of the live system (do this as root). The file must be renamed in “nxcEditor.gambas“ and made ​​executable.

Support Help
Open Discussion

Short videos nxcEditor and nxcSimulator (YouTube)
- Create a robot (YouTube)
- Create a background (YouTube)
- Working with the NXC tutorial by Daniele Benedettelli (YouTube)
- BrickPi and nxcEditor (YouTube)

Example: “Sound garden“ (YouTube)
Example: “Maze – find the red point“ (YouTube)
Example: “Drawing“ (YouTube)

Downloads

Many thanks to John Hansen for his permission to use his tools on the LINUX-IMAGES and as a zip-file.

LIVE-LINUX-DVD-IMAGE 0.1.2 (32 bit) with nxcEditor v0.1.5 and NeXTTools
(based on openSUSE 13.1 – root password: “toor“)

LIVE-LINUX-DVD-IMAGE 0.1.2 (64 bit) with nxcEditor v0.1.5 and NeXTTools
(based on openSUSE 13.1 – root password: “toor“)

LINUX-USB-IMAGE 0.1.2 with nxcEditor v0.1.5 and NeXTTools
(based on openSUSE 13.1 – for at least 4 GB USB flash drive – root password: “toor“ – for example use “SUSE Studio Imagewriter“ to write the image)

LINUX-VMDK-IMAGE 0.1.2 with nxcEditor v0.1.5 and NeXTTools
For VMware Player and for usage with VirtualBox
Linux, Windows, Mac OS X, ...
(based on openSUSE 13.1 – root password: “toor“)

nxcEditor 0.1.6 (32 bit)
(Executable nxcEditor-file – Gambas3 version 3.5.x is needed – for each Linux distribution)

nxcEditor 0.1.6 (64 bit)
(Executable nxcEditor-file – Gambas3 version 3.5.x is needed – for each Linux distribution)

nxcEditor 0.1.6 (Raspberry Pi)
(Executable nxcEditor-file – Gambas3 version 3.5.x is needed – for each Linux distribution)
Note: Read the Instructions before you download

nbc and nexttool as zip-file (32 bit version from july 2013)
there is a hint for 64 bit Linux, if you decide to use the 32 bit version!
nbc and nexttool as zip-file (64 bit version from july 2013)
nbc and nexttool as zip-file (Raspberry Pi version from july 2013)
(from: bricxcc.sourceforge.net and bricxcc.sourceforge.net/nbc)

70-nxt.rules

Sources for the current version


Changes nxcEditor 0.1.6 (Gambas 3.5.x)
  • nxcEditor: fixed some bugs (Auto-layout function now works with switch ... case, ...)
  • BrickPi: programs can be started automatically with lxterminal (important for keyboard input)
  • nxcSimulator: Sin and Cos function have been added
nxcLinux – LINUX-IMAGES 0.1.2 (32 bit and 64 bit)
  • includes nxcEditor 0.1.5
  • includes NeXTTools (from http://bricxcc.sourceforge.net) – password: „toor”
  • based on openSUSE 13.1
  • look at nxcLinux – LINUX-IMAGES 0.0.32 for more
nxcEditor 0.1.5 (Gambas 3.5.x)
  • nxcEditor: fixed some bugs (compile button, button to start the nxcSimulator, ...)
  • nxcEditor: an Auto-layout function has been added
  • nxcEditor: the editor now supports the programming of a BrickPi robot over the network and directly on the Raspberry Pi (switch between NXT and BrickPi: Robot -> Select robot)
nxcLinux – LINUX-IMAGES 0.1.1 (32 bit and 64 bit)
  • includes nxcEditor 0.1.4
  • includes NeXTTools (from http://bricxcc.sourceforge.net) – password: „toor”
  • based on openSUSE 13.1
  • look at nxcLinux – LINUX-IMAGES 0.0.32 for more
nxcEditor 0.1.4 (Gambas 3.5.x)
  • nxcEditor: Code assist added ("View -> Code assist")Code-assist
  • nxcEditor: "Help -> NXC-Programmer's Guide (www)" added and "Help -> Show NXC-commands" changed
  • nxcEditor: many commands and parameters for highlighting have been added, including the API "HTSMUX-driver.h" considered by Xander Soldaat for the HiTechnic Sensor Multiplexer
  • nxcSimulator: the simulator can already be used after step a) of the installation instructions
  • nxcEditor: nbc and nexttools (see downloads) are now directly included
  • nxcEditor: fixed some bugs
nxcLinux – LINUX-IMAGES 0.1.0 (32 bit and 64 bit)
  • includes nxcEditor 0.1.3
  • includes NeXTTools (from http://bricxcc.sourceforge.net) – password: „toor”
  • based on openSUSE 12.3
  • look at nxcLinux – LINUX-IMAGES 0.0.32 for more
nxcEditor 0.1.3 (Gambas 3.4.x)
  • nxcEditor: fixed some bugs
nxcEditor 0.1.2 (Gambas 3.4.x)
  • nxcEditor: "search and replace" added and fixed some bugs
  • nxcEditor: now a summary of the project can be shown (View-> Project) - a mouse click on the item moves the cursor to the appropriate location in the program Project

  • nxcSimulator: switch ... case, function calls ... return, one-dimensional array without ArrayInit added and fixed some bugs (eg "i++", negation with "!" ...)
  • nxcSimulator: for-loop added, TextOut and NumOut now work with x- and y-coordinates (Multiples of 6 and 8), fixed some bugs
  • nxcEditor/nxcSimulator: the editor and the simulator can be translated into other languages without any programming skills (instruction see: "Support -> Help -> Translate French")
  • nxcEditor: now it's possible to connect two NXT Bricks simultaneously Two NXT Bricks
nxcLinux – LINUX-IMAGES 0.0.33
  • includes nxcEditor 0.1.1
  • look at nxcLinux – LINUX-IMAGES 0.0.32 for more
nxcEditor 0.1.1 (Gambas 3.3.x)
  • nxcSimulator: Off function corrected
  • nxcEditor: bug in printing function fixed
  • nxcEditor: bug in HTML export fixed
  • nxcEditor: example code updated – now it's possible to use every example of the book with ISBN-10: 3941841858
nxcLinux – LINUX-IMAGES 0.0.32
  • includes nxcEditor 0.1.0
  • based on openSUSE 12.2
  • driver for VMware Player included
  • use the Live-Installer of the CD-Image for installation (use the nxcEditor immediately)
  • VMDK-IMAGE with VMware Player: use immediately with VMware Player (use the latest version from www.vmware.com). For better performance you can install the latest VMware Tools
  • VMDK-IMAGE with VirtualBox: inside VirtualBox you have to create a new machine (use the vmdk disk). Install the Extension Pack and the drivers from the guest additions (use the latest version from www.virtualbox.org). Activate the 3D and the PAE support. Known bug (I think it is the VirtualBox graphic driver): the OpenGL area of the Simulation is always in front and hides everything that should be in front.
  • VMDK-IMAGE: you have to start the automatic configuration of the soundcard with YaST
  • the network is disabled – enable with YaST
nxcEditor 0.1.0 (Gambas 3.3.x)
  • nxcSimulator: two arenas added (labyrinth and one for the Compass Sensor)
  • nxcSimulator: default settings for framerate added (nxcSimualtor -> help -> Correct display-bugs) use for example inside VMware Player or VirtualBox (40 is a good value)
  • nxcSimulator: structure to save settings changed
  • nxcEditor: now it is possible to print a program (color/black and white)
  • nxcEditor: HTML export added (color)
  • fixed some little bugs
  • translation (a little change)
nxcLinux – LINUX-IMAGES 0.0.31
  • includes nxcEditor 0.0.98
  • the default language is English
  • during the boot process is a selection for the keyboard layout (if you can't press “Next“ for the selection then press “alt + N“)
nxcEditor 0.0.99 (Gambas 3.2.1 and later versions)
  • nxcSimulator: Sound Sensor now works with every port
  • Gambas3: since Gambas 3.2.1 the OpenGL syntax changes
  • translation (a little change)
nxcEditor 0.0.98 (up to Gambas 3.1.1)
  • nxcSimulator: Color Sensor and Compass Sensor (hitechnic) added
  • nxcSimulator: two arenas for the Color Sensor added and one arena with RoboCup-Rescue-competition-lines
  • nxcSimulator: now there is a different startposition for the robot in every arena
  • nxcSimulator: choose between six different robots
  • nxcSimulator: the default robot and the default background can now be selected
  • fixed bug: now the startposition for the robot will be calculated correctly (zoom/saved projects/...)
nxcEditor 0.0.97
  • the nxcEditor can now handle multiple programs simultaneously
  • indent and unindent added to the nxcEditor
  • nxcSimulator: settings for the lightsensor added (thanks to Alexander Kolotov for testing - look at his video on youtube)
  • some missing translations added
  • the default language is English now
nxcEditor 0.0.96
  • fixed crash while closing the nxcSimulator window during running NXC-program
  • every window is now persistant – so the RAM is used better
  • new background for the nxcSimulator added
  • translation (a little change)