Processing will not Export

edited December 2016 in Library Questions

First time in the forum, so please move this if it's in the wrong spot.

When I try and export my application I get an "Error during export" message, but it doesn't give and error code or anything, I am on windows 10 64 bit, latest drivers and latest processing version.

Here is my code in case that helps

/**
Mouse Press.
Move the mouse to position the shape.
Press the mouse button to invert the color.
*/
import processing.serial.*;

Serial port;
int led;

void setup() {
  size(640, 360);
  noSmooth();
  fill(126);
  background(102);
  port = new Serial(this, "COM3", 9600);
  port.bufferUntil('\n');
}

void draw() {
  if (mousePressed) {
    stroke(255);
    led = 1;
    port.write(led);
  } else {
    stroke(0);
    led = 0;
    port.write(led);
  }
  line(mouseX - 66, mouseY, mouseX + 66, mouseY);
  line(mouseX, mouseY - 66, mouseX, mouseY + 66);
}

Thanks, any help would be much appreciated

Tagged:

Answers

  • edit post, highlight code, press ctrl-o to format.

  • Format your code please. Edit your post, select your code and hit ctrl+o. Ensure there is an empty line above and below your code.

    Kf

  • Yep, should be formatted now

  • (it's missing at least two *s)

  • how do you mean? I am new to this code

  • I even tried exporting a example without changing a single thing and that didn't work either

  • lines 6 and 7 are syntax errors as they stand

  • edited December 2016

    In my code they actually do have the * but for some reason it didn't copy and paste with the rest. The code runs just fine when tested, it just won't export and create its own app.

  • edited December 2016

    (errors and indenting fixed)

  • I don't see where that subforum is

  • I don't see where that subforum is

    what subforum?

    fwiw, that program, with the fixes, exports fine here (processing 3, linux). i can't test the exports because i don't have anything that uses the serial port but...

Sign In or Register to comment.