Compare commits
24 Commits
Author | SHA1 | Date |
---|---|---|
Alex D. | 8daf0d5f84 | |
Alex D. | 6c0744e423 | |
Alex D. | d851e34daf | |
Alex D. | a1d102ef40 | |
Alex D. | aa271eba81 | |
Alex D. | 62874e23f7 | |
Alex D. | e3152a69bd | |
Alex | a2426cc265 | |
Alex | 165e38f915 | |
Alex | 04dd54dfab | |
Alex D. | b3401f6308 | |
Alex D. | 9c2b1f31e1 | |
Alex | 6c3d62022c | |
Alex D. | 68134849b1 | |
Alex D. | a7d5eaf66f | |
Alex D. | e65a236b0f | |
Alex D. | 9c8c385c2f | |
Alex D. | 42f4a62999 | |
Alex D. | 12fa4940dd | |
Alex D. | 591231d434 | |
Alex D. | c68b93e6da | |
Alex D. | 4dd2912a40 | |
Alex | df99190d55 | |
Alex D. | 7e1380ddd3 |
|
@ -0,0 +1,2 @@
|
||||||
|
language: csharp
|
||||||
|
solution: UnturnedSL.sln
|
10
README.md
10
README.md
|
@ -1,10 +1,8 @@
|
||||||
# USL
|
<p align=center><img src="https://s14.postimg.org/x2qqyft69/banner.png"><br>
|
||||||
[![banner.png](https://s14.postimg.org/x2qqyft69/banner.png)](https://postimg.org/image/3nl2pfoml/)
|
<img src="https://img.shields.io/travis/casKd-dev/USL/release.svg?style=for-the-badge"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge"> <img src="https://img.shields.io/github/downloads/casKd-dev/USL/total.svg?style=for-the-badge"> <img src="https://img.shields.io/github/languages/top/casKd-dev/USL.svg?style=for-the-badge"> </p>
|
||||||
|
|
||||||
[![GitHub issues](https://img.shields.io/github/issues/casKd-dev/USL.svg?style=for-the-badge)](https://github.com/casKd-dev/USL/issues)
|
|
||||||
|
|
||||||
A Gameserver launcher written in C# .
|
A Gameserver launcher written in C# .
|
||||||
This project aims to help people not as experienced with Unturned or computers in general.
|
This project aims to help people not as experienced with Unturned or computers in general.
|
||||||
It is so easy to use in fact, that just pressing enter while having steam installed in the default directory will launch a server without you knowing anything you did.
|
It is so easy to use in fact, that just leaving the default options while having the Unturned installed in the default directory will launch it!
|
||||||
|
|
||||||
I mainly work on it in my free time, if you want to push or contribute feel free to contact me!
|
I mainly work on it in my free time, if you want to push or contribute, feel free to contact me!
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
</configSections>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||||
</startup>
|
</startup>
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
@ -12,16 +8,52 @@ namespace UnturnedSL
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
string lauversion = "1.12 rewrite";
|
string lauversion = "1.14";
|
||||||
string title = "USL by casKd running on version " + lauversion;
|
string title = "USL by casKd running on version " + lauversion;
|
||||||
Console.Title = title;
|
Console.Title = title;
|
||||||
Console.SetWindowSize(100,20);
|
Console.SetWindowSize(100,20);
|
||||||
/*Console.WriteLine("Currently running from:" + Environment.NewLine + Directory.GetCurrentDirectory() + Environment.NewLine +
|
MkDirIfNotExist("config");
|
||||||
"Config exists: " + File.Exists("settings.cfg") + Environment.NewLine); DEBUGGING PURPOSES ONLY*/
|
if (Directory.GetFiles("config", "*.cfg").Length == 0) {FirstSetup(); } /*Checks for new users*/
|
||||||
if (!File.Exists("settings.cfg")) { /*Checks for new users*/
|
string[] oFiles = Directory.GetFiles("config", "*.cfg");
|
||||||
Console.ForegroundColor = ConsoleColor.Green;
|
/*Loads settings from file and checks if all lines are present and valid*/
|
||||||
Console.WriteLine("Welcome!", Environment.NewLine);
|
TextReader settings = new StreamReader(oFiles[0], true);
|
||||||
string[] defvalue = {
|
string name = settings.ReadLine();
|
||||||
|
string map = settings.ReadLine();
|
||||||
|
string welcome = settings.ReadLine();
|
||||||
|
string port = settings.ReadLine();
|
||||||
|
string data = settings.ReadLine();
|
||||||
|
string extralo = settings.ReadLine();
|
||||||
|
string path = settings.ReadLine();
|
||||||
|
settings.Close();
|
||||||
|
Validation(name, map, welcome, port, data, extralo, path, out bool valid);
|
||||||
|
Run(valid, name, map, welcome, port, data, extralo, path);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Validation(string name, string map, string welcome, string port, string data, string extralo, string path, out bool valid)
|
||||||
|
/*Validate if all input is correct*/
|
||||||
|
{
|
||||||
|
/*Checks if every condition is true*/
|
||||||
|
bool bNum = int.TryParse(port, out int i);
|
||||||
|
if (
|
||||||
|
bNum != true ||
|
||||||
|
String.IsNullOrWhiteSpace(name) ||
|
||||||
|
String.IsNullOrWhiteSpace(map) ||
|
||||||
|
String.IsNullOrWhiteSpace(welcome) ||
|
||||||
|
String.IsNullOrWhiteSpace(port) ||
|
||||||
|
String.IsNullOrWhiteSpace(data) ||
|
||||||
|
String.IsNullOrWhiteSpace(extralo) ||
|
||||||
|
String.IsNullOrWhiteSpace(path) ||
|
||||||
|
!File.Exists(path + @"\Unturned.exe")
|
||||||
|
)
|
||||||
|
{ valid = true;} else { valid = false;}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void FirstSetup()
|
||||||
|
/*First setup*/
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Green;
|
||||||
|
Console.WriteLine("Welcome!" + Environment.NewLine + "Do you want to go through the setup? [N/y]" + Environment.NewLine);
|
||||||
|
string[] defvalue = {
|
||||||
"PEI",
|
"PEI",
|
||||||
"USL-My server",
|
"USL-My server",
|
||||||
"Hey! Welcome to our server!",
|
"Hey! Welcome to our server!",
|
||||||
|
@ -29,7 +61,7 @@ namespace UnturnedSL
|
||||||
"Server_Data",
|
"Server_Data",
|
||||||
"-perspective both",
|
"-perspective both",
|
||||||
@"C:\Program Files\Steam\SteamApps\Common\Unturned" };
|
@"C:\Program Files\Steam\SteamApps\Common\Unturned" };
|
||||||
string[] question = {
|
string[] question = {
|
||||||
"Which map would you like to play?",
|
"Which map would you like to play?",
|
||||||
"What name do you wish your server to be called?",
|
"What name do you wish your server to be called?",
|
||||||
"What welcome message would you want to have?",
|
"What welcome message would you want to have?",
|
||||||
|
@ -38,12 +70,14 @@ namespace UnturnedSL
|
||||||
"Do you want any other parameters for your server?",
|
"Do you want any other parameters for your server?",
|
||||||
"Where is your Unturned installation located?"
|
"Where is your Unturned installation located?"
|
||||||
};
|
};
|
||||||
/*Asks user to setup their own server, which later saves in a config file*/
|
string[] setvals = { "map", "name", "welcome", "port", "data", "extralo", "path" };
|
||||||
|
var loopval = 0;
|
||||||
|
string[] answ = new string[7];
|
||||||
|
/*Asks user to setup their own server, which later saves in a config file*/
|
||||||
|
if (String.Equals(Console.ReadLine(), "y", StringComparison.CurrentCultureIgnoreCase) == true)
|
||||||
|
{
|
||||||
Console.ForegroundColor = ConsoleColor.Yellow;
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
|
Console.Clear();
|
||||||
string[] setvals = { "map", "name", "welcome", "port", "data", "extralo", "path" };
|
|
||||||
var loopval = 0;
|
|
||||||
string[] answ = new string[7];
|
|
||||||
foreach (string val in setvals)
|
foreach (string val in setvals)
|
||||||
{
|
{
|
||||||
while (loopval <= 6)
|
while (loopval <= 6)
|
||||||
|
@ -54,128 +88,101 @@ namespace UnturnedSL
|
||||||
{
|
{
|
||||||
answ[loopval] = defvalue[loopval];
|
answ[loopval] = defvalue[loopval];
|
||||||
loopval++;
|
loopval++;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
loopval++;
|
loopval++;
|
||||||
}
|
}
|
||||||
|
Console.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*Saves data*/
|
} else {
|
||||||
string map = answ[0];
|
foreach (string val in setvals)
|
||||||
string name = answ[1];
|
|
||||||
string welcome = answ[2];
|
|
||||||
string port = answ[3];
|
|
||||||
string data = answ[4];
|
|
||||||
string extralo = answ[5];
|
|
||||||
string path = answ[6];
|
|
||||||
|
|
||||||
Console.Clear();
|
|
||||||
/*Stores data into a file*/
|
|
||||||
TextWriter settings = new StreamWriter("settings.cfg", true);
|
|
||||||
settings.WriteLine(name);
|
|
||||||
settings.WriteLine(map);
|
|
||||||
settings.WriteLine(welcome);
|
|
||||||
settings.WriteLine(port);
|
|
||||||
settings.WriteLine(data);
|
|
||||||
settings.WriteLine(extralo);
|
|
||||||
settings.WriteLine(path);
|
|
||||||
settings.Close();
|
|
||||||
Console.ForegroundColor = ConsoleColor.Green;
|
|
||||||
string launchop = "-nographics -batchmode -name " + "\"" + name + "\"" + " -map " + map + " -welcome " + "\"" + welcome + "\"" + " -port:" + port + " " + extralo + " +secureserver/" + data;
|
|
||||||
string curdirargs = path + @"\Unturned.exe " + launchop;
|
|
||||||
if (
|
|
||||||
String.IsNullOrWhiteSpace(name) ||
|
|
||||||
String.IsNullOrWhiteSpace(map) ||
|
|
||||||
String.IsNullOrWhiteSpace(welcome) ||
|
|
||||||
String.IsNullOrWhiteSpace(port) ||
|
|
||||||
String.IsNullOrWhiteSpace(data) ||
|
|
||||||
String.IsNullOrWhiteSpace(extralo) ||
|
|
||||||
String.IsNullOrWhiteSpace(path) ||
|
|
||||||
!File.Exists(path + @"\Unturned.exe")
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
/*Shows an error with information to fix it*/
|
while (loopval <= 6)
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
{
|
||||||
Console.WriteLine("Oh, noes! Seems like the settings file contains wrong info." + Environment.NewLine +
|
answ[loopval] = defvalue[loopval];
|
||||||
"Try deleting it or correcting it!" + Environment.NewLine + Environment.NewLine +
|
loopval++;
|
||||||
"If you still get the problem, report it on GitHub!");
|
}
|
||||||
Console.WriteLine(Environment.NewLine + "Your settings:" +
|
|
||||||
Environment.NewLine + Environment.NewLine + "Server Name:" + "\t" + "\t" + name + Environment.NewLine +
|
|
||||||
"Running Map:" + "\t" + "\t" + map + Environment.NewLine +
|
|
||||||
"Welcome Msg:" + "\t" + "\t" + welcome + Environment.NewLine +
|
|
||||||
"Data folder:" + "\t" + "\t" + data + Environment.NewLine +
|
|
||||||
"Extra options:" + "\t" + "\t" + extralo + Environment.NewLine +
|
|
||||||
"Path to Game:" + "\t" + "\t" + path + Environment.NewLine);
|
|
||||||
Console.Beep(2300, 250);
|
|
||||||
Console.ReadKey();
|
|
||||||
Environment.Exit(1);
|
|
||||||
}
|
}
|
||||||
string displaytext =
|
}
|
||||||
|
/*Transfers data from array to variables*/
|
||||||
|
string map = answ[0];
|
||||||
|
string name = answ[1];
|
||||||
|
string welcome = answ[2];
|
||||||
|
string port = answ[3];
|
||||||
|
string data = answ[4];
|
||||||
|
string extralo = answ[5];
|
||||||
|
string path = answ[6];
|
||||||
|
Console.Clear();
|
||||||
|
/*Stores data into a file*/
|
||||||
|
TextWriter settings = new StreamWriter("config/settings.cfg", true);
|
||||||
|
settings.WriteLine(name);
|
||||||
|
settings.WriteLine(map);
|
||||||
|
settings.WriteLine(welcome);
|
||||||
|
settings.WriteLine(port);
|
||||||
|
settings.WriteLine(data);
|
||||||
|
settings.WriteLine(extralo);
|
||||||
|
settings.WriteLine(path);
|
||||||
|
settings.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void DisplayText(string name, string map, string welcome, string port, string data, string extralo, string path)
|
||||||
|
/*Outputs info of the current configuration*/
|
||||||
|
{
|
||||||
|
string displaytext =
|
||||||
"Server info:" + Environment.NewLine + Environment.NewLine +
|
"Server info:" + Environment.NewLine + Environment.NewLine +
|
||||||
"Server Name:" + "\t" + "\t" + name + Environment.NewLine +
|
"Server Name:" + "\t" + "\t" + name + Environment.NewLine +
|
||||||
"Running Map:" + "\t" + "\t" + map + Environment.NewLine +
|
"Running Map:" + "\t" + "\t" + map + Environment.NewLine +
|
||||||
"Welcome Msg:" + "\t" + "\t" + welcome + Environment.NewLine +
|
"Welcome Msg:" + "\t" + "\t" + welcome + Environment.NewLine +
|
||||||
"Data folder:" + "\t" + "\t" + data + Environment.NewLine +
|
"Data folder:" + "\t" + "\t" + data + Environment.NewLine +
|
||||||
|
"Running port:" + "\t" + "\t" + port + Environment.NewLine +
|
||||||
"Extra options:" + "\t" + "\t" + extralo + Environment.NewLine +
|
"Extra options:" + "\t" + "\t" + extralo + Environment.NewLine +
|
||||||
"Path to Game:" + "\t" + "\t" + path + Environment.NewLine;
|
"Path to Game:" + "\t" + "\t" + path + Environment.NewLine;
|
||||||
Console.WriteLine(displaytext);
|
Console.WriteLine(displaytext);
|
||||||
try { Process.Start(path + @"\Unturned.exe" + launchop);} catch { }
|
}
|
||||||
|
|
||||||
|
static void DebugInfo()
|
||||||
|
/*Helps at debugging, mostly needed when having problems*/
|
||||||
|
{
|
||||||
|
string debugtext =
|
||||||
|
"Currently running from:" + Environment.NewLine +
|
||||||
|
Directory.GetCurrentDirectory() + Environment.NewLine +
|
||||||
|
"Config exists: " + File.Exists("config/settings.cfg") + Environment.NewLine;
|
||||||
|
Console.WriteLine(debugtext);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Run(bool valid, string name, string map, string welcome, string port, string data, string extralo, string path)
|
||||||
|
{
|
||||||
|
if (valid == true)
|
||||||
|
/*If conditions have problems, output errors and variables, else, start the server*/
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
|
Console.WriteLine("Oh, noes! Seems like the settings file contains wrong info." + Environment.NewLine +
|
||||||
|
"Try deleting it or correcting it!" + Environment.NewLine + Environment.NewLine +
|
||||||
|
"If you still get the problem, report it on GitHub!");
|
||||||
|
DisplayText(name, map, welcome, data, port, extralo, path);
|
||||||
|
Console.Beep(2300, 250);
|
||||||
|
Console.WriteLine(Environment.NewLine + "Press any key to exit...");
|
||||||
Console.ReadKey();
|
Console.ReadKey();
|
||||||
|
|
||||||
|
|
||||||
} else {
|
|
||||||
TextReader settings = new StreamReader("settings.cfg", true);
|
|
||||||
string name = settings.ReadLine();
|
|
||||||
string map = settings.ReadLine();
|
|
||||||
string welcome = settings.ReadLine();
|
|
||||||
string port = settings.ReadLine();
|
|
||||||
string data = settings.ReadLine();
|
|
||||||
string extralo = settings.ReadLine();
|
|
||||||
string path = settings.ReadLine();
|
|
||||||
settings.Close(); /*Loads settings from file and checks if all lines are present and valid*/
|
|
||||||
if (
|
|
||||||
String.IsNullOrWhiteSpace(name) ||
|
|
||||||
String.IsNullOrWhiteSpace(map) ||
|
|
||||||
String.IsNullOrWhiteSpace(welcome) ||
|
|
||||||
String.IsNullOrWhiteSpace(port) ||
|
|
||||||
String.IsNullOrWhiteSpace(data) ||
|
|
||||||
String.IsNullOrWhiteSpace(extralo) ||
|
|
||||||
String.IsNullOrWhiteSpace(path) ||
|
|
||||||
!File.Exists(path + @"\Unturned.exe")
|
|
||||||
)
|
|
||||||
{
|
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
|
||||||
Console.WriteLine("Oh, noes! Seems like the settings file contains wrong info." + Environment.NewLine +
|
|
||||||
"Try deleting it or correcting it!" + Environment.NewLine + Environment.NewLine +
|
|
||||||
"If you still get the problem, report it on GitHub!" );
|
|
||||||
Console.WriteLine(Environment.NewLine + "Your settings:" +
|
|
||||||
Environment.NewLine + Environment.NewLine + "Server Name:" + "\t" + "\t" + name + Environment.NewLine +
|
|
||||||
"Running Map:" + "\t" + "\t" + map + Environment.NewLine +
|
|
||||||
"Welcome Msg:" + "\t" + "\t" + welcome + Environment.NewLine +
|
|
||||||
"Data folder:" + "\t" + "\t" + data + Environment.NewLine +
|
|
||||||
"Extra options:" + "\t" + "\t" + extralo + Environment.NewLine +
|
|
||||||
"Path to Game:" + "\t" + "\t" + path + Environment.NewLine);
|
|
||||||
Console.Beep(2300, 250);
|
|
||||||
Console.ReadKey();
|
|
||||||
Environment.Exit(1);
|
|
||||||
} else {
|
|
||||||
Console.ForegroundColor = ConsoleColor.Green;
|
|
||||||
Console.WriteLine("Welcome back!" + Environment.NewLine);
|
|
||||||
string displaytext =
|
|
||||||
"Server info:" + Environment.NewLine + Environment.NewLine +
|
|
||||||
"Server Name:" + "\t" + "\t" + name + Environment.NewLine +
|
|
||||||
"Running Map:" + "\t" + "\t" + map + Environment.NewLine +
|
|
||||||
"Welcome Msg:" + "\t" + "\t" + welcome + Environment.NewLine +
|
|
||||||
"Data folder:" + "\t" + "\t" + data + Environment.NewLine +
|
|
||||||
"Extra options:" + "\t" + "\t" + extralo + Environment.NewLine +
|
|
||||||
"Path to Game:" + "\t" + "\t" + path + Environment.NewLine;
|
|
||||||
Console.WriteLine(displaytext);
|
|
||||||
string launchop = "-nographics -batchmode -name " + "\"" + name + "\"" + " -map " + map + " -welcome " + "\"" + welcome + "\"" + " -port:" + port + " " + extralo + " +secureserver/" + data;
|
|
||||||
try { Process.Start(path + @"\Unturned.exe ", launchop);} catch { }
|
|
||||||
Console.ReadKey();
|
|
||||||
Environment.Exit(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Console.ForegroundColor = ConsoleColor.Green;
|
||||||
|
Console.WriteLine("Welcome!" + Environment.NewLine);
|
||||||
|
DisplayText(name, map, welcome, data, port, extralo, path);
|
||||||
|
string launchop = "-nographics -batchmode -name " + "\"" + name + "\"" + " -map " + map + " -welcome " + "\"" + welcome + "\"" + " -port:" + port + " " + extralo + " +secureserver/" + data;
|
||||||
|
var proc = Process.Start(path + @"\Unturned.exe ", launchop);
|
||||||
|
proc.WaitForExit(600000);
|
||||||
|
}
|
||||||
|
Environment.Exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void MkDirIfNotExist(string name)
|
||||||
|
/*This method name explains itself*/
|
||||||
|
{
|
||||||
|
if (Directory.Exists(name)) { }
|
||||||
|
else { Directory.CreateDirectory(name); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,11 +6,11 @@ using System.Runtime.InteropServices;
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("UnturnedSL")]
|
[assembly: AssemblyTitle("UnturnedSL")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("An Unturned server Launcher")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("UnturnedSL")]
|
[assembly: AssemblyProduct("UnturnedSL")]
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
|
[assembly: AssemblyCopyright("")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.13")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.13")]
|
||||||
|
|
|
@ -0,0 +1,70 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
|
||||||
|
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||||
|
<security>
|
||||||
|
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<!-- UAC Manifest Options
|
||||||
|
If you want to change the Windows User Account Control level replace the
|
||||||
|
requestedExecutionLevel node with one of the following.
|
||||||
|
|
||||||
|
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||||
|
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||||
|
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||||
|
|
||||||
|
Specifying requestedExecutionLevel element will disable file and registry virtualization.
|
||||||
|
Remove this element if your application requires this virtualization for backwards
|
||||||
|
compatibility.
|
||||||
|
-->
|
||||||
|
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||||
|
</requestedPrivileges>
|
||||||
|
<applicationRequestMinimum>
|
||||||
|
<defaultAssemblyRequest permissionSetReference="Custom" />
|
||||||
|
<PermissionSet class="System.Security.PermissionSet" version="1" ID="Custom" SameSite="site" Unrestricted="true" />
|
||||||
|
</applicationRequestMinimum>
|
||||||
|
</security>
|
||||||
|
</trustInfo>
|
||||||
|
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||||
|
<application>
|
||||||
|
<!-- A list of the Windows versions that this application has been tested on and is
|
||||||
|
is designed to work with. Uncomment the appropriate elements and Windows will
|
||||||
|
automatically selected the most compatible environment. -->
|
||||||
|
<!-- Windows Vista -->
|
||||||
|
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||||
|
<!-- Windows 7 -->
|
||||||
|
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||||
|
<!-- Windows 8 -->
|
||||||
|
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||||
|
<!-- Windows 8.1 -->
|
||||||
|
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||||
|
<!-- Windows 10 -->
|
||||||
|
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
|
||||||
|
</application>
|
||||||
|
</compatibility>
|
||||||
|
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
|
||||||
|
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
|
||||||
|
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
|
||||||
|
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config. -->
|
||||||
|
<!--
|
||||||
|
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<windowsSettings>
|
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||||
|
</windowsSettings>
|
||||||
|
</application>
|
||||||
|
-->
|
||||||
|
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
|
||||||
|
<!--
|
||||||
|
<dependency>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity
|
||||||
|
type="win32"
|
||||||
|
name="Microsoft.Windows.Common-Controls"
|
||||||
|
version="6.0.0.0"
|
||||||
|
processorArchitecture="*"
|
||||||
|
publicKeyToken="6595b64144ccf1df"
|
||||||
|
language="*"
|
||||||
|
/>
|
||||||
|
</dependentAssembly>
|
||||||
|
</dependency>
|
||||||
|
-->
|
||||||
|
</assembly>
|
|
@ -12,18 +12,18 @@
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
<PublishUrl>D:\Projects\Unturned SL\</PublishUrl>
|
<PublishUrl>D:\Projects\ServerLauncher\Pubish\</PublishUrl>
|
||||||
<Install>true</Install>
|
<Install>true</Install>
|
||||||
<InstallFrom>Disk</InstallFrom>
|
<InstallFrom>Disk</InstallFrom>
|
||||||
<UpdateEnabled>false</UpdateEnabled>
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
<UpdateMode>Foreground</UpdateMode>
|
<UpdateMode>Background</UpdateMode>
|
||||||
<UpdateInterval>7</UpdateInterval>
|
<UpdateInterval>1</UpdateInterval>
|
||||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
<UpdatePeriodically>false</UpdatePeriodically>
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
<UpdateRequired>false</UpdateRequired>
|
<UpdateRequired>false</UpdateRequired>
|
||||||
<MapFileExtensions>true</MapFileExtensions>
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
<ApplicationRevision>5</ApplicationRevision>
|
<ApplicationRevision>1</ApplicationRevision>
|
||||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
<ApplicationVersion>1.14.0.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
@ -37,6 +37,9 @@
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<RunCodeAnalysis>false</RunCodeAnalysis>
|
||||||
|
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
@ -51,17 +54,28 @@
|
||||||
<ManifestCertificateThumbprint>38F8CCBCA52BFC6A38DA55C985EAB30042818FD1</ManifestCertificateThumbprint>
|
<ManifestCertificateThumbprint>38F8CCBCA52BFC6A38DA55C985EAB30042818FD1</ManifestCertificateThumbprint>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManifestKeyFile>UnturnedSL_TemporaryKey.pfx</ManifestKeyFile>
|
<ManifestKeyFile>
|
||||||
|
</ManifestKeyFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GenerateManifests>true</GenerateManifests>
|
<GenerateManifests>false</GenerateManifests>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<SignManifests>true</SignManifests>
|
<SignManifests>false</SignManifests>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationIcon>logo.ico</ApplicationIcon>
|
<ApplicationIcon>logo.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<SignAssembly>false</SignAssembly>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetZone>LocalIntranet</TargetZone>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup />
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject>UnturnedSL.Launcher</StartupObject>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
@ -76,6 +90,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
|
<None Include="Properties\app.manifest" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
|
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
|
||||||
|
@ -92,6 +107,5 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="logo.ico" />
|
<Content Include="logo.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup />
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
Reference in New Issue