Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64 Phoenix Edition v3.4.0 Released!
#11
(11-01-2022, 09:54 PM)Jack Wrote: I am not C savvy but I get this warning when building QB64 with another toolchain

Yeah yuck, that's a bug. That's a third party library we used for the dialog stuff, we'll fix it in our copy and see about sending the fix back to them.

FWIW our usage of those functions immediately copies the contents of those buffers after they're returned, so it'll probably still work for the moment. Adding `static` on it like you did is the correct fix.
Reply
#12
Thanks for the good job! I noticed something this time: I replace the "IDE COLOR SETTINGS" in every new version with my settings (copy them from version to version). This has worked without any problems so far, just not today with version 3.4.0. The IDE showed the default colors. I ended up copying the entire config.ini from 3.3.0 to 3.4.0 (renamed the original one of course) and now everything is as it should be. I can not explain it.

Then I noticed something about this config.ini from version 3.3.0, there are three "IDE COLOR SETTINGS". Where are they from? I definitely didn't do that. Reminds me of Win95, there I had something similar: three autoexec.bat & three config.sys, which must have been due to my settings.

The config.ini from 3.3.0 and now 3.4.0:
Code: (Select All)
[GENERAL SETTINGS]
DisableSyntaxHighlighter=False
PasteCursorAtEnd=True
ExeToSourceFolderFirstTimeMsg=True
WhiteListQB64FirstTimeMsg=True
SaveExeWithSource=True
EnableQuickNav=True
ShowErrorsImmediately=True
ShowLineNumbers=True
ShowLineNumbersSeparator=True
ShowLineNumbersUseBG=True
BracketHighlight=True
KeywordHighlight=True
MultiHighlight=True
IgnoreWarnings=False
BackupSize=100 'in MB
DebugInfo=False
WikiBaseAddress=https://qb64phoenix.com/qb64wiki

[MOUSE SETTINGS]
SwapMouseButton=False

[DEBUG SETTINGS]
BaseTCPPort=9000
WatchListToConsole=False
AutoAddDebugCommand=True

[IDE DISPLAY SETTINGS]
IDE_SortSUBs=False
IDE_KeywordCapital=False
IDE_SUBsLength=True
IDE_AutoPosition=True
IDE_NormalCursorStart=6
IDE_NormalCursorEnd=8
IDE_AutoFormat=True
IDE_AutoIndent=True
IDE_IndentSUBs=True
IDE_IndentSize=2
IDE_CustomFont=False
IDE_UseFont8=False
IDE_CustomFont$=C:\Windows\Fonts\lucon.ttf
IDE_CustomFontSize=21

[CUSTOM DICTIONARIES]
Instructions1="Add custom keywords separated by the 'at' sign."
Instructions2="Useful to colorize constants (eg @true@false@)."
CustomKeywords$=@

[IDE COLOR SCHEMES]
Instructions1="Create custom color schemes in the IDE (Options->IDE Colors)."
Instructions2="Custom color schemes will be stored in this section."

[IDE WINDOW 1]
IDE_Width=210
IDE_Height=62
IDE_TopPosition=-8
IDE_LeftPosition=-8

[IDE COLOR SETTINGS 1]
SchemeID=1
TextColor=_RGB32(216, 216, 216)
KeywordColor=_RGB32(98, 167, 196)
NumbersColor=_RGB32(216, 98, 69)
QuoteColor=_RGB32(206, 216, 0)
CommentColor=_RGB32(69, 216, 0)
ChromaColor=_RGB32(170, 170, 170)
MetaCommandColor=_RGB32(177, 59, 226)
HighlightColor=_RGB32(0, 88, 108)
BackgroundColor=_RGB32(0, 0, 108)
BackgroundColor2=_RGB32(0, 88, 177)

[COMPILER SETTINGS]
OptimizeCppProgram=False
StripDebugSymbols=True
MaxParallelProcesses=3
ExtraCppFlags=
ExtraLinkerFlags=-Wl,--stack,26777216
UseMiniaudioBackend=True
GenerateLicenseFile=False

[IDE WINDOW 2]
IDE_Width=210
IDE_Height=62
IDE_TopPosition=-8
IDE_LeftPosition=-8

[IDE COLOR SETTINGS 2]
SchemeID=1
TextColor=_RGB32(216, 216, 216)
KeywordColor=_RGB32(69, 118, 147)
NumbersColor=_RGB32(216, 98, 78)
QuoteColor=_RGB32(255, 167, 0)
CommentColor=_RGB32(98, 98, 98)
ChromaColor=_RGB32(170, 170, 170)
MetaCommandColor=_RGB32(85, 206, 85)
HighlightColor=_RGB32(0, 88, 108)
BackgroundColor=_RGB32(0, 0, 39)
BackgroundColor2=_RGB32(0, 49, 78)

[IDE WINDOW 3]
IDE_Width=210
IDE_Height=62
IDE_TopPosition=-8
IDE_LeftPosition=-8

[IDE COLOR SETTINGS 3]
SchemeID=1
TextColor=_RGB32(216, 216, 216)
KeywordColor=_RGB32(69, 118, 147)
NumbersColor=_RGB32(216, 98, 78)
QuoteColor=_RGB32(255, 167, 0)
CommentColor=_RGB32(98, 98, 98)
ChromaColor=_RGB32(170, 170, 170)
MetaCommandColor=_RGB32(85, 206, 85)
HighlightColor=_RGB32(0, 88, 108)
BackgroundColor=_RGB32(0, 0, 39)
BackgroundColor2=_RGB32(0, 49, 78)

The original modified config.ini from 3.4.0 (now x_config.ini):
Code: (Select All)
[GENERAL SETTINGS]
DisableSyntaxHighlighter=False
PasteCursorAtEnd=True
ExeToSourceFolderFirstTimeMsg=False
WhiteListQB64FirstTimeMsg=True
SaveExeWithSource=False
EnableQuickNav=True
ShowErrorsImmediately=True
ShowLineNumbers=True
ShowLineNumbersSeparator=True
ShowLineNumbersUseBG=True
BracketHighlight=True
KeywordHighlight=True
MultiHighlight=True
IgnoreWarnings=False
BackupSize=100 'in MB
DebugInfo=False
WikiBaseAddress=https://qb64phoenix.com/qb64wiki

[MOUSE SETTINGS]
SwapMouseButton=False

[DEBUG SETTINGS]
BaseTCPPort=9000
WatchListToConsole=False
AutoAddDebugCommand=True

[IDE DISPLAY SETTINGS]
IDE_SortSUBs=False
IDE_KeywordCapital=False
IDE_SUBsLength=True
IDE_AutoPosition=True
IDE_NormalCursorStart=6
IDE_NormalCursorEnd=8
IDE_AutoFormat=True
IDE_AutoIndent=True
IDE_IndentSUBs=True
IDE_IndentSize=4
IDE_CustomFont=False
IDE_UseFont8=False
IDE_CustomFont$=C:\Windows\Fonts\lucon.ttf
IDE_CustomFontSize=21

[CUSTOM DICTIONARIES]
Instructions1="Add custom keywords separated by the 'at' sign."
Instructions2="Useful to colorize constants (eg @true@false@)."
CustomKeywords$=@

[IDE COLOR SCHEMES]
Instructions1="Create custom color schemes in the IDE (Options->IDE Colors)."
Instructions2="Custom color schemes will be stored in this section."

[IDE WINDOW 1]
IDE_Width=210
IDE_Height=62
IDE_TopPosition=-8
IDE_LeftPosition=-8

[IDE COLOR SETTINGS 1]
SchemeID=1
TextColor=_RGB32(216, 216, 216)
KeywordColor=_RGB32(69, 118, 147)
NumbersColor=_RGB32(216, 98, 78)
QuoteColor=_RGB32(255, 167, 0)
CommentColor=_RGB32(98, 98, 98)
ChromaColor=_RGB32(170, 170, 170)
MetaCommandColor=_RGB32(85, 206, 85)
HighlightColor=_RGB32(0, 88, 108)
BackgroundColor=_RGB32(0, 0, 39)
BackgroundColor2=_RGB32(0, 49, 78)

[COMPILER SETTINGS]
OptimizeCppProgram=False
StripDebugSymbols=True
MaxParallelProcesses=3
ExtraCppFlags=
ExtraLinkerFlags=-Wl,--stack,26777216
UseMiniaudioBackend=True
GenerateLicenseFile=False
Reply
#13
3 settings are from where you probably had multiple versions of QB64 up and running at the same time. The first running instance, you might configure for a blue background, while the second instance could have a black background to help easily distinguish the two running copies.
Reply
#14
(11-01-2022, 10:43 PM)SMcNeill Wrote: 3 settings are from where you probably had multiple versions of QB64 up and running at the same time.  The first running instance, you might configure for a blue background, while the second instance could have a black background to help easily distinguish the two running copies.

Would be an explanation. I've just tried again the adjusted config.ini from 3.4.0 - my changes in the "IDE COLOR SETTINGS" are not even acknowledged.  - Nothing changes in the config.ini either if I call up two or three files via Explorer. It remains with one "IDE COLOR SETTINGS".
Reply
#15
Did a bit more testing.

The Wiki entry for "_MESSAGEBOX()" function would have to be changed for the expected values of the third parameter. It's because the example program uses "question".

On Linux, "CHDIR" doesn't work, must provide a full path as second parameter to "_OPENFILEDIALOG$()" to change to a desired directory. Setting it to the empty string could bring about the "Recent" files list which could be annoying for being inconsistent. This information is kept in an XML-like file called "recently-used.xbel" or something alike into "/home/(user)/.local/share".
Reply
#16
Now I deleted the "IDE COLOR SETTINGS" 2+3 from the config.ini and it works.  Huh -- Ok, the main thing is that it works as desired. 

I just see "IDE WINDOW" existed three times too. - Not anymore, and no problems with the IDE. I give it up.

Code: (Select All)
[GENERAL SETTINGS]
DisableSyntaxHighlighter=False
PasteCursorAtEnd=True
ExeToSourceFolderFirstTimeMsg=True
WhiteListQB64FirstTimeMsg=True
SaveExeWithSource=True
EnableQuickNav=True
ShowErrorsImmediately=True
ShowLineNumbers=True
ShowLineNumbersSeparator=True
ShowLineNumbersUseBG=True
BracketHighlight=True
KeywordHighlight=True
MultiHighlight=True
IgnoreWarnings=False
BackupSize=100 'in MB
DebugInfo=False
WikiBaseAddress=https://qb64phoenix.com/qb64wiki

[MOUSE SETTINGS]
SwapMouseButton=False

[DEBUG SETTINGS]
BaseTCPPort=9000
WatchListToConsole=False
AutoAddDebugCommand=True

[IDE DISPLAY SETTINGS]
IDE_SortSUBs=False
IDE_KeywordCapital=False
IDE_SUBsLength=True
IDE_AutoPosition=True
IDE_NormalCursorStart=6
IDE_NormalCursorEnd=8
IDE_AutoFormat=True
IDE_AutoIndent=True
IDE_IndentSUBs=True
IDE_IndentSize=2
IDE_CustomFont=False
IDE_UseFont8=False
IDE_CustomFont$=C:\Windows\Fonts\lucon.ttf
IDE_CustomFontSize=21

[CUSTOM DICTIONARIES]
Instructions1="Add custom keywords separated by the 'at' sign."
Instructions2="Useful to colorize constants (eg @true@false@)."
CustomKeywords$=@

[IDE COLOR SCHEMES]
Instructions1="Create custom color schemes in the IDE (Options->IDE Colors)."
Instructions2="Custom color schemes will be stored in this section."

[IDE WINDOW 1]
IDE_Width=210
IDE_Height=62
IDE_TopPosition=-8
IDE_LeftPosition=-8

[IDE COLOR SETTINGS 1]
SchemeID=1
TextColor=_RGB32(216, 216, 216)
KeywordColor=_RGB32(98, 167, 196)
NumbersColor=_RGB32(216, 98, 69)
QuoteColor=_RGB32(206, 216, 0)
CommentColor=_RGB32(69, 216, 0)
ChromaColor=_RGB32(170, 170, 170)
MetaCommandColor=_RGB32(177, 59, 226)
HighlightColor=_RGB32(0, 88, 108)
BackgroundColor=_RGB32(0, 0, 108)
BackgroundColor2=_RGB32(0, 88, 177)

[COMPILER SETTINGS]
OptimizeCppProgram=False
StripDebugSymbols=True
MaxParallelProcesses=3
ExtraCppFlags=
ExtraLinkerFlags=-Wl,--stack,26777216
UseMiniaudioBackend=True
GenerateLicenseFile=False
Reply
#17
(11-01-2022, 11:15 PM)mnrvovrfc Wrote: The Wiki entry for "_MESSAGEBOX()" function would have to be changed for the expected values of the third parameter. It's because the example program uses "question".

Good catch. Fixed.
Reply
#18
it's weird. under linux kde distrib based on 22.04 this code (RoCoLoco Revisited - Math puzzle) :

https://qb64phoenix.com/forum/showthread...79#pid8979

compiles correctly with version 3.30-3.40 but nothing appears on the screen. there is a zombie process in the background. launched in command line the program displays freeglut but without any display. the problem occurred with other codes but I thought they were buggy...

no problem with version 0.50 of qb64pe.

if it's a bug, it's going to be difficult to find the cause...
Reply
#19
I got the same thing from that program, and from the "QBZERK". On Manjaro KDE.

In addition, it seems at first run of either program it seg-faults. This is only for information, because any program created by QB64PE could seg-fault at random times while it tries to clean up.

EDIT: Decided to hard-code a few things in @Dav 's program (lines 48 and 50):

Code: (Select All)
SCREEN _NEWIMAGE(640, 480, 32)

tilesize = FIX(480 / grid)

which makes it work successfully. The problem seems to be with "_DESKTOPWIDTH" and/or "_DESKTOPHEIGHT". Maybe also "_NEWIMAGE()" mapping into OpenGL doesn't like floating-point numbers...

EDIT: Managed to fix the "QBZERK" as well, "_SCREENIMAGE" seems to be included in the bad gang:

https://qb64phoenix.com/forum/showthread...92#pid8992
Reply
#20
(11-02-2022, 01:22 PM)mnrvovrfc Wrote: I got the same thing from that program, and from the "QBZERK". On Manjaro KDE.

In addition, it seems at first run of either program it seg-faults. This is only for information, because any program created by QB64PE could seg-fault at random times while it tries to clean up.

EDIT: Decided to hard-code a few things in @Dav 's program (lines 48 and 50):

Code: (Select All)
SCREEN _NEWIMAGE(640, 480, 32)

tilesize = FIX(480 / grid)

which makes it work successfully. The problem seems to be with "_DESKTOPWIDTH" and/or "_DESKTOPHEIGHT". Maybe also "_NEWIMAGE()" mapping into OpenGL doesn't like floating-point numbers...

EDIT: Managed to fix the "QBZERK" as well, "_SCREENIMAGE" seems to be included in the bad gang:

https://qb64phoenix.com/forum/showthread...92#pid8992

it seems that this is it!

Print _DesktopHeight

works with qb64pe 0.50 but not with version 3.40

this is not a freeglut bug since it works with version 0.50 of qb64pe
Reply




Users browsing this thread: 5 Guest(s)