PureGDK Open Beta - DarkBasic for PureBasic

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

Isn`t the latest version online ? It is from 19.02.2008 ?
Because i get all those old errors again.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

The latest is Feb. 22, 2008. Are you sure the one you've downloaded is the one you installed? Maybe you mixed it up with an older version.

Which error are you experiencing?
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

If i rightclick and select properties it shows created on 19.02.2008. It is named: PureGDK_0_4b. Shoudn`t it be 0.4.2b ?. I have downloaded it today.
The errors are the same as in this thread. (error line 26...)
I have done a fresh install of PB today.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I've re-uploaded the file in a zip which will show you the correct date that the installer was last modified.

If this installer still does not work please let me know.
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

The date of the installer is right now, but the most examples do not work anymore.
PureGDK Compiler - Error: Could not understand command at line 26.
The last i have tested was the the camera example (fresh download).

In this:

Code: Select all

#windowwidth = 800
#windowheight = 600

OpenWindow(0,0,0,#windowwidth,#windowheight,"Container Window", #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_Invisible) 
   hDBWnd=OpenDBWnd(0,0, 800, 600,32,#GDK_Window_BorderLess ,WindowID(0)) 

;CreateGadgetList (WindowID (0))
If CreateMenu(0, (WindowID (0)))
          MenuTitle("Project")
          MenuItem(0, "New")
          MenuItem(1, "Quit")
          MenuTitle("Objects")
          MenuItem(2,"Load...")
          MenuTitle("Sky")
          MenuItem(3,"Load SkyBox...")
          MenuItem(4,"Load SkyDome...")
          MenuTitle("Lights")
          MenuItem(5,"Change Ambient Light...")
          MenuTitle("Textures")
          MenuItem(6,"Load Texture...")
          MenuTitle("Particle")
          MenuItem(7,"New Particles...")
          MenuTitle("About")
          MenuItem(8, "About...")
EndIf

; Unhide PureBasic window container 
HideWindow(0,0) 

; Don't lose focus to the new DarkBasic window 
SetForegroundWindow_(WindowID(0)) 

; Do something cool 
dbMakeObjectCube(1,3) 
dbScaleObject(1,35,35,35) 
dbPositionObject(1,-1.65,1.3,0) 

Repeat

   Delay(1)
   x.f+0.1: y.f+0.3: z.f+0.4 
   dbRotateObject(1,x.f,y.f,z.f) 
      
    EventID = WindowEvent()
            
    If EventID = #PB_Event_Menu  ; ToolBar are acting as menu
      
    
      Select EventMenu()
                      
        Case 1  ; Quit                  
          End
        Case 2
          StandardFile$ = "C:\"   ; anfänglichen Pfad + Dateiname festlegen
          ; Mit dem nächsten String werden die Pattern (mit "|" als Trennzeichen) für anzuzeigende
          ; Dateitypen festgelegt:
          ; Erster:  "Text (*.txt)" als Name, ".txt" und ".bat" als erlaubte Dateiendungen
          ; Zweiter: "PureBasic (*.pb)" als Name, ".pb" al erlaubte Dateiendung
          ; Dritter: "Alle Dateien (*.*) als Name, "*.*" als erlaubte Dateiendung, gültig für alle Dateien
           Pattern$ = "B3D (*.b3d)|*.b3d|X (*.x)|*.x|3DS (*.3ds)"  
           Pattern = 0    ; wir verwenden den ersten von drei möglichen Pattern als Standard
           file$ = OpenFileRequester("Bitte Datei zum Laden auswählen", StandardFile$, Pattern$, Pattern)
           index = SelectedFilePattern()
            If file$
              ;entity=bbLoadAnimMesh (file$)
              ;bbMoveEntity (entity, 0, 0, 100)
            Else
              MessageRequester("Information", "Der Requester wurde abgebrochen.", 0) 
            EndIf                     
      EndSelect
        
    EndIf
    
    dbSync()
    
    Until EventID = #PB_Event_CloseWindow ; If the user has pressed on the close button  ;WindowEvent()=#WM_CLOSE
    
End
the menus only react in debug mode.
Last edited by sigi on Sun Feb 24, 2008 10:01 pm, edited 1 time in total.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

There should be no reason for this error. I'm suspicious that PureBasic is still using an older version of the compiler instead of the newer one.

I reinstalled PureBasic and DarkBasic Professional and I can't reproduce this error. I also checked the source generated by the PureGDK Compiler and everything looks fine.

Check to see if there are duplicate entries in your PureBasic tools (Tools -> Configure Tools) that may be pointing to an outdated Compiler.exe. If there are remove all of them and reinstall PureGDK.
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

There are six entries in my tools menu, is this right?
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

I have deleted all six entries in the toolmenu and deleted the compiler.exe
in the PureGDK folder. Then done a fresh install of PureGDK, but no luck, same errors. I can`t understand this anymore :?
The date of the compiler.exe in the PureGDK folder is from today and should be the right version.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

A new beta is out.
0.4.3b - Feb. 23, 2008 Changelog:

* The February 22 release was distributed with an older compiler version which caused some previously fixed bugs to return. This has been fixed.
* Fixed the missing optional parameters for the dbFixRagdollPointToObject() and dbFixClothPointToObject() commands in the 3D Cloth and Particle Physics library. The vehicle and ragdoll commands which did not appear in the documentation have also been removed.
Last edited by Mistrel on Sun Feb 24, 2008 9:33 pm, edited 1 time in total.
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

With the new version all examples are working perfect. :)
But my example with the menus works only correct in debug mode.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Would you please be specific about the error?
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

The menus don`t react in non debug mode. The object load menu should open a requester. It does it only in debug mode. You can copy the code above and try it yourself.
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Fixed. :)

Code: Select all

0.4.4b - Feb. 24, 2008 Changelog:

    * Fixed a bug which caused Sync() to swallow PureBasic calls to create requester windows (message, file, etc.) from a file menu when compiling without the debugger.
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Post by sigi »

Yep, work`s great. No i can continue with my editor. :)

Another one:

Code: Select all

#windowwidth = 800 
#windowheight = 600 

OpenWindow(0,0,0,#screenwidth,#screenheight,"Container Window", #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_Invisible) 
   hDBWnd=OpenDBWnd(0,0,800, 600,32,#GDK_Window_BorderLess ,WindowID(0))
If i replace the dimensions (800,600) in OpenDBWnd(...) with the constants above,
the DBwindow is smaller then the PB window. If i use direct 800, 600 (for width and height) it is ok. You can use the same editorsource in this thread for testing.
The integers and the constants should behave the same?
Athlon X2 7850 - Geforce 8800 GTS 640mb - 8 GB Ram - Vista Home Premium 64 bit SP2
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

Fixed. :)

Code: Select all

0.4.5b - Feb. 25, 2008 Changelog:

    * Fixed a bug which caused dbSetDisplayMode() to lock up the application and also fail to change its dimensions if the DarkBasic render window was the child of another window.
    * Fixed a bug which caused dbSetWindowSize() to reset the DarkBasic render window's window style.
    * Fixed a bug which caused dbOpenDBWnd() to fail to recognize its InnerWidth, InnerHeight, and Depth parameters if they were not passed as literal numbers.
Post Reply