if(findtext(path,".dmb",-4))
if(alert("Are you sure you would like to run [path]?", "Run?", "Yes", "No")=="Yes")
var/port = input("What port do you want to host on?", "Port") as num
var/security = input("What level of security do you want to give the game?", "Security") in list("trusted", "safe", "ultrasafe")
world << "DEBUG started " + path
games += startup("[path]", port,"-[security]")
world << "Server [games[games.len-1]] for [path] has been started."
break
So I'm making a sort of game manager utility that the public can edit the source codes and such to their liking and allow other users to start up games that potentially crash or w/e.
In this situation, a path is provided to startup(), which I tested and was "Games/CaveDrifter/CaveDrifter.dmb". Apparently, when startup() is called on trusted, safe, or even ultrasafe, the DreamDaemon does not automatically start the game. Instead, it only opens DreamDaemon with the port and file path set. It doesn't set the security and doesn't auto start it.
I've tried removing the - in the security argument. Doesn't change much.