Author Topic: QB64-Steves v0.954c1/d3  (Read 1551 times)

SMcNeill

  • Hero Member
  • *****
  • Posts: 2414
    • Email
Re: QB64-Steves v0.954c1/d1
« Reply #60 on: February 04, 2013, 11:07:32 AM »
It's going to be a bit before another update I think:  I had to revert back to version d1 and start over once again.   And the worst part of this back-up and redo?   I didn't have to!   :'(

But I did learn something quite valuable!  :D

You can generate IDE errors with nothing more than mistakes in the Color Config file (which is what I did).   I was adding color support for the borders, and to allow a user to choose what color or even symbol they wanted for their border (Maybe you like * borders down the side more than │(chr$(179)). )  In the text file, I simply wanted to leave the chr$(179) as a reminder of what the original was.   Notepad didn't want to save it as plain text with an extended ANSI code in it, so it saved it as a UTF-8 (?) file.

And from that point on, everytime I loaded QB64 to test the changes I got that BEEEEEEEP "IDE Error".   So I backed up and tried to remove the problem... And kept backing up to find the problem... And kept backing up... Until I'd almost went batty looking for the problem, and then I just said "ARRRGGH!  To BEEEEEP with it!"  And I reverted back to version d1.

Which STILL generated the IDE error!!

Which made me finally think, "Duh!  It might not be reading the Config file properly!"....

So, I remade the config file, and Life is Good.    No more "IDE Error"!   

And I've now tossed away several hours of progress!    :-[  Just to a bad config file!   :'( :'(  >:( >:(

*****************************************

So, let my experience be a warning to everyone else out there who downloads this and plays with it.  Be careful how and what you save in the config file.  Bad values will cause QB64 IDE to say "IDE Error" and laugh at you.   It's certainly laughing at me now....   :P
http://bit.ly/TextImage -- Library of QB64 code to manipulate text and images, as a BM library.
http://bit.ly/Color32 -- A set of color CONST for use in 32 bit mode, as a BI library.

http://bit.ly/DataToDrive - A set of routines to quickly and easily get data to and from the disk.  BI and BM files

SMcNeill

  • Hero Member
  • *****
  • Posts: 2414
    • Email
Re: QB64-Steves v0.954c1/d2
« Reply #61 on: February 04, 2013, 12:28:49 PM »
Update d2:

After losing a good bit of effort to that evil config file, I decided to back up and simply return to the easy stuff at the moment, and I've finished making all the colors in our ideshowtext sub customizable.

What we can customize now is:

Code: [Select]
-1 = High Graphic Mode (0 for Screen 0, -1 for 256 Color Mode)
--------------------------------------------------------------
-1 = Show Date (0 to not show, -1 to show)
-1 = Show Time (0 to not show, -1 to show)
0,3 = Date Color, Background
0,3 = Time Color, Background
15 = Cursor Color (Our blinking cursor prompt)
--------------------------------------------------------------
3,40 = Focus Line Color, Background
15,1 = Non-Focus Line Color, Background
40,14 = Single Line Select Color, Background (mouse highlighted text, for single line)
14,15 = Multi Line Select Color, Background (mouse highlighted text, for multiple lines)
11 = Comment Color
14 = Quote Color
--------------------------------------------------------------
40,1 = Left Border Color, Background
179 = Left Border Symbol. Usually chr$(179).  Enter the ASCII code here, not the symbol itself.
14,0 = Book Mark Color, Background
197 = Book Mark Symbol.  Usually Chr$(197).  Enter the ASCII code here, not the symbol itself.
0,3 = Cursor Position (the bottom right line counter/position) Foreground/ Background

Everything is going to slow down from this point out I think, as I'm going to be hoping back and forth between separate subs and functions to work on configuring the rest of our display, so enjoy the freedom this version offers for now and I'll see what I can do about hunting down the rest of the screen and adding it to our custom display.   ETA is completely uncertain at this moment, as I'm not sure how many subs and functions and such I'm going to be snooping around in and changing things to make the IDE prettier.

If it's only 1 other sub, then the color config part might be done in a day or two.   If it's scattered in a dozen subs, I might get frustrated, need a break, and not finish up for a month.  QB64 has a lot of lines in it, and the display certainly uses a whole bunch of them!   And this is just adding a LOT more code into an already complex system.   

I'll get there, and we'll have a nice little IDE overhaul when this is all said and done.   I just won't promise how long it'll take us to go from point d2 to point dFinished....  :D

(If anyone has requests for something that they think should be added to the IDE, *NOW* would be the time to ask it.  I won't promise I can accommodate and do what you'd like, but as long as I'm tearing everything to pieces and redoing all that I am, NOW would be the time to put in a wish list.) 

***********************

Side note:  You'll need to edit your old config file to work with this version as we have extra fields added in a few different places now.   Be aware of this plz, and thank you.  ;)
http://bit.ly/TextImage -- Library of QB64 code to manipulate text and images, as a BM library.
http://bit.ly/Color32 -- A set of color CONST for use in 32 bit mode, as a BI library.

http://bit.ly/DataToDrive - A set of routines to quickly and easily get data to and from the disk.  BI and BM files

DSMan195276

  • Hero Member
  • *****
  • Posts: 1973
  • Yes
    • Email
Re: QB64-Steves v0.954c1/d2
« Reply #62 on: February 04, 2013, 12:36:39 PM »
Steve I think the problem you had is that Chr(179) isnt' actually defined in ASCII, since ASCII only covers the first 128 characters. Everything after that was defined as 'Extended ASCII' and is somewhat platform specefic (QBasic used just one of the multiple Extended ASCII character sets). Because of that, the | is actually a different character code in say UTF-8 (Which is somewhat of a standard now). I assume that caused the error you had. It'll work if you create the config file using a QB64 program and writing Chr$(179) that way, or figure out what UTF-8 character 179 is, and then use that instead.

Matt
"Cast your cares on the Lord and he will sustain you; he will never let the righteous be shaken" -- Psalm 55:22
QB64 Linux Installer

SMcNeill

  • Hero Member
  • *****
  • Posts: 2414
    • Email
Re: QB64-Steves v0.954c1/d2
« Reply #63 on: February 04, 2013, 12:55:51 PM »
I just changed my comment from:
Code: [Select]
"┼"= Book Mark Symbol.  Usually Chr$(197) or "┼" for default to:
Code: [Select]
197 = Book Mark Symbol.  Usually Chr$(197).  Enter the ASCII code here, not the symbol itself.
I figured a swap to ASCII code input would work better and keep others from running into that same error that I ran into, if they use Notepad as well to edit the file.   (Note:  QB64 does a good job as a text editor for something simple like this, and it has no problem with the extended character sets. ;) )
http://bit.ly/TextImage -- Library of QB64 code to manipulate text and images, as a BM library.
http://bit.ly/Color32 -- A set of color CONST for use in 32 bit mode, as a BI library.

http://bit.ly/DataToDrive - A set of routines to quickly and easily get data to and from the disk.  BI and BM files

DSMan195276

  • Hero Member
  • *****
  • Posts: 1973
  • Yes
    • Email
Re: QB64-Steves v0.954c1/d2
« Reply #64 on: February 04, 2013, 01:07:07 PM »
It is ASCII code input ;) That's part of the problem, the world stopped using ASCII a while ago, they moved onto Unicode and UTF-8, which is where the problem is, and QB64 actually does a good job of converting them, as it converts the extended ASCII into the correct Unicode numbers. The solution is to just not put any extended characters into the code directly, instead using CHR$() like you have. The bottom of UTF-8 is ASCII so in that sense compatibility between the two is a non-issue, I regularly edit QB64 code using other text editors with no problem.

Matt
"Cast your cares on the Lord and he will sustain you; he will never let the righteous be shaken" -- Psalm 55:22
QB64 Linux Installer

SMcNeill

  • Hero Member
  • *****
  • Posts: 2414
    • Email
Re: QB64-Steves v0.954c1/d3
« Reply #65 on: February 07, 2013, 10:56:23 PM »
Update v. d3

This version is finally starting to work in 256 color graphic mode, with support for custom fonts.

Our biggest change in the IDE (besides the graphic mode and customizable colors) is that while in the graphic mode, we can no longer use the DISPLAY options from the menu.   Graphics are a complex thing to implement in the IDE (it was all originally written in SCREEN 0), and trying to redraw and resize the graphics while in the program are just beyond the level of brain power that I want to invest at the moment to sort out.  Trust me, I gave it a shot and it kept dying a horrible death instead of resizing... (I'll probably come back to it sometime in the future as I hate to feel like

So, to load a custom font, font size, and screen size in graphics mode, we load the settings in the "QB64 Color Config.txt" file where we enable the high graphic mode.     I figured this would be an easy way to add the ability that should keep us from crashing so easily.   (After all, how many times are we actually changing the IDE once we set the size and font we like?)

I still haven't added ALL the color optimizations that I want, but it's more than we had before.  Give it a shot and see how (and if) it works for you, and kindly let me know if it crashes and dies for you, and what you did to generate the crash.


http://bit.ly/TextImage -- Library of QB64 code to manipulate text and images, as a BM library.
http://bit.ly/Color32 -- A set of color CONST for use in 32 bit mode, as a BI library.

http://bit.ly/DataToDrive - A set of routines to quickly and easily get data to and from the disk.  BI and BM files

Omega

  • Sr. Member
  • ****
  • Posts: 377
    • Recall site..
    • Email
Re: QB64-Steves v0.954c1/d3
« Reply #66 on: February 11, 2013, 04:27:08 PM »
Sweet nice work dude.

codeguy

  • Hero Member
  • *****
  • Posts: 3552
  • what the h3ll did i name that code?
    • stuff at dkm
    • Email
Re: QB64-Steves v0.954c1/d3
« Reply #67 on: February 11, 2013, 05:11:47 PM »
you have my permission to use OpenInclude(), my recursive $INCLUDE file loader -- even handles nested $INCLUDEs. this will be handy when you wanna have a monolithic code file rather than tons of $INCLUDEd files scattered here and there on your hard drive. and especially so when throwing code demos onto qb64 so ya don't have to post them in a separate post or code box. and also my recursive StringReplace() routines or anything else you find that might come in handy.
http://denteddisk.forums-free.com/make-an-appointment-with-the-resident-code-guru-f34.html

SMcNeill

  • Hero Member
  • *****
  • Posts: 2414
    • Email
Re: QB64-Steves v0.954c1/d3
« Reply #68 on: February 11, 2013, 05:48:41 PM »
Thanks for that, codeguy.  I'm certain I'll be able to make good use of them for different things.  :)
http://bit.ly/TextImage -- Library of QB64 code to manipulate text and images, as a BM library.
http://bit.ly/Color32 -- A set of color CONST for use in 32 bit mode, as a BI library.

http://bit.ly/DataToDrive - A set of routines to quickly and easily get data to and from the disk.  BI and BM files

wiggins

  • Jr. Member
  • **
  • Posts: 50
Re: QB64-Steves v0.954a
« Reply #69 on: February 22, 2013, 07:49:45 AM »
That's how he started his printing business. He used to call himself Zerox...  ;)

(Zerox) OMG....LOL Clippy.....sure glad you did not call him sperry univac or some other company name that is extinct.