Author Topic: Follow the development of QB64 v1.3  (Read 22056 times)

0 Members and 1 Guest are viewing this topic.

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline odin

  • Administrator
  • Newbie
  • Posts: 92
  • I am.
    • View Profile
Follow the development of QB64 v1.3
« on: June 29, 2018, 12:49:52 pm »
Hi everyone,

The latest stable release of QB64 is version 1.2. It was built from the master branch of the repository and is the version you can fetch from www.qb64.org ([abandoned, outdated and now likely malicious qb64 dot net website - don’t go there] is a bit behind even on the stable release).

We also have a development branch being worked on and you can always help us beta test it by downloading the Development release at www.qb64.org. The version currently available will eventually become the next stable release, and as the homepage says, "If you're adventurous, we encourage you to help us find bugs!"

To follow what's being done, check the commit history in the development branch at https://github.com/Galleondragon/qb64/commits/development

QB64 is a collaborative effort based on the amazing and extensive work Galleon did by creating QB64 and developing it up to version 1.000.

We truly hope you enjoy using it as much as we enjoy working on it.

The team.
« Last Edit: April 08, 2019, 01:21:15 am by odin »

Offline odin

  • Administrator
  • Newbie
  • Posts: 92
  • I am.
    • View Profile
Re: Follow the development of QB64
« Reply #1 on: June 29, 2018, 12:58:15 pm »
To request a feature or report a bug, use this forum board or, ideally, add a new issue at https://github.com/Galleondragon/qb64/issues.

By following the link above you will see the list of currently open issues and you can also see the list of closed issues, so you can know what has already been tackled by the team recently.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Follow the development of QB64
« Reply #2 on: June 29, 2018, 03:35:00 pm »
Hi Odin. _SNDRAW play not correctly left / right channel. Is not possible set volume to zero for L/R, it something do, but plays both channels always. See attached program. SNDRAW outputs are on lines 638 and 286. You can try also WAV format 8/16 mono/stereo, 11050 to 44100 Hz. Use the bars below the channel volume pointer. Because is not possible send it correctly here, isen it to thread "SNDRAW Player" in Program section.

« Last Edit: June 29, 2018, 03:36:30 pm by Petr »

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Follow the development of QB64
« Reply #3 on: June 30, 2018, 02:33:58 pm »
Nice swap of RUN DETACHED now just needing just an F5 press. I've refrained from making those types of suggestions as it is somewhat picky when other work is being done or requested. Still, it's a really nice change and thanks for making it. I always run QB64 detached and never quite figured out why Rob made the default as attached.

Pete :)

Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Marked as best answer by odin on August 12, 2018, 12:41:47 am

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #4 on: July 31, 2018, 12:08:07 am »
If you've decided to help beta test the next release of QB64 (likely to be numbered 1.3), here's a list of what to look for so you can help us test the new features and eventually find bugs.

Note: some things got fixed, some of the reported issues are still pending and some new features have been added.

Improvements:
    - Adds Ctrl+Shift+G shortcut to jump to line with error (try the shortcut when your program has an error and the IDE is indicating it on the status area)
    - New Ctrl+T to toggle comments on the current line or selection (also available via Edit menu and by right-clicking the code)
    - Updates NanoJPEG to the version 1.3.5 (try loading different jpg files to see if all works well)
    - Makes F5 run detached by default. (you no longer get an unresponsive IDE while your program is running; equivalent to Ctrl+F5 in older versions).
    - Disables maximize box when $RESIZE isn't enabled. (Windows only -> remember when a non-resizable window would still show Maximize and when you clicked it the window would just move to the top-left corner? That won't happen anymore).
    - Quick Navigation (back arrow) can now be disabled in the Search menu.
    - It is now possible to have variable-length strings in User Defined Types (UDTs).
    - [Windows version] Mingw compiler upgraded to version 8.1.0. A 64-bit package is now available officially.
    - New warnings system indicates when a declared variable isn't used and also when a constant is redefined with the same value - useful for using multiple libraries that define TRUE/FALSE for example (instead of an error stopping compilation, a warning is displayed).

Fixes:
    - Tab in included files won't generate an error anymore.
    - A bug that would cause an include line to be duplicated when resizing the IDE.
    - A bug that would not allow reassigning precompiler $LET variables.
    - A memory leak involving PRINT USING and TAB().
    - _PRINTSTRING not using the passed image handle parameters.
    - Selecting a disabled menu item with a hot key would crash the IDE.

New statements and functions:
    - _ECHO: Previously, you could have a $CONSOLE window enabled but to alternate printing to the main program and to the console you'd have to switch _DEST to _CONSOLE, print the text then switch _DEST back to the main program. With the _ECHO command a $CONSOLE-enabled program can output text to the console window without the hassle.

    - _ALLOWFULLSCREEN: the statement allows you to set the behavior of the ALT+ENTER combo. You can allow only certain modes or disable the combo altogether.

    - _SMOOTH: returns true (-1) if the current _FULLSCREEN mode has antialiasing enabled or false (0) if disabled.

    - _RGB32: of course this is not a new function but it has been improved greatly. You no longer need to alternate between _RGB32 and _RGBA32 as it now accepts an optional fourth parameter for alpha. Also: You can create a grayscale color without having to repeat parameters. More details at https://github.com/Galleondragon/qb64/commit/6ee70f1afa3d9dd8ded201743c15711d7b79a1eb

    - _INSTRREV: like INSTR, _INSTRREV allows you to search for a substring inside another string, but unlike INSTR it returns the last occurrence instead of the first one.

    - _TRIM$: Single function to remove trailing and leading spaces from a string. Macro for RTRIM$(LTRIM$(text$)).

    - Drag/Drop support (Windows-only): new statements _ACCEPTFILEDROP, _TOTALDROPPEDFILES and _DROPPEDFILE$ allow your program to accept and handle files dropped from a folder at run-time.

    - New _SHL and _SHR functions for bit-shifting (left/right), as in PRINT _SHL(2, 4) (returns 32) and PRINT _SHR(-8, 3) (returns -1).


The list above contains what's new up to development build 358b725 available today, which you can get from www.qb64.org. Notice that the Help->About dialog will still report an older build number (that will only be updated once development becomes stable), so what really matters is that Help->About shows you From git 358b725.
« Last Edit: April 01, 2019, 12:50:44 am by FellippeHeitor »

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #5 on: July 31, 2018, 12:39:44 am »
_ECHO sample usage:
Code: QB64: [Select]
  1. PRINT "This will be seen in the main program's window"
  2. _ECHO "This will be output to the console"

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #6 on: July 31, 2018, 12:41:52 am »
_ALLOWFULLSCREEN usage (BTW, _FULLSCREEN now accepts OFF without the underscore):

Code: QB64: [Select]
  1. '_ALLOWFULLSCREEN only affects the behavior of ALT+ENTER.
  2. '
  3. 'Existing _FULLSCREEN statement is not bound by _ALLOWFULLSCREEN's settings.
  4.  
  5. 'default mode:
  6. fsMode$ = "_ALLOWFULLSCREEN not used (or _ALLOWFULLSCREEN _ALL, _ALL or without arguments)"
  7. fsDesc$ = "both stretched and 1:1 modes allowed; both normal and antialised modes allowed."
  8.  
  9.     CLS
  10.  
  11.     LOCATE 7
  12.     COLOR 14: PRINT "_ALLOWFULLSCREEN statement demo": COLOR 7
  13.     PRINT "    - Press 1-8 to change _ALLOWFULLSCREEN mode"
  14.     PRINT "    - Press ALT+ENTER to test"
  15.     PRINT
  16.     COLOR 14: PRINT "Syntax:": COLOR 7
  17.     PRINT "    _ALLOWFULLSCREEN [{_STRETCH|_SQUAREPIXELS|OFF|_ALL}][,{_SMOOTH|OFF|_ALL}]"
  18.  
  19.  
  20.     k& = _KEYHIT
  21.  
  22.     IF k& >= 49 AND k& <= 56 THEN
  23.         _FULLSCREEN OFF
  24.         altEnter = 0
  25.         SELECT CASE CHR$(k&)
  26.             CASE "1"
  27.                 fsMode$ = "_ALLOWFULLSCREEN OFF"
  28.                 fsDesc$ = "full screen mode disabled; alt+enter can be manually trapped."
  29.                 _ALLOWFULLSCREEN OFF
  30.             CASE "2"
  31.                 fsMode$ = "_ALLOWFULLSCREEN _STRETCH, _ALL"
  32.                 fsDesc$ = "stretch mode allowed only; normal+antialiased modes allowed"
  33.                 _ALLOWFULLSCREEN _STRETCH , _ALL
  34.             CASE "3"
  35.                 fsMode$ = "_ALLOWFULLSCREEN _SQUAREPIXELS, _ALL"
  36.                 fsDesc$ = "1:1 mode allowed only; normal+antialiased modes allowed"
  37.                 _ALLOWFULLSCREEN _SQUAREPIXELS , _ALL
  38.             CASE "4"
  39.                 fsMode$ = "_ALLOWFULLSCREEN _STRETCH, OFF"
  40.                 fsDesc$ = "stretch mode allowed only; normal mode allowed only"
  41.                 _ALLOWFULLSCREEN _STRETCH , OFF
  42.             CASE "5"
  43.                 fsMode$ = "_ALLOWFULLSCREEN _SQUAREPIXELS, OFF"
  44.                 fsDesc$ = "1:1 mode allowed only; normal mode allowed only"
  45.                 _ALLOWFULLSCREEN _SQUAREPIXELS , OFF
  46.             CASE "6"
  47.                 fsMode$ = "_ALLOWFULLSCREEN _STRETCH, _SMOOTH"
  48.                 fsDesc$ = "stretch mode allowed only; antialiased mode allowed only"
  49.                 _ALLOWFULLSCREEN _STRETCH , _SMOOTH
  50.             CASE "7"
  51.                 fsMode$ = "_ALLOWFULLSCREEN _SQUAREPIXELS, _SMOOTH"
  52.                 fsDesc$ = "1:1 mode allowed only; antialiased mode allowed only"
  53.                 _ALLOWFULLSCREEN _SQUAREPIXELS , _SMOOTH
  54.             CASE "8"
  55.                 fsMode$ = "_ALLOWFULLSCREEN not used (or _ALLOWFULLSCREEN _ALL, _ALL or without arguments)"
  56.                 fsDesc$ = "both stretched and 1:1 modes allowed; both normal and antialised modes allowed."
  57.                 _ALLOWFULLSCREEN _ALL , _ALL
  58.         END SELECT
  59.     ELSEIF k& = 13 THEN
  60.         IF _KEYDOWN(100307) OR _KEYDOWN(100308) THEN
  61.             altEnter = altEnter + 1
  62.         END IF
  63.     END IF
  64.  
  65.     LOCATE 14
  66.     COLOR 14: PRINT "Current setting:": COLOR 7
  67.     PRINT fsMode$
  68.     COLOR 14: PRINT "Behavior:": COLOR 7
  69.     PRINT fsDesc$
  70.  
  71.     IF altEnter THEN
  72.         LOCATE 18
  73.         PRINT "ALT+ENTER manually trapped"; altEnter; "times."
  74.     END IF
  75.  
  76.     _DISPLAY
  77.     _LIMIT 30
  78.  

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Follow the development of QB64
« Reply #7 on: July 31, 2018, 12:42:16 am »
Are you guys certain that _RGB32 should have that optional 4th parameter for Alpha?  Seems to me that it's just asking for trouble since _RGB has a different, optional 4th parameter for image handle.

Honestly, I think _RGBA32 should work fine enough for most folks, without any possible issues for parameter confusion between such similar named commands.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #8 on: July 31, 2018, 12:43:15 am »
Details on the new _RGB32:

Existing syntax:
Code: QB64: [Select]
  1. colour~& = _RGB32(red, green, blue)

New possible uses:
- Instead of passing identical rgb values to achieve a shade of gray, pass only 1 parameter for all color components:

Code: QB64: [Select]
  1.     colour~& = _RGB32(51) 'same as _RGB32(51, 51, 51)

- _RGB32 can now take an optional alpha parameter, which makes _RGBA32 obsolete (although it still exists for retrocompatibility):

Code: QB64: [Select]
  1.     colour~& = _RGB32(255, 0, 255, 30) 'same as _RGBA32(255, 0, 255, 30)

- If you want a shade of gray and also to specify the alpha level, you can pass just two parameters:

Code: QB64: [Select]
  1.     colour~& = _RGB32(51, 30) 'same as _RGBA32(51, 51, 51, 30)

In summary:

    - 1 parameter  = red, green and blue simultaneously set.
    - 2 parameters = red, green and blue simultaneously set plus alpha level.
    - 3 parameters = red, green and blue as usual.
    - 4 parameters = red, green and blue plus alpha level (same as _RGBA32).

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #9 on: July 31, 2018, 12:44:06 am »
Are you guys certain that _RGB32 should have that optional 4th parameter for Alpha?  Seems to me that it's just asking for trouble since _RGB has a different, optional 4th parameter for image handle.

Honestly, I think _RGBA32 should work fine enough for most folks, without any possible issues for parameter confusion between such similar named commands.

All new features of _RGB32 are optional and it can continue to be used as always. _RGBA32 will also continue to exist.
« Last Edit: July 31, 2018, 12:46:59 am by FellippeHeitor »

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #10 on: July 31, 2018, 12:44:48 am »
_INSTRREV:
Code: QB64: [Select]
  1.  fullPath$ = "C:\Documents and Settings\Administrator\Desktop\qb64\internal\c\libqb\os\win\libqb_1_2_000000000000.o"
  2. file$ = MID$(fullPath$, _INSTRREV(fullPath$, "\") + 1)
  3. PRINT file$

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #11 on: July 31, 2018, 12:45:40 am »
Drag/drop support demo (for Windows only):
Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(128, 25, 0)
  2.  
  3. PRINT "Drag files from a folder and drop them in this window..."
  4.  
  5.         FOR i = 1 TO _TOTALDROPPEDFILES
  6.             a$ = _DROPPEDFILE$
  7.             COLOR 15
  8.             PRINT i,
  9.             IF _FILEEXISTS(a$) THEN
  10.                 COLOR 2: PRINT "file",
  11.             ELSE
  12.                 IF _DIREXISTS(a$) THEN
  13.                     COLOR 3: PRINT "folder",
  14.                 ELSE
  15.                     COLOR 4: PRINT "not found", 'highly unlikely, but who knows?
  16.                 END IF
  17.             END IF
  18.             COLOR 15
  19.             PRINT a$
  20.         NEXT
  21.     END IF
  22.  
  23.     _LIMIT 30
« Last Edit: July 31, 2018, 12:48:28 am by FellippeHeitor »

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #12 on: July 31, 2018, 09:48:30 am »
Latest dev build:

- _DROPPEDFILE can now take an optional index parameter, which goes from 1 TO _TOTALDROPPEDFILES and allows you to read the dropped files list in any order.
- When reading _DROPPEDFILE using an index, instead of sequentially, _TOTALDROPPEDFILES won't get reset until a new drag/drop occurs or until _FINISHDROP is called.

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(128, 25, 0)
  2.  
  3.  
  4.     PRINT "Drag files from a folder and drop them in this window..."
  5.  
  6.  
  7.     PRINT _TOTALDROPPEDFILES; " files/folders dropped;"
  8.  
  9.         a$ = _DROPPEDFILE(i)
  10.         COLOR 15
  11.         IF _FILEEXISTS(a$) THEN
  12.             COLOR 2: PRINT "file",
  13.         ELSE
  14.             IF _DIREXISTS(a$) THEN
  15.                 COLOR 3: PRINT "folder",
  16.             ELSE
  17.                 COLOR 4: PRINT "not found", 'highly unlikely, but who knows?
  18.             END IF
  19.         END IF
  20.         COLOR 15
  21.         PRINT a$
  22.     NEXT
  23.  
  24.     _LIMIT 30
« Last Edit: August 01, 2018, 09:51:19 pm by odin »

Offline RhoSigma

  • QB64 Developer
  • Forum Resident
  • Posts: 565
    • View Profile
Re: Follow the development of QB64
« Reply #13 on: August 01, 2018, 04:11:28 am »
The _DROPPEDFILE keyword works syntax error free with and without "$" sign for both, indexed (array) usage and sequencial usage. Is that by intention? Shouldn't it not require the "$" sign as it is mandatory for eg. the COMMAND$ keyword with and without its indexed usage?
My Projects:   https://qb64forum.alephc.xyz/index.php?topic=809
GuiTools - A graphic UI framework (can do multiple UI forms/windows in one program)
Libraries - ImageProcess, StringBuffers (virt. files), MD5/SHA2-Hash, LZW etc.
Bonus - Blankers, QB64/Notepad++ setup pack

FellippeHeitor

  • Guest
Re: Follow the development of QB64
« Reply #14 on: August 01, 2018, 07:00:15 am »
It accepts the $ sygil in alignment with _CONNECTIONADDRESS, which also works both with and without it. It makes sense in that it returns a string, so it's kind of instinctive for BASIC users like us, but it also works without it cause it belongs to QB64-exclusive keywords.

COMMAND$, on the other hand, although the indexed syntax is not inherited from QuickBASIC, is historically mandatorily followed by $, which is why it only works with it.
« Last Edit: August 01, 2018, 07:37:03 am by FellippeHeitor »