Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - matty47

#1
I am using V16.947 and have the HTML DLC. When I try to compile for either HTML5 or HTML5-WebGL I get the following error
Code (glbasic) Select
em++: error: 'E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\HTML5\emsdk\upstream\emscripten\tools\file_packager.bat C:\Users\mingl\AppData\Local\Temp\glbasic\glbasicapp.data --from-emcc --preload Media' failed (returned 1)
distribute HTML5 to: E:/GLBasicProj/DownloadsMar26/Examples/Cubies/distribute/HTML5
C:/Users/mingl/AppData/Local/Temp/glbasic/glbasicapp.html : File does not exist
C:/Users/mingl/AppData/Local/Temp/glbasic/glbasicapp.data : File does not exist
C:/Users/mingl/AppData/Local/Temp/glbasic/glbasicapp.js : File does not exist
C:/Users/mingl/AppData/Local/Temp/glbasic/glbasicapp.wasm : File does not exist
Anyone able to assist?
Thanks
#2
Thanks - much appreciated. I just wanted to have a go at the jam. I enjoy BASIC programming and GLBasic needs a bit more exposure. Just wish GLBasic exporters were updated!
#3
Hi, just entered a game mage with GLBasic in this jam.

Links
https://itch.io/jam/jam-for-all-basic-dialects-7

my entry
https://matty47.itch.io/dumper
#4
I tried to run the compiled app on my Pi400 with Raspian 32bit  Debian 12 based, Unfortunately there were unresolved dependencies, libbcm_host.so, libvcos.so, libvchiq.so, that I have not been able to find info on how to install. It seems that they were part of an earlier version of Raspian. I have yet to try the version based on Debian 11 - maybe I'll get lucky.
Why would I want to create a Pi app - just because it's available to do. =D 
#5
I did a search for the error raised and found an answer. On the first line of glb.h there are three non printing characters causing the error. In a hex editor I removed these bytes (EF BB BF). Now my program compiles for Raspberry Pi without an error and I get a .bin file and a media folder. I have yet to check that the program works on the pi.
The search indicated that the other way to fix the error was to delete the first line and retype it.
#6
Thanks - I'll keep working
#7
I can't find the Bonus section referred to in the previous post. Where is it? Or better where is the info referred to? Thanks
#8
Just getting back into GLBasic and using version 16.947. Program built for Win OK. When I try to build for Raspberry Pi i get the following errors
Quote*** Configuration: RASPBERRY_PI ***
precompiling:
GPC - GLBasic Precompiler V.17.312 SN: 7101ce3 - 3D, NET
Wordcount:107 commands
compile+link:
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_tempg.cpp:2:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
In file included from C:\Users\mingl\AppData\Local\Temp\glbasic\/gpc_temp.h:2,
                 from C:\Users\mingl\AppData\Local\Temp\glbasic\gpc_temp0.cpp:1:
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\357' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\273' in program
E:\SteamLibrary\steamapps\common\GLBasic_SDK\Compiler\platform\Include/glb.h:1: error: stray '\277' in program
*** FATAL ERROR - Please post this output in the forum
_______________________________________
I don't know what the stray refers to and any help greatly appreciated.
#9
Just getting back into GLBasic after a long hiatus. I wrote some 3d testing code a long time ago (looks like 2007). When I recompile these programs with V15.238 it seems that the .dd models are not being found. I tried adding GetCurrentPath$ to the file name and made sure that the files were in the executable directory but no luck. I also tried loading from a media directory but still no luck.
This is the code. I recently added the GetCurrentDir$ when the original would not work.
Code (glbasic) Select
// --------------------------------- //
// Project: 3dtry
// Start: Monday, September 10, 2007
// IDE Version: 4.279


LOADSPRITE GETCURRENTDIR$()+"floor.png", 0

X_LOADOBJ GETCURRENTDIR$()+"floor1.dda", 0

cam_x =0;cam_y=0.5;cam_z=1.5 //camera postion
cam_dir=0  //camera direction
player_x=0;player_y=0;player_z=0
sz=2 //camera step size
WHILE TRUE
dtime=GETTIMER()
//IF INKEY$="Q" THEN END

X_MAKE3D 0.1,500,60
//X_CULLMODE 0
X_CAMERA cam_x,cam_y,cam_z,cam_x+COS(cam_dir)*sz,cam_y,cam_z+SIN(cam_dir)*sz
X_AMBIENT_LT 0, RGB(200,200,200)
X_SPOT_LT 0,RGB(255,255,255),0,40,0,0,-1,0,100
X_MOVEMENT player_x,player_y,Player_z
//X_SCALING 2,0.25,2
X_SETTEXTURE 0,-1
X_DRAWOBJ 0,0
X_DRAWAXES 0,0,0
X_DOT 2,0,0,10,RGB(255,0,0)
X_DOT 0,0,2,10,RGB(0,0,255)
MoveCam()
//X_3rd_Person(Player_x,Player_y,Player_z,10,1)
//player_x=player_x-0.05
X_MAKE2D
//show the frames per second
fps=((1000/dtime)+fps)/2
delay=delay+dtime
IF delay>1000
delay=0
showFPS=fps
ENDIF
PRINT "FPS: "+INTEGER(showFPS)+"  CamY= "+height,0,0
SHOWSCREEN
WEND







FUNCTION  X_3rd_Person: Player_x, Player_y, Player_z, Max_Cam_dist, Min_Cam_Dist
   IF ein_durchlauf = FALSE
      Distance = Max_Cam_dist
      my = 45
      ein_durchlauf = TRUE
   ENDIF


   X_CAMERA cam_x+Player_x, cam_y+Player_y, cam_z+Player_z,    Player_x, Player_y, Player_z



   INC Distance,MOUSEAXIS(2)*5
   IF Distance < Min_Cam_Dist THEN Distance = Min_Cam_Dist
   IF Distance > Max_Cam_dist THEN Distance = Max_Cam_dist

   mx = mx + MOUSEAXIS(0)/20
   my = my + MOUSEAXIS(1)/20

   IF my < -40 THEN my = -40
   IF my > 80 THEN my = 80

   cam_x = Distance * COS(mx)
   cam_z = Distance * SIN(mx)
   cam_y = Distance * SIN(my)
ENDFUNCTION


FUNCTION MoveCam:
mx=MOUSEAXIS(0)*dtime/5
my=0

IF KEY(200) THEN my=0.06*dtime
IF KEY(208) THEN my=-0.06*dtime
cam_x=cam_x + my*COS(cam_dir)*sz*dtime/500
cam_z=cam_z + my*SIN(cam_dir)*sz*dtime/500

height=X_COLLISIONRAY(0,0,cam_x,cam_y,cam_z,0,-1,0)
cam_y=cam_y+0.5-height
cam_dir=cam_dir+mx*dtime/600
ENDFUNCTION

Any ideas? It would have been great if the X_LoadObj returned something that indicated success or not. The help file does not indicate any return value.
Thanks for any pointers.
#10
3D-snippets / Re: SGEngine
2023-Apr-08
Thanks. What a mountain of work you've done. Everything that I tried ran smoothly. Did you compile for any other platforms?
I am still on non Steam version 15.238.
#11
3D-snippets / Re: SGEngine
2023-Apr-07
I downloaded the archive which is still on Mediafire however it requires a password to extract. Please advise the password. Thanks
#12
Thanks Spacefractal. So Linux has disappeared from the list. Disappointing. It looks like you have to pay extra to get the HTML compiler.
#13
I currently have pre Steam version 15..238 which Webupdate tells me is the latest version. I purchased the full key some 15 years ago. I was thinking that I may update to the Steam version (as this is the only way I will get future updates it seems). I would like to know if the compilers on the Steam version include Linux 64, Android 64, Raspberry Pi 64. I have read forum posts that indicate that both Win32 and Win64 compilers are present. I tried to find further info on Steam but was unsuccessful. Could someone please tell me which platform compilers are included in the Steam version. Thanks for your help.
#14
Media Section / Re: Fonts
2021-May-13
It would appear that the zip file is corrupt and unable to be repaired.
#15
Just to confirm that any of the zip files that I have downloaded appear to be corrupt. Tried to open them with 7zip and Winrar 6. Both progs showed error as "Unexpected end of archive". Running a repair (Winrar) on the files did not fix the problem. Showed a checksum error in all files in the archive. Did something happen to the server files at some point?