private void btnStart_Click(object sender, EventArgs e) { string exePath = txtAlyxDirectory.Text + "\\game\\bin\\win64\\hlvr.exe"; if (!File.Exists(exePath)) { MessageBox.Show("Please select your Half-Life Alyx installation folder correctly first.", "Error Starting", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } string scriptPath = txtAlyxDirectory.Text + "\\game\\hlvr\\scripts\\vscripts\\tactsuit.lua"; if (!File.Exists(scriptPath)) { MessageBox.Show("Script file installation is not correct. Please read the instructions on the mod page and reinstall.", "Script Installation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } string scriptLoaderPath = txtAlyxDirectory.Text + "\\game\\hlvr\\cfg\\skill_manifest.cfg"; string configText = File.ReadAllText(scriptLoaderPath); if (!configText.Contains("script_reload_code tactsuit.lua")) { MessageBox.Show("skill_manifest.cfg file installation is not correct. Please read the instructions on the mod page and reinstall.", "Script Installation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } btnStart.Enabled = false; btnStop.Enabled = true; btnBrowse.Enabled = false; btnTest.Enabled = true; tactsuitVr = new TactsuitVR(); tactsuitVr.CreateSystem(); engine = new Engine(tactsuitVr); WriteTextSafe("Starting..."); parsingMode = true; Thread thread = new Thread(ParseConsole); thread.Start(); }
public Engine(TactsuitVR _tactsuitVr) { tactsuitVr = _tactsuitVr; }