View Full Version : Bug: thinbundle doesn't bundle included script file
Michael Hartlef
10-08-2024, 18:00
When I tried to create a bundle of the Oxygen powered psva10.tbasic script, I get this when running the exe file:
10379
Lionheart008
16-08-2024, 23:46
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
Michael Hartlef
17-08-2024, 12:13
Hi Lionhead,
executing your exe gives me the same error.
Cheers
Michael
Lionheart008
17-08-2024, 17:43
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
Charles Pegge
23-08-2024, 09:38
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.
ErosOlmi
28-08-2024, 11:55
Ciao,
I will check during week-end what I can understand.
Eros
Michael Hartlef
29-08-2024, 08:39
Awesome, thank you Eros.