Menu

Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)

2023-03-09
2023-03-25
  • Rene Frijhoff

    Rene Frijhoff - 2023-03-09

    The line 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB) is incorrect generated.

    Instead of a hex number format (e.g. 00FE8DC0) a name is added:
    0 !LPUB FADE_STEP COLOR GLOBAL Aqua

    Not sure what the 0x|# for is

     
  • Trevor Sandy

    Trevor Sandy - 2023-03-22

    Thank you for reporting this behaviour.

    By default, LPub3D will use the LDraw safe colour name (name with _ between words e.g. Dark_Brown) becuse HexRGB names may have multiple LDraw colour entries (e.g. Black and Chrome_Black both use #1B2A34).

    However, I have updated LPub3D to load fade previous steps colour values with the following formats:

    1. HexRGB (CSS prefix) #AARRGGBB or #RRGGBB.
    2. HexRGB (Hex prefix) 0xAARRGGBB

    With this change, the editor is no longer limited to LDraw colours, s/he may specify any valid colour.

    This change is available in the latest release build.

    You can see additional details in the LPub3D GitHub repository at ticket Fade previous steps colour value #689

    Cheers,

     
    • Rene Frijhoff

      Rene Frijhoff - 2023-03-22

      Yeah, but the problem is that the name will generate an error.

      Cheers.

      Op wo 22 mrt 2023 om 11:07 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

      Thank you for reporting this behaviour.

      By default, LPub3D will use the LDraw safe colour name (name with _
      between words e.g. Dark_Brown) becuse HexRGB names may have multiple LDraw
      colour entries (e.g. Black and Chrome_Black both use #1B2A34).

      However, I have updated LPub3D to load fade previous steps colour values
      with the following formats:

      1. HexRGB (CSS prefix) #AARRGGBB or #RRGGBB.
      2. HexRGB (Hex prefix) 0xAARRGGBB

      With this change, the editor is no longer limited to LDraw colours, s/he
      may specify any valid colour.

      This change is available in the latest release build.

      You can see additional details in the LPub3D GitHub repository at ticket Fade
      previous steps colour value #689
      https://github.com/trevorsandy/lpub3d/issues/689

      Cheers,

      Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
      https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#e156


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lpub3d/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Trevor Sandy

    Trevor Sandy - 2023-03-23

    Yeah, but the problem is that the name will generate an error.

    Can you describe the error and/or steps to reproduce it ?

    With the latest release build, I am able to use both LDraw safe name:

    Fade Steps Named Colour

    And HexRGB colour formats without error.

    Fade Steps HexRBG Colour

    Cheers,

     

    Last edit: Trevor Sandy 2023-03-23
    • Rene Frijhoff

      Rene Frijhoff - 2023-03-23

      After checking the line in your example, no quotes are put around it.
      I.s.o. "Green" it generates Green. Though I will check first if I really do
      have the latest version just to be sure (it was only a couple of weeks ago,
      but just in case).

      Cheers,

      Op do 23 mrt 2023 om 03:41 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

      Yeah, but the problem is that the name will generate an error.

      Can you describe what the error and/or steps to reproduce it ?

      With the latest release build, I am able to use both LDraw safe name:

      [image: Fade Steps Named Colour]

      And HexRGB colour formats without error.

      [image: Fade Steps HexRBG Colour]

      Cheers,

      Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
      https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#ede7


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lpub3d/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Rene Frijhoff

        Rene Frijhoff - 2023-03-23

        Houston, we have problem. After unpacking (no install any more?) the latest
        version LPUB won't even start now.

        Cheers,

        Op do 23 mrt 2023 om 05:10 schreef Rene Frijhoff rfrijhoff@gmail.com:

        After checking the line in your example, no quotes are put around it.
        I.s.o. "Green" it generates Green. Though I will check first if I really do
        have the latest version just to be sure (it was only a couple of weeks ago,
        but just in case).

        Cheers,

        Op do 23 mrt 2023 om 03:41 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

        Yeah, but the problem is that the name will generate an error.

        Can you describe what the error and/or steps to reproduce it ?

        With the latest release build, I am able to use both LDraw safe name:

        [image: Fade Steps Named Colour]

        And HexRGB colour formats without error.

        [image: Fade Steps HexRBG Colour]

        Cheers,

        Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
        https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#ede7


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/lpub3d/discussion/general/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         
  • Trevor Sandy

    Trevor Sandy - 2023-03-23

    Houston, we have problem. After unpacking (no install any more?) the latest
    version LPUB won't even start now.

    Thank you for reporting this behaviour.

    Are you using build 2.4.6.98.3209_20230323 ?

    no install any more?

    I saw that build 2.4.6.96.3207_20230322 failed to download the latest LDraw library archive files during the build process as LDraw.org changed their download URLs. This is why the Windows installer distribution failed to build.

    As a result I generated an new build this morning. All builds and build checks were successfully completed.

    I downloaded and checked the 2.4.6.98.3209_20230323 x86_64 portable (.zip) build and did not encounter any unusual behaviour.

    Fade colour on latest release

    Cheers,

     

    Last edit: Trevor Sandy 2023-03-23
    • Rene Frijhoff

      Rene Frijhoff - 2023-03-24

      Unfortunately, also 2.4.6.98.3209_20230323 won't start. I even rebooted the
      pc just to be sure.

      Cheers

      Op do 23 mrt 2023 om 12:16 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

      Houston, we have problem. After unpacking (no install any more?) the latest
      version LPUB won't even start now.

      Thank you for reporting this behaviour.

      Are you using build 2.4.6.98.3209_20230323 ?

      no install any more?

      I saw that build 2.4.6.96.3207_20230322 failed to download the latest
      LDraw library archive files during the build process as LDraw.org changed
      their download URLs. This is why the Windows installer distribution failed
      to build.

      As a result I generated an new build this morning. All builds and build
      checks were successfully completed.

      I downloaded and checked the 2.4.6.98.3209_20230323 x86_64 portable (.zip)
      build and did not encounter any unusual behaviour.

      Fade colour on latest release
      https://lpub3d.sourceforge.io/images/lpub3d/FadeColour689Release.png

      Cheers,

      Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
      https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#56ef


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lpub3d/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Trevor Sandy

    Trevor Sandy - 2023-03-24

    Strange. Im not able to reproduce this behaviour on Windows 10 or 11.

    Can you provide your operating system version ?

    Is anything being written to the LPub3D output log ?

    Can you try to run LPub3D from the command console and direct the output to a log file. Here is the command:

    <absolute path>\LPub3D.exe --no-console-redirect --process-file <absolute path>\your_sample_model.mpd > test_output_log.txt
    

    Of course you must replace <absolute path> with the respective actual file path.

    If the test_output_log.txt file from the above check is not empty, can you provide a copy - along with the default LPub3D output log ?

    The best way to run this test is to use a new extracted instance of a 2.4.6.98 portable (.zip) LPub3D distribution.

    Cheers,

     

    Last edit: Trevor Sandy 2023-03-24
    • Rene Frijhoff

      Rene Frijhoff - 2023-03-24

      It's becoming more strange. There was nothing written to the log file.
      When using the command prompt, it didn't start for the 1st 2 times. When
      trying for the third time, I made an error in the model path. Now LPUB did
      start, but gave an access error because of the typing error in the path.
      When corrected, LPUB did start with loading the model file. It now also
      starts when clicking the icon.

      Cheers.

      Op vr 24 mrt 2023 om 15:18 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

      Strange. Im not able to reproduce this behaviour on Windows 10 or 11.

      Can you provide your operating system version ?

      Is anything being written to the LPub3D output log ?

      Can you try to run LPub3D from the command console and direct the output
      to a log file. Here is the command:

      <absolute path="">\LPub3D.exe --no-console-redirect --process-file <absolute path="">\your_sample_model.mpd > test_output_log.txt</absolute></absolute>

      Of course you must replace '<absolute path="">' with the respective actual
      file path.</absolute>

      If the test_output_log.txt file from the above check is not empty, can you
      provide a copy - along with the default LPub3D output log ?

      The best way to run this test is to use a new extracted instance of a
      2.4.6.98 portable (.zip) LPub3D distribution.

      Cheers,

      Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
      https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#1b3c


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lpub3d/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Trevor Sandy

    Trevor Sandy - 2023-03-24

    It's becoming more strange. There was nothing written to the log file.
    When using the command prompt, it didn't start for the 1st 2 times. When
    trying for the third time, I made an error in the model path. Now LPUB did
    start, but gave an access error because of the typing error in the path.
    When corrected, LPUB did start with loading the model file. It now also
    starts when clicking the icon.

    Looks like you are experiencing this issue because of the file path being used.

    Can you consistently reproduce the unexpected behaviour using the problematic path ?

    A good test would also check UTF-8 characters. For example, does your path contain non-ascii characters that might be obfuscating your file path. Using UTF-8 characters in file names should not cause unexpected behaviour but it could be good to rule it out.

    Cheers,

     
    • Rene Frijhoff

      Rene Frijhoff - 2023-03-25

      It was everytime the same way in the command prompt and never closed
      between those attempts. Also this would imply that Windows in the first few
      attempts didn't use UTF-8 characters in windows mode and then suddenly
      after my attempts it did use UTF-8 characters without me changing anything.

      Though I will try later today or tomorrow.

      Cheers,

      Op vr 24 mrt 2023 om 23:55 schreef Trevor Sandy trevorsandy@users.sourceforge.net:

      It's becoming more strange. There was nothing written to the log file.
      When using the command prompt, it didn't start for the 1st 2 times. When
      trying for the third time, I made an error in the model path. Now LPUB did
      start, but gave an access error because of the typing error in the path.
      When corrected, LPUB did start with loading the model file. It now also
      starts when clicking the icon.

      Looks like you are experiencing this issue because of the file path being
      used.

      Can you consistently reproduce the unexpected behaviour using the
      problematic path ?

      A good test would also check UTF-8 characters. For example, does your path
      contain non-ascii characters that might be obfuscating your file path.
      Using UTF-8 characters in file names should not cause unexpected behaviour
      but it could be good to rule it out.

      Cheers,

      Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
      https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#ddb2


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/lpub3d/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Rene Frijhoff

        Rene Frijhoff - 2023-03-25

        I deleted the LPub directory and extracted the file again, but the problem
        did not arise anymore (well for now) so I can't reproduce it.

        Cheers,

        Op za 25 mrt 2023 om 06:32 schreef Rene Frijhoff rfrijhoff@users.sourceforge.net:

        It was everytime the same way in the command prompt and never closed
        between those attempts. Also this would imply that Windows in the first few
        attempts didn't use UTF-8 characters in windows mode and then suddenly
        after my attempts it did use UTF-8 characters without me changing anything.

        Though I will try later today or tomorrow.

        Cheers,

        Op vr 24 mrt 2023 om 23:55 schreef Trevor Sandy
        trevorsandy@users.sourceforge.net %0Dtrevorsandy@users.sourceforge.net:

        It's becoming more strange. There was nothing written to the log file.
        When using the command prompt, it didn't start for the 1st 2 times. When
        trying for the third time, I made an error in the model path. Now LPUB did
        start, but gave an access error because of the typing error in the path.
        When corrected, LPUB did start with loading the model file. It now also
        starts when clicking the icon.

        Looks like you are experiencing this issue because of the file path being
        used.

        Can you consistently reproduce the unexpected behaviour using the
        problematic path ?

        A good test would also check UTF-8 characters. For example, does your path
        contain non-ascii characters that might be obfuscating your file path.
        Using UTF-8 characters in file names should not cause unexpected behaviour
        but it could be good to rule it out.
        Cheers,

        Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)

        https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#ddb2

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/lpub3d/discussion/general/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        Incorrect generation of 0 !LPUB ASSEM FADE_STEP COLOR (0x|#)([AA]RRGGBB)
        https://sourceforge.net/p/lpub3d/discussion/general/thread/449601ac7a/?limit=25#ddb2/dc35


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/lpub3d/discussion/general/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

Log in to post a comment.

MongoDB Logo MongoDB