@@ -8,19 +8,7 @@ class Program
88 {
99 static void Main ( string [ ] args )
1010 {
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- }
11+
2412 string [ ] files = Directory . GetFiles ( Directory . GetCurrentDirectory ( ) ) ;
2513 int amtFiles = files . Length ;
2614 int fileCount = 0 ;
@@ -50,11 +38,30 @@ bool isArkModFolder()
5038
5139 void MakeSpawnCodes ( )
5240 {
53- string itemsHeader = "---------------------------------------------------------------------------------Item Spawn Codes---------------------------------------------------------------------------------" ;
54- string dinoHeader = "---------------------------------------------------------------------------------Dino Spawn Codes---------------------------------------------------------------------------------" ;
41+ string author = "\n Code generated with ARKMod.net's ARK Code Generator. For latest version, visit https://arkmod.net/.\n Happy ARKing!" ;
42+ string engramsHeader = "\n ---------------------------------------------------------------------------------Engram Names---------------------------------------------------------------------------------\n " ;
43+ string itemsHeader = "\n ---------------------------------------------------------------------------------Item Spawncodes--------------------------------------------------------------------------------\n " ;
44+ string dinoHeader = "\n ---------------------------------------------------------------------------------Creature Spawncodes-----------------------------------------------------------------------------\n " ;
45+ string dinoTHeader = "\n ---------------------------------------------------------------------------------Tamed Creature Spawncodes-----------------------------------------------------------------------\n " ;
5546 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
47+ File . Delete ( "Output.txt" ) ; //this will wipe the text file so a clean set of codes can be re generated
48+ File . AppendAllText ( "Output.txt" , author + Environment . NewLine ) ;
49+ File . AppendAllText ( "Output.txt" , engramsHeader + Environment . NewLine ) ;
50+ foreach ( var item in allItems )
51+ {
52+ var filename = Path . GetFileNameWithoutExtension ( item ) ;
53+
54+ if ( filename . StartsWith ( "EngramEntry" ) )
55+ {
56+
57+ var s = filename + "_C" ;
58+
59+ File . AppendAllText ( "Output.txt" , s + Environment . NewLine ) ;
60+
61+ Console . WriteLine ( s ) ;
62+ }
63+ }
64+ File . AppendAllText ( "Output.txt" , itemsHeader + Environment . NewLine ) ; // this add the item header to show that everythign below is an item spawn code
5865 foreach ( var item in allItems )
5966 {
6067 var filename = Path . GetFileNameWithoutExtension ( item ) ;
@@ -64,12 +71,12 @@ void MakeSpawnCodes()
6471
6572 var s = @"admincheat GiveItem " + ( ( char ) 34 ) + "Blueprint'" + item . Substring ( item . IndexOf ( "Content" ) ) . Replace ( @"Content\" , @"\Game\" ) . Replace ( ".uasset" , "." + filename ) . Replace ( @"\" , "/" ) + "'" + ( ( char ) 34 ) + " 1 1 0" ;
6673
67- File . AppendAllText ( "SpawnCodes .txt" , s + Environment . NewLine ) ;
74+ File . AppendAllText ( "Output .txt" , s + Environment . NewLine ) ;
6875
6976 Console . WriteLine ( s ) ;
7077 }
7178 }
72- File . AppendAllText ( "SpawnCodes .txt" , dinoHeader + Environment . NewLine ) ;
79+ File . AppendAllText ( "Output .txt" , dinoHeader + Environment . NewLine ) ;
7380 foreach ( var item in allItems )
7481 {
7582 var filename = Path . GetFileNameWithoutExtension ( item ) ;
@@ -79,18 +86,37 @@ void MakeSpawnCodes()
7986
8087 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" ;
8188
82- File . AppendAllText ( "SpawnCodes.txt" , s + Environment . NewLine ) ;
89+ File . AppendAllText ( "Output.txt" , s + Environment . NewLine ) ;
90+
91+ Console . WriteLine ( s ) ;
92+
93+ }
94+ }
95+ File . AppendAllText ( "Output.txt" , dinoTHeader + Environment . NewLine ) ;
96+ foreach ( var item in allItems )
97+ {
98+ var filename = Path . GetFileNameWithoutExtension ( item ) ;
99+
100+ if ( filename . Contains ( "Character_BP" ) )
101+ {
102+
103+ var s = @"admincheat GMSummon " + ( ( char ) 34 ) + filename + ( ( char ) 34 ) + " 120" ;
104+
105+ File . AppendAllText ( "Output.txt" , s + Environment . NewLine ) ;
106+
107+ Console . WriteLine ( s ) ;
83108
84109 }
85110 }
111+ File . AppendAllText ( "Output.txt" , author + Environment . NewLine ) ;
86112 }
87113 if ( isArkModFolder ( ) )
88114 {
89115 MakeSpawnCodes ( ) ;
90116 }
91117 else
92118 {
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 ." ) ;
119+ Console . WriteLine ( "This folder dont have a PrimalGameData ." ) ;
94120 Console . ReadKey ( ) ;
95121 }
96122 }
0 commit comments