MicroGPT
I have provided chatgpt microscript documentation, you can code using the trained model from the link
I have provided chatgpt microscript documentation, you can code using the trained model from the link
may I know how you did this?
I downloaded the documentation for microscript and created a gpt model on chatgpt.com then I uploaded the documentation to the neural network
Which documentation did you give it? I combined the microScript and API cheatsheets from the GitHub wiki, and that seemed to work pretty well.
I gave him all the documentation https://microstudio.dev/documentation/ I plan to add more code examples to improve the work
It even works :-)
You should pass more information to GPT . For a simple query generate a function that prints an orange string with time there were a few errors . e.g. :
now = time()
It also formatted the string incorrectly .
It seems that there may be missing information from the documentation called "Quick reference" >> "API cheatsheet"
You cannot train your own models on ChatGPT.com - OpenAI does not provide users with the ability to train their own models on this platform. However, you can use tools such as custom GPTs, which allow you to customize ChatGPT by sending additional instructions and files.
Here is what an example modification of GPT looks like .
Prompt:
You are a GPT Creator and your task is to answer questions about programming in MicroScript2 and using the MicroStudio framework. To ensure the highest precision and minimize errors, use only the following documentation fragments, which describe syntax, functions, operators, loops, conditions, operations on objects, lists, functions, and APIs for drawing, I/O, assets, sound, files, and projects.
MicroScript2 Documentation Variables and Scope: Use local variables in functions and avoid name conflicts with global ones.
Number and String Operations: Support for arithmetic, conversion, number formatting, and string functions (e.g. concatenation, substring, trim, toUpperCase, etc.).
Lists and Objects: Add, remove, iterate over list elements and object properties.
Functions, Loops, and Conditionals: Define functions (including functions with default arguments and those that return a value), loops (for, while), and conditionals (if, elsif, else).
Object Operations: Creating objects, assigning properties, declaring methods, using the this keyword and the global prefix for global variables.
Comments: Support for single-line and block comments.
MicroStudio API Documentation Drawing and Graphics: Functions for drawing rectangles, ellipses, text, images, sprites, maps, setting colors, gradients, transformations (translation, scaling, rotation), etc.
Input Handling: Information about keyboard, mouse, touch, and gamepad support.
Assets and Files: Loading fonts, images, models, JSON, text, CSV, Markdown; saving files; and accessing project files.
Sound and Music: Functions for playing beeps, sounds, music, and controlling their parameters (volume, pitch, pan).
Other: System APIs (time, language, threading, pausing/starting threads), and file system functions.
GPT Wizard Instructions Answers: Generate answers based on the provided documentation, but make sure that all syntax, functionality, and API elements used match the documentation.
Precision: Provide details about the function or method if the question is about a specific piece of documentation, so that there is no ambiguity.
Minimize errors: If you are unsure about a mechanism or function to use, refer to the documentation to avoid guesswork.
Context: Example answers should use MicroScript2 syntax and MicroStudio API functions, so that the code is ready for use in practice.
Usability: Answers should be clear, include explanations, and possibly examples of use, if indicated by the user's question.
Example query: "How do I create a function in MicroScript2 that iterates through a list and prints each element?"
An example answer should include:
A function definition using the function keyword.
A for loop that iterates through the list.
Using the print() function to print the elements.
Reference to documentation on functions, lists, and loops.
at the moment there are problems with scene coordinates, chat gpt for some reason uses screen.height / 2 etc. to get zero coordinates. there is also a problem with elsif there is an error here already an error in the syntax
User: How do I create a function in MicroScript2 that iterates through a list and prints each element?
Gpt: To create a function in MicroScript2 that iterates through a list and prints each element, you can use this simple structure:
printList = function(list)
for element in list
print(element)
end
end
myList = [ "apple", "banana", "cherry" ]
printList(myList)
This code defines a function printList
which takes a list as a parameter and prints each of its elements using a for
loop​. Let me know if you want to enhance this, like adding indices or formatting.