megamek.common.Compute.d6();
    public void scenario() {        FileDialog fd = new FileDialog(frame,                "Select a scenario file...",                FileDialog.LOAD);        fd.setDirectory("data" + File.separatorChar + "scenarios");        // the filter doesn't seem to do anything in windows.  oh well        FilenameFilter ff = new FilenameFilter() {            public boolean accept(File f, String s) {                return s.endsWith(".mms");            }        };        fd.setFilenameFilter(ff);        fd.show();        if (fd.getFile() == null) {            return;        }        ScenarioLoader sl = new ScenarioLoader(new File(fd.getDirectory(), fd.getFile()));        Game g = null;        try {            g = sl.createGame();        } catch (Exception e) {            new AlertDialog(frame, "Host Scenario", "Error: " + e.getMessage()).show();            return;        }        // get player types and colors set        Player[] pa = new Player[g.getPlayersVector().size()];        g.getPlayersVector().copyInto(pa);        ScenarioDialog sd = new ScenarioDialog(frame, pa);        sd.show();        if (!sd.bSet) {            return;        }        // host with the scenario.  essentially copied from host()        HostDialog hd = new HostDialog(frame);        hd.yourNameF.setText(sd.localName);        hd.show();        // verify dialog data        if(hd.name == null || hd.serverPass == null || hd.port == 0) {            return;        }        // start server        server = new Server(hd.serverPass, hd.port);        server.setGame(g);        // apply any scenario damage        sl.applyDamage(server);        if (sd.localName != "") {            // initialize game            client = new Client(hd.name, "localhost", hd.port);			launch(client.getFrame());            server.getGame().getOptions().loadOptions(client, hd.serverPass);                        // popup options dialog            client.getGameOptionsDialog().update(client.game.getOptions());            client.getGameOptionsDialog().show();        }        // setup any bots        for (int x = 0; x < pa.length; x++) {            if (sd.playerTypes[x] == ScenarioDialog.T_BOT) {                Client c = BotFactory.getBot(BotFactory.TEST, pa[x].getName());                c.connect("localhost", hd.port);                c.retrieveServerInfo();                ((BotClientWrapper)c).initialize();                //f.hide();            }        }    }