Skip to content

Commit 6739098

Browse files
committed
Commit for Release 1.7.5b
1 parent 058af0a commit 6739098

File tree

6 files changed

+89
-39
lines changed

6 files changed

+89
-39
lines changed

DebugMod.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.26403.7
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DebugMod", "TemplateMod\DebugMod.csproj", "{8B86A3C8-3234-405D-BA3C-0E58DA65D8AF}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DebugMod", "DebugMod\DebugMod.csproj", "{8B86A3C8-3234-405D-BA3C-0E58DA65D8AF}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

TemplateMod/Commands.cs renamed to DebugMod/Commands.cs

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,21 @@ public static bool AddIRCMessage(Hacknet.OS os, List<string> args)
152152
{
153153
string computer = args[1];
154154
string author = args[2];
155-
string message = args[3];
155+
string messageInput1 = args[3];
156+
string messageInput2 = args[4];
157+
string messageInput3 = args[5];
158+
string messageInput4 = args[6];
159+
string messageInput5 = args[7];
160+
string messageInput6 = args[8];
161+
string messageInput7 = args[9];
162+
string messageInput8 = args[10];
163+
string messageInput9 = args[11];
164+
string messageInput10 = args[12];
165+
string messageInput11 = args[13];
166+
string messageInput12 = args[14];
167+
string messageInput13 = args[15];
168+
string messageInput14 = args[16];
169+
string message = messageInput1 + messageInput2 + messageInput3 + messageInput4 + messageInput5 + messageInput6 + messageInput7 + messageInput8 + messageInput9 + messageInput10 + messageInput11 + messageInput12 + messageInput13 + messageInput14;
156170

157171
if (args.Count < 3)
158172
{
@@ -779,5 +793,56 @@ public static bool SetIP(Hacknet.OS os, List<string> args)
779793
computer.ip = args[2];
780794
return false;
781795
}
796+
public static bool ShowFlags(Hacknet.OS os, List<string> args)
797+
{
798+
os.write(os.Flags.GetSaveString());
799+
return false;
800+
}
801+
public static bool AddFlag(Hacknet.OS os, List<string> args)
802+
{
803+
os.Flags.AddFlag(args[1]);
804+
return false;
805+
}
806+
public static bool RemoveFlag(Hacknet.OS os, List<string> args)
807+
{
808+
os.Flags.RemoveFlag(args[1]);
809+
return false;
810+
}
811+
public static bool AuthenticateToIRC(Hacknet.OS os, List<string> args)
812+
{
813+
os.Flags.RemoveFlag("DLC_Player_IRC_Authenticated");
814+
return false;
815+
}
816+
public static bool AddAgentToIRC(Hacknet.OS os, List<string> args)
817+
{
818+
Computer computerobject = Programs.getComputer(os, args[1]);
819+
if (args.Count < 6)
820+
{
821+
os.write("Usage: addAgentToIRC (NameORIDORIP) (AgentName) (AgentPassword) (AgentColourRed) (AgentColourBlue) (AgentColourGreen)");
822+
return false;
823+
}
824+
try
825+
{
826+
string IsComp = computerobject.adminIP;
827+
int IsNum = Convert.ToInt32(args[4]);
828+
int IsNum2 = Convert.ToInt32(args[5]);
829+
int IsNum3 = Convert.ToInt32(args[6]);
830+
if (args[2] == null || args[3] == null || args[4] == null || args[5] == null || args[6] == null)
831+
{
832+
int ThrowError = Convert.ToInt32("a");
833+
}
834+
}
835+
catch
836+
{
837+
os.write("Usage: addAgentToIRC (NameORIDORIP) (AgentName) (AgentPassword) (AgentColourRed) (AgentColourBlue) (AgentColourGreen)");
838+
return false;
839+
}
840+
string computer = computerobject.idName;
841+
DLCHubServer IRC = Programs.getComputer(os, computer).getDaemon(typeof(DLCHubServer)) as DLCHubServer;
842+
XNA.Color colour = new XNA.Color(Convert.ToInt32(args[4]), Convert.ToInt32(args[5]), Convert.ToInt32(args[6]));
843+
IRC.AddAgent(args[2], args[3], colour);
844+
return false;
845+
}
846+
782847
}
783848
}
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,46 @@
11
# DebugMod
22

3-
Command List:
4-
5-
openAllPorts - Opens all ports on connected computer
6-
7-
bypassProxy - Disable proxy on connected computer
8-
9-
solveFirewall - Solves firewall on connected computer
10-
11-
getAdmin- Gives admin on connected computer
12-
13-
loseAdmin - Lose admin on connected computer
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
3+
This is a mod for Hacknet that allows the user to use various debug commands
394

5+
Requires Hacknet Pathfinder: https://github.com/Arkhist/Hacknet-Pathfinder
406

7+
# New Commands:
418

9+
setTheme - Sets the theme to argument one: Usage: setTheme [THEME]
4210

11+
Valid Options: TerminalOnly,Blue,Teal,Yellow,Green,White,Purple,Mint,Colamaeleon,GreenCompact,Riptide,Riptide2
4312

13+
setCustomTheme - Sets the theme to a custom one, root path is Content/: Usage: setCustomTheme: (PathToTheme)
4414

15+
linkComputer - Links SourceIP to RemoteIP like when you do scan: Usage: linkComputer (SourceIP) (RemoteIP)
4516

17+
unlinkComputer - Unlinks SourceIP to RemoteIP: Usage: unlinkComputer (SourceIP) (RemoteIP)
4618

19+
loseAllNodes - Makes you lose all nodes except for your player computer
4720

21+
loseNode - Loses the node in argument 1: Usage: loseNode (IPORIDORName)
4822

23+
revealNode - Reveals the node in argument 1: Usage: revealNode (IPORIDORName)
4924

25+
removeComputer - Removes computer in argument 1: Usage: removeComputer (IPORIDORName)
5026

27+
resetIP - Resets the ip of the computer in argument 1 like when you do it in ISP server (This does not complete the ETAS, see resetPlayerCompIP): Usage: resetIP (IPORIDORName)
5128

29+
resetPlayerCompIP - Resets the player computer IP and completes ETAS
5230

31+
setIP - Sets the target computer to the IP in argument 2: Usage: setIP (IPORIDORName) (NewIP)
5332

33+
# Command List:
5434

35+
openAllPorts - Opens all ports on connected computer
5536

37+
bypassProxy - Disable proxy on connected computer
5638

39+
solveFirewall - Solves firewall on connected computer
5740

41+
getAdmin- Gives admin on connected computer
5842

59-
Debug Command:
43+
loseAdmin - Lose admin on connected computer
6044

6145
startDeathSeq - Starts ETAS
6246

@@ -149,3 +133,4 @@ enableEmailIcon - Enables the email icon
149133
nodeRestore - Restores nodes like when you click disable tracking in the dlc credits server
150134

151135
addWhiteCircle - Maybe addes the circle when each node is restored
136+

0 commit comments

Comments
 (0)