You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f29ac7e
Browse filesBrowse the repository at this point in the historyBrowse files
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\game\\bin\\hammer.exe",directory),"ERROR 002",MessageBoxButtons.OK,MessageBoxIcon.Warning);
458
+
return;
459
+
}
460
+
break;
461
+
case"G String":
462
+
if(!File.Exists(directory+"\\bin\\hammer.exe"))
463
+
{
464
+
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\game\\bin\\hammer.exe \n\n G String doesn't have it!",directory),"ERROR 002",MessageBoxButtons.OK,MessageBoxIcon.Warning);
465
+
return;
466
+
}
467
+
break;
468
+
case"Half-Life 2 Update":
469
+
if(!File.Exists(directory+"\\bin\\hammer.exe"))
470
+
{
471
+
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\game\\bin\\hammer.exe \n\n Half-Life 2 Update doesn't have it!",directory),"ERROR 002",MessageBoxButtons.OK,MessageBoxIcon.Warning);
472
+
return;
473
+
}
474
+
break;
375
475
default:
376
476
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\bin\\hammer.exe",directory),"ERROR 002",MessageBoxButtons.OK,MessageBoxIcon.Warning);
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\sdk\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
515
+
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\sdk\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\sdkbase_pvkii\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
522
+
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\sdkbase_pvkii\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\game\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
420
530
return;
421
531
}
422
532
break;
533
+
case"G String":
534
+
if(!File.Exists(directory+"\\bin\\hlmv.exe"))
535
+
{
536
+
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\game\\bin\\hlmv.exe \n\n Thats ok though we will use 2013 MP or 2013 SP. ",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
537
+
538
+
}
539
+
break;
540
+
case"Half-Life 2 Update":
541
+
if(!File.Exists(directory+"\\bin\\hlmv.exe"))
542
+
{
543
+
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\game\\bin\\hlmv.exe \n\n Thats ok though we will use 2013 MP or 2013 SP. ",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
544
+
545
+
}
546
+
break;
423
547
default:
424
-
MessageBox.Show(String.Format("No Hammer install could be found at {0}\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
548
+
MessageBox.Show(String.Format("No Model Viewer install could be found at {0}\\bin\\hlmv.exe",directory),"ERROR 003",MessageBoxButtons.OK,MessageBoxIcon.Warning);
modelviewer.StartInfo.Arguments="/c cd /d "+directory+"\\sdk\\bin && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
433
557
elseif(gameName=="Pirates, Vikings, and Knights II")
434
558
modelviewer.StartInfo.Arguments="/c cd /d "+directory+"\\sdkbase_pvkii\\bin && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
559
+
elseif(gameName=="Source Filmmaker")
560
+
modelviewer.StartInfo.Arguments="/c cd /d "+directory+"\\game\\bin && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\\usermod"+"\"";
561
+
elseif(gameName=="G String")
562
+
{
563
+
if(comboBoxGames.Items.Contains("Source SDK Base 2013 Singleplayer"))
564
+
{
565
+
stringmpdirectory=listOfSourceGames.First(item =>item.ProperName=="Source SDK Base 2013 Singleplayer").Directory;
566
+
modelviewer.StartInfo.Arguments="/c cd /d "+"\""+mpdirectory+"\\bin"+"\""+" && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
567
+
}
568
+
elseif(comboBoxGames.Items.Contains("Source SDK Base 2013 Multiplayer"))
569
+
{
570
+
stringmpdirectory=listOfSourceGames.First(item =>item.ProperName=="Source SDK Base 2013 Multiplayer").Directory;
571
+
modelviewer.StartInfo.Arguments="/c cd /d "+"\""+mpdirectory+"\\bin"+"\""+" && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
572
+
}
573
+
else
574
+
{
575
+
MessageBox.Show(String.Format("2013 MP or 2013 SP wasn't found please install one of these. ",directory),"ERROR 005",MessageBoxButtons.OK,MessageBoxIcon.Warning);
576
+
}
577
+
}
578
+
elseif(gameName=="Half-Life 2 Update")
579
+
{
580
+
if(comboBoxGames.Items.Contains("Source SDK Base 2013 Singleplayer"))
581
+
{
582
+
stringmpdirectory=listOfSourceGames.First(item =>item.ProperName=="Source SDK Base 2013 Singleplayer").Directory;
583
+
modelviewer.StartInfo.Arguments="/c cd /d "+"\""+mpdirectory+"\\bin"+"\""+" && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
584
+
}
585
+
elseif(comboBoxGames.Items.Contains("Source SDK Base 2013 Multiplayer"))
586
+
{
587
+
stringmpdirectory=listOfSourceGames.First(item =>item.ProperName=="Source SDK Base 2013 Multiplayer").Directory;
588
+
modelviewer.StartInfo.Arguments="/c cd /d "+"\""+mpdirectory+"\\bin"+"\""+" && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
589
+
}
590
+
else
591
+
{
592
+
MessageBox.Show(String.Format("2013 MP or 2013 SP wasn't found please install one of these. ",directory),"ERROR 005",MessageBoxButtons.OK,MessageBoxIcon.Warning);
593
+
}
594
+
}
435
595
else
436
596
modelviewer.StartInfo.Arguments="/c cd /d "+directory+"\\bin && start \"\" hlmv.exe -game \""+directory+"\\"+sourcename+"\"";
0 commit comments