Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - OldMoses

Pages: [1] 2 3 ... 32
1
Welcome Dr. Kerr,

Having coded a space flight simulator for a table top role playing game, that bears NO resemblance to a real guidance system, I can attest to the fact that precision has its limits in QB64. Particularly with respect to print formatting. As Bplus says, I've occasionally had to resort to formatting functions and other such expedients to get where I want to go.

That said, QB64 is a modern upgrade of QBasic/QB4.5 and adds gobs of functionality, previously undreamed of for us QBasic users. I just wouldn't get on a space ship that used it...yet.

2
QB64 Discussion / Re: What's your philosophy about constants?
« on: March 23, 2022, 10:40:39 pm »
I've used them on occasion, mostly for conversion factor stuff, but generally don't see the point. Use a shared variable that you don't change and it's the same thing as far as I can tell.

3
Programs / Re: Next one Music Visualizer
« on: March 18, 2022, 03:38:34 pm »
That's an amazing effect. I ran a mp3 song through it and noticed the amplitude of the terrain suddenly increased significantly while the sound remained relatively the same. Must have been picking up something subtle in the encoding...

4
QB64 Discussion / Re: Has $Debug been working well for you?
« on: March 10, 2022, 01:14:05 pm »
Thanks Fellippe, that works like old times and grabs the best of both worlds. Much appreciated.

5
QB64 Discussion / Re: Has $Debug been working well for you?
« on: March 10, 2022, 07:23:43 am »
Just turning off the auto add feature made it reasonable to use again.

6
QB64 Discussion / Re: Has $Debug been working well for you?
« on: March 10, 2022, 06:46:41 am »
I'm not a heavy user of debug features, but the few times I've used it, I've found it helpful. A worthwhile feature in general. I wouldn't characterize it as a particularly intuitive a system, but I could get over that by more use and familiarity.

If I were to critique a personal negative aspect, it would be the loss of full line highlighting by clicking at the line number bar. I always liked being able to do that. I could easily make multiples of code lines, make small changes in each and then comment toggle among them. It's gone now, which I found an irritation.

As it is now, I have to be very precise with my mouse dragging from column 1 of the line I want to column 1 of the next line, to highlight a code line for cut/paste ops. My hands are those of an arthritic farmer, not a surgeon, and I have to maneuver very close to the line number bar to do this and If I'm not careful, it's constantly asking if I want to add $DEBUG, which I then have to cancel. If I actually want $DEBUG, I can go do it manually. The auto add part of it, otherwise, interferes with my workflow.

PS I see from an earlier post how to turn off the auto add feature, which helps. Still I can no longer single click to highlight a line. I suppose I better hang on to 1.5

7
Programs / Re: Spider animation
« on: March 08, 2022, 06:06:25 am »
Can't wait to see how it looks when you install the vicious factor.

8
Programs / Re: Ray Trace a translation from SpecBAS
« on: February 27, 2022, 08:12:34 am »
I "sort of" recognize certain equations in this, from using a simple, single ray algorithm to check for line of sight occlusions in a 3D environment. Of course rendering these sorts of light and reflective views is what it's really good for. It's stuff that I wish I understood better.

It's amazing how much this is doing, for such a small amount of code. Nicely done.

9
Thanks for looking at this, your _MEM solution works fine for me too.

I've worked with files somewhat, but I'm still pretty green at it, and was testing the efficacy of using PUT without the loop structure. The wiki seems to indicate that QB64 can do this, and my first inclination is to wonder what it is that I"M doing wrong.

To this point, I've always used UBOUND derived loops for array PUTs, and was investigating if I could save some keyboarding. Apparently, sometimes the longer road is the better route.

10
QB64 Discussion / Compilation error: simple fixed string binary file PUT
« on: February 18, 2022, 01:02:24 pm »
Am I doing something wrong? My understanding is that QB64 can do a massed array PUT

Code: QB64: [Select]
  1. 'OPTION BASE 1
  2. SCREEN _NEWIMAGE(1024, 512, 32)
  3.  
  4. DIM An(1 TO 10) AS STRING * 10
  5.  
  6. FOR x% = 1 TO 10
  7.     READ An(x%)
  8. NEXT x%
  9.  
  10. OPEN "animals.dat" FOR BINARY AS f&
  11. PUT f&, , An()
  12. PRINT "done"
  13.  
  14. DATA dog,cat,bison,elephant,weasel,bear,skunk,ocelot,platypus,pig
  15.  

Compile log results in:
Code: QB64: [Select]
  1. In file included from qbx.cpp:2185:
  2. ..\\temp\\main.txt: In function 'void QBMAIN(void*)':
  3. ..\\temp\\main.txt:41:111: error: lvalue required as unary '&' operand
  4.  sub_put(*__LONG_F,NULL,byte_element((uint64)(&(qbs_new_fixed(&((uint8*)(__ARRAY_STRING10_AN[0]))[(0)*10],10,1))),(10*(__ARRAY_STRING10_AN[2]&1)*__ARRAY_STRING10_AN[5])-(10*(0)),byte_element_3),0);
  5.                                                                                                                ^
  6. compilation terminated due to -Wfatal-errors.
  7.  

11
Programs / Re: Ken's U.S. Flag version 4 - With moving clouds
« on: February 09, 2022, 12:58:19 pm »
When I change hills the memory does tick upward in Task Manager.

12
QB64 Discussion / Re: Sort Routines
« on: February 09, 2022, 11:37:42 am »
I often execute forum searches that come up with nothing. Even when I know many of the search terms, or distinctly remember seeing a thread, it seems to not find the things that I know damn well are there. Then there is the picking out every instance of a word and filling the search with junk, as in "I've been out of sorts lately", or "can I get some help sorting out a bug?" At that point I might just as well go thread by thread, and life's not in endless supply. As Dimster said "it has its limitations". So when those things happen, and my patience with it ends, I go out into the general net and find mostly C++ code, which I still find incomprehensible.

This was a nice little package, that was in one place, which I appreciated and said so. I've lately been trying to wrap my meager brain limitations around a sorting problem. It was not my intention to offend, but I have no control over what others find offensive.

13
Programs / Re: Tool to convert word list to DATA lines
« on: February 08, 2022, 08:20:57 pm »
Permanently enshrined in my SierraKen folder. An eminently useful tool. Writing data fields is often a supreme pain.

I find it much easier to open Notepad, type a word and slam the enter key. Whereas, typing a word and slamming the ',' is a bit harder. I end up with a bunch of errors from accidentally hitting the '.' [see how similar they look]

Now there's the best of both worlds.

14
QB64 Discussion / Re: Welcome and Presentation?
« on: February 08, 2022, 04:47:27 pm »
Welcome,

The only point I would add to this is regarding SUB/FUNCTION differences.

It might also be noted that a FUNCTION can do many SUB-like things, even calling on other SUBs. In its attempt to obtain a value to return it can handle quite complex tasks. Manipulate images, display data lists, access files, obtain mouse and key inputs, etc.

15
QB64 Discussion / Re: Sort Routines
« on: February 07, 2022, 12:53:29 pm »
Been looking for some examples of various sort routines. Hard to find them in QBASIC dialects. That'll be useful. Thanks for posting.

Pages: [1] 2 3 ... 32