@@ -8,19 +8,7 @@ class Program
8
8
{
9
9
static void Main ( string [ ] args )
10
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
- }
11
+
24
12
string [ ] files = Directory . GetFiles ( Directory . GetCurrentDirectory ( ) ) ;
25
13
int amtFiles = files . Length ;
26
14
int fileCount = 0 ;
@@ -50,11 +38,30 @@ bool isArkModFolder()
50
38
51
39
void MakeSpawnCodes ( )
52
40
{
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 " ;
55
46
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
58
65
foreach ( var item in allItems )
59
66
{
60
67
var filename = Path . GetFileNameWithoutExtension ( item ) ;
@@ -64,12 +71,12 @@ void MakeSpawnCodes()
64
71
65
72
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
73
67
- File . AppendAllText ( "SpawnCodes .txt" , s + Environment . NewLine ) ;
74
+ File . AppendAllText ( "Output .txt" , s + Environment . NewLine ) ;
68
75
69
76
Console . WriteLine ( s ) ;
70
77
}
71
78
}
72
- File . AppendAllText ( "SpawnCodes .txt" , dinoHeader + Environment . NewLine ) ;
79
+ File . AppendAllText ( "Output .txt" , dinoHeader + Environment . NewLine ) ;
73
80
foreach ( var item in allItems )
74
81
{
75
82
var filename = Path . GetFileNameWithoutExtension ( item ) ;
@@ -79,18 +86,37 @@ void MakeSpawnCodes()
79
86
80
87
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
88
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 ) ;
83
108
84
109
}
85
110
}
111
+ File . AppendAllText ( "Output.txt" , author + Environment . NewLine ) ;
86
112
}
87
113
if ( isArkModFolder ( ) )
88
114
{
89
115
MakeSpawnCodes ( ) ;
90
116
}
91
117
else
92
118
{
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 ." ) ;
94
120
Console . ReadKey ( ) ;
95
121
}
96
122
}
0 commit comments