Page 3 of 12

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 03, 2025 5:41 pm
by miso
Thank you! The 2d text fixes sounds great, I'm going to test those.
Quick conclusion: I had to adjust some of my old programs font/sprite sizes with the new updates, but everything else seems to be fine in this regard.
I usually work with opened screens, so I always have to render fonts to sprites first. So far so good.

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 03, 2025 9:07 pm
by skywalk
Thanks!
My apps still working, but the WebViewGadget example code still crashes on Windows 11.

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 03, 2025 10:04 pm
by tola
Hello purebasic team,

When you want to test with PB 6.21 x64 beta 4, the file "TerrainHeight.pb", shydome and showgui doesn't work as expected.

Thank for PB !

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 03, 2025 10:10 pm
by jacdelad
Wow, you fixed bugs from 2011. How are they selected for fixing? Some Hunger Games thing?

Re: PureBasic 6.21 beta 1 is out !

Posted: Fri Apr 04, 2025 1:45 am
by kenmo
kenmo wrote: Sat Mar 15, 2025 1:45 pm don't forget about the IDE, I've submitted a couple minor bugfixes on GitHub!
:!: :)

Re: PureBasic 6.21 beta 1 is out !

Posted: Fri Apr 04, 2025 3:00 am
by Quin
kenmo wrote: Fri Apr 04, 2025 1:45 am
kenmo wrote: Sat Mar 15, 2025 1:45 pm don't forget about the IDE, I've submitted a couple minor bugfixes on GitHub!
:!: :)
I've also added the new network TLS constants to the IDE autocomplete and fixed the docs, seems Fred doesn't check the PR's section too often, or just forgot this time around.

Re: PureBasic 6.21 beta 1 is out !

Posted: Fri Apr 04, 2025 8:30 am
by Fred
Quin wrote: Fri Apr 04, 2025 3:00 am
kenmo wrote: Fri Apr 04, 2025 1:45 am
kenmo wrote: Sat Mar 15, 2025 1:45 pm don't forget about the IDE, I've submitted a couple minor bugfixes on GitHub!
:!: :)
I've also added the new network TLS constants to the IDE autocomplete and fixed the docs, seems Fred doesn't check the PR's section too often, or just forgot this time around.
I often forget those, don't hesitate to ping me in PM ! I will also add an entry in the final release note.

Re: PureBasic 6.21 beta 4 is out !

Posted: Fri Apr 04, 2025 8:35 am
by Fred
jacdelad wrote: Thu Apr 03, 2025 10:10 pm Wow, you fixed bugs from 2011. How are they selected for fixing? Some Hunger Games thing?
Basically we never silently delete reported bugs (by respect for the time spent to do the report) so some old one can still be around if:
- it's a niche bug (ie: having a small impact)
- it takes too much time to fix
- we don't know how to fix it

A few years ago, I decided as a personal challenge to get the reported bugs count below 100 for the compiler, all platforms included. It took time but I guess it should be the case once 6.21 final lands !

Re: PureBasic 6.21 beta 4 is out !

Posted: Fri Apr 04, 2025 4:12 pm
by skywalk
Beta 4 IDE loads super fast! :shock: Did something change?

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 10, 2025 7:34 pm
by minimy
Hello, i got a lot of problems with version 6.2x when run 3D apps. Compiler say "The debugged executable quit unexpectedly".
Windows 11x64 I7 and NVIDIA, with PB6.1 and lower work.
Over all when use openWindowedScreen(#PB_any....

With this simple code give me an error:

Code: Select all

Global   camara, RenderTime
Global.b sal

;{ 3D
  Procedure   iniDX(title.s="")
    Protected w,h
    InitEngine3D()
      InitSprite()
      InitKeyboard()
      InitMouse()
      OpenWindow(0,0,0,1280,720,title,#PB_Window_ScreenCentered|#PB_Window_BorderLess|#PB_Window_Maximize)
      w= WindowWidth(0):h=WindowHeight(0)
      AntialiasingMode(#PB_AntialiasingMode_None)
      OpenWindowedScreen(WindowID(0), 0, 0, w,h, 0,0,0,#PB_Screen_NoSynchronization)
      WorldShadows(#PB_Shadow_Modulative, -1, RGB(s,s,s), 2048)
  EndProcedure
  Procedure   suelo(size=30)
    Protected   suelo_tx3D, suelo_mesh, suelo_mate
    suelo_tx3D=   CreateTexture(#PB_Any,256,256)
    StartDrawing(TextureOutput(suelo_tx3D))
      Box(0,0,OutputWidth(),OutputHeight(),$0)
      Box(2,2,OutputWidth()-4,OutputHeight()-4,$ffffff)
    StopDrawing()
    
    suelo_mesh=   CreatePlane(#PB_Any,size,size,1,1,1,1)
    suelo_mate=   CreateMaterial(#PB_Any,TextureID(suelo_tx3D))
                  ScaleMaterial(suelo_mate,1/size,1/size)
                  ScrollMaterial(suelo_mate,0.5,0.5,#PB_Material_Fixed)
    suelo=        CreateEntity(#PB_Any, MeshID(suelo_mesh), MaterialID(suelo_mate))
  EndProcedure
  Procedure   creaTextura(size=256)
    Protected   i= CreateTexture(#PB_Any,size,size)
    StartDrawing(TextureOutput(i))
      Box(0,0,OutputWidth(),OutputHeight(),$0000ff)
      Box(20,20,OutputWidth()-40,OutputHeight()-40,$ffffff)
    StopDrawing()
    ProcedureReturn i
  EndProcedure
  
  Procedure   eventos3D()
    Protected.f MouseX,MouseY, mouseW, KeyX,KeyY, movSpd=0.005,rotSpd=0.005
    movSpd * RenderTime
    rotSpd * RenderTime
    If KeyboardPushed(#PB_Key_Escape)
      sal=1
    EndIf
    
    If KeyboardPushed(#PB_Key_A)
      KeyX = -movSpd
    ElseIf KeyboardPushed(#PB_Key_D)
      KeyX = movSpd
    Else
      KeyX = 0
    EndIf
    
    If KeyboardPushed(#PB_Key_W)
      KeyY = -movSpd
    ElseIf KeyboardPushed(#PB_Key_S)
      KeyY = movSpd
    Else
      KeyY = 0
    EndIf
    
    MouseX = -MouseDeltaX() * rotSpd
    MouseY = -MouseDeltaY() * rotSpd
    
    RotateCamera(camara, MouseY, MouseX, 0, #PB_Relative)
    MoveCamera  (camara, KeyX, 0, KeyY)
  EndProcedure
;}
  
  iniDX("Base 3D")
  suelo()
    
  cubo_tx3d=    creaTextura()
  cubo_mate=    CreateMaterial(#PB_Any, TextureID(cubo_tx3d))
                MaterialCullingMode(cubo_mate,#PB_Material_NoCulling)
  
  luz=          CreateLight(#PB_Any,$ffffff,0,50,0,#PB_Light_Directional)
                LightDirection(luz,0.2,-0.4,-0.3)
  
  camara=       CreateCamera(#PB_Any,0,0,100,100)
                MoveCamera(camara,10,16,20)
                CameraLookAt(camara,0,0,0)
                
  Repeat
    Repeat: event= WindowEvent():Until event= 0

    ExamineKeyboard()
    ExamineMouse()

    eventos3D()
    
    RenderTime = RenderWorld()
    
    FlipBuffers()
    
    Delay(1)
  Until sal=1
  
  
  

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 10, 2025 7:42 pm
by miso
@minimy

It's the shadows. Remove it. Some of them requires shaders. (You can add them from their pb directory + parse3dscripts)

PS: cool features had been added, but not documented yet. Like texture shadows.

Re: PureBasic 6.21 beta 4 is out !

Posted: Thu Apr 10, 2025 7:46 pm
by minimy
Yees! Thank you very much! you save me!! :D

Re: PureBasic 6.21 beta 5 is out !

Posted: Mon Apr 14, 2025 6:49 pm
by Fred
A new beta version is available with a bunch of new bug fixes, feel free to test it to ensure all is still working as expected !

Code: Select all

- Removed: #PB_Menu_ModernLook and #PB_Menu_SysTrayLook support on Windows.
Bugfixes for this version:This list was created automatically. All updated bug threads from the date of the last final version have been determined.

Re: PureBasic 6.21 beta 5 is out !

Posted: Mon Apr 14, 2025 6:49 pm
by Psychophanta
1ST one to say THANKS :!:

Re: PureBasic 6.21 beta 5 is out !

Posted: Mon Apr 14, 2025 6:53 pm
by Quin
Woohoo! thanks Fred!