Making a mod list command but not working...
Posted: Mon Aug 17, 2020 3:27 am
I'm trying to figure stuff out with this game, so I have made a command that will get all the active mods and put it into a txt file.
When you put that into the console it logs all the active mods, Great!
but if I change it to write it to a file I only get 1 mod not all of them...
I'm not sure why it is only writing 1, it's obviously getting them all but not all are being written.
Code: Select all
/c for name in pairs(script.active_mods) do game.print(name) end
but if I change it to write it to a file I only get 1 mod not all of them...
Code: Select all
/c for name in pairs(game.active_mods) do game.write_file("modlist.txt", name) end