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!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic AI Championship
#51
(translated by Google translator)

Hi all.
Today I can show the next version of the prototype of the "Nature" program.
I used shapes again to create the Server switch. I tried using regular buttons, but I didn't like it.
I learned and first used tooltips in Small Basic.  Shy
I used Message Windows to simulate some events.
...
In this version of the prototype, you can test the correctness of the principle of information exchange between the Server and Clients.
Program code: PJBJ480.021
Reply
#52
There's something wrong with the program ID  Huh
Reply
#53
Scout,

Try # RPSQ181.000
I was able to download it.

(I don’t know how to publish new versions of an already existing program. How can I do this?)  Huh
[-] The following 2 users Like AbsoluteBeginner's post:
  • litdev, z-s
Reply
#54
Hi AB,
I don't know if this is the best or correct way, but the program ID remains the same and only the index is incremented.
For small changes:
Import the existing program
Make the changes
Publish the program

For major changes over several days:
Import the existing program
Copy the entire new source code over the existing program
Publish the program

The import ID is provided with an index that automatically increments.
This must be taken into account when entering the program ID as a comment in the source code   (see RPSQ181.000-1  line 2 ).

I don't know if the default ID can still be changed when publishing. Have fun experimenting.

The optional fields when publishing can be viewed in SB-Prime via "Imported Program Details" (see RPSQ181.000-0).
[-] The following 1 user Likes Scout's post:
  • z-s
Reply
#55
(translated by Google translator)

Thank you, Scout.
Now I have at least one option.
The options I had come up with up to this point seemed incredible to me. I couldn't believe that publishing a new version of an existing program should be done in this way.

If no one finds a serious bug in my latest version of the prototype, then I will continue development.
The most incomprehensible question for me is how to transmit an array of data in a message.
Am I correct in assuming that the message being passed is always a string?

Thank you.
Reply
#56
Everything in Small Bsic is a type called Primitive that includes numbers, strings and arrays and any of them can be passed about easily, e.g. "1=Hello;2=World;" is an array.  What SB does with data is context dependent, numbers can be multiplied, arrays can be looped through.

So just have a go and I bet it will just work!

This single type in SB is one of its neat features.
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, z-s
Reply
#57
AB After dot in program code comes three zeros so your previous program code corrected is this : PJBJ480.000

http://smallbasic.com/program/?PJBJ480.000

AB Is this GUI Only ?? I Cant Find How To Connect Client.
ZS
[-] The following 1 user Likes z-s's post:
  • heloo
Reply
#58
(04-25-2024, 04:28 AM)z-s Wrote: AB After dot in program code comes three zeros so your previous program code corrected is this : PJBJ480.000

http://smallbasic.com/program/?PJBJ480.000

Hello, Z-S.
I agree with you.
I just couldn't publish a new version of the "Nature" program, giving it the name PJBJ480.021.
The system offered me a different name. The system did not allow me to insert my new name using Ctrl + V.
The system allowed me to enter a name PJBJ480.021 using the keyboard. But it turned out that my program with this name was not published.
That's how I ended up at a dead end.  Smile
---
I will only now start working with Clients.
[-] The following 1 user Likes AbsoluteBeginner's post:
  • z-s
Reply
#59
Ok I Will Be Waiting For The Project ReleaseSmile
ZS
[-] The following 1 user Likes z-s's post:
  • heloo
Reply
#60
(translated by Google translator)

Hi all.
For many days now I have been feeling sorry for the Rabbit. The Rabbit doesn't see the Snake. The Rabbit's ability to survive depends almost entirely on luck.
But today I thought that not everything is so simple.
The snake also has vulnerability. A snake cannot crawl through itself.
Thus, the Rabbit has the probability of the occurrence of such a sequence of jumps that will provoke the Snake to move along a trajectory that leads the Snake to a dead end.
Since the Rabbit sees the edges of the playing field, combinations of the directions of the jumps and skillful use of the walls and corners of the field can greatly complicate the life of the Snake.

Smile
[-] The following 2 users Like AbsoluteBeginner's post:
  • litdev, z-s
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)