QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Qwerkey on August 18, 2021, 03:32:43 pm

Title: Call for Library Submissions
Post by: Qwerkey on August 18, 2021, 03:32:43 pm
Dear Members,

If you have a Project (in Programs) which you would like to consider for submission into the Library (either Games or Samples and Utilities Gallery), then please contact me (@Qwerkey) or @Junior Librarian or @bplus at this site.  Alternatively, you may contact me at the QB64 Discord Server where any subsequent discussions about the submission will take place.  Similarly, if you have written a useful guide for methods in QB64, then submit this for the Articles section.

If you wish to recommend someone else's work which you have been impressed by then by all means contact us.

Thanks, Qwerkey (Richard)

This post will appear in Discussions at regular intervals so that a wide cross-section of the membership will be aware of this facility.
Title: Re: Call for Library Submissions
Post by: Pete on August 18, 2021, 06:38:01 pm
I nominate my latest game project, Ghost Town! If you need to read the tutorial, here it is...

Code: QB64: [Select]
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  

On a less serious note, what do you think about the graphics cursor thread?

https://www.qb64.org/forum/index.php?topic=4122.0

Frankly, If I had QB64, back in the day, I would have made my business apps with graphics, and yes, I would have needed to make a graphics cursor, as it is not native to the graphics environment.

Anyway, just throwing the idea around.

Pete
Title: Re: Call for Library Submissions
Post by: doppler on August 19, 2021, 08:21:33 am
@Pete I vote Pete off the island.
Pete is cross posting his ghost town project message.  It's far from complete and should not be included in any library yet.  It's so far incomplete, the code is practically invisible.  Besides if it's a game what's the purpose.  There is absolutely nothing to do in that place.

My three cents: I got more to say than the average user.
Title: Re: Call for Library Submissions
Post by: Qwerkey on August 19, 2021, 09:43:08 am
On a less serious note, what do you think about the graphics cursor thread?

https://www.qb64.org/forum/index.php?topic=4122.0
Pete

@Pete Sorry I didn't make a contribution to your post which I agree you might have expected me to.  However, my coding efforts take weeks/months (even for simple stuff) - the Coin Spin thing took ages - your contributors there have the skills to provide useful answers, but my mulling would be of no use, I regret.


@doppler Yes: keep that humour flowing!
Title: Re: Call for Library Submissions
Post by: Pete on August 19, 2021, 02:51:41 pm
Not a contribution. I was asking you, as part of the "Librarian" project, if you thought continuing the graphics cursor projects would be worth it for a library contribution. I mean ideally, it would be great if some future release of QB64 could include a native graphics cursor and a way to manipulate it as the LOCATE statement does in SCREEN 0, but if that never happens, I would think some graphics users could benefit from adding a text and cursor in some interactive game, for example.

Wait, I'm on an Island? I vote me off, too! I can't take any more coconut cream pies in the face!

Pete
Title: Re: Call for Library Submissions
Post by: Qwerkey on August 19, 2021, 03:11:54 pm
Pete, if it's Library you're thinking, I'll give it some thought.
Title: Re: Call for Library Submissions
Post by: bplus on August 19, 2021, 03:19:39 pm
I wouldn't mind seeing a multi-line textbox with color control and optional insert or type-over cursor that can handle different fonts.

Input boxes or single line inputs (like for fields) we have almost as many versions as tic-tac-toe.
Title: Re: Call for Library Submissions
Post by: doppler on August 20, 2021, 08:08:30 am
coconut cream pies in the face!

Pete

@Pete Alright whoever is throwing the pies knock it off.  We already discussed since there is only sand, coconut trees and no rocks.  We were going to throw coconuts.  The only option talked about was "Husk" on or not.
End-of-message... Resume bombardment.
Title: Re: Call for Library Submissions
Post by: Dav on August 20, 2021, 10:20:12 am
I've made a few puzzles that could be submitted.  Would it be better to pack them together as one puzzle pack or submit individually?

- Dav
Title: Re: Call for Library Submissions
Post by: bplus on August 20, 2021, 12:59:41 pm
I've made a few puzzles that could be submitted.  Would it be better to pack them together as one puzzle pack or submit individually?

- Dav

I like collecting them. For librarians completed works works better than constant updating. So I would suggest one at a time. Is this:
https://www.qb64.org/forum/index.php?topic=2094.msg113243#msg113243
done?
I really like that and wonder about making a puzzle maker for it.
Title: Re: Call for Library Submissions
Post by: RhoSigma on August 27, 2021, 11:38:20 am
I'd like to suggest the ParseLine() function to be added to the Informatics section in the Samples Gallery.

https://www.qb64.org/forum/index.php?topic=4142.msg134974#msg134974

Title: Re: Call for Library Submissions
Post by: bplus on August 27, 2021, 11:53:59 am
I'd like to suggest the ParseLine() function to be added to the Informatics section in the Samples Gallery.

https://www.qb64.org/forum/index.php?topic=4142.msg134974#msg134974



Sounds good to me, but did you get it finished in one? ;-))
Title: Re: Call for Library Submissions
Post by: RhoSigma on August 27, 2021, 12:04:58 pm
Sounds good to me, but did you get it finished in one? ;-))

Yes, did code and thoroughly tested it during the past 2 weeks, couldn't find any obvious bugs.

To be sure, let's wait two or three days, time for other people to test...
Title: Re: Call for Library Submissions
Post by: RhoSigma on September 02, 2021, 08:56:52 am
Guess we can add it it now @bplus,

the function is online for 5 days now, has more than 200 views and several replies by other members, but no obvious error reports.

https://www.qb64.org/forum/index.php?topic=4142.0
Title: Re: Call for Library Submissions
Post by: bplus on September 02, 2021, 11:15:47 am
Guess we can add it it now @bplus,

the function is online for 5 days now, has more than 200 views and several replies by other members, but no obvious error reports.

https://www.qb64.org/forum/index.php?topic=4142.0

Honestly I haven't tested to try and break, and Qwerkey is the only gatekeeper for library now, I just advise.
But I have advised him it looks pretty good to me and if you say it's been tested I believe you.

Title: Re: Call for Library Submissions
Post by: Dimster on September 02, 2021, 12:28:25 pm
Seems there was some really good discussions on different Sorting Routines with sample code and some really good discussions and routines for Child Windows. Could these be captured in our Library or are they not the type or standards for the Library?
Title: Re: Call for Library Submissions
Post by: bplus on September 02, 2021, 01:15:29 pm
Seems there was some really good discussions on different Sorting Routines with sample code and some really good discussions and routines for Child Windows. Could these be captured in our Library or are they not the type or standards for the Library?

I think code should be posted in Programs so that feedback and updates can be tracked publicly.

Steve has nice Memory sort in Library and qsort is very good general purpose sorter and should serve most very well. Sure, for special cases there are better, for special cases, and for those who want to track all those checkout Rosetta Code and all their variations.

Child Windows sounds interesting, someone have something easy and dependable?

Does anyone need a copy of Qsort?
Title: Re: Call for Library Submissions
Post by: Dimster on September 02, 2021, 01:28:06 pm
I don't believe I have come across Qsort. I would be interested in a sample code for this routine. Thanks b+
Title: Re: Call for Library Submissions
Post by: bplus on September 02, 2021, 02:41:33 pm
Using Q short for Quick maybe you've seen that before :)
https://en.wikipedia.org/wiki/Quicksort

I threw together a Q Demo:
Code: QB64: [Select]
  1. Const nItems = 100
  2. ReDim Shared sa$(1 To nItems) 'setup with string array sa$() shared so dont have to pass as parameter
  3. For x = 1 To nItems ' make a random list to sort
  4.     b$ = ""
  5.     r = (Rnd * 5) \ 1 + 2
  6.     For i = 0 To r
  7.         b$ = b$ + Mid$("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.?", (Rnd * 64) \ 1 + 1, 1)
  8.     Next
  9.     sa$(x) = b$
  10.     Print b$,
  11. Print "Press any to sort"
  12. QSort 1, nItems
  13. For i = 1 To nItems
  14.     Print sa$(i),
  15.  
  16.  
  17. ' modified for QB64 from JB
  18. ' This is the best all purpose sort routine around, don't worry how it works, it just does!
  19. ' To use this sub rountine store all the string values you want to sort into sa$() array
  20. ' call Qsort with Start = 1 and Finish = number of Items in your array
  21. Sub QSort (Start, Finish) 'sa$ needs to be   DIM SHARED !!!!     array
  22.     Dim i As Long, j As Long, x$
  23.     i = Start
  24.     j = Finish
  25.     x$ = sa$(Int((i + j) / 2))
  26.     While i <= j
  27.         While sa$(i) < x$
  28.             i = i + 1
  29.         Wend
  30.         While sa$(j) > x$
  31.             j = j - 1
  32.         Wend
  33.         If i <= j Then '<< makes this an ascending sort
  34.             Swap sa$(i), sa$(j)
  35.             i = i + 1
  36.             j = j - 1
  37.         End If
  38.     Wend
  39.     If j > Start Then QSort Start, j
  40.     If i < Finish Then QSort i, Finish
Title: Re: Call for Library Submissions
Post by: Dimster on September 02, 2021, 03:19:40 pm
Ya that's the quick sort I've been using and you are right, best one for stuff I do but I use it for values and can see now how it works with string arrays. Thanks B+
Title: Re: Call for Library Submissions
Post by: bplus on September 02, 2021, 04:08:04 pm
I think what makes it an ascending sort is commented wrong, it's the compares to the pivot x$ that determines ascending or descending which BTW I made half way between to save time as opposed to random pivot.
Title: Re: Call for Library Submissions
Post by: Qwerkey on September 03, 2021, 05:38:13 am
@Dimster @bplus There is a thread (as Dimster says) on Sort Routines, and likewise I did think at the time that this might be  a Library entry.  I'll investigate & discuss with bplus.  Maybe look at Child Windows later.
Title: Re: Call for Library Submissions
Post by: Qwerkey on September 05, 2021, 05:26:48 am
Guess we can add it it now @bplus,

the function is online for 5 days now, has more than 200 views and several replies by other members, but no obvious error reports.

https://www.qb64.org/forum/index.php?topic=4142.0

Rho, you're blocking my Personal Messages.  Could you unblock?  The Library Cataloguer (me) likes to discuss any private matters relating to the Library there.  Thanks, Qwerkey
Title: Re: Call for Library Submissions
Post by: Qwerkey on September 05, 2021, 05:28:56 am
Apologies to general membership, should have put @RhoSigma in previous reply.
Title: Re: Call for Library Submissions
Post by: RhoSigma on September 05, 2021, 05:34:25 am
Rho, you're blocking my Personal Messages.  Could you unblock?  The Library Cataloguer (me) likes to discuss any private matters relating to the Library there.  Thanks, Qwerkey

Ok, @Qwerkey it's unblocked now for all members...