Skip to content

Commit f2e1660

Browse files
author
prome
committedFeb 20, 2021
Initial commit
0 parents  commit f2e1660

7 files changed

+236
-0
lines changed
 

‎.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

‎ASCG.ico

264 KB
Binary file not shown.

‎App.config

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
5+
</startup>
6+
</configuration>

‎ArkSpawnCodeGen.csproj

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{7E361A54-A631-4204-A1AE-8A6458EDD60B}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>ArkSpawnCodeGen</RootNamespace>
10+
<AssemblyName>Ark Spawn Code Generator v1.1</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<PublishUrl>publish\</PublishUrl>
15+
<Install>true</Install>
16+
<InstallFrom>Disk</InstallFrom>
17+
<UpdateEnabled>false</UpdateEnabled>
18+
<UpdateMode>Foreground</UpdateMode>
19+
<UpdateInterval>7</UpdateInterval>
20+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
21+
<UpdatePeriodically>false</UpdatePeriodically>
22+
<UpdateRequired>false</UpdateRequired>
23+
<MapFileExtensions>true</MapFileExtensions>
24+
<ApplicationRevision>0</ApplicationRevision>
25+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
26+
<IsWebBootstrapper>false</IsWebBootstrapper>
27+
<UseApplicationTrust>false</UseApplicationTrust>
28+
<BootstrapperEnabled>true</BootstrapperEnabled>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31+
<PlatformTarget>AnyCPU</PlatformTarget>
32+
<DebugSymbols>true</DebugSymbols>
33+
<DebugType>full</DebugType>
34+
<Optimize>false</Optimize>
35+
<OutputPath>bin\Debug\</OutputPath>
36+
<DefineConstants>DEBUG;TRACE</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
41+
<PlatformTarget>AnyCPU</PlatformTarget>
42+
<DebugType>pdbonly</DebugType>
43+
<Optimize>true</Optimize>
44+
<OutputPath>bin\Release\</OutputPath>
45+
<DefineConstants>TRACE</DefineConstants>
46+
<ErrorReport>prompt</ErrorReport>
47+
<WarningLevel>4</WarningLevel>
48+
</PropertyGroup>
49+
<PropertyGroup>
50+
<ApplicationIcon>ASCG.ico</ApplicationIcon>
51+
</PropertyGroup>
52+
<PropertyGroup>
53+
<SignAssembly>true</SignAssembly>
54+
</PropertyGroup>
55+
<PropertyGroup>
56+
<AssemblyOriginatorKeyFile>Dr_Pennysworths.pfx</AssemblyOriginatorKeyFile>
57+
</PropertyGroup>
58+
<ItemGroup>
59+
<Reference Include="System" />
60+
<Reference Include="System.Core" />
61+
<Reference Include="System.Xml.Linq" />
62+
<Reference Include="System.Data.DataSetExtensions" />
63+
<Reference Include="Microsoft.CSharp" />
64+
<Reference Include="System.Data" />
65+
<Reference Include="System.Net.Http" />
66+
<Reference Include="System.Xml" />
67+
</ItemGroup>
68+
<ItemGroup>
69+
<Compile Include="Program.cs" />
70+
<Compile Include="Properties\AssemblyInfo.cs" />
71+
</ItemGroup>
72+
<ItemGroup>
73+
<None Include="App.config" />
74+
<None Include="Dr_Pennysworths.pfx" />
75+
</ItemGroup>
76+
<ItemGroup>
77+
<Content Include="ASCG.ico" />
78+
</ItemGroup>
79+
<ItemGroup>
80+
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
81+
<Visible>False</Visible>
82+
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
83+
<Install>true</Install>
84+
</BootstrapperPackage>
85+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
86+
<Visible>False</Visible>
87+
<ProductName>.NET Framework 3.5 SP1</ProductName>
88+
<Install>false</Install>
89+
</BootstrapperPackage>
90+
</ItemGroup>
91+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
92+
</Project>

‎Program.cs

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
using System;
2+
using System.IO;
3+
4+
5+
namespace ArkSpawnCodeGen
6+
{
7+
class Program
8+
{
9+
static void Main(string[] args)
10+
{
11+
foreach (var arg in args)
12+
{
13+
if (arg == "-cheese")
14+
{
15+
Console.WriteLine("Fuck you cheese you little shitheel!");
16+
Console.ReadKey();
17+
}
18+
if (arg == "-Kane")
19+
{
20+
Console.WriteLine("You know you love me kane! Dont try to hide it!!!!!");
21+
Console.ReadKey();
22+
}
23+
}
24+
string[] files = Directory.GetFiles(Directory.GetCurrentDirectory());
25+
int amtFiles = files.Length;
26+
int fileCount = 0;
27+
bool isArkModFolder()
28+
{
29+
foreach (string s in files)
30+
{
31+
string filename = Path.GetFileNameWithoutExtension(s);
32+
if (!filename.StartsWith("PrimalGameData"))
33+
{
34+
if (fileCount == amtFiles - 1)
35+
{
36+
return false;
37+
}
38+
else
39+
{
40+
fileCount++;
41+
}
42+
}
43+
else
44+
{
45+
return true;
46+
}
47+
}
48+
return false;
49+
}
50+
51+
void MakeSpawnCodes()
52+
{
53+
string itemsHeader = "---------------------------------------------------------------------------------Item Spawn Codes---------------------------------------------------------------------------------";
54+
string dinoHeader = "---------------------------------------------------------------------------------Dino Spawn Codes---------------------------------------------------------------------------------";
55+
var allItems = Directory.GetFiles(Directory.GetCurrentDirectory(), "*", SearchOption.AllDirectories);
56+
File.Delete("SpawnCodes.txt"); //this will wipe the text file so a clean set of codes can be re generated
57+
File.AppendAllText("SpawnCodes.txt", itemsHeader + Environment.NewLine);// this add the item header to show that everythign below is an item spawn code
58+
foreach (var item in allItems)
59+
{
60+
var filename = Path.GetFileNameWithoutExtension(item);
61+
62+
if (filename.StartsWith("PrimalItem"))
63+
{
64+
65+
var s = @"admincheat GiveItem " + ((char)34) + "Blueprint'" + item.Substring(item.IndexOf("Content")).Replace(@"Content\", @"\Game\").Replace(".uasset", "." + filename).Replace(@"\", "/") + "'" + ((char)34) + " 1 1 0";
66+
67+
File.AppendAllText("SpawnCodes.txt", s + Environment.NewLine);
68+
69+
Console.WriteLine(s);
70+
}
71+
}
72+
File.AppendAllText("SpawnCodes.txt", dinoHeader + Environment.NewLine);
73+
foreach (var item in allItems)
74+
{
75+
var filename = Path.GetFileNameWithoutExtension(item);
76+
77+
if (filename.Contains("Character_BP"))
78+
{
79+
80+
var s = @"admincheat SpawnDino " + ((char)34) + "Blueprint'" + item.Substring(item.IndexOf("Content")).Replace(@"Content\", @"\Game\").Replace(".uasset", "." + filename).Replace(@"\", "/") + "'" + ((char)34) + " 500 0 0 120";
81+
82+
File.AppendAllText("SpawnCodes.txt", s + Environment.NewLine);
83+
84+
}
85+
}
86+
}
87+
if (isArkModFolder())
88+
{
89+
MakeSpawnCodes();
90+
}
91+
else
92+
{
93+
Console.WriteLine("Come on dumb ass this isnt a valid mod folder. Next time try to put me in a folder with a valid game data bp smh.");
94+
Console.ReadKey();
95+
}
96+
}
97+
}
98+
}

‎Properties/AssemblyInfo.cs

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("ArkSpawnCodeGen")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Dr. Pennysworth")]
12+
[assembly: AssemblyProduct("ArkSpawnCodeGen")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("7e361a54-a631-4204-a1ae-8a6458edd60b")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SpawnCodeGenerator
2+

0 commit comments

Comments
 (0)
Please sign in to comment.