I have no clue where to start, but I have tried some alternatives such as doing "
The grid code I use is as follows:
mob
proc
UpdateCommands()
var/items = 0
for(var/obj/O in commandslist) items++
winset(src, "CommandsGrid", "cells=[items]x1")
items=0
for(var/obj/O in commandslist)
src << output(O, "CommandsGrid:[++items],1")