Results 1 to 7 of 7

Thread: Bug: thinbundle doesn't bundle included script file

  1. #1
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348

    Bug: thinbundle doesn't bundle included script file

    When I tried to create a bundle of the Oxygen powered psva10.tbasic script, I get this when running the exe file:

    Oxygen_Bundle_bug.png

  2. #2
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    52
    Posts
    944
    Rep Power
    111
    Hi Michael my Version Works Here fine.

    Tested with thinbasic Version 12.0.0.

    All you can find in rar folder including bundle Version and pics
    Attached Images Attached Images
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  3. #3
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348
    Hi Lionhead,

    executing your exe gives me the same error.

    Cheers
    Michael

  4. #4
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    52
    Posts
    944
    Rep Power
    111
    Hello Michael I am Not Sure but the Problem Zone seems to be by oxygen include path Definition..for gl

    <
    Uses "TBGL","Oxygen"
    
    #include "thinbasic_gl.inc"
    
    ' if you are using plasma example or noise with #include "thinbasic_gl.inc"
    ' as added include file no problem after bundle the script and running exe file
    ' 
    ' here's the problem zone belongs to oxygen part
    ' the include path is wrong I suppose
    '
    src="
      '
      'VERTEX ARRAY OBJECT (sync with thinBasic counterpart)
      '
      '
      def included include `%APP_IncludePath%\thinbasic_%1.inc`
      included gl
      'included glu
      'included wgl
      'included glext
    
      'includepath `gl`  
      'include once `thinbasic_wgl.inc`
      'include `opengl32.inc`
    
      Type tParticles
        X      As Single
        Y      As Single
        Z      As Single
        SIZE   As Single
        Speed  As Single
        AngleZ As Single
        Fade   As Single
        R      As Single
        G      As Single
        B      As Single    
      End Type
    
    "
    
    I have checked a Lot of examples and the result after two hours is...
    ...you must better ask Charles pegge ;-)

    Regards frank
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  5. #5
    As I understand it, thinBasic bundles resolve all their #includes into the main script, and omit the original files. So the only practical solution is to replace Oxygen's includes with direct declares for the functions it needs.

    Perhaps Eros or Petr will be able to confirm this.

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Ciao,

    I will check during week-end what I can understand.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  7. #7
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    58
    Posts
    3,299
    Rep Power
    348
    Awesome, thank you Eros.

Similar Threads

  1. Bundle- Obfuscated Script not valid
    By ReneMiner in forum thinBasic Beta testing
    Replies: 0
    Last Post: 15-05-2024, 17:24
  2. thinBundle: How to run from a script or commandline?
    By ReneMiner in forum thinBundle
    Replies: 3
    Last Post: 22-06-2022, 18:38
  3. Cisco AMP doesn't much like thinBundle
    By EmbeddedMan in forum thinBundle
    Replies: 4
    Last Post: 30-05-2019, 21:57
  4. Replies: 13
    Last Post: 21-11-2011, 00:40
  5. Releasing script without Bundle
    By martin in forum thinBasic General
    Replies: 1
    Last Post: 08-09-2009, 10:41

Members who have read this thread: 8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •