Comments on: Version numbers, subversion, compiled binaries http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/ drawing by robot Mon, 14 May 2018 00:33:14 +0000 hourly 1 https://wordpress.org/?v=4.9.7 By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-595 Sun, 22 Jan 2012 13:10:20 +0000 http://www.polargraph.co.uk/?p=266#comment-595 Try that now Matt, I’ve set the default page/image size/position to be something other than 0. You’ll need to update and then delete your polargraph.properties file so it can create a new one from scratch.
Cheers!

]]>
By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-594 Sun, 22 Jan 2012 11:58:39 +0000 http://www.polargraph.co.uk/?p=266#comment-594 Hi, well your AFMotor libraries are in the right place, but they might be the wrong format. I can replicate this error, and it’s to do with the text encoding of the AFMotor files being set to UTF-8 instead of ANSI. Did you just unpack them directly from the zip?

Anyway, the fix is to open AFMotor.h in notepad and re-save it, but make sure the text encoding is set to ANSI. There’s a dropdown next to the save button on the save-as dialog for this. Save it as the exact same name. You might need to do it for AFMotor.cpp too if it’s also in the wrong format.

Let me know how you get on.
sn

]]>
By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-592 Sun, 22 Jan 2012 11:27:07 +0000 http://www.polargraph.co.uk/?p=266#comment-592 Aha, yes I’ve got that now, I see what you mean. Not quite sure of the cause, but I can put in a fix, and the way around it until then is:

Make a page using the setup tab->page width, page height, page y pos and then centre page. Don’t think the size matters.

Then load your image, then move image to the middle of the page, _then_ do some resizing etc.

That works for me.

The real issue is that there’s lots of operations in it that expect there to be an image loaded and initialised, and if there isn’t, it gets a bit confused about it’s place in the world. Fairly straightforward fix to disable some of the controls that rely on that while an image isn’t loaded.

Give it a shot Matt, fingers crossed, and I’ll write a fix in the meantime.

]]>
By: fedeGa http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-589 Sun, 22 Jan 2012 02:28:47 +0000 http://www.polargraph.co.uk/?p=266#comment-589 hi there!

I’ve tried the new Arduino 1.0 code and I get the error :

In file included from sketch_jan22a.cpp:2:
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\357’ in program
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\273’ in program
C:\Program Files\arduino-1.0\libraries\AFMotor/AFMotor.h:1: error: stray ‘\277’ in program

I’ve copied the new libraries to the Arduino1.0 folder..but I have no idea of whats going wrong there.

hope you can help me
thanks!!

]]>
By: Matt Jenkins http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-588 Sat, 21 Jan 2012 22:41:47 +0000 http://www.polargraph.co.uk/?p=266#comment-588 Thanks for the quick update. The program loaded great. This next part is hard to explain, but the image is still not right. With this latest update I wint through it about 20 times and I was able to get an image to appear about 4 times. It was never right away but after clicking buttons like move image and resize. One of the Images came in upsidedown and was as if one end was stuck to the top of the screen and trying to move or resize the picture only changed its shape to long and skinny with one end still touching the top of the computer screen.
Then after trying to move the picture a few times the program froze every time. Then the Processing code page would give an error saying
NullPointerException.
It highlighted the line of code in the polargraphcontroller_zoom page saying:
Image(getDisplayMachine().getImage(),imagePos.x,imagePos.y,imageSizeOnScreen.x,imageSizeOnScreen.y);
I’m not sure if this makes since but that is what happened and I hope I was able to help. Thanks again and I appreciate all your time and help in this.
Matt

]]>
By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-587 Sat, 21 Jan 2012 21:25:37 +0000 http://www.polargraph.co.uk/?p=266#comment-587 Can you give that another shot please Matt? I think I’ve fixed that problem, maybe you confirm it for me?

]]>
By: Matt http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-586 Sat, 21 Jan 2012 17:05:27 +0000 http://www.polargraph.co.uk/?p=266#comment-586 Thanks for the update. But it pops up an error when I run it. It says “NullPointerException” and highlights

float scaling = imageWidth / getImage().width;

It is in the Machine page. I am using TortoiseSVN for the updates, it is easier. By this can you tell if I am missing something? I appreciate your help. Thanks,
Matt

]]>
By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-585 Sat, 21 Jan 2012 15:06:10 +0000 http://www.polargraph.co.uk/?p=266#comment-585 Have a look at http://youtu.be/K6rT2SFoNa4 this is what mine looks like. It should definitely do something though, if you’ve got it wired up the right way round.

]]>
By: sandy http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-584 Sat, 21 Jan 2012 13:51:11 +0000 http://www.polargraph.co.uk/?p=266#comment-584 Matt, a couple of people have reported that issue, with the image just not showing up. I can’t seem to replicate it here, but I have just committed a couple of changes to the way I handle the images last night (1.0.3), so I might have fixed it by coincidence. Alex, I _could_ replicate that problem you had, so 1.0.3 aught to fix those too (hopefully). Moved to a more efficient, and sensible way of handling the images. Also changes the resize behaviour, so instead of selecting a box and fitting the image to it, I’ve just got a number spinner to grow/shrink the image. I think it’s a bit more intuitive, but there _was_ a reason for the old way of doing it. I just can’t remember what it was. Which way is best?

]]>
By: AAlex http://www.polargraph.co.uk/2012/01/version-numbers-subversion-compiled-binaries/#comment-583 Sat, 21 Jan 2012 13:36:56 +0000 http://www.polargraph.co.uk/?p=266#comment-583 Maybe you should first select the area (inside the paper) then load the image and maybe may be needed to click “resize image”.
I’ve noticed that, with one of the last version, selecting an area outside the paper gives an error.

]]>