which is Best ai platform supports B4X?

M.LAZ

Active Member
Licensed User
Longtime User
I need to subscribe for ai platform which supports b4x.. any advice please ..
 

aeric

Expert
Licensed User
Longtime User
why not you try each of them first then only decide?
 

epiCode

Active Member
Licensed User
I need to subscribe for ai platform which supports b4x.. any advice please ..
there is no best.
while some will do something better on one aspect it will be horrible on another.
check the following models:
grok / copilot / gemini / claude / chatgpt / deepseek / llama / mistral / qwen
 

M.LAZ

Active Member
Licensed User
Longtime User
I asked them but I don't know if they learned from the forum and the documentation and any other resources

I read before there is someone here trying to learn an ai platform for b4x i didn't find it.
 

epiCode

Active Member
Licensed User
I asked them but I don't know if they learned from the forum and the documentation and any other resources

I read before there is someone here trying to learn an ai platform for b4x i didn't find it.
if you just want to ask questions about usage and explanation of commands or simple examples, you do not need to train.
All you need to do is share "b4x language guide" to any advanced model and ask your questions in natural language.
 

epiCode

Active Member
Licensed User
Yes .. may this will help me .. how to share ?
in chat window there will be an option to upload / attach document.
You can upload any of supporting documents (language guide in your case) and then ask questions around that document in natural language.
 

Peter Simpson

Expert
Licensed User
Longtime User
You can upload any of supporting documents (language guide in your case) and then ask questions around that document in natural language.
All of the document have already been kindly uploaded by @Alexander Stolte (thank you), Alexander has already been there and done that 💪

Below is a link to probably the best B4X GPT in my personal opinion - I personally believe that there should be a link to @Alexander Stolte GPT in the top navigation menu bar somewhere, I would say to the right hand side of #B4X Discord (unofficial).

GPT - B4X Assistant by Alexander Stolte

Full filtered list
1749135728364.png


Advice: Get the result that you're looking for, then carefully study the code to learn from it. I just can't stand Ctrl + C and Ctrl + V developers that use/manipulate online code, but then do not learn how the code actually works even though every single line of the code is right there in front of their noses. Learning the working code makes you a better developer.

Right, I'm off. I've got places to go and people to see.

There's also an extremely good (quite a few actually) MySQL GPTs, you should search and try them out for yourself.


Enjoy...
 
Last edited:

M.LAZ

Active Member
Licensed User
Longtime User
Advice: Get the result that you're looking for, then carefully study the code to learn from it. I just can't stand Ctrl + C and Ctrl + V developers that use/manipulate online code, but then do not learn how the code works even though every single line of the code is right there in from of their noses. Learning the working code makes you a better developer.

Right, I'm off, I've got places to go and people to see.

There also an extremely good (quite a few actually) MySQL GPT, you should search and try them out for yourself.
Thank you for your advice..

Yes, I love to learn and understand every line of code. Thank you for this advice. This model will help me complete my tasks faster.
 

Peter Simpson

Expert
Licensed User
Longtime User
@M.LAZ, here is a quick example of B4X Assistant in full flow. I only asked it one question followed by answering yes o_O

Example: I asked B4X Assistant the following.
"Using B4Xpages, create an animated stick man character in the B4J ide".
B4X Assistant replied with code (attached to this post) and a full explanation on how it works. B4X Assistant key notes are below.

Key Notes​

  • This example uses B4XCanvas, which works across B4J, B4A, and B4i.
  • The animation is a simple swinging arm, but you can expand it with more dynamic movements or user interaction.
  • Make sure to anchor pnlCanvas properly to resize with the window.

Would you like a downloadable .zip project for this example?

Yes, B4X Assistant asked me if I wanted to download a .zip project file, so I replied yes. I unzipped the file and tried to import it into a newly created blank B4J project (the attached project), but it wouldn’t import though that’s nothing new. So, I opened the .bas file in Notepad++ and copied the code created by B4X Assistant and I pasted it over the default B4XMainPag code. I also deleted MainPage.bjl as it wasn’t needed.

I've done plenty of tests using both Copilot and B4X Assistant, my personal preference is B4X Assistant by far. During testing, I got B4X Assistant to create some quite complicated scenarios that Copilot also managed, but with Copilot I had to ask more specific questions and provide more detailed instructions, though it does work. Please not that this is not always the case for Copilot, sometimes it created great 100% working code at the first time of asking.

No, I don't actually use B4X Assistant for client projects. If needed, I use the forum search.

I can easily see that while trying to create something like the attached simple example could take several questions and answers on the forum, and quite some time to get the right response or required code. Using B4X Assistant, I had the results and the .bas file with 100% working code in under two minutes (two minutes only because I took time to read B4X Assistant's response). In theory, I could have asked the question, got the result, and downloaded the working file in under a minute.

Attached is the result:
As I mentioned previously, I asked B4X Assistant a single question, it responded with an answer and the option to download the .bas file. I copied the code from the file into a newly created blank B4XPages project, it worked first time of asking without needing to change a single line of code. This is a very simple example, but I've also tested B4X Assistant with much more complicated code creation scenarios. After one, two, three, four or even five quick follow-up questions, B4X Assistant has almost always returned good results.

Is ChatGPT with B4X Assistant perfect? No, not at all, far from it. But it’s a start and it’s looking promising.

Yes in the project it waves its arms.
1749385043100.png


This is one of the reasons why I believe that with @Alexander Stolte permission, Anywhere Software could place the link to B4X Assistant here on the forum.
1749386334932.png



Enjoy...
 

Attachments

  • test.zip
    8.3 KB · Views: 104
Last edited:

LucaMs

Expert
Licensed User
Longtime User
Example: I asked B4X Assistant the following.
"Using B4Xpages, create an animated stick man character in the B4J ide".
B4X Assistant replied with code (attached to this post) and I full explanation on how it works. B4X Assistant key notes are below.

I tried to ask it to make the little man dance.
After 4 or 5 versions, it generated what you see.
With 5 more attempts it would certainly do better. However, if I had to do it myself, it would have taken a long time and burned my last 2 neurons 😂

java_27PzvvGaco.gif
 

ivanomonti

Expert
Licensed User
Longtime User
Tutti i documenti sono già stati gentilmente caricati da @Alexander Stolte (grazie), Alexander è già stato lì e l'ha fatto💪

Di seguito è riportato un collegamento a quello che probabilmente è il miglior B4X GPT secondo la mia opinione personale. Personalmente, credo che dovrebbe esserci un collegamento a @Alexander Stolte GPT da qualche parte nella barra del menu di navigazione in alto, direi sul lato destro di #B4X Discord (non ufficiale) .

GPT - Assistente B4X di Alexander Stolte
https://chatgpt.com/g/g-67c449c559188191877c2b94019f028b-b4x-assistent

Elenco completo filtrato
View attachment 164592

Consiglio: ottieni il risultato che stai cercando, poi studia attentamente il codice per imparare da esso. Non sopporto gli sviluppatori che usano/manipolano codice online con Ctrl+C e Ctrl+V, ma poi non imparano come funziona effettivamente il codice, anche se ogni singola riga è proprio lì davanti ai loro occhi. Imparare il codice funzionante ti rende uno sviluppatore migliore.

Bene, me ne vado. Ho dei posti da visitare e gente da vedere.

Esistono anche degli ottimi MySQL GPT (in realtà ce ne sono parecchi): dovresti cercarli e provarli tu stesso.


Godere...
Stavo guardando queste GPT personalizzate e ho notato che si basano tutte sul manuale pdf base e il forum interessante, nel mio caso ho voluto esternare proprio questo ma andare in profondità e istruire il mio GPT con il wrapper utilizzato dallo stesso B4X partendo dalle sue stesse librerie e istruita per sfruttare java nella sua completezza, perché? semplicemente perché Java cresce e pertanto istruito GPT a sfruttare il wrapper utilizzato per b4x permette di andare oltre al manuale invece di cercare nel web esempi che non sempre portano i risultati desiderati, ma mi fa piacere che molti si sono concentrati nel creare i propri GPT.
 

ivanomonti

Expert
Licensed User
Longtime User
NON VORREI fare il solito scassa scatole, ma basta una richista semplice e arriva il risultato, nel mio caso la logica di scrittura e molto semplice, poi farò un video completo, questo perchè si basa su Java e wrapper perB4X, allego esempio

IMAGE.jpg



Omino Bianco tricolore:
' ============================================
' Module: B4XMainPage
' Created by: MIASMART - B4X BUILDER v1
' Technical support: MIASMART – B4X BUILDER v1
' Date: 2025-06-09
' Purpose: Due omini animati - uno balla (pnl), uno cammina (pnl1)
' ============================================

Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI

    Private pnl As B4XView ' Omino ballerino
    Private cvs As B4XCanvas

    Private pnl1 As B4XView ' Omino che cammina
    Private cvs1 As B4XCanvas

    Private tmr As Timer
    Private animPhase As Float = 0
    Private walkX As Float = 0
    Private walkDir As Int = 1
End Sub

Public Sub Initialize
    ' Codice di inizializzazione
End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("Mainpage") ' Deve contenere sia pnl che pnl1

    cvs.Initialize(pnl)
    cvs1.Initialize(pnl1)

    tmr.Initialize("tmr", 30)
    tmr.Enabled = True
End Sub

Private Sub tmr_Tick
    animPhase = animPhase + 0.1
    If animPhase > 2 * cPI Then animPhase = 0

    walkX = walkX + (2dip * walkDir)
    If walkX > pnl1.Width - 50dip Then walkDir = -1
    If walkX < 50dip Then walkDir = 1

    DisegnaOminoBallerino(animPhase)
    DisegnaOminoCamminante(animPhase, walkX)
End Sub

Private Sub DisegnaOminoBallerino(angle As Float)
    cvs.ClearRect(cvs.TargetRect)

    Dim cx As Float = pnl.Width / 2
    Dim cy As Float = pnl.Height / 2
    Dim headRadius As Float = 20dip
    Dim bodyLength As Float = 80dip
    Dim limbLength As Float = 50dip

    cvs.DrawCircle(cx, cy - bodyLength - headRadius, headRadius, xui.Color_Blue, True, 2dip)
    cvs.DrawLine(cx, cy - bodyLength, cx, cy, xui.Color_Black, 4dip)

    Dim armAngle As Float = Sin(angle) * 0.8
    Dim armX As Float = limbLength * Cos(armAngle)
    Dim armY As Float = limbLength * Sin(armAngle)
    cvs.DrawLine(cx, cy - bodyLength + 20dip, cx - armX, cy - bodyLength + 20dip + armY, xui.Color_Green, 3dip)
    cvs.DrawLine(cx, cy - bodyLength + 20dip, cx + armX, cy - bodyLength + 20dip + armY, xui.Color_Green, 3dip)

    Dim legAngle As Float = Sin(angle + cPI) * 0.8
    Dim legX As Float = limbLength * Cos(legAngle)
    Dim legY As Float = limbLength * Sin(legAngle)
    cvs.DrawLine(cx, cy, cx - legX, cy + legY, xui.Color_Red, 3dip)
    cvs.DrawLine(cx, cy, cx + legX, cy + legY, xui.Color_Red, 3dip)

    cvs.Invalidate
End Sub

Private Sub DisegnaOminoCamminante(angle As Float, xOffset As Float)
    cvs1.ClearRect(cvs1.TargetRect)

    Dim cx As Float = xOffset
    Dim cy As Float = pnl1.Height / 2
    Dim headRadius As Float = 20dip
    Dim bodyLength As Float = 80dip
    Dim limbLength As Float = 50dip

    cvs1.DrawCircle(cx, cy - bodyLength - headRadius, headRadius, 0xFFFFA500, True, 2dip) ' Arancione (hex)
    cvs1.DrawLine(cx, cy - bodyLength, cx, cy, xui.Color_Black, 4dip)

    Dim armAngle As Float = Sin(angle) * 0.8
    Dim armX As Float = limbLength * Cos(armAngle)
    Dim armY As Float = limbLength * Sin(armAngle)
    cvs1.DrawLine(cx, cy - bodyLength + 20dip, cx - armX, cy - bodyLength + 20dip + armY, xui.Color_Green, 3dip)
    cvs1.DrawLine(cx, cy - bodyLength + 20dip, cx + armX, cy - bodyLength + 20dip + armY, xui.Color_Green, 3dip)

    Dim legAngle As Float = Sin(angle + cPI) * 0.8
    Dim legX As Float = limbLength * Cos(legAngle)
    Dim legY As Float = limbLength * Sin(legAngle)
    cvs1.DrawLine(cx, cy, cx - legX, cy + legY, xui.Color_Red, 3dip)
    cvs1.DrawLine(cx, cy, cx + legX, cy + legY, xui.Color_Red, 3dip)

    cvs1.Invalidate
End Sub
 

Attachments

  • OminoBianco.zip
    248.3 KB · Views: 96

ivanomonti

Expert
Licensed User
Longtime User
🎥 Un omino che cammina e sfuma tra due pannelli in B4X? Fatto!

la maggior parte degli errori dipende da noi come ci poniamo e chiediamo a GPT e non altro, in questo video lo voglio dimostrare.

Grazie al supporto di MIASMART – B4X BUILDER, abbiamo creato un’animazione fluida dove un omino stilizzato cammina da un Pane all’altro, con dissolvenza dinamica durante il passaggio.

🔧 Strumenti usati:

B4XCanvas per disegno vettoriale
Timer per l’animazione
DrawLine e DrawCircle per il corpo
Funzioni Sin e Cos per simulare movimento “umano”
xui.Color_ARGB per gestire trasparenze

📱 Funziona su B4J ma facilmente adattabile anche a B4A e B4i.

👉 Vuoi usare anche tu questo assistente tecnico per creare moduli o animazioni simili? Scrivimi oppure prova il GPT:



🎥 A walking stickman that fades between panels in B4X? Done!

With the help of MIASMART – B4X BUILDER, we built a smooth animation where a stickman walks across two Panes, fading gently in between.

🔧 Tools used:

B4XCanvas for vector drawing
Timer for animation loop
DrawLine and DrawCircle to compose the figure
Sin and Cos for leg and arm movement
xui.Color_ARGB to control opacity

📱 Runs on B4J, and easily portable to B4A or B4i.

👉 Want to build your own animated components or logic helpers? Try the GPT assistant or message me directly:

 

LucaMs

Expert
Licensed User
Longtime User
Ivano, probabilmente non ti sei reso conto che questo non è il forum italiano.
Ivano, you probably didn't realize that this is not the Italian forum.

I thought about your (and other) custom GPTs.
I thought they were useless, since ChatGPT will already have the sources that it finds on b4x.com, but I didn't take into account one important thing: a lot of useful and important code is published as zip files, even entire projects. Providing these sources to a custom GPT would most likely be very useful... unless ChatGPT also analyzes (and preserves) the compressed files.
 

LucaMs

Expert
Licensed User
Longtime User
It replied that it can unzip (and analyze, use) any zip files I pass it. I assume this is true but I haven't tried.
Now, however, it responded like this:

Sorry, but I don't currently have the ability to directly handle zip files or any other type of binary file. However, I can help you with code review by providing suggestions and changes directly here in our conversation. If you have code or parts of it that you would like me to review, feel free to share it here and I will be happy to help with the requested changes and comments!

I think it is schizophrenic 😄
(ChatGPT).
 

LucaMs

Expert
Licensed User
Longtime User
Now, however, it responded like this:

Sorry, but I don't currently have the ability to directly handle zip files or any other type of binary file. However, I can help you with code review by providing suggestions and changes directly here in our conversation. If you have code or parts of it that you would like me to review, feel free to share it here and I will be happy to help with the requested changes and comments!

I think it is schizophrenic 😄
(ChatGPT).

(ChatGPT)
Good point — and I'll explain the contradiction right away.

**The correct answer is: yes, I can handle `.zip` files that you send me directly to this chat.**
I can unzip them, analyze the files (like `.bas`, `.b4x`, `.bal`, etc.), modify them, and send you back a new `.zip`.

The initial answer ("I can't handle zip or binary files") was **wrong in the current context**, because it referred to a limitation that no longer applies. Thanks for pointing that out to me; I'll correct it right away.

You can safely proceed with sending your [`.zip` file](f) from the B4XPages project!
 

hatzisn

Expert
Licensed User
Longtime User
(ChatGPT)
Good point — and I'll explain the contradiction right away.

**The correct answer is: yes, I can handle `.zip` files that you send me directly to this chat.**
I can unzip them, analyze the files (like `.bas`, `.b4x`, `.bal`, etc.), modify them, and send you back a new `.zip`.

The initial answer ("I can't handle zip or binary files") was **wrong in the current context**, because it referred to a limitation that no longer applies. Thanks for pointing that out to me; I'll correct it right away.

You can safely proceed with sending your [`.zip` file](f) from the B4XPages project!

ChatGPT è ubriaco...
 
Last edited:
Top