Jump to content

Grok AI is IMPRESSIVE at scripting!


Recommended Posts

Hey there, guys

I recently messed with Grok a little bit, when it comes to MTA:SA scripts - and oh boy, he can make scripts. If you gonna tell Grok a detailed description of what you want, he will give it to you, but 90% of the times it will be broken, so you need to actively send him debug problems and stuff.

Here are the list of the scripts that I edited succesfully / or made using grok:

Soundboard script (creates a F3 GUI menu and you can play different meme sounds when clicking on the sound buttons)

Force 30 fps script on a RACE map (creates a script, that enables 30 fps only on the map you plug the script into, after the map is switched - FPS change back to normal that you have set in your server settings) - and to make it work, edit the map name (map name from meta.xml) to your own local:

targetMapName = "[30FPS] Driveable Yosemite" -- The map to force 30 FPS on

Reduce bumps - Reduces bumps on race maps, by changing velocity of the vehicle in real time (there are some small problems with it too, i think you need to configure the script for different vehicles, tweak the values so it fits, example: Bandito is too fast on the bumpy terrain, when going down slope)

Edited race ghost resource - so it now has a "carhide" function, that hides ghost (if players are distracted by it, they can simply turn it off via F3 if i remember correctly)

Race-Driftking - made its very own drift table to my race map. I struggled with this alot and gave him many LUA examples and he finally made it work. It even has flags, and saves the stats on the map (idk if they save if you leave the server tho)

Download them here: https://limewire.com/d/pXuGF#q0p5r0BMwg

However... Grok is not perfect. Here are the attempts that I tried to make, but it didn't succeed (maybe you'll have knowledge what to fix in those)

Paintjob script: Does not show the paintjob. The 1st version of the script works fine, but I wanted the paintjob to also change the color and he said it is possible, and now this version has bunch of problems in debug. This script was meant to give you an ui activated with /paintjob command, and you coul choose a paintjob, and a color and apply it. It would also save if you would quit the server and come back, and it will come back if you are logged in and logged out (i struggled 1.5 hours with this, he finally made it work after 1.5 hours)

Very own clanwar script - I managed to get around some problems, that if map would redo the round would go from 1 to 2. The problems here, is he struggles to fix the point system from the previous script, and also sometimes GUI does not open. Grok forgets earlier attachements so maybe that's the reason that he sometimes :O up those scripts, but if anyone would be helpful I'd like this one fixed - can explain after what I wanted in there

Map Panel script - I don't have it here, but it had a functional map panel, and it correctly listed the maps only from RACE gamemode. I also made him include the cash reward after race completion, and he also did it perfectly, however problems were with buying the maps - when you bought the map, money went away but map didn't play when script appearantly said "that the correct map was set" after buying it.

Login Panel - he can do the login panel UI perfectly, but sometimes struggle with saving the accounts (or creating databases), he prefers to save account info in .xml file. Also if you would login or register from the login panel, it wouldn't let you log in (even if you typed the correct credentials it just didn't work and nothing happened)

 

Some other screenshots I made when I tested Grok (this is all Grok's work):

Obraz

Obraz

(i fixed this pesky text bug after like 3 times asking him to resize the table or move the text lol)

Obraz

(color didn't go as planned, but alpha was working fine, but eventually scrapped it)

Obraz

Obraz

I'm inclined to say, that Grok is very helpful, and you should use it. You can also download some of the scripts that Grok did in the hyperlinks. What do you think guys? He made me come back to this game, only to mess with some scripting :D 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...