We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 110
» Latest member: JonnyWi
» Forum threads: 125
» Forum posts: 1,479

Full Statistics

Online Users
There are currently 18 online users.
» 1 Member(s) | 16 Guest(s)
Google, WhTurner

Latest Threads
LDArray extension
Forum: Extensions
Last Post: AbsoluteBeginner
5 hours ago
» Replies: 17
» Views: 168
AI learns Small Basic
Forum: Discussion
Last Post: jrmrhrb00
Yesterday, 12:14 AM
» Replies: 6
» Views: 135
Challenge 9 - Quick sort
Forum: Challenges
Last Post: AbsoluteBeginner
11-18-2024, 03:52 PM
» Replies: 47
» Views: 957
How to exit a subroutine ...
Forum: Standard Small Basic
Last Post: litdev
11-11-2024, 12:59 PM
» Replies: 2
» Views: 83
Training program for SB-N...
Forum: Discussion
Last Post: AbsoluteBeginner
11-08-2024, 07:02 AM
» Replies: 13
» Views: 333
SmallBasic Open Edition
Forum: C# Moving from Small Basic
Last Post: KristianVirtanen
11-05-2024, 06:37 PM
» Replies: 21
» Views: 661
UCI Chess Engine
Forum: Challenges
Last Post: Scout
10-30-2024, 10:41 PM
» Replies: 17
» Views: 1,747
Welcome
Forum: Standard Small Basic
Last Post: AbsoluteBeginner
10-30-2024, 10:01 PM
» Replies: 11
» Views: 1,670
Skull Custom Language Cre...
Forum: Discussion
Last Post: z-s
10-28-2024, 04:49 PM
» Replies: 87
» Views: 10,718
SB-Prime Plugins
Forum: Extensions
Last Post: litdev
10-25-2024, 07:52 AM
» Replies: 1
» Views: 74

 
  How to think correctly?
Posted by: AbsoluteBeginner - 07-23-2024, 01:48 PM - Forum: Discussion - Replies (45)

(translated by Google translator)

Hi all.
Friends, I started this topic because it concerns not only each of us, but also Small Basic.

This concerns us because each of us would like to live among SMART people. If there is someone here who are pleased with current a huge number of problems caused by human stupidity, then let this person write about it here. Because I have never met such a person before.

At the same time, our Small Basic has a very good chance of helping many people learn to think correctly.
Even now Small BASIC is easy to use and has great capabilities. The fact that now everyone can create programs in their native language using Aliases in the SB-Prime editor is an incredible achievement.

But, there remains one more big obstacle that does not allow many people to learn how to PROGRAM first the behavior of a computer, and then the sequence of events in their lives. This obstacle is the inability of some people to visualize in their minds the structure they require. ( I mean a structure into which various objects are combined that are necessary to achieve a goal. )

That's why I suggest talking about the program creation tool using DIAGRAM.

I have a program development environment in which I can create executable files by placing icons of various objects on the canvas and drawing the necessary connections between them.
In addition to executable files, I can convert the logic depicted in the diagram into source code for any programming language.
If I use such a diagram, then I do not need to have the natural ability to see in my mind's eye (see in my mind) large enough sections of the structure of software objects. Using a diagram, I can always easily trace the connections between objects and the sequence of actions in the program I am creating.

It’s hard for me to explain in words all the benefits of using such a diagram.
If you are also sure that DRAWING programs will be much easier for ordinary people than WRITING code using tedious lines of text, then tell me.
Then I will continue my story about the diagram in detail and with illustrations.  Shy

Thank you.

Print this item

  How Does Slider Work ?
Posted by: ata - 07-16-2024, 06:51 AM - Forum: Challenges - Replies (6)

Hi everybody Smile  The following does not work properly.Could you please help me understand the slider logic?

Code:
x[1]= Shapes.AddText(1)
Shapes.Zoom(x[1],7,7)
Shapes.Move(x[1],600,120)
For i= 2 To 12
  x[i]= Shapes.AddText(i)
  Shapes.Zoom(x[i],7,7)
  y= Shapes.GetTop(x[i-1])
  Shapes.Move(x[i],600,y+105)
  y= Shapes.GetTop(x[i])
EndFor

LDControls.SliderMaximum= 2
Slider= LDControls.AddSlider(40,600,"V")
Shapes.Move(slider,500,100)
t= LDControls.SliderGetValue(slider)
Stack.PushValue("t",t)
LDControls.SliderChanged= change

Sub change
  t= Stack.PopValue("t")
  z= LDControls.SliderGetValue(slider) 
    If z>t Or z=t Then
      For i= 1 To 12
        Shapes.Move(x[i],600,Shapes.GetTop(x[i])-2)
      EndFor
      v= LDControls.SliderGetValue(Slider)
      Stack.PushValue("t",v)
    ElseIf z<t then
      For i= 1 To 12
        Shapes.Move(x[i],600,Shapes.GetTop(x[i])+2)
      EndFor
      v= LDControls.SliderGetValue(Slider)
      Stack.PushValue("t",v)
  EndIf
EndSub

Print this item

  Extension updates
Posted by: litdev - 07-15-2024, 09:30 AM - Forum: Extensions - Replies (6)

Updated a couple extensions available through SB-Prime Extension Manager.

SmallBasicANN - Added intellisense and some additional reporting during (through ANNProgress event) and after training (GetWeights).  The main ANN algorithm is unchanged.

LitDev - Added methods to detect text and images within another larger image, examples (text in image JLVQ434.000, uses pre-trained ANN by tesseract OCR) (image in image VXDM285.000).

Print this item

  LDBasic.FixFlickr issue
Posted by: AbsoluteBeginner - 07-08-2024, 05:21 PM - Forum: Extensions - Replies (3)

Why am I having such bad luck?  Huh

Line #6: LDBasic.FixFlickr() - Object "LDBasic" not found.
Compilation error.
I removed and reinstalled the extension from the SB-Prime Editor.

Help me again please.  Confused

EDIT LitDev - Split from https://litdev.uk/mybb/showthread.php?ti...827#pid827, referring to XXNS627.000 import

Print this item

  3D Programming in SB
Posted by: litdev - 07-08-2024, 09:29 AM - Forum: Discussion - Replies (12)

(07-07-2024, 06:22 PM)AbsoluteBeginner Wrote: I am surprised by the 3D capabilities of Small Basic that SB received from the LD extension.  Shy
It seems to me that if I see a few more such expressive examples of 3D applications, then I will also have different ideas so that I can test myself in 3D programming.  Rolleyes

To be honest, most of the effort writing this kind of thing is all the extra bits that make a game such as intro screen, scoring, levels, level editor (VLFW776.000-0), testing etc. 

There is also a bit of learning about the basics of 3D - You can see I just use squashed cubes and used spheres which are single commands in SB - you then build objects by having several of them (created and positioned in a for loop).  You need to understand the 3D coordinate system X,Y,Z how to position and point things like objects, lights and the camera and that's about it.

As I say, if you look at the code, the actual 3D stuff is minimal, the rest is just making a game around it.  I am very happy to help you guys get started with this (this is what I hope this forum can be for) - the process is to create small test programs to gain understanding first, just like with your AI game or ZS's extension - its step by step and the magic comes when you put all the little bits together!

Ideally, if a few of you are interested we can start at the beginning and work on 3D, physics or game design.  Otherwise I can only share bits of code occasionally which I don't think gets things so much further forward and may put people off.

How about a 'game of life' in 3D using Elzaimer's idea (https://litdev.uk/mybb/showthread.php?tid=95)?

Print this item

  LitDev Extension version 1.2.29.0
Posted by: litdev - 07-08-2024, 08:28 AM - Forum: Extensions - No Replies

LitDev Extension 1.2.29.0 released.

   

I am also changing the logic so the Extension Manager gets the beta version with minor version increment number.  Since most changes are small/additions which are unlikely to break anything and they are most likely being used in new code.

The main website (and github) version will remain the major version updates and be the only ones with all the extra samples etc, updated once in a while.

So the latest EM beta is now 1.2.29.1.

Print this item

  ZS Extension.
Posted by: z-s - 07-02-2024, 07:44 AM - Forum: Extensions - Replies (65)

Here Is Updated Version Of ZS Extension.
https://www.mediafire.com/file/ajkt2dsma...S.zip/file

Print this item

  ZSCmd Extension
Posted by: z-s - 07-01-2024, 09:35 AM - Forum: Extensions - Replies (3)

I Made A Small Extension For SmallBasic In SharpDevelop As My First Extension In CSharp.
It Is ZSCmd Contain Only One Method For Execute Of Any Cmd Command.
Here You Can Download It : https://www.mediafire.com/file/ftwbu27mv...d.zip/file
I Will Be Very Grateful To Litdev If This Extension Will Be Added In Extension Manager.
Here Is Sample Code To Try

Code:
result = ZSCmd.Execute("dir")
TextWindow.WriteLine(result)

Print this item

  Is it possible to run a SB program on an internet navigator ?
Posted by: Elzaimer - 06-30-2024, 08:41 PM - Forum: Standard Small Basic - Replies (1)

I don't think it is possible but... can I use a SB BASIC program, such as my Concentration test, on a navigator such as Chrome ? 

I have seen on the "Publish" button that we can install Microsoft Silverlight. 
It is to be able to execute à SB program on a navigator ?

Even more, would it be possible on Chrome or Safari on a smartphone ?

Thanks

Print this item

  Interesting projects which are related to MS Small Basic on Itch!
Posted by: eddylo - 06-29-2024, 06:55 PM - Forum: Discussion - No Replies

Smile Hello,

Several interesting projects about MS Small Basic which I discovered on itch.

https://pixelomer.itch.io/sb2cpp

https://dottygame.itch.io/fruitos

https://ratrogue.itch.io/terrobot

https://joe7m.itch.io/asteroids-for-smallbasic

https://ef5tornado11.itch.io/smallbasic-tetris

https://ratrogue.itch.io/games-for-rats

https://magnus-froelund.itch.io/1943
Blush

Print this item