Issues with GAME script

I've been using the game script for star reduction after watching Adam's video on this process. I'm now having an issue with the script working properly. After I make all my selections and click ok, nothing happens. The script is saying to wait, but no matter how long I wait it doesn't do anything. When I close the script there is an error in the process console, which I have attached. 
My Pixinsight is up to date and can't recall if there was an update when I first noticed this problem about a month ago.

Thanks,
Shawn
process2.JPG
606 x 475 - 56K
game_script.JPG
995 x 781 - 98K
process.JPG
582 x 381 - 45K
process3.JPG
598 x 468 - 54K

Comments

  • Hi Shawn,

    Hmm... I am not certain. I have 1.7.2 and I made selections...of each kind of mask...and it outputted everything without issue. So I cannot reproduced this on my end. 

    Perhaps send a note to Harmut, the developer,  at  Hartmut.bornemann@t-online.de  . 

    -the Blockhead
  • ooooooh
    I just looked at the code. 
    I think there is an accidental space in there!

    See the attached picture. If you want, you can edit the code (delete the space..I think it should be:
    data.ellipsoids[i].draw(g);

    Let me know if I am correct!
    You might need to make a copy of the code outside of the ProgramsFiles directory..edit..and then overwrite the file to update it. 

    For some reason..my version still works though!

    -the Blockhead


    Capture.JPG
    1581 x 1005 - 127K
  • I will try it tonight. I tried the script again after I read your first message and it worked all of a sudden.
    I'll let you know what I found out.
    Thanks for your help,
    Shawn
  • edited May 2021
    Hi Shawn,

    This is what Hartmut wrote back to me...

    Hello Adam,

     

    You discovered a real crazy error.

     

    The problem is with the loop variable (in the case it was i)

     

     

         for (var i in data.ellipsoids)

          {

             data.ellipsoids[i].draw (g);

          }

     

    Changed to

     

         for (var i =0; i < data.ellipsoids.length; i++)

          {

             data.ellipsoids[i].draw (g);

          }

     

    Also changed in many other places.

     

    I still don’t know the secrets of Java Scripting but hope, that I could fix the incident. In some cases, ressting the java runtime did help, but that is not a good solution.

     

     

    Regards

     

    Hartmut

Sign In or Register to comment.