FANDOM


Disclaimer Edit

DISCLAIMER: THERE IS NO OFFICIAL WAY TO MOD HACKNET AS OF NOW. THE MODDING YOU WILL BE DOING INVOLVES GOING INTO THE GAME'S FILES AND CHANGING THEM TO CREATE A MOD. PLEASE BACK-UP YOUR GAME IF YOU HAVE NOT DONE SO.

Starting Off Edit

Now that that's out of the way, welcome to modding Hacknet! We're going to create a simple "Hello World" Program. To begin, let's create our first computer! First, you have to go into the files. Navigate to the folder in which you installed Hacknet. If you installed Hacknet via Steam, navigate to the steam library, right click on Hacknet, click "Properties" and click "Local Files" in the menu that just appeared at the top. Then click "Browse Local Files"

In the files Edit

Once you're inside the files, navigate to "Content". You're in! Now, we have to create our first computer. To do this, create a new folder titled: "My Own Computer". Inside this folder, we are going to create a file titled: "MyVeryFirstComputer.xml" The reason for this is that Hacknet creates computers using XML or The Extensible Markup Language. If you don't what XML is, you should try a couple of w3schools tutorials to learn a bit of what it is.

My first Computer Edit

Create a new .txt file titled "MyVeryFirstComputer.txt" inside your My Own Computer folder, using your preferred editor. In the txt file, type in:

<?xml version="1.0" encoding="UTF-8" ?>

<Computer id="myFirstComputer" name="myfirstcomputer.com" security="0" type="4">

</Computer>

Breaking it down Edit

So, what was that?

First, let's start with the <?xml ?> tag (Tags are numbers and letters enclosed in <> characters, telling the computer how to display a webpage. I'd recommend looking at the w3schools tutorial for a better explanation) . The <?xml part is telling us that we are creating a file that is using the External Markup Language. The version="1.0" part means that we're using Version 1.0 of XML. The encoding part is is telling us what language to use. In this case, it's UTF-8. What's UTF-8? It's basically a system made by The Unicode Consortium to make sure all computers can talk to each other with the same characters without breaking them. A more detailed explanation can be found here, explained by Tom Scott. Continuing, the <Computer tag is telling the computer that we are making a new computer. It's id will be myFirstComputer, and it's name will be myfirstcomputer.com. The "security" part affects the levels of security, such as how long it takes for programs that hack into the ports to run, as well as if the computer will trace someone if they are hacked. The "type" part is just changing the image of what the computer will look like in the hacking screen, as well as the default security and the type of computer. Here's a table of types:

Type Number Type
1 Corporate
2 Home
3 Server
4 Empty

Adding More Edit

"Hello World!" Edit

So, how do we need to make our "Hello World" Program? Well, first, we need to create an HTML file. In your My Own Computer folder, create a new file called "HelloWorld.txt". Open it up, and type in:

<html>

<body>

Hello world!

</body>

</html>

Once that's done, rename HelloWorld.txt to: HelloWorld.html. Next, we need to add to our program:

<?xml version="1.0" encoding="UTF-8" ?>

<Computer id="myFirstComputer" name="myfirstcomputer.com" security="0" type="4" ip="48.222.1.865">

<addWebServer name="My First Computer Home" url="Content/My Own Computer/HelloWorld.html" />

</Computer>

Breaking it down Edit

So what did we do? First, we made a simple HTML program that says "Hello World". The <html> tag says that the file is an html file, and when it has the .html ending, it is telling the computer: "Yep, this is an html file". The <body> tagtells the computer that we want to be able to write to the file to show the user our "Hello World" Text. For the other file, we told the computer, under the Computer tag, that in the game, you can connect to the computer you made using the ip 48.222.1.865 (Not a real IP). The addWebServer part means that once you connect, you will access the HelloWorld.html file, and view it.

Finishing up Edit

To finish it up, rename "MyVeryFirstComputer.txt" to "MyVeryFirstComputer.xml". Before you launch the game however, and test it out, we need to make sure that the computer will load. Go to Content/Computers/BootLoadList.txt and scroll down to the bottom of the text file. Add to it:

#MyOwnComputer

Content/My Own Computer/MyVeryFirstComputer.xml

Once that's done, launch Hacknet, and start a new game. The reason for this is that Hacknet loads all computers when you start a new game, and does not check to make sure any more computers are added after you start a game, which is why whenever you test a mod, you have to start a game.

All Done! Edit

Congratulations! You should have your first Computer made! Great job! In the next tutorial, we'll learn how to secure our computer! Great!

So, what was the stuff I just typed in? Edit

When you start a new game, it checks for the list of computers it should load. You added the location for the computer you made, and you can now access it, by copying and pasting the ip in hacknet using the connect command, once you get past the tutorial.

One more thing Edit

If you're annoyed by the starting text everytime you launch the game, there's a simple solution. To remove the "hi my name is bit" part, go to Content/BitSpeech.txt, and remove everything except for one letter. For the System boot part, go to Content/OSXBoot.txt and remove everything except for one letter.

(WARNING: IF YOU LEAVE NOTHING IN BITSPEECH.TXT OR OSXBOOT.TXT, YOUR GAME WILL NOT LOAD PROPERLY)Edit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.