Search found 83 matches

by hellomike
Sat 04 Apr 2020, 21:14
Forum: BBC BASIC language
Topic: Issue with new 6.13a variables?
Replies: 9
Views: 94

Re: Issue with new 6.13a variables?

The sources are not all in the same directory. I seem to remember that in order to make @dir$ point to the right current directory for each program, CHAIN or CALL didn't work as @dir$ keep pointing to the launcher app or even no path in case of the @lib$ system variable. Only launching 'bbcwrun6.exe...
by hellomike
Sat 04 Apr 2020, 14:06
Forum: BBC BASIC language
Topic: Issue with new 6.13a variables?
Replies: 9
Views: 94

Re: Issue with new 6.13a variables?

For the BB4W programs that I use frequently I have a (compiled) launcher app that starts them using the OSCLI mentioned. ....... BB4WEXE$="""C:\Program Files (x86)\BBC BASIC for Windows\bbcwrun6.exe"" " BB4WIDE$="""C:\Program Files (x86)\BBC BASIC for Windows\bbcwin6.exe"" " ....... IF INKEY(-1) Cmd...
by hellomike
Sat 04 Apr 2020, 07:51
Forum: BBC BASIC language
Topic: Issue with new 6.13a variables?
Replies: 9
Views: 94

Re: Issue with new 6.13a variables?

Once again you were on the right track Richard! Throughout the day I have a program active which I hardly notice anymore! I ran 'upgrade.exe' again with this program active and this is the DIR afterwards: Directory of C:\Program Files (x86)\BBC BASIC for Windows 04-04-2020 09:35 <DIR> . 04-04-2020 0...
by hellomike
Fri 03 Apr 2020, 17:28
Forum: BBC BASIC language
Topic: Issue with new 6.13a variables?
Replies: 9
Views: 94

Re: Issue with new 6.13a variables?

Yes, adding '*HELP' indeed explains it Richard. When running in the IDE, it is version 6.13a. I also added '*HELP' in the calling program. The calling program reports 6.13a and the output in the 2nd window, from the called program reports 6.12a. Both sources are in the same directory. So I guess bbc...
by hellomike
Fri 03 Apr 2020, 13:08
Forum: BBC BASIC language
Topic: Issue with new 6.13a variables?
Replies: 9
Views: 94

Issue with new 6.13a variables?

Most probably I'm missing something but I need some explanation why the following doesn't work. First I have this program: PRINT @vdu.o.x% PRINT @char.x% END Running it prints two values. All is well. Then I have the following program that executes the previous program (called 'NewProg.bbc') through...
by hellomike
Wed 18 Mar 2020, 19:11
Forum: BBC BASIC language
Topic: Corona simulation challenge
Replies: 11
Views: 321

Re: Corona simulation challenge

But with the POINT() or TINT() approach, I think there is no need for an inner FOR J% loop which speeds things up again.

Anyhow thanks for all the advise. The challenge was of course already accomplished by your smart solution.
by hellomike
Wed 18 Mar 2020, 13:25
Forum: BBC BASIC language
Topic: Corona simulation challenge
Replies: 11
Views: 321

Re: Corona simulation challenge

Yes Richard, you are right. I see what you mean. I wonder if the collision math can be more like: newx = x(I%) + u(I%) : newy = y(I%) + v(I%) IF POINT(newx + SIZE, newy + SIZE) <> 15 THEN REM I'm about to bump into someone at the new position.... .... ENDIF .... Did some testing in that direction bu...
by hellomike
Tue 17 Mar 2020, 22:26
Forum: BBC BASIC language
Topic: Corona simulation challenge
Replies: 11
Views: 321

Re: Corona simulation challenge

Impressive attempt Richard and super fast. For myself I added a NOMOVE value for people that don't move around and changed code as follows: IF RND(PEOPLE / NOMOVE) > 1 THEN u(I%) = SPEED * COS(direction) v(I%) = SPEED * SIN(direction) ENDIF (which fails when patient zero happens to not move around :...
by hellomike
Tue 17 Mar 2020, 10:15
Forum: BBC BASIC language
Topic: Corona simulation challenge
Replies: 11
Views: 321

Corona simulation challenge

Just a thought. Washington Post Article Is there anyone smart enough to code the simulation using BB4W and (or) BBC BASIC for SDL 2.0 as is shown in the mentioned site? I myself would probably tackle it somehow but it would take a very long time and certainly not in the most effective way as I have ...
by hellomike
Thu 12 Mar 2020, 10:50
Forum: Suggestion Box
Topic: Tabulator in IDE
Replies: 9
Views: 320

Re: Tabulator in IDE

And simply because of duckduckgo's advertises with "We don’t store your personal information. Ever." you believe them? Well, yes, I know it is off topic but just saying.....