Simplify
13
_config.yml
@@ -2,16 +2,3 @@ theme: jekyll-theme-midnight
|
|||||||
repository: SWG-Source/SWG-Source.github.io
|
repository: SWG-Source/SWG-Source.github.io
|
||||||
title: SWG Source
|
title: SWG Source
|
||||||
description: Run your own private SWG Server (and help us develop it!)
|
description: Run your own private SWG Server (and help us develop it!)
|
||||||
collections:
|
|
||||||
docs:
|
|
||||||
output: true
|
|
||||||
defaults:
|
|
||||||
- scope:
|
|
||||||
path: ""
|
|
||||||
type: "docs"
|
|
||||||
values:
|
|
||||||
layout: "docs"
|
|
||||||
- scope:
|
|
||||||
path: ""
|
|
||||||
values:
|
|
||||||
layout: "default"
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
- name: Home
|
|
||||||
link: /
|
|
||||||
- name: Docs
|
|
||||||
link: https://github.com/SWG-Source/swg-main/wiki
|
|
||||||
- name: Contribute
|
|
||||||
link: /contribute.html
|
|
||||||
@@ -1,76 +0,0 @@
|
|||||||
---
|
|
||||||
title: Wipe Your Database
|
|
||||||
---
|
|
||||||
# Wipe Your Database
|
|
||||||
You might sometimes want to wipe your SWG database and start all over. This guide will help you do that. This guide assumes that you are already up and running on the v1.2.1 SWG Source Server VM.
|
|
||||||
|
|
||||||
In your VM, go to `Start -> Logout -> Logout`. You will be brought to a login page. Login with Username: `oracle` and Password: `swg`.
|
|
||||||
[](/assets/images/wipe-database-1.PNG)
|
|
||||||
Use the button at the top of the desktop to open a terminal. Enter the command `dbca` and press enter.
|
|
||||||
[](/assets/images/wipe-database-2.PNG)
|
|
||||||
This will open the Oracle Database Configuration Assistant. The first thing we will do it delete the database that already exists. Select "Delete database" and click Next.
|
|
||||||
[](/assets/images/wipe-database-3.PNG)
|
|
||||||
You will need to provide the password (`swg`) and click Next again.
|
|
||||||
[](/assets/images/wipe-database-4.PNG)
|
|
||||||
You will then be given the option to De-Register from EM Cloud Control. Just leave it unchecked and click Next.
|
|
||||||
[](/assets/images/wipe-database-5.PNG)
|
|
||||||
You will be given a summary of what is about to happen. Click Finish to run the operation.
|
|
||||||
[](/assets/images/wipe-database-6.PNG)
|
|
||||||
Click Yes when prompted.
|
|
||||||
[](/assets/images/wipe-database-7.PNG)
|
|
||||||
Click Close when the operation has finished.
|
|
||||||
[](/assets/images/wipe-database-8.PNG)
|
|
||||||
Use the Terminal to run the `dbca` command again. This time, we want to Create a database, so make sure that's selected and click next.
|
|
||||||
[](/assets/images/wipe-database-9.PNG)
|
|
||||||
You will now need to enter all the information Oracle needs in order to make your new database. Also, be sure to uncheck the "Create as a container database" selection. It's easiest if you choose `swg` for the Global database name and the password. You might be prompted that your password is not good enough, but you can just click Yes to continue.
|
|
||||||
[](/assets/images/wipe-database-10.PNG)
|
|
||||||
You will again be presented with a summary of what is about to happen. Click Finish to run the operation. This one may take several minutes.
|
|
||||||
[](/assets/images/wipe-database-11.PNG)
|
|
||||||
Click Close when the database creation is complete.
|
|
||||||
[](/assets/images/wipe-database-12.PNG)
|
|
||||||
Next, enter the command `sudo nano /etc/oratab` and press enter. This will open the oratab configuration file.
|
|
||||||
[](/assets/images/wipe-database-13.PNG)
|
|
||||||
Use your arrow keys to navigate to the bottom of this file and change the last character on the last line from `N` to `Y` as shown. This tells the system to automatically start your new database at the system's boot time.
|
|
||||||
[](/assets/images/wipe-database-14.PNG)
|
|
||||||
When you're finished, press CTRL+X to exit. Nano will ask you if you want to save. Press Y then Enter to save and close. You should now reboot your VM by going to `Start -> Logout -> Restart`.
|
|
||||||
|
|
||||||
When your VM has rebooted, use the small button near the start menu to open SQL Developer. Right click on the existing connections to delete them.
|
|
||||||
[](/assets/images/wipe-database-15.PNG)
|
|
||||||
Next, use the green plus sign to make a new connection. Enter a name that makes sense, then Username: `system` and Password: `swg`. Set your SID to `swg`. It's also helpful to check the Save Password checkbox. (Even though I didn't in the screenshot, I should have, haha.) You can then press the Test button to make sure everything's working. If so, click Save and close the window.
|
|
||||||
[](/assets/images/wipe-database-16.PNG)
|
|
||||||
Double click on your new connection to connect to it. Once you've connected, you will need to copy the following commands into the Query Builder worksheet that was opened:
|
|
||||||
```
|
|
||||||
ALTER USER SYSTEM IDENTIFIED by "swg";
|
|
||||||
ALTER SESSION SET "_ORACLE_SCRIPT"=true;
|
|
||||||
CREATE USER swg IDENTIFIED by "swg";
|
|
||||||
GRANT ALL PRIVILEGES TO swg;
|
|
||||||
GRANT UNLIMITED TABLESPACE TO swg;
|
|
||||||
alter system set sessions=3000 scope=spfile;
|
|
||||||
alter system set processes=3000 scope=spfile;
|
|
||||||
alter profile default limit password_life_time unlimited;
|
|
||||||
```
|
|
||||||
After pasting these commands, click the "Run Script" button, that is, the play icon with the paper behind it. (NOT "Run Statement", that is, the regular play icon.)
|
|
||||||
[](/assets/images/wipe-database-17.PNG)
|
|
||||||
You will now need to add another connection, so click the green plus sign once more. This time, your Username, Password, and SID should all be `swg`. Again, check the Save Password checkbox, even though I forgot to in the screenshot. Click Test, then Save if your test was successful.
|
|
||||||
[](/assets/images/wipe-database-18.PNG)
|
|
||||||
You may now close SQL Developer and open Terminator terminal. In the bottom left window, use the command `./build_linux.sh`.
|
|
||||||
[](/assets/images/wipe-database-19.PNG)
|
|
||||||
You can skip most steps by entering `n`. The step you're interested in is importing the database. Select `y` for this one. The script will ask you a series of questions to get the information it needs to set up your new database. Use these responses:
|
|
||||||
```
|
|
||||||
Enter the DSN for the database connection: //127.0.0.1/swg
|
|
||||||
|
|
||||||
Enter the database username: swg
|
|
||||||
|
|
||||||
Enter the database password: swg
|
|
||||||
|
|
||||||
Enter value for max_characters_per_account: 10
|
|
||||||
|
|
||||||
Enter value for max_characters_per_cluster: 10
|
|
||||||
|
|
||||||
Enter value for character_slots: 10
|
|
||||||
|
|
||||||
Enter value for cluster_name: swg
|
|
||||||
|
|
||||||
Enter value for host: 127.0.0.1
|
|
||||||
```
|
|
||||||
That's it! Start up your server and enjoy your fresh database.
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
<html lang="{{ site.lang | default: "en-US" }}">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
|
|
||||||
{% seo %}
|
|
||||||
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
|
||||||
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
|
||||||
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<!--[if lt IE 8]>
|
|
||||||
<link rel="stylesheet" href="{{ '/assets/css/ie.css' | relative_url }}">
|
|
||||||
<![endif]-->
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- Disable this for now.. <div id="header">
|
|
||||||
<nav>
|
|
||||||
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
|
|
||||||
{% if site.show_downloads %}
|
|
||||||
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
|
|
||||||
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
|
|
||||||
<li class="title">DOWNLOADS</li>
|
|
||||||
{% endif %}
|
|
||||||
</nav>
|
|
||||||
</div><!-- end header -->
|
|
||||||
|
|
||||||
|
|
||||||
<div class="wrapper">
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<div id="title">
|
|
||||||
<h1>{{ site.title | default: site.github.repository_name }}</h1>
|
|
||||||
<p>{{ site.description | default: site.github.project_tagline }}</p>
|
|
||||||
<hr>
|
|
||||||
<span class="credits left">Check us out on <a href="{{ site.github.owner_url }}">GitHub</a></span>
|
|
||||||
<span class="credits right">Join us on <a href="https://discord.gg/Va8e6n8" target="_blank">Discord</a></span>
|
|
||||||
<br /><hr>
|
|
||||||
<ul class="nav">
|
|
||||||
{% for item in site.data.nav %}
|
|
||||||
<li>
|
|
||||||
{% if page.url != item.link %}<a href="{{ item.link }}">{% endif %}
|
|
||||||
{{ item.name }}
|
|
||||||
{% if page.url != item.link %}</a>{% endif %}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ content }}
|
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if site.google_analytics %}
|
|
||||||
<script>
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
ga('create', '{{ site.google_analytics }}', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
layout: default
|
|
||||||
---
|
|
||||||
« <a href="/docs.html">Back to Docs</a><br /><br />
|
|
||||||
{{ content }}
|
|
||||||
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 912 KiB |
|
Before Width: | Height: | Size: 920 KiB |
|
Before Width: | Height: | Size: 901 KiB |
|
Before Width: | Height: | Size: 964 KiB |
|
Before Width: | Height: | Size: 635 KiB |
|
Before Width: | Height: | Size: 272 KiB |
|
Before Width: | Height: | Size: 222 KiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 556 KiB |
|
Before Width: | Height: | Size: 957 KiB |
|
Before Width: | Height: | Size: 892 KiB |
|
Before Width: | Height: | Size: 895 KiB |
|
Before Width: | Height: | Size: 889 KiB |
|
Before Width: | Height: | Size: 906 KiB |
|
Before Width: | Height: | Size: 899 KiB |
|
Before Width: | Height: | Size: 880 KiB |
|
Before Width: | Height: | Size: 899 KiB |
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: Become a Contributer
|
|
||||||
---
|
|
||||||
<h1>So you wanna be a SWG Dev, eh?</h1>
|
|
||||||
<p>Great! We want to have you on board! The best place to start would be on our <a href="https://discord.gg/Va8e6n8" target="_blank">Discord</a> channel. That's where the community hangs out and it's the best place to ask questions and become familiar with the platform and with the codebase.</p>
|
|
||||||
<h2>Are you a programmer?</h2>
|
|
||||||
<p>If you want to start right now, feel free to fork our repos and try your hand at restoring something. You can then make a pull request to have your edits merged. We're also willing to give write access to contributers, so please introduce yourself in Discord. We want to meet you!</p>
|
|
||||||
<h2>Not so much with the programming?</h2>
|
|
||||||
<p>That's ok! You should join our Discord too. We can never have too many eyes looking for bugs. Bug reporting is a great way to contribute, and we appreciate them. You can also help with documentation. This website is written with Jekyll on GitHub Pages, which means that you can add a guide simply by adding a markdown file to the repository. Writing a guide is also a great way to learn something more throroughly.</p>
|
|
||||||
<p>Whatever your skill level, you're welcome in our community. Jump onto Discord and get involved!</p>
|
|
||||||
10
docs.html
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
title: Docs
|
|
||||||
---
|
|
||||||
<h1>Documentation & Guides</h1>
|
|
||||||
<p>Under Contruction...</p>
|
|
||||||
<ul>
|
|
||||||
{% for doc in site.docs %}
|
|
||||||
<li><a href="{{ doc.url }}">{{ doc.title }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
47
index.html
@@ -1,12 +1,35 @@
|
|||||||
---
|
<!doctype html>
|
||||||
title: Home
|
<html lang="{{ site.lang | default: "en-US" }}">
|
||||||
---
|
<head>
|
||||||
<h1>Welcome to SWG Source!</h1>
|
<meta charset="utf-8">
|
||||||
<p>To get started, check out the following downloads:
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<ul>
|
{% seo %}
|
||||||
<li><a href="https://bit.ly/SWGSourceServer121" target="_blank">SWG Source Server v1.2.1</a></li>
|
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
||||||
<li><a href="https://bit.ly/SWGSourceClient121" target="_blank">SWG Source Client v1.2.1</a></li>
|
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
||||||
</ul>
|
<script src="{{ '/assets/js/respond.js' | relative_url }}"></script>
|
||||||
</p>
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||||
<p>To run the server, you will need <a href="https://www.virtualbox.org/" target="_blank">Oracle VirtualBox</a>.</p>
|
</head>
|
||||||
<p>To find all kinds of helpful documentation and information, check out the <a href="https://github.com/SWG-Source/swg-main/wiki">swg-main wiki</a>.</p>
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<section>
|
||||||
|
<div id="title">
|
||||||
|
<h1>{{ site.title | default: site.github.repository_name }}</h1>
|
||||||
|
<p>{{ site.description | default: site.github.project_tagline }}</p>
|
||||||
|
<hr>
|
||||||
|
<span class="credits left">Check us out on <a href="{{ site.github.owner_url }}">GitHub</a></span>
|
||||||
|
<span class="credits right">Join us on <a href="https://discord.gg/Va8e6n8" target="_blank">Discord</a></span>
|
||||||
|
<br /><hr>
|
||||||
|
</div>
|
||||||
|
<h1>Welcome to SWG Source!</h1>
|
||||||
|
<p>To get started, check out the following downloads:
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://bit.ly/SWGSourceServer121" target="_blank">SWG Source Server v1.2.1</a></li>
|
||||||
|
<li><a href="https://bit.ly/SWGSourceClient121" target="_blank">SWG Source Client v1.2.1</a></li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
<p>To run the server, you will need <a href="https://www.virtualbox.org/" target="_blank">Oracle VirtualBox</a>.</p>
|
||||||
|
<p>To find all kinds of helpful documentation and information, check out the <a href="https://github.com/SWG-Source/swg-main/wiki">swg-main wiki</a>.</p>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||