Orla & Conor

By OrlaConor

Debugging Roblox

Conor has big plans for a Roblox game that he has been building. It is kind of a hide and seek or tig game that involves players being spawned from a lobby with the seeker being randomly allocated. When players get caught they end up back in the lobby for the rest of the round. He had written code for this with a bit of help from ChatGPT but it was quite buggy. There was some overlapping going on. And he knew he had to fix it before making any more progress on the build. But it seemed far too complex to fix.

Enter the new model o1-preview. The old code had been written by GPT4o. And it had bugs. But o1-preview was smart enough to solve it! First, we asked it to add print statements to the script to output to the log to indicate what was happening. Then we ran it and gave the log output back to o1-preview and it explained exactly what was causing the problem and gave a revised script. You only get 25 submits per week with o1-preview at this point so it's good to save them for something like this that really demonstrates its power. 

Comments
Sign in or get an account to comment.