//we launch the 3dview seperately from normal clients.
    public static void Launch3DView()
    {
        GlobalFuncs.ReloadLoadoutValue();
        //HACK!
        try
        {
            GlobalFuncs.ChangeGameSettings("2011E");
        }
        catch (Exception)
        {
        }
        string luafile = "rbxasset://scripts\\\\CSView.lua";
        string mapfile = GlobalPaths.BasePathLauncher + "\\preview\\content\\fonts\\3DView.rbxl";
        string rbxexe  = GlobalPaths.BasePathLauncher + "\\preview\\3DView.exe";
        string quote   = "\"";
        string args    = quote + mapfile + "\" -script \" dofile('" + luafile + "'); _G.CS3DView(0,'" + GlobalVars.UserConfiguration.PlayerName + "'," + GlobalVars.Loadout + ");" + quote;

        try
        {
            Process client = new Process();
            client.StartInfo.FileName  = rbxexe;
            client.StartInfo.Arguments = args;
            client.Start();
            client.PriorityClass = ProcessPriorityClass.RealTime;
        }
        catch (Exception ex)
        {
            MessageBox.Show("Failed to launch Novetus. (Error: " + ex.Message + ")", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
    }
    //we launch the 3dview seperately from normal clients.
    public void Launch3DView()
    {
        GlobalFuncs.ReloadLoadoutValue();
        SaveOutfit(false);
        //HACK!
        try
        {
            GlobalFuncs.ChangeGameSettings("2011E");
        }
        catch (Exception ex)
        {
            GlobalFuncs.LogExceptions(ex);
        }

        string luafile = "rbxasset://scripts\\\\CSView.lua";
        string mapfile = GlobalPaths.BasePathLauncher + "\\preview\\content\\fonts\\3DView.rbxl";
        string rbxexe  = GlobalPaths.BasePathLauncher + (GlobalVars.AdminMode ? "\\preview\\3DView_studio.exe" : "\\preview\\3DView.exe");
        string quote   = "\"";
        string script  = "_G.CS3DView(0,'" + GlobalVars.UserConfiguration.PlayerName + "'," + GlobalVars.Loadout + ");";

        if (GlobalVars.AdminMode)
        {
            DialogResult adminres = MessageBox.Show("Would you like to run 3D Preview Studio with or without scripts?\n\nPress Yes to load with scripts, press No to load without.", "Novetus - 3D Preview Studio", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (adminres == DialogResult.No)
            {
                script = "_G.CS3DViewEdit();";
            }
        }

        string args = quote + mapfile + "\" -script \" dofile('" + luafile + "');" + script + quote;

        try
        {
            GlobalFuncs.OpenClient(ScriptType.None, rbxexe, args, "", "", null, true);
        }
        catch (Exception ex)
        {
            MessageBox.Show("Failed to launch the 3D Preview. (Error: " + ex.Message + ")", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            GlobalFuncs.LogExceptions(ex);
        }
    }